stdalign: port to stricter ISO C11
[gnulib.git] / ChangeLog
1 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
2
3         stdalign: port to stricter ISO C11
4         ISO C11 says that _Alignof's operand must be a parenthesized type.
5         Problem reported by Eli Zaretskii in
6         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
7         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
9
10 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
11
12         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
13         Problem reported by Marco Atzeri in
14         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
15         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
16         Simply delegate to the system <sys/select.h> in this case too.
17         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
18         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19         be needed on Solaris either.
20         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
21         Simply delgate to the system <sys/time.h> in this case.
22
23 2013-03-19  Karl Berry  <karl@gnu.org>
24
25         * build-aux/gnupload: check for erroneous (with gnupload) use of
26         ftp-upload.gnu.org, tweak help.
27
28 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29
30         copy-file, rpmatch: fix problems found by cppcheck
31         Reported by Arno Onken in
32         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
33         * lib/rpmatch.c (try): Fix memory leak.
34         * lib/copy-file.c: Include "ignore-value.h".
35         (qcopy_file_preserving): Ignore chown value.
36         * modules/copy-file (Depends-on): Add ignore-value.
37
38 2013-01-27  Jim Meyering  <jim@meyering.net>
39
40         prefix-gnulib-mk: give better diagnostics
41         * build-aux/prefix-gnulib-mk: Don't just "die".
42         Give better diagnostics upon failure.
43
44 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
45
46         putenv: port to Solaris 10
47         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
48         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
49         is not what is wanted here.
50         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
51         declaration, not for its existence.
52
53 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
54
55         mktime: fix configure typo
56         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
57
58 2013-03-12  Eric Blake  <eblake@redhat.com>
59
60         regex-tests: skip UTF-8 test on mingw
61         * modules/regex-tests (Depends-on): Add localcharset.
62         * tests/test-regex.c (main): Use it to skip test on mingw.
63
64 2013-03-11  Eric Blake  <eblake@redhat.com>
65
66         tests: make it easier to bypass alarm time in debugger
67         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
68         * tests/test-memmem.c (main): Likewise.
69         * tests/test-passfd.c (main): Likewise.
70         * tests/test-ptsname.c (main): Likewise.
71         * tests/test-ptsname_r.c (main): Likewise.
72         * tests/test-strcasestr.c (main): Likewise.
73         * tests/test-strstr.c (main): Likewise.
74
75         regex: port to mingw's recent addition of undeclared alarm
76         * doc/posix-functions/alarm.texi (alarm): Document that alarm
77         exists but still doesn't work in newer mingw.
78         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
79         not existence.  Ensure SIGALRM is not trapped.
80         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
81         * m4/regex.m4 (gl_REGEX): Likewise.
82         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
83         * tests/test-regex.c (main): Use correct probe for alarm.
84
85         putenv: avoid compilation warning on mingw
86         * lib/putenv.c (_unsetenv): Protect variable declaration.
87         (putenv): Fix indentation.
88
89 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
90
91         unistd: don't prevent Tru64 Unix from using gnulib strtod.
92         * lib/unistd.in.h: be careful not to include un-needed system
93         stdlib.h from here, because that prevents gnulib stdlib.h from
94         defining rpl_strtod correctly.
95
96 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
97
98         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
99         changesets, but for the 'precision 0' test.
100         * tests/test-vasprintf-posix.c (test_function): Don't insist on
101         round-to-even, since POSIX says rounding is implementation-defined
102         and OS X 10.8.2 rounds 1.51 to 1 here.
103
104         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
105         changeset.
106         * tests/test-vasprintf-posix.c (test_function): Don't insist on
107         round-to-even, since POSIX says rounding is implementation-defined
108         and OS X 10.8.2 rounds 1.5 to 1 here.
109
110 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
111
112         vasnprintf-posix-tests: allow rounding 1.5 to 1
113         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
114         round-to-even, since POSIX says rounding is implementation-defined
115         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
116         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
117
118         bootstrap: port to FreeBSD
119         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
120         that treat '--' differently.  Reported by Mats Erik Andersson in
121         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
122
123 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
124
125         regex: rename remaining __attribute calls to __attribute__.
126         2012-02-25 changed definition of __attribute, but left some uses
127         unchanged, preventing compilation of regex module on most non-gcc
128         environments.
129         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
130         (lookup_collation_sequence_value, build_range_exp)
131         (build_collating_symbol): Set attributes with newly renamed
132         __attribute__ decorator.
133         * lib/regex_internal.c (re_string_peek_byte_case)
134         (re_node_set_compare, re_node_set_contains): Likewise.
135         * lib/regexec.c (acquire_init_state_context): Likewise.
136
137 2013-03-06  Bruno Haible  <bruno@clisp.org>
138
139         execute: Revert last change, but use a different condition.
140         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
141         on Windows.
142
143 2013-03-05  Eric Blake  <eblake@redhat.com>
144
145         execute: drop dead code
146         * lib/execute.c (nonintr_close, nonintr_open): Delete.
147
148 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
149
150         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
151         * m4/non-recursive-gnulib-prefix-hack.m4
152         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
153         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
154         <http://bugs.gnu.org/10305#237>.
155
156 2013-03-04  Eric Blake  <eblake@redhat.com>
157
158         test-getsockopt: avoid compiler warning
159         * tests/test-getsockopt.c (includes): Ensure close is declared.
160
161 2013-03-02  Bruno Haible  <bruno@clisp.org>
162
163         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
164         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
165
166 2013-03-02  Bruno Haible  <bruno@clisp.org>
167
168         gettext: Update to version 0.18.2.
169         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
170         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
171                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
172
173 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
174
175         regex: merge patches from libc
176
177         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
178         * lib/regex_internal.h (__attribute__): Rename from __attribute.
179         All uses changed.
180         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
181         (re_string_wchar_at, re_string_elem_size_at):
182         Mark function as possibly unused.
183
184         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
185         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
186         elements compare against the byte sequence of it, not its name.
187
188 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
189
190         putenv: port better to native Windows
191         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
192         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
193         (_unsetenv): Use _putenv if available.
194         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
195         a bit less likely to cause damage.
196         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
197         Fix the wrong value with SetEnvironmentVariable.
198         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
199         code better.
200
201 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
202
203         regex: ignore old-style-definition warnings
204         * lib/regex.c: Add pragma to ignore these warnings.
205         Problem reported for GNU tar by Pavel Raiskup.
206
207 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
208
209         getcwd: support coreutils better
210         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
211         but this might not be correct in coreutils, which disables
212         the raw decl checks.  Problem reported by Nagendra in
213         <http://bugs.gnu.org/10305#192>.
214         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
215         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
216         Test the getcwd function, not any macro, since getcwd.c wants the
217         function.
218         * m4/getcwd.m4 (gl_FUNC_GETCWD):
219         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
220         compile, as might happen if there's a macro but no function.
221
222         strtod: support coreutils better
223         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
224         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
225         disables the raw decl checks.  This assumes there is an underlying
226         strtod, but that's a safe assumption these days.
227         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
228
229         mountlist: port to HP NonStop
230         Reported by Joachim Schmitz in
231         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
232         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
233         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
234
235 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
236
237         extern-inline: avoid compilation error with HP-UX cc
238         Reported by Richard Lloyd in
239         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
240         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
241         Suppress extern inline with HP-UX cc.  This should be safe,
242         though it may hurt performance.  Perhaps someone with some HP-UX
243         experience can come up with a higher-performance fix.
244
245 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
246
247         putenv: fix heap corruption with mixed putenv/_putenv
248         Problem reported by Michael Goffioul in
249         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
250         * lib/putenv.c (putenv) [HAVE__PUTENV]:
251         Rely on _putenv to allocate the new environment.
252         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
253         * modules/putenv (configure.ac): Use it.
254
255 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
256
257         unsetenv etc.: port to Solaris 11 + GNU Emacs
258         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
259         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
260         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
261         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
262         idea but is too painful to fix right now), and without this gnulib
263         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
264         compiling unsetenv.c on Solaris 11.  Fix the problem for
265         unsetenv.c, and fix other similar occurrences.
266
267 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
268
269         secure_getenv: fix C++ declaration typo
270         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
271         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
272         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
273
274 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
275
276         careadlinkat: stop exporting careadlinkatcwd
277         Only Emacs used it directly, and Emacs no longer needs it.
278         * NEWS: Document this simplification.
279         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
280         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
281         for readlink.
282         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
283         Don't include stdlib.h; no longer needed.
284         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
285         * lib/relocwrapper.c: Adjust comment to match new dependencies.
286         * modules/areadlink (Depends-on): Add readlink.
287         (Maintainer): Add self.
288         * modules/careadlinkat (Depends-on): Remove readlink.
289
290         extensions: port better to HP-UX
291         This is merged from git Autoconf.
292         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
293         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
294         so that it's compatible with the value used when compiling.
295
296         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
297         Problem reported by Mats Erik Andersson in
298         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
299         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
300         openpty function exists, not merely when we intend to replace it.
301         This corrects the 2013-01-31 patch, which mistakenly defined
302         HAVE_OPENPTY even on hosts that lacked it.
303
304 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
305
306         secure_getenv: fix include typo
307         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
308
309         secure_getenv: port better to FreeBSD and Solaris
310         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
311         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
312         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
313         This works better on BSDish platforms.
314         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
315         Test for issetugid if __secure_getenv is missing.
316
317 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
318
319         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
320         Some of these changes are merged in from git Autoconf.
321         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
322         When deciding whether to define _XOPEN_SOURCE, inspect the
323         preprocessor macro __hpux instead of the more-heavyweight
324         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
325         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
326         as the key for __EXTENSIONS__.
327
328         unistd: avoid namespace pollution on non-glibc systems
329         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
330         This avoids namespace pollution on non-glibc systems, by causing
331         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
332         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
333         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
334
335 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
336
337         tmpdir: use secure_getenv
338         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
339         Define to secure_getenv, not getenv.
340         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
341         as that's now secure_getenv's job.
342         * modules/tmpdir (Depends-on): Add secure_getenv.
343
344         tempname: use secure_getenv
345         * lib/tempname.c (__secure_getenv) [!_LIBC]:
346         Define to secure_getenv, not getenv.
347         * modules/tempname (Depends-on):
348         Add secure_getenv.
349
350         secure_getenv: new module
351         * MODULES.html.sh (Extra functions based on ANSI C 89):
352         Add secure_getenv.
353         * doc/glibc-functions/secure_getenv.texi: New file.
354         * doc/gnulib.texi: Include it.
355         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
356         New files.
357         * lib/stdlib.in.h (secure_getenv): New decl.
358         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
359         * modules/stdlib (stdlib.h):
360         Add secure_getenv checks.
361
362 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
363
364         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
365         Reported for OS X 10.8.2 by Assaf Gordon in
366         <http://bugs.gnu.org/13516>.
367         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
368         !HAVE_OPENAT && !HAVE_FDOPENDIR.
369         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
370         so that they can be kept in sync more easily.  Avoid PATH_MAX
371         test on the Hurd.  Sync from test-getcwd.c for errno tests after
372         mkdir or chdir failure.
373         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
374         lib/getcwd.c.
375         (test_abort_bug): Do not test for the deep directory bug unless we
376         have openat support.  Avoid PATH_MAX test on the Hurd.
377
378         regex-tests, regex: fix bug: memset undeclared
379         * tests/test-regex.c: Don't include regex.h twice.  Include
380         string.h, to declare memset.  Christensen's report also mentioned
381         this issue.
382         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
383         test-regex.c, to avoid future problems like this.  Remove
384         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
385         twice.
386
387         regex-tests: fix link errors on older Solaris
388         These need to link with @LIBINTL@ to get libintl_gettext.
389         Problem reported by Tom G. Christensen in
390         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
391         * modules/regex-tests (test_regex_LDADD): New macro.
392
393 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
394
395         regex-tests: new module
396         * modules/regex-tests, tests/test-regex.c: New files.
397
398         regex: fix off-by-one error in configure test
399         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
400
401 2013-01-31  Eric Blake  <eblake@redhat.com>
402
403         regex: avoid infinite configure test
404         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
405
406 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
407
408         openpty: fix bug where HAVE_OPENPTY wasn't defined
409         See the thread starting at:
410         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
411         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
412         openpty function exists, not merely when we intend to replace it.
413
414 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
415
416         sys_time: port to Solaris 2.6
417         There is a circularity problem on Solaris 2.6, where <time.h> includes
418         <sys/time.h> for struct timespec.  The include nesting is gnulib
419         <time.h>, system <time.h>, gnulib <sys/time.h>, system
420         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
421         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
422         <sys/siginfo.h>; the last, innermost file needs struct
423         timestruc_t, which is defined in <sys/time.h>, which has not been
424         fully parsed.  Problem reported by Tom G. Christensen in
425         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
426         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
427         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
428         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
429         uses split double-inclusion guards.
430
431 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
432
433         regex: test for buffer overrun
434         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
435         for the just-fixed regex bug.
436
437 2013-01-29  Andreas Schwab  <schwab@suse.de>
438
439         regex: fix buffer overrun in regexp matcher [BZ #15078]
440         * lib/regexec.c (extend_buffers): Add parameter min_len.
441         (check_matching): Pass minimum needed length.
442         (clean_state_log_if_needed): Likewise.
443         (get_subexp): Likewise.
444
445 2013-01-28  Pádraig Brady  <P@draigBrady.com>
446
447         mountlist: don't consider "devtmpfs" as dummy
448         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
449         as there is storage associcated with it.
450
451 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
452
453         futimens-tests, utimens-tests: Depend on gettext.
454         This works around a problem introduced in my 2013-01-12 patch,
455         which added @LIBINTL@ to these modules.
456         * modules/futimens-tests (Depends-on):
457         * modules/utimens-tests (Depends-on): Add gettext.
458
459 2013-01-26  Eric Blake  <eblake@redhat.com>
460
461         test-getpeername: fix typo
462         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
463
464 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
465
466         bootstrap: remove the need for a sorted .gitignore file
467         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
468         rename to insert_if_absent(), so that we don't need or generate
469         a sorted .gitignore file.  We do require a .gitignore with no
470         existing duplicate entries and enforce that.
471         (sort_patterns): Remove this function as we now use the simpler
472         technigue of inserting blacklist entries at the top of the file,
473         assuming gnulib won't be inserting !whitelist entries.
474
475 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
476
477         readlinkat: don't depend on gl_FUNC_OPENAT
478         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
479         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
480         renameat.m4, symlinkat.m4; but one thing at a time.
481
482         statat: new module, split out from fstatat
483         GNU Emacs needs the POSIX-specified fstatat, but not the
484         gnulib-specified statat and lstat.  Split the latter two into a
485         new module 'statat'.
486         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
487         * lib/openat.h, lib/statat.c (STATAT_INLINE):
488         Rename from FSTATAT_INLINE. All uses changed.
489         * modules/fstatat (Files): Remove lib/statat.c.
490         (gl_MODULE_INDICATOR([fstatat])): Remove.
491         (lib_SOURCES): Remove.
492         (Maintainer): Add self.
493         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
494         * tests/test-fstatat.c (BASE): Don't define if already defined.
495         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
496
497 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
498
499         tests: don't assume fd 99 is closed
500         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
501         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
502         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
503         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
504         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
505         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
506         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
507         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
508         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
509         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
510         * tests/test-fwrite.c, tests/test-getpeername.c:
511         * tests/test-getsockname.c, tests/test-getsockopt.c:
512         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
513         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
514         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
515         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
516         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
517         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
518         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
519         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
520         * tests/test-unlinkat.c, tests/test-unlockpt.c:
521         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
522         Close file descriptor 99, instead of assuming it's already closed.
523
524 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
525
526         stpncpy: port to OS X 10.8
527         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
528         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
529
530 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
531
532         unistd: port to recent mingw
533         * lib/unistd.in.h: Remove special invocation convention for mingw,
534         which breaks for the latest mingw version.  See John W. Eaton in
535         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
536
537         largefile: port better to Mac OS X 10.5
538         This patch is backported from Autoconf git.
539         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
540         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
541         with ino_t size being different for configuration time versus
542         build/run time.  Problem reported by PHO in
543         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
544
545 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
546
547         doc: clarify -Werror
548         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
549         clarify that it's intended for developers, not for ordinary builds,
550         and mention --enable-gcc-warnings as one possible use.
551
552 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
553
554         stdint: fix build with Android's Bionic fox x86
555         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
556         was already included as _SSIZE_T_DEFINED_ might also be defined
557         in include/machine/_types.h, which is included by stdio.h
558
559 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
560
561         net_if-tests: port to Solaris 7 + GCC 3.4.6
562         Problem reported by Tom G. Christensen in
563         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
564         * tests/test-net_if.c (ni): Move to next the code that uses it,
565         so that it's declared only if needed.
566
567 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
568
569         net_if-tests: port to older Solaris
570         Problem reported by Tom G. Christensen in
571         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
572         * modules/net_if-tests (NET_IF_LIB): New substitution.
573         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
574         (HAVE_IF_NAMEINDEX): New C macro.
575         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
576
577         system-quote-tests: port to older Solaris
578         Problem reported by Tom G. Christensen in
579         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
580         * tests/test-system-quote-child.c (fopen, fread): Undef.
581
582         c-xvasprintf etc.: fix link errors on older Solaris
583         These need to link with @LIBINTL@ to get libintl_gettext.
584         Problem reported by Tom G. Christensen in
585         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
586         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
587         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
588         * modules/futimens-tests (test_futimens_LDADD):
589         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
590
591 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
592
593         locale: port to Solaris 2.6 and 7 + GNU gettext
594         * lib/locale.in.h: Just include_next <locale.h> when
595         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
596         when combining the localename module with GNU gettext 0.18.2.
597         Problem reported by Tom G. Christensen in
598         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
599
600 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
601
602         stdlib: port to Solaris 2.6
603         Also, the code worked on Solaris 7 through 9 only by accident.
604         Problem reported by Tom G. Christensen in
605         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
606         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
607         simply include the system stdlib.h.
608         * lib/getopt.in.h (__need_system_stdlib_h):
609         * lib/pthread.in.h (__need_system_stdlib_h):
610         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
611         Define when including <stdlib.h>, to avoid problems at least for
612         the pthread case on Solaris 2.6 and 7.  These .h files can get by
613         with the system stdlib.h.
614
615 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
616
617         doc: update main copyright year
618         * doc/gnulib.texi: Update copyright date.
619
620         doc: improve ISO 8601 discussion
621         * doc/parse-datetime.texi (Combined date and time of day items):
622         Specify more carefully what formats are supported and what is
623         done with excess precision.
624
625 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
626
627         doc: avoid small caps
628         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
629         they're more trouble than they're worth.  Suggested by Karl Berry
630         in <http://bugs.gnu.org/13360>.
631
632         regex: conform to strict C
633         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
634         From Aharon Robbins.
635
636         gnulib-tool: fix incompatibility with autopoint 0.18.2
637         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
638         Problem reported by Tom G. Christensen in
639         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
640
641 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
642
643         fprintftime: bring back and reword fwrite comment
644         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
645
646         stdio: remove now-unnecessary stdio.c
647         Since stdio.in.h no longer uses inline functions, we no longer
648         need to compile the extern versions.
649         * lib/stdio.c: Remove.
650         * modules/stdio (Files): Remove lib/stdio.c.
651         (lib_SOURCES): Remove.
652
653         unicodeio: depend on stdio, not ignore-value
654         * lib/unicodeio.c: Do not include ignore-value.h.
655         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
656         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
657
658         fprintftime: depend on stdio, not ignore-value
659         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
660         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
661         since the stdio module arranges to silence that warning now.
662         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
663
664 2012-10-04  Simon Josefsson  <simon@josefsson.org>
665
666         stdint-tests: Fix expanded-before-required-warning.
667         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
668
669 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
670
671         fwrite: silence __wur only for older glibc versions
672         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
673         This will help us remove this workaround some time in the far future.
674
675 2013-01-03  Eric Blake  <eblake@redhat.com>
676
677         fwrite: silence __wur without using inline
678         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
679         just gcc, and in a way that avoids inline issues.
680         * modules/stdio (Depends-on): Drop extern-inline.
681
682 2013-01-03  Jim Meyering  <jim@meyering.net>
683
684         update-copyright: avoid copyright notice date corruption
685         Given a sequence of copyright year numbers in which the final
686         one was a two-digit number that happened to be a substring of
687         a preceding four-digit year number, we would mistakenly update
688         the substring (from two- to four-digit) rather than the two-digit
689         number at the end, which, combined with the addition of the current
690         4-digit year number would yield two 5-digit year numbers, e.g.,
691         here, it would convert the first "99" to "1999, 2013" rather than
692         the final one:
693           1991, 99
694           11999, 20131, 1999
695         * build-aux/update-copyright: Tighten a regexp.
696         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
697         Reported by Joseph Myers in
698         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
699
700 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
701
702         regex: omit needless signed-pointer casts
703         * lib/regcomp.c (build_charclass, build_charclass_op):
704         Use char *, not unsigned char *, for class name and extra.
705         The char values are always nonnegative so there's no need to
706         insist on unsigned char * here, and using char * removes the need
707         for casts.  Reported by Aharon Robbins in
708         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
709
710         regex: support Gawk, which never uses alloca
711         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
712         Do not include in this case.  Gawk doesn't supply a substitute
713         alloca.h and doesn't need one.
714
715         regex: port __libc_lock_define usage to C89
716         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
717         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
718         does not conform to C89, as it has an empty macro argument.
719         Reported by Aharon Robbins in
720         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
721
722 2013-01-01  Eric Blake  <eblake@redhat.com>
723
724         maint: update all copyright year number ranges
725         Run "make update-copyright".
726
727         version-etc: bump copyright year reported in --version
728         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
729
730 2012-12-31  Eric Blake  <eblake@redhat.com>
731
732         sigprocmask-tests: skip test if pid is unexpectedly large
733         * tests/test-sigprocmask.c (main): Add range check.
734
735         git-version-gen: avoid test -z portability glitch
736         * build-aux/git-version-gen: Prefer portable test spelling, since
737         git-version-gen is run on more than just developer machines.
738
739 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
740
741         git-version-gen: add --fallback option to use if git is not present
742         * build-aux/git-version-gen: Add support for the new option --fallback,
743         which comes into play when there is no $tarball_version_file and
744         git is not working.
745         (scriptversion): Update.
746
747         maint.mk: handle missing git with more grace
748         * top/maint.mk (no-submodule-changes, public-submodule-commit):
749         Quietly proceed if git is not present.
750
751 2012-12-31  Eric Blake  <eblake@redhat.com>
752
753         dup2: work around cygwin bug
754         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
755         * lib/dup2.c (rpl_dup2): Work around it.
756         * doc/posix-functions/dup2.texi (dup2): Document it.
757
758 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
759
760         regex: remove unnecessary dependency on localcharset.h
761         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
762         hasn't been needed for years.
763         * modules/regex (Depends-on): Remove localcharset.
764
765         regex: revert single-byte change
766         * lib/regexec.c (check_node_accept_bytes): Revert previous change
767         to this function.  This was alredy fixed in a different way, at
768         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
769         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
770         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
771
772         regex: simplify based on Gawk version
773         * lib/regex_internal.c (re_dfa_add_node): Simplify.
774         Reported by Aharon Robbins in
775         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
776
777 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
778
779         regex: check that pattern char is single-byte
780         Reported by Aharon Robbins in
781         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
782         * lib/regexec.c (check_node_accept_bytes):
783         Return 0 if the pattern string has a multibyte character here.
784
785         regex: implement rational ranges
786         Reported by Aharon Robbins in
787         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
788         * lib/regcomp.c (build_range_exp) [!_LIBC]:
789         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
790         Implement rational ranges.
791
792         regex: avoid redefining __wctype
793         Reported by Aharon Robbins in
794         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
795         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
796         #undef before defining.
797
798         regex: port to hosts where malloc (0) == NULL
799         Reported by Aharon Robbins in
800         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
801         * lib/regex_internal.c (re_node_set_alloc):
802         Don't assume that malloc (0) yields nonnull.
803         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
804         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
805         * modules/regex (Files): Add m4/eealloc.m4.
806
807         regex: port to C89
808         Reported by Aharon Robbins in
809         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
810         * lib/regcomp.c (init_word_char): Declaration before statement.
811
812         regex: merge glibc changes
813         Also, copy the license wording from glibc.  This simplifies
814         merging changes.  gnulib-tool will change the wording to GPL as
815         appropriate, when importing it to other packages.  The only
816         glibc change made since the last merge, which needs merging, is:
817         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
818         * lib/regex_internal.h (gettext): Remove use of INTUSE.
819
820         * users.txt: Add Emacs.
821
822         doc: omit mention of version when not needed
823         * doc/gnulib-intro.texi (Portability and Application Code):
824         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
825         Don't mention particular dates or versions when not necessary, so
826         that the documentation won't go out of date so quickly.
827
828         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
829
830 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
831
832         bootstrap: pass --force to autoreconf.
833         * build-aux/bootstrap (AUTORECONFFLAGS): New.
834         Add "--force" so that Automake's ylwrap and other such tools
835         be updated at each bootstrap invocation.
836         Use it.
837
838 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
839
840         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
841         The earlier patch forgot to update one of the #if conditions, causing
842         a problem on Debian testing i386 reported by Mats Erik Andersson
843         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
844         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
845         (__argp_fmtstream_puts, argp_fmtstream_puts)
846         (__argp_fmtstream_write, argp_fmtstream_write)
847         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
848
849         * doc/gnulib-readme.texi: Minor fixups.
850         (Portability guidelines): Modernize URLs.  Remove some repetition.
851         (Indent with spaces not TABs): Reword to avoid too-long lines.
852         Remove some '@ifset standalone' stuff that isn't used.
853
854         * doc/gnulib-readme.texi (Portability guidelines):
855         ctype.h, not ctime.h.
856
857         Correct name of POSIX.1-2001.
858         * doc/posix-functions/fgetc.texi (fgetc):
859         * doc/posix-functions/fgets.texi (fgets):
860         * doc/posix-functions/fread.texi (fread):
861         * doc/posix-functions/fscanf.texi (fscanf):
862         * doc/posix-functions/getc.texi (getc):
863         * doc/posix-functions/getchar.texi (getchar):
864         * doc/posix-functions/scanf.texi (scanf):
865         POSIX.1-2001, not POSIX-2001.
866
867         doc: move README into manual
868         * README: Move contents to new file doc/gnulib-readme.texi.
869         Replace with a one-line summary.
870         * doc/gnulib.texi (Brief Overview): New section,
871         with old intro preface.  Include gnulib-readme.texi for contents.
872         (Philosophy): Rename from "Introduction", since this
873         section no longer introduces the rest.  Write a new preface.
874         * doc/gnulib-readme.texi: New file, with the old contents of
875         README texinfo-ized.  This way, the README info appears
876         in the online and printed manual.
877
878 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
879
880         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
881         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
882         c_vasprintf() prototype.
883
884 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
885
886         c-vasprintf: Fix "empty declaration" warning reported by GCC.
887         * lib/c-vasprintf.h: Remove stray semicolon.
888
889 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
890
891         gettext: avoid obsolete macro AM_PROG_MKDIR_P
892         It is obsolete and is planned to be removed from Automake 1.14; see
893         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
894         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
895         (installdirs-data, installdirs-data-yes):
896         Use $(MKDIR_P), not $(mkdir_p).
897         * m4/intl.m4 (AM_INTL_SUBDIR):
898         * m4/po.m4 (AM_PO_SUBDIRS):
899         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
900
901 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
902
903         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
904         On this platform, we are not optimizing but we are using
905         the substitute for extern inlines, so compile as if
906         C99-style extern inline, or a substitute, is available.
907         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
908         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
909         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
910         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
911         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
912         Declare as ARGP_FS_EI, not as extern.
913         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
914         (__option_is_short, _option_is_end, __option_is_end)
915         [!_LIBC && __USE_EXTERN_INLINES]:
916         Declare as ARGP_EI, not as extern.
917
918 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
919
920         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
921         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
922         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
923         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
924         ...), as the latter is fatal with older Autoconfs.
925         Problem reported and fix suggested by Eric Blake in thread starting at
926         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
927
928 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
929
930         AC_PROG_MKDIR_P: don't workaround if not buggy
931         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
932         Define only for Autoconf versions before 2.62.
933         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
934         undocumented m4_PACKAGE_VERSION, for consistency with the
935         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
936         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
937         was introduced in 2.62.
938
939 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
940
941         New 'c-*printf' modules for formatted output in C locale.
942
943         New module 'c-vasnprintf'.
944         * modules/c-vasnprintf: New file.
945         * lib/c-vasnprintf.c: New file.
946         * lib/c-vasnprintf.h: New file.
947
948         New module 'c-snprintf'.
949         * modules/c-snprintf: New file.
950         * modules/c-snprintf-tests: New file.
951         * lib/c-snprintf.c: New file.
952         * lib/c-snprintf.h: New file.
953         * tests/test-c-snprintf.c: New file.
954         * tests/test-c-snprintf.sh: New file.
955
956         New module 'c-vsnprintf'.
957         * modules/c-vsnprintf: New file.
958         * modules/c-vsnprintf-tests: New file.
959         * lib/c-vsnprintf.c: New file.
960         * lib/c-vsnprintf.h: New file.
961         * tests/test-c-vsnprintf.c: New file.
962         * tests/test-c-vsnprintf.sh: New file.
963
964         New module 'c-vasprintf'.
965         * modules/c-vasprintf: New file.
966         * modules/c-vasprintf-tests: New file.
967         * lib/c-asprintf.c: New file.
968         * lib/c-vasprintf.c: New file.
969         * lib/c-vasprintf.h: New file.
970         * tests/test-c-vasprintf.c  +: New file.
971         * tests/test-c-vasprintf.sh: New file.
972
973         New module 'c-xvasprintf'.
974         * modules/c-xvasprintf: New file.
975         * modules/c-xvasprintf-tests: New file.
976         * lib/c-xasprintf.c: New file.
977         * lib/c-xvasprintf.c: New file.
978         * lib/c-xvasprintf.h: New file.
979         * tests/test-c-xvasprintf.c: New file.
980         * tests/test-c-xvasprintf.sh: New file.
981
982 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
983
984         argp: better 'inline'
985         Use extern-inline module to declare extern inline functions.
986         This avoids some bogus warning diagnostics.  Problem discovered
987         when modifying GNU tar to use the manywarnings module.
988         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
989         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
990         Define based on extern-inline.
991         * modules/argp (Depends-on): Add extern-inline.
992
993 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
994
995         filemode, sys_stat: Handle MPX files a la AIX.
996         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
997         * lib/sys_stat.in.h (S_ISMPX): New macro.
998         * tests/test-sys_stat.c: Add tests for MPX files.
999
1000 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1001
1002         x-to-1: honor $PERL
1003         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1004         a chance to use his preferred version of Perl.  This is typically
1005         required by Darwin users whose default /usr/bin/perl does not have all
1006         the libraries required by help2man, and who need to use their MacPorts
1007         installation of Perl instead.
1008
1009 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1010
1011         gnu-web-doc-update: add all the new files, even in new directories
1012         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1013         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1014         Use it.
1015         (main): Don't use cvsutils to get the list of unknown files,
1016         just add all the existing files and directories.
1017
1018 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1019
1020         gnu-web-doc-update: improve --help
1021         * build-aux/gnu-web-doc-update: Move comments into --help.
1022
1023 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1024
1025         mountlist: recognize more "dummy" file systems
1026         * lib/mountlist.c (ME_DUMMY_0):
1027         Add these dummy FS names to the list:
1028         - "debugfs" virtual filesystem for kernel debugging
1029         - "devpts" PTY slave filesystem
1030         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1031         - "fusectl" control filesystem for FUSE
1032         - "mqueue" enumerates POSIX message queues
1033         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1034         - "sysfs" is for exporting kernel objects
1035         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1036
1037 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1038
1039         extern-inline: avoid incompatibility with Darwin Libc
1040         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1041         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1042         Problem reported by Akim Demaille in
1043         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1044
1045 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1046
1047         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1048         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1049         let it handle password prompting.
1050
1051 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1052
1053         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1054         * lib/canonicalize.c (canonicalize_filename_mode):
1055         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1056         fetching the current directory.  Don't overrun the beginning of
1057         rpath if there's no slashes after the MS-Windows drive letter.
1058
1059 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1060
1061         maint.mk: avoid extra forks
1062         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1063         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1064         So use that instead of "$(shell test -f FILE && echo FILE)".
1065
1066 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1067
1068         vasnprintf: fix ASCII_ONLY typo
1069         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1070         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1071         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1072         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1073         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1074
1075 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1076
1077         list, oset, xlist, xoset: fix extern inline issue with C99
1078         This was introduced by my recent changes for 'inline'.
1079         Problem reported for gettext by Daiki Ueno in
1080         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1081         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1082         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1083         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1084         (gl_list_previous_node, gl_list_get_at)
1085         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1086         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1087         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1088         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1089         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1090         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1091         (gl_list_iterator_free, gl_sortedlist_search)
1092         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1093         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1094         (gl_sortedlist_remove):
1095         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1096         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1097         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1098         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1099         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1100         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1101         (gl_list_add_at, gl_sortedlist_add):
1102         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1103         Wrap these extern decls inside "#if 0", because they are implemented
1104         as inline functions, and extern inline is not what's wanted here.
1105         It would simplify these .h files to remove the extern decls entirely,
1106         although a downside would be less-clear separation between
1107         specification and implementation.
1108
1109 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1110
1111         sys_stat: no 'static inline'
1112         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1114
1115         extern-inline: no 'static inline'
1116         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1117         Do not require AC_C_INLINE.
1118         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1119         'static inline', for older compilers.
1120
1121         snippet/warn-on-use: no 'static inline'
1122         * build-aux/snippet/warn-on-use.h:
1123         Remove unnecessary 'inline' in comment.
1124
1125         rbtree-list, rbtreehash-list: no 'static inline'
1126         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1127         * lib/gl_anytree_list2.h (node_at):
1128         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1129         (gl_oset_first, add_nodes_to_buckets):
1130         Now static, not static inline.
1131
1132         regex: no 'static inline'
1133         * lib/regex_internal.c (calc_state_hash):
1134         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1135         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1136         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1137         Now static, not static inline.
1138         (inline) [__GNUC__ < 3 && _LIBC]:
1139         Remove macro; no longer needed.
1140
1141         xvasprintf: no 'static inline'
1142         * lib/xvasprintf.c (xstrcat):
1143         Now static, not static inline.
1144         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1145         Do not require AC_C_INLINE.
1146
1147         parse-datetime, parse-duration: no 'static inline'
1148         * lib/parse-datetime.y (to_uchar):
1149         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1150         (scale_n_add):
1151         Now static, not static inline.
1152         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1153         * modules/parse-duration (configure.ac):
1154         Do not require AC_C_INLINE.
1155
1156         getaddrinfo: no 'static inline'
1157         * lib/getaddrinfo.c (validate_family):
1158         Now static, not static inline.
1159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1160         Do not require AC_C_INLINE.
1161
1162         ftruncate, fts, lstat, openat, raise: no 'static inline'
1163         * lib/ftruncate.c (chsize_nothrow):
1164         * lib/fts.c (opendirat, diropen):
1165         * lib/lstat.c (orig_lstat):
1166         * lib/openat.c (orig_openat):
1167         * lib/raise.c (raise_nothrow):
1168         Now static, not static inline.
1169         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1170         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1171         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1172         * m4/openat.m4 (gl_PREREQ_OPENAT):
1173         * m4/raise.m4 (gl_PREREQ_RAISE):
1174         Do not require AC_C_INLINE.
1175
1176         fflush, stat: no 'static inline'
1177         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1178         (clear_ungetc_buffer, disable_seek_optimization)
1179         (restore_seek_optimization, update_fpos_cache):
1180         * lib/stat.c (orig_stat):
1181         Now static, not static inline.
1182         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1183         (update_fpos_cache):
1184         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1185         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1186         * m4/stat.m4 (gl_PREREQ_STAT):
1187         Do not require AC_C_INLINE.
1188
1189         error, filevercmp: no 'static inline'
1190         * lib/error.c (is_open, flush_stdout):
1191         * lib/filevercmp.c (order):
1192         Now static, not static inline.
1193         * m4/error.m4 (gl_PREREQ_ERROR):
1194         * modules/filevercmp (configure.ac):
1195         Do not require AC_C_INLINE.
1196
1197         dup, execute, fatal-signal, etc.: no 'static inline'
1198         * lib/dup.c (dup_nothrow):
1199         * lib/execute.c (nonintr_close, nonintr_open):
1200         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1201         * lib/fopen.c (orig_fopen):
1202         * lib/freadseek.c (freadptrinc):
1203         * lib/freopen.c (orig_freopen):
1204         * lib/fstat.c (orig_fstat, fstat_nothrow):
1205         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1206         (get_rusage_as_via_iterator):
1207         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1208         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1209         * lib/isatty.c (_isatty_nothrow):
1210         * lib/open.c (orig_open):
1211         * lib/read.c (read_nothrow):
1212         * lib/sigprocmask.c (signal_nothrow):
1213         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1214         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1215         * lib/wait-process.c (unregister_slave_subprocess):
1216         * lib/write.c (write_nothrow):
1217         Now static, not static inline.
1218         * lib/spawn-pipe.c (nonintr_open): Define only if
1219         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1220         * m4/dup.m4 (gl_PREREQ_DUP):
1221         * m4/execute.m4 (gl_EXECUTE):
1222         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1223         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1224         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1225         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1226         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1227         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1228         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1229         * m4/open.m4 (gl_PREREQ_OPEN):
1230         * m4/read.m4 (gl_PREREQ_READ):
1231         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1232         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1234         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1235         * m4/write.m4 (gl_PREREQ_WRITE):
1236         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1237         Do not require AC_C_INLINE.
1238
1239         c-strtod, memcoll, readutmp: no 'static inline'
1240         * lib/c-strtod.c (c_locale):
1241         * lib/memcoll.c (strcoll_loop):
1242         * lib/readutmp.c (desirable_utmp_entry):
1243         Now static, not static inline.
1244         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1245         * m4/memcoll.m4 (gl_MEMCOLL):
1246         * m4/readutmp.m4 (gl_READUTMP):
1247         Do not require AC_C_INLINE.
1248
1249         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1250         * lib/arctwo.c (to_uchar):
1251         * lib/md4.c (set_uint32):
1252         * lib/md5.c (set_uint32):
1253         * lib/sha1.c (set_uint32):
1254         * lib/sha256.c (set_uint32):
1255         * lib/sha512.c (set_uint64):
1256         Now static, not static inline.  This is a bit simpler, and doesn't
1257         affect performance with GCC and default optimization.
1258         * m4/arctwo.m4 (gl_ARCTWO):
1259         * m4/md4.m4 (gl_MD4):
1260         * m4/md5.m4 (gl_MD5):
1261         * m4/sha1.m4 (gl_SHA1):
1262         * m4/sha256.m4 (gl_SHA256):
1263         * m4/sha512.m4 (gl_SHA512):
1264         Do not require AC_C_INLINE.
1265
1266         cond, lock, thread: better 'inline'
1267         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1268         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1269         New macros.  Use them instead of static inline, for header functions.
1270         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1271         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1272         * lib/glthread/lock.c (gl_waitqueue_init)
1273         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1274         * lib/glthread/thread.c (get_current_thread_handle):
1275         Change 'static inline' to 'inline'.
1276         * lib/glthread/cond.h, lib/glthread/thread.h:
1277         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1278         * m4/cond.m4 (gl_COND):
1279         * m4/lock.m4 (gl_PREREQ_LOCK):
1280         * m4/thread.m4 (gl_THREAD):
1281         Do not require AC_C_INLINE.
1282         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1283
1284         chdir-long, cycle-check, savewd: better 'inline'
1285         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1286         (find_non_slash):
1287         * lib/cycle-check.c (is_zero_or_power_of_two):
1288         * lib/savewd.c (savewd_delegating):
1289         Change 'static inline' to 'inline'.
1290         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1291         Replace all remaining uses of 'static inline' with it.
1292         * lib/savewd.h:
1293         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1294         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1295         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1296         * m4/savewd.m4 (gl_SAVEWD):
1297         Do not require AC_C_INLINE.
1298         * modules/savewd (Depends-on): Add extern-inline.
1299
1300         base32, base64: no need for 'inline'
1301         * lib/base32.c (to_uchar, get_8, decode_8):
1302         * lib/base64.c (to_uchar, get_4, decode_4):
1303         Change 'static inline' to 'inline'.
1304         * m4/base32.m4 (gl_PREREQ_BASE32):
1305         * m4/base64.m4 (gl_PREREQ_BASE64):
1306         Do not require AC_C_INLINE.
1307
1308         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1309         * lib/gl_array_oset.c (gl_array_nx_add_at):
1310         (gl_array_remove_at):
1311         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1312         (add_to_bucket, remove_from_bucket):
1313         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1314         Change 'static inline' to 'static', as it's simpler to omit
1315         'inline' unless there's a significant performance advantage.
1316
1317         list, oset, xlist, xoset, xsublist: simplify via extern inline
1318         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1319         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1320         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1321         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1322         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1323         New macro.  Replace all uses of 'static inline' with it.
1324         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1325         instead of as macros FOO that are defined to static inline
1326         functions FOO_inline.
1327         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1328         * lib/gl_xsublist.c:
1329         Reimplement from scratch, by defining the corresponding *_INLINE
1330         macro and including the corresponding .h file.  This is simpler.
1331         * modules/list, modules/oset, modules/xlist, modules/xoset:
1332         (Files): Remove m4/gl_list.m4.
1333         (configure.ac): Remove gl_LIST.
1334         * m4/gl_list.m4: Remove.
1335         * modules/list, modules/oset, modules/xlist, modules/xoset:
1336         * modules/xsublist:
1337         (Depends-on): Depend on extern-inline, not inline.
1338
1339         xalloc: better 'inline'
1340         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1341         New macro.  Replace all uses of 'static inline' with it.
1342         (static_inline): Remove.
1343         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1344         Let 'extern inline' do the work automatically, instead of doing
1345         it by hand.
1346         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1347         Remove.  All uses removed.
1348         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1349
1350         gethrxtime: better 'inline'
1351         * lib/xtime.c: New file.
1352         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1353         * lib/xtime.h (XTIME_INCLUDE):
1354         New macros.  Replace all uses of 'static inline' with them.
1355         * lib/gethrxtime.c (gethrxtime): Define only if
1356         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1357         this source file is now always compiled, because of the extern inline.
1358         * lib/gethrxtime.h, lib/xtime.h:
1359         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1360         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1361         if gethrtime works, as they're not needed in that case.
1362         (gl_XTIME): Do not require AC_C_INLINE.
1363         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1364         compiled now.  Move the check into gl_GETHRXTIME.
1365         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1366         (Depends-on): Add extern-inline.
1367         (configure.ac): gethrxtime is always compiled now.
1368         (lib_SOURCES): Add gethrxtime.c.
1369
1370         wctype-h: better 'inline'
1371         * lib/wctype-h.c: New file.
1372         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1373         New macro.  Replace all uses of 'static inline' with it.
1374         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1375         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1376         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1377         (Depends-on): Add extern-inline.
1378
1379         unistd: better 'inline'
1380         * lib/unistd.c: New file.
1381         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1382         New macro.  Replace all uses of 'static inline' with it.
1383         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1384         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1385         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1386         (Depends-on): Add extern-inline.
1387
1388         sys_socket: better 'inline'
1389         * lib/sys_socket.c: New file.
1390         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1391         New macro.  Replace all uses of 'static inline' with it.
1392         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1393         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1394         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1395         (Depends-on): Add extern-inline.
1396
1397         stdio: better 'inline'
1398         * lib/stdio.c: New file.
1399         * lib/stdio.in.h (_GL_STDIO_INLINE):
1400         New macro.  Replace all uses of 'static inline' with it.
1401         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1402         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1403         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1404         (Depends-on): Add extern-inline.
1405
1406         sigaction: better 'inline'
1407         * lib/sig-handler.c: New file.
1408         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1409         New macro.  Replace all uses of 'static inline' with it.
1410         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1411         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1412         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1413         (Depends-on): Add extern-inline.
1414
1415         selinux-h: better 'inline'
1416         * lib/se-context.c, lib/se-selinux.c: New files.
1417         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1418         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1419         New macro.  Replace all uses of 'static inline' with it.
1420         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1421         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1422         New macro.  Replace all uses of 'static inline' with it.
1423         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1424         * modules/selinux-h (Files, lib_SOURCES):
1425         Add lib/se-context.c, lib/se-selinux.c.
1426         (Depends-on): Add extern-inline.
1427         (configure.ac): Do not require AC_C_INLINE.
1428
1429         pthread: better 'inline'
1430         * lib/pthread.c: New file.
1431         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1432         New macro.  Replace all uses of 'static inline' with it.
1433         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1434         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1435         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1436         * modules/pthread (Files): Add lib/pthread.c.
1437         (Depends-on): Add extern-inline.
1438
1439         math: better 'inline'
1440         * lib/math.c: New file.
1441         * lib/math.in.h (_GL_MATH_INLINE):
1442         New macro.  Replace all uses of 'static inline' with it.
1443         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1444         * m4/math_h.m4 (gl_MATH_H):
1445         Do not require AC_C_INLINE.
1446         * modules/math (Files, lib_SOURCES):
1447         Add lib/math.c.
1448         (Depends-on): Add extern-inline.
1449
1450         count-one-bits: better 'inline'
1451         * lib/count-one-bits.c: New file.
1452         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1453         New macro.  Replace all uses of 'static inline' with it.
1454         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1455         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1456         Do not require AC_C_INLINE.
1457         * modules/count-one-bits (Files, lib_SOURCES):
1458         Add lib/count-one-bits.c.
1459         (Depends-on): Add extern-inline.
1460
1461         count-leading-zeros: better 'inline'
1462         * lib/count-leading-zeros.c: New file.
1463         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1464         New macro.  Replace all uses of 'static inline' with it.
1465         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1466         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1467         Do not require AC_C_INLINE.
1468         * modules/count-leading-zeros (Files, lib_SOURCES):
1469         Add lib/count-leading-zeros.c.
1470         (Depends-on): Add extern-inline.
1471
1472         bitrotate: better 'inline'
1473         * lib/bitrotate.c: New file.
1474         * lib/bitrotate.h (BITROTATE_INLINE):
1475         New macros.
1476         Replace all uses of 'static inline' with them.
1477         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1478         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1479         (Depends-on): Add extern-inline.
1480         (configure.ac): Do not require AC_C_INLINE.
1481
1482 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1483
1484         maint.mk: avoid gratuitous failure
1485         Reported by Stefano Lattarini in
1486         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1487         * top/maint.mk (public-submodule-commit): Quote more safely.
1488
1489 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1490
1491         canonicalize, canonicalize-lgpl: support MS-Windows file names
1492         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1493         for test cases, which it'd be nice to add at some point.
1494         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1495         * lib/canonicalize.c (canonicalize_filename_mode):
1496         * lib/canonicalize-lgpl.c (__realpath):
1497         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1498         slash is at the beginning of the file name.  Use ISSLASH, instead
1499         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1500         the first character with '/'.  Test for
1501         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1502         with a drive letter.
1503         * lib/canonicalize.c (SLASHES): New macro.
1504         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1505
1506 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1507
1508         fts: introduce FTS_VERBATIM
1509         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1510         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1511         * lib/fts.c (fts_open): Honor it.
1512
1513 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1514
1515         getlogin-tests: allow errno == ENXIO
1516         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1517         with errno == ENXIO (No controlling tty).
1518         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1519         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1520         with errno == ENOENT.  This was reported to happen in various
1521         situations on GNU/Linux.
1522
1523 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1524
1525         getlogin-tests: allow errno == ENOENT
1526         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1527         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1528         when running a test in an Emacs shell buffer.
1529
1530 2012-11-08  Jim Meyering  <jim@meyering.net>
1531
1532         tests/nap.h: avoid warning about unused variable
1533         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1534
1535         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1536         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1537         white space before each of the special-cased file names, to avoid
1538         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1539         in http://bugs.gnu.org/12830.
1540
1541 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1542
1543         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1544         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1545         fails with errno == EBADF when fd is opened with O_PATH.
1546         Reported by Jim Meyering in
1547         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1548         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1549         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1550
1551 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1552
1553         test-utimens: speed up by taking shorter naps
1554         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1555         New functions.
1556         (nap): Use them, to do a better job of guessing the delay.
1557         On Fedora 17 with ext4 atop md atop hard disks, this made
1558         test-utimens run 10x faster, because the test napped for
1559         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1560         <http://bugs.gnu.org/12820#11>.
1561
1562 2012-11-07  Jim Meyering  <jim@meyering.net>
1563
1564         mountlist.c: fix a compilation failure
1565         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1566         I introduced while transforming commit v0.0-7683-g613bcb6
1567
1568 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1569
1570         errno: port to LynxOS 178 2.2.2
1571         Problem reported by Joel Brobecker in
1572         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1573         * doc/posix-headers/errno.texi (errno.h): Document this.
1574         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1575         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1576         Supply a string for EILSEQ.
1577         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1578
1579 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1580
1581         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1582         Linux kernel 2.6.39 introduced O_PATH (see
1583         <http://lwn.net/Articles/433854/>) and this is a better fallback
1584         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1585         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1586         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1587         * lib/fcntl.in.h (O_ACCMODE):
1588         * tests/test-fcntl-h.c (main):
1589         Do not reject O_ACCMODE merely because it has more than the
1590         minimal number of bits, as POSIX allows extensions here.
1591
1592 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1593
1594         mountlist: do not classify a bind-mounted dir entry as "dummy"
1595         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1596         the "none"-testing clause.
1597         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1598         exception for bind-mounted directories.
1599
1600 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1601
1602         quote: provide a means to escape strings with nul characters
1603         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1604         (quote, quote_n): Rename formal arguments for consistency with
1605         quotearg.
1606
1607 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1608
1609         test-raise: don't assume 199 is an invalid signal
1610         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1611
1612         sh-quote-tests: port to Solaris 9
1613         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1614         Problem reported by Dagobert Michelsen in
1615         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1616
1617 2012-10-28  Jim Meyering  <jim@meyering.net>
1618
1619         maint.mk: rename a new configurable variable
1620         * top/maint.mk (_gl_translatable_string_re): Rename from
1621         translation-markers: _gl_ prefix to insulate from user Makefile code,
1622         and the _re suffix to inform that it's a regular expression.
1623
1624 2012-10-26  Eric Blake  <eblake@redhat.com>
1625
1626         maint.mk: let packages tweak sc_po_check pattern
1627         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1628         finding files with other translation markers.
1629
1630 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1631
1632         euidaccess: speed up 'configure' on GNU hosts
1633         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1634         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1635         it's needed only in this case.  Use AC_CHECK_DECLS, not
1636         AC_CHECK_DECLS_ONCE.
1637         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1638         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1639
1640         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1641
1642 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1643
1644         fchmodat, fchownat, fstatat: port to non-inlining compilers
1645         Problem reported for FreeBSD 9 by Jim Meyering in
1646         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1647         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1648         New files, which define FCHMODAT_INLINE etc.
1649         * lib/fchmodat.c (FCHMODAT_INLINE):
1650         * lib/fchownat.c (FCHOWNAT_INLINE):
1651         * lib/fstatat.c (FSTATAT_INLINE):
1652         Remove, as chmodat.c etc. now do this.
1653         * modules/fchmodat (Files): Add lib/chmodat.c.
1654         * modules/fchownat (Files): Add lib/chownat.c.
1655         * modules/fstatat (Files): Add lib/statat.c.
1656
1657 2012-10-15  Jim Meyering  <jim@meyering.net>
1658
1659         fchmodat.c, fchownat.c: compile-impeding typos
1660         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1661         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1662         Introduced in commit v0.0-7636-gd202279.
1663
1664 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1665
1666         fcntl-h: support GNU flags like O_IGNORE_CTTY
1667         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1668         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1669         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1670         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1671         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1672         Define to 0 if not already defined.
1673         * tests/test-fcntl-h.c: Test these new flags.
1674
1675 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1676
1677         faccessat, etc.: support AT_FDCWD-only use
1678         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1679         this function only if its first argument is AT_FDCWD.
1680         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1681         values other than AT_FDCWD, so it doesn't want all the openat
1682         machinery with fchdir etc.
1683         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1684         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1685         * modules/unlinkat (Files):
1686         Remove lib/openat-priv.h, as at-internal supplies this file.
1687         Removing this file here allows us to support programs like Emacs
1688         that avoid at-internal.
1689
1690         faccessat: speed up 'configure' on mainstream hosts
1691         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1692         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1693         since it's only on unusual platforms that we need to check for
1694         'access', and it's better not to slow 'configure' down on all
1695         platforms.
1696
1697         faccessat: port to Solaris 10
1698         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1699         Needed on Solaris 10, which doesn't have AT_EACCESS,
1700         so we need the Gnulib fcntl.h, which defines it.
1701
1702 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1703         canonicalize: fix C89 compilation
1704         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1705         declarations so C89 is supported.  Also remove the comment
1706         referencing memorty allocation as the suggested feature could
1707         not be implemented as suggested.
1708         Reported by Michael Goffioul.
1709
1710 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1711
1712         group-member: omit unnecessary dependencies
1713         This is for Emacs, which has its own allocator and where we
1714         don't want to use xalloc.
1715         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1716         since we no longer use xmalloc.  Do not include stdbool.h, since
1717         the changes below happen to remove the only use of bool.
1718         (GROUPBUF_SIZE): New constant.
1719         (struct group_info): Remove n_groups member.  Add groupbuf member.
1720         This lets us get the groups without using malloc, usually.
1721         (free_group_info, get_group_info): Adjust to this.
1722         (get_group_info): Return the number of groups found, or -1 on error.
1723         Use plain malloc not xmalloc, and treat its failure as if there
1724         are no groups, as the user already loses in case of error.
1725         (group_member): Simplify, based on changes to get_group_info.
1726         * modules/group-member (Depends-on): Remove dependencies on
1727         xalloc and stdbool.  Add dependency on xalloc-oversized.
1728
1729 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1730
1731         gethrxtime: port to C++
1732         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1733
1734 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1735
1736         ptsname: fix macro-name typo
1737         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1738
1739 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1740
1741         inttostr: Relax license.
1742         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1743
1744 2012-10-03  Eric Blake  <eblake@redhat.com>
1745
1746         ptsname_r: support ptys returned by FreeBSD posix_openpt
1747         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1748         lives in /dev/pts/.
1749
1750 2012-10-02  Eric Blake  <eblake@redhat.com>
1751
1752         pselect: reject invalid file descriptors
1753         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1754         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1755         * modules/pselect (Depends-on): Add dup2.
1756         * doc/posix-functions/pselect.texi (pselect): Document this.
1757
1758         select: reject invalid file descriptors
1759         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1760         * lib/select.c (rpl_select) [!win32]: Work around it.
1761         * modules/select (Depends-on): Add dup2.
1762         * doc/posix-functions/select.texi (select): Document this.
1763
1764         select: enhance test
1765         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1766         New functions.
1767         (test_function): Enhance test.
1768         (do_select_bad_fd): Avoid any stale errno values.
1769
1770         ptsname: reject invalid file descriptors
1771         http://www.austingroupbugs.net/view.php?id=503
1772         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1774         * modules/stdlib (Makefile.am): Replace witness.
1775         * lib/stdlib.in.h (ptsname): Allow for replacement.
1776         * modules/ptsname (configure.ac): Trigger replacement.
1777         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1778
1779 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1780
1781         hash-pjw-bare: new module
1782         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1783         * lib/hash-pjw-bare.h: Likewise.
1784         * modules/hash-pjw-bare: New file.
1785         * MODULES.html.sh (Misc): Add it.
1786
1787 2012-10-02  Eric Blake  <eblake@redhat.com>
1788
1789         manywarnings: cater to more gcc infelicities
1790         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1791         -Wuninitialized without -O.
1792
1793 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1794
1795         select, poll tests: Make setsockopt invocation effective.
1796         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1797         the bind() call.
1798         * tests/test-select.h (open_server_socket): Likewise.
1799
1800 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1801
1802         sockets, sys_stat: restore AC_C_INLINE
1803         This undoes the 2012-09-22 patch.
1804         * m4/sockets.m4 (gl_SOCKETS):
1805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1806         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1807         and does not support plain 'inline'.  Reported by Bruno Haible in
1808         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1809
1810 2012-09-30  Bruno Haible  <bruno@clisp.org>
1811
1812         localeconv tests: Avoid test failure on OpenIndiana.
1813         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1814         skip the 'grouping' and 'mon_grouping' tests.
1815         Reported by Jim Meyering.
1816
1817 2012-09-30  Bruno Haible  <bruno@clisp.org>
1818
1819         havelib: Follow libtool developments.
1820         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1821         Suggested by Simon Josefsson.
1822
1823 2012-09-29  Jim Meyering  <meyering@redhat.com>
1824
1825         fstatat.c: fix a compile-impeding typo
1826         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1827         Introduced in commit v0.0-7636-gd202279.
1828         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1829
1830 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1831
1832         extern-inline: provide a -Wundef safe config.h
1833         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1834         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1835         to produce a -Wundef warning free config.h.
1836
1837 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1838
1839         hash-pjw: relax license to LGPLv2+
1840         * modules/hash-pjw (License): Relax, with consent of author.
1841
1842 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1843
1844         maint.mk: fix strict vs. lazy variable issues with RELEASE
1845         * top/maint.mk (_equal): New function.
1846         (member_check): Strip the result to avoid spurious spaces.
1847         (url_dir_list): Do not use ifeq, which is strict, as it will
1848         require RELEASE_TYPE to be defined.
1849         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1850         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1851         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1852         (announcement_Cc_beta,announcement_mail_headers_beta)
1853         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1854         (release): Do not depend on $(release-type), as it forces its
1855         evaluation.  Bounce to it.
1856
1857 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1858
1859         maint.mk: formatting changes
1860         * top/maint.mk: Indent bodies of if's.
1861
1862 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1863
1864         maint.mk: factor the validation of RELEASE_TYPE
1865         With help from Jim Meyering.
1866         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1867         * top/maint.mk (_empty, _sp): Move their definition earlier.
1868         (member-check, release-type): New.
1869         Use the latter instead of $(RELEASE_TYPE).
1870         Remove now useless local checks.
1871
1872 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1873
1874         maint.mk: provide "make upload" to ease uploading
1875         See
1876         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1877         Do not depend simply on the current $(VERSION), as there may have been
1878         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1879         as "make release-commit" already does.
1880
1881         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1882         "make TYPE".
1883
1884         * top/maint.mk (upload_command, upload, release): New.
1885         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1886         (VERSION): first word of $(RELEASE) is always right.
1887         (emit_upload_commands): Adjust.
1888         * top/README-release: Update.
1889
1890 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1891
1892         maint.mk: silent rules
1893         With help from Stefano Lattarini.
1894         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1895         (announcement): Use $(AM_V_at).
1896
1897 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1898
1899         localename: port gl_locale_name_thread_unsafe to FreeBSD
1900         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1901         and use the simpler FreeBSD implementation on Mac OS X as well.
1902         Original idea suggested by Ed Maste in
1903         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1904
1905 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1906
1907         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1908         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1909         * lib/mbuiter.c, lib/xsize.c: New files.
1910         * lib/binary-io.h (BINARY_IO_INLINE):
1911         * lib/eealloc.h (EEALLOC_INLINE):
1912         * lib/mbfile.h (MBFILE_INLINE):
1913         * lib/mbiter.h (MBITER_INLINE):
1914         * lib/mbuiter.h (MBUITER_INLINE):
1915         * lib/xsize.h (XSIZE_INLINE):
1916         New macros.
1917         Replace all uses of 'static inline' with them.
1918         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1919         * m4/eealloc.m4 (gl_EEALLOC):
1920         * m4/mbfile.m4 (gl_MBFILE):
1921         * m4/mbiter.m4 (gl_MBITER):
1922         * m4/xsize.m4 (gl_XSIZE):
1923         Do not require AC_C_INLINE.
1924         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1925         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1926         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1927         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1928         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1929         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1930         * modules/binary-io, modules/eealloc, modules/mbfile:
1931         * modules/mbiter, modules/mbuiter:
1932         (Depends-on): Add extern-inline.
1933
1934         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1935         * lib/pipe-filter-aux.c: New file.
1936         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1937         Replace all uses of 'static inline' with it.
1938         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1939         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1940         (filter_retcode): No real need for inline here.
1941         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1942         (Files): Add lib/pipe-filter-aux.c.
1943         (Depends-on): Add extern-inline.
1944         (configure.ac): Do not require AC_C_INLINE.
1945         (lib_SOURCES): Add pipe-filter-aux.c.
1946
1947         fdutimensat: omit unnecessary AC_C_INLINE
1948         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1949
1950         fchmodat, fchownat, fstatat: use extern-inline
1951         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1952         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1953         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1954         New macros.
1955         * lib/openat.h:
1956         Replace all uses of 'static inline' with them.
1957         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1958         * modules/fchmodat, modules/fchownat, modules/fstatat:
1959         * modules/openat-h:
1960         (Depends-on):
1961         Add extern-inline.
1962         (configure.ac): Remove AC_C_INLINE.
1963
1964         acl, mbchar, priv-set: use extern-inline
1965         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1966         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1967         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1968         New macros.
1969         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1970         Replace all uses of 'static inline' with it.
1971         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1972         * m4/acl.m4 (gl_FUNC_ACL):
1973         * m4/mbchar.m4 (gl_MBCHAR):
1974         * m4/priv-set.m4 (gl_PRIV_SET):
1975         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1976         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1977         Add extern-inline.
1978
1979         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1980         * m4/sockets.m4 (gl_SOCKETS):
1981         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1982         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1983         environments where it's already guaranteed to work, so we needn't
1984         check for it at 'configure'-time.
1985
1986         tls-tests: omit unnecessary 'inline'
1987         * tests/test-tls.c (perhaps_yield): No longer inline.
1988         Simplicity and portability trump efficiency in test cases.
1989
1990         utimens-tests: avoid unnecessary 'inline'
1991         * modules/fdutimensat-tests (configure.ac):
1992         * modules/futimens-tests (configure.ac):
1993         * modules/utimens-tests (configure.ac):
1994         * modules/utimensat-tests (configure.ac):
1995         Remove AC_C_INLINE.
1996         * tests/test-utimens-common.h (ctime_compare):
1997         No longer inline.  Simplicity and portability trump efficiency here.
1998
1999         misc: don't limit commentary to inline functions
2000         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2001         * lib/xalloc-oversized.h, lib/xsize.h:
2002         Contrast macros to functions in general, not just to inline functions,
2003         when the commentary does not apply only to inline functions.
2004
2005 2012-09-20  Jim Meyering  <meyering@redhat.com>
2006
2007         non-recursive-gnulib-prefix-hack: new module
2008         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2009         the file that originated in Bison.
2010         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2011         largely copied from a snippet that resided in bison's configure.ac.
2012         * modules/non-recursive-gnulib-prefix-hack: New file.
2013         * MODULES.html.sh (Support for maintaining and releasing projects):
2014         Add it.
2015
2016 2012-09-18  Jim Meyering  <meyering@redhat.com>
2017
2018         maint.mk: generalize _gl_tight_scope for non-recursive make
2019         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2020         that *.h would describe additional .h files in the directory
2021         specified by $(_gl_TS_dir).  I.e., add this...
2022         (_gl_TS_other_headers): New variable.
2023
2024         maint.mk: exempt trailing blanks found in "binary" files
2025         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2026         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2027         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2028
2029 2012-09-17  Jim Meyering  <meyering@redhat.com>
2030
2031         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2032         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2033         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2034         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2035
2036 2012-09-17  Jim Meyering  <meyering@redhat.com>
2037
2038         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2039         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2040         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2041         It is not in the same category as "exit (0)" or "exit (1)", and
2042         besides, I know of no symbolic name for that 77.  Reported by
2043         Richard W.M. Jones in
2044         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2045
2046 2012-09-17  Jim Meyering  <meyering@redhat.com>
2047
2048         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2049         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2050         all uses of #define, not just those that start in column 1.
2051         Richard W.M. Jones reported a false positive in
2052         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2053
2054 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2055
2056         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2057         * lib/localcharset.c (locale_charset) [DARWIN7]:
2058         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2059         as these two values are incompatible.  Problem reported by Max Horn.
2060         For more discussion, please see
2061         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2062
2063         doc: document sticky-EOF issue
2064         * doc/posix-functions/fgetc.texi (fgetc):
2065         * doc/posix-functions/fgets.texi (fgets):
2066         * doc/posix-functions/fread.texi (fread):
2067         * doc/posix-functions/fscanf.texi (fscanf):
2068         * doc/posix-functions/getc.texi (getc):
2069         * doc/posix-functions/getchar.texi (getchar):
2070         * doc/posix-functions/scanf.texi (scanf):
2071         Mention that glibc and default Solaris do not conform to
2072         C99 and POSIX-2001 or later, with respect to how getchar
2073         etc. behave when feof reports nonzero.
2074
2075 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2076
2077         poll: fix poll(0, NULL, msec)
2078         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2079         but nfd is 0.  In that case poll should behave like select.
2080
2081 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2082             Paolo Bonzini <bonzini@gnu.org>
2083
2084         poll: fix for systems that can't recv() on a non-socket
2085         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2086         is readable.  In this case POLLHUP will not be supported.
2087         * doc/posix-functions/poll.texi: Document this.
2088
2089 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2090
2091         poll/select: document portability problems not fixed by Gnulib.
2092         * doc/posix-functions/poll.texi: poll does not work well on
2093         pipes under Windows.  It has the same limitations as select on
2094         BeOS.
2095         * doc/posix-functions/select.texi: select does not work well
2096         on pipes under Windows.
2097
2098 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2099
2100         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2101         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2102         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2103         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2104
2105 2012-09-06  Eric Blake  <eblake@redhat.com>
2106
2107         net_if: give more details about the bug being fixed
2108         * doc/posix-headers/net_if.texi: Add clarification.
2109
2110 2012-09-05  Eric Blake  <eblake@redhat.com>
2111
2112         net_if: new module
2113         * modules/net_if: New module, borrowing ideas from netinet_in.
2114         * m4/net_if_h.m4: New file.
2115         * lib/net_if.in.h: Likewise.
2116         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2117         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2118         * tests/test-net_if.c: Make function checks conditional.
2119         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2120
2121 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2122
2123         readutmp: fix non-portable UT_PID use
2124         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2125         Use `UT_PID (u) > 0' as absolute condition.
2126
2127 2012-09-04  Jim Meyering  <meyering@redhat.com>
2128
2129         fts: reduce two or more trailing spaces to just one, usually
2130         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2131         or more slashes, trim all but the final one.  But if a name consists
2132         solely of two slashes, don't modify it.  If it consists solely of
2133         three or more slashes, strip all but one.
2134
2135         This is part of the solution to a minor problem with rm:
2136         it would print a bogus ELOOP diagnostic when failing to remove
2137         the slash-decorated name of a symlink-to-directory:
2138
2139             $ mkdir d && ln -s d s && env rm -r s/
2140             rm: cannot remove 's': Too many levels of symbolic links
2141
2142         With the change below and a trivial don't-trim-trailing-slashes
2143         adjustment to remove.c, it does this:
2144
2145             $ env rm -r s/
2146             rm: cannot remove 's/': Not a directory
2147
2148         Improved by: Eric Blake
2149
2150         fts: when there is no risk of overlap, use memcpy, not memmove
2151         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2152
2153 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2154
2155         stdbool: be more compatible with mixed C/C++ compiles
2156         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2157         Define to bool, true, false, respectively, as GCC's builtin
2158         stdbool.h does.  Problem reported by Michael Goffioul in
2159         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2160
2161 2012-08-28  Jim Meyering  <meyering@redhat.com>
2162
2163         revert last change: it was not needed
2164         * tests/test-vc-list-files-git.sh: There's already a test for
2165         a working git, just below.
2166
2167 2012-08-28  Jim Meyering  <meyering@redhat.com>
2168
2169         tests: test-vc-list-files-git.sh: skip if git is not available
2170         * tests/test-vc-list-files-git.sh: Skip this test when git is
2171         not available.
2172
2173 2012-08-26  Bruno Haible  <bruno@clisp.org>
2174
2175         gnulib-tool: Remove no-op option --no-changelog.
2176         * gnulib-tool (func_usage): Don't mention --no-changelog.
2177         (do_changelog): Remove variable.
2178         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2179
2180 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2181
2182         doc: remove fdl-1.2.texi
2183         It is no longer used or maintained, and its use of @acronym
2184         is problematic.  See the thread containing
2185         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2186         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2187         * doc/old-licenses/fdl-1.2.texi: Remove.
2188
2189         execinfo: port to FreeBSD
2190         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2191         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2192         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2193         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2194
2195 2012-08-23  Jim Meyering  <meyering@redhat.com>
2196
2197         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2198         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2199         to placate gcc's -Wold-style-declaration.
2200
2201 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2202
2203         doc: do not use @acronym
2204         * doc/inet_ntoa.texi (inet_ntoa):
2205         * doc/parse-datetime.texi (Seconds since the Epoch)
2206         (Specifying time zone rules):
2207         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2208         Don't use @acronym.  Problem reported by John Darlington in
2209         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2210
2211 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2212
2213         stdnoreturn: port to newer GCCs
2214         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2215         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2216         Problem reported by Jim Meyering in
2217         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2218         Also, rename the 'test' function to a void a clash with the
2219         already-supplied 'main' function; this fixes a bug that incorrectly
2220         rejected GCC 4.7.1's <stdnoreturn.h>.
2221         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2222         Document GCC problem.
2223
2224 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2225
2226         pipe-filter: fix comment typo
2227         * lib/pipe-filter.h: Mention correct function.
2228
2229 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2230
2231         execinfo: new module
2232         This is for Emacs.  Currently, it provides a no-effect stub
2233         on all platforms where it does not already work.
2234         It already works on glibc-based systems, and on Solaris 11.
2235         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2236         New files.
2237         * doc/glibc-headers/execinfo.texi (execinfo.h):
2238         * MODULES.html.sh (Misc): Document it.
2239
2240 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2241
2242         extern-inline: support old GCC 'inline'
2243         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2244         if available.  This applies to GCC versions 2.7 through 4.2, or
2245         when newer GCC is using -fgnu89-inline.  The goal is to address
2246         some of the performance issues mentioned by Bruno Haible in
2247         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2248
2249 2012-08-20  Eric Blake  <eblake@redhat.com>
2250
2251         maint.mk: avoid redundant file name in message
2252         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2253         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2254         (sc_makefile_path_separator_check): Remove bogus $(ME).
2255
2256 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2257
2258         timer-time: fix link order when static linking on glibc
2259         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2260         _after_ -lrt so that it's significant.
2261
2262 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2263
2264         timespec: omit unnecessary AC_C_INLINE
2265         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2266
2267         stat-time: omit unnecessary AC_C_INLINE
2268         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2269         Do not require AC_C_INLINE.
2270
2271         ignore-value: omit unnecessary AC_C_INLINE
2272         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2273
2274         sys_select: avoid 'static inline'
2275         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2276
2277         mktime: avoid 'static inline'
2278         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2279         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2280
2281 2012-08-19  Bruno Haible  <bruno@clisp.org>
2282
2283         gnulib-tool: Improve coding style.
2284         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2285         func_emit_lib_Makefile_am.
2286         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2287
2288 2012-08-19  Bruno Haible  <bruno@clisp.org>
2289
2290         gnulib-tool: Fix indentation.
2291         * gnulib-tool (func_import): Fix indentation.
2292
2293 2012-08-19  Bruno Haible  <bruno@clisp.org>
2294
2295         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2296         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2297         on the list of removed files.
2298
2299 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2300
2301         test-parse-datetime: avoid glibc leap-second glitch
2302         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2303         with the 2012 rules.  Problem reported by Bruce Dubbs in
2304         <http://bugs.gnu.org/12206>.
2305
2306 2012-08-14  Bruno Haible  <bruno@clisp.org>
2307
2308         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2309         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2310         from argument.
2311         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2312
2313 2012-08-14  Eric Blake  <eblake@redhat.com>
2314
2315         ldexp: relax license
2316         * modules/ldexp (License): Trivial relax, since the module only
2317         provides a permissively licensed m4 file.
2318
2319 2012-08-13  Bruno Haible  <bruno@clisp.org>
2320
2321         gnulib-tool: Fix persistence of --witness-c-macro option.
2322         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2323         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2324
2325 2012-08-11  Eric Blake  <eblake@redhat.com>
2326
2327         count-leading-zeros: use a lookup table on non-gcc compilers
2328         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2329         alternate implementation, suggested by Jim Meyering.
2330
2331 2012-08-10  Eric Blake  <eblake@redhat.com>
2332
2333         count-leading-zeros: new module
2334         * modules/count-leading-zeros: New module.
2335         * m4/count-leading-zeros.m4: New file.
2336         * lib/count-leading-zeros.h: Likewise.
2337         * modules/count-leading-zeros-tests: New test.
2338         * tests/test-count-leading-zeros.c: New file.
2339         * MODULES.html.sh (Integer arithmetic functions): Document it.
2340
2341 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2342             Jim Meyering  <meyering@redhat.com>
2343
2344         maintainer-makefile: Fix syntax error with dash.
2345         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2346         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2347
2348 2012-08-05  Jim Meyering  <meyering@redhat.com>
2349
2350         extern-inline: also ignore -Wmissing-declarations
2351         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2352         required with gcc-4.8.0-to-be.
2353
2354         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2355         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2356         for /error ?([^,]*)/.  This avoids false-positives for strings like
2357         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2358
2359 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2360
2361         gnumakefile: better interaction with Automake-NG
2362         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2363         Automake-NG always contain a definition of VPATH, even in non-VPATH
2364         builds (its value being simply '.' in that case).  So, in the
2365         'clean-GNUmakefile' rule, to determine whether running under a
2366         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2367         '$(VPATH)' expands to the empty string.
2368
2369 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2370
2371         base64: Use extern C scope in header file, for C++.
2372         * lib/base64.h: Add C++ namespace protection.
2373
2374 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2375
2376         stat-time, timespec, u64: support naive out-of-dir builds
2377         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2378         Use '#include "foo.h"', not '#include <foo.h>', when including
2379         one's own interface.  This works better when configuring with
2380         out-of-directory builds, since packages need not add an
2381         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2382
2383 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2384
2385         utimens: use extern-inline
2386         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2387         * lib/utimens.h: Add copyright notice, since this is now large enough
2388         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2389         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2390         * modules/utimens (Depends-on): Add extern-inline.
2391
2392         u64: use extern-inline
2393         * lib/u64.c: New file.
2394         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2395         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2396         * modules/u64 (Files): Add lib/u64.c.
2397         (Depends-on): Add extern-inline.
2398         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2399         does that now.
2400         (lib_SOURCES): Add u64.c.
2401
2402         timespec: use extern-inline
2403         * lib/timespec.c: New file.
2404         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2405         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2406         * modules/timespec (Files): Add lib/timespec.c.
2407         (Depends-on): Add extern-inline.
2408         (lib_SOURCES): Add timespec.c.
2409
2410         stat-time: use extern-inline
2411         * lib/stat-time.c: New file.
2412         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2413         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2414         * modules/stat-time (Files): Add lib/stat-time.c.
2415         (Depends-on): Add extern-inline.
2416         (lib_SOURCES): Add stat-time.c.
2417
2418         extern-inline: new module
2419         * modules/extern-inline, m4/extern-inline.m4: New files.
2420         This is for better support of 'extern inline' a la ISO C99,
2421         with a portable alternative on compilers that do not support
2422         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2423         of the Emacs executable, when compiled with debugging disabled,
2424         which is a typical way that Emacs is built while developing.
2425
2426 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2427
2428         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2429         * build-aux/do-release-commit-and-tag: Move variable definitions
2430         together.
2431         ($branch): Instead of defaulting to "master", default to the current
2432         branch (as gnu-web-doc-update does).
2433         (help): Display the current values of the option arguments.
2434         * top/maint.mk (release-commit): New.
2435         * top/README-release: Simplify the corresponding step.
2436
2437 2012-07-30  Eric Blake  <eblake@redhat.com>
2438
2439         passfd: fix comment on recvfd
2440         * lib/passfd.c (recvfd): Fix comment.
2441         Reported by Jann Horn <jannhorn@googlemail.com>.
2442
2443 2012-07-30  Jim Meyering  <meyering@redhat.com>
2444
2445         maint.mk: avoid a sub-shell
2446         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2447
2448 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2449
2450         maint.mk: use silent-rules support from Automake
2451         * top/maint.mk (news-check, vc-diff-check, announcement)
2452         (no-submodule-changes, alpha beta stable, release-prep)
2453         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2454
2455 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2456
2457         maint.mk: provide a web-manual-update target
2458         * top/maint.mk: here.
2459         * top/README-release: Use it to simplify the web manual update step.
2460
2461 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2462
2463         README-release: shorten the circuit to post a news
2464         * top/README-release: Point directly to the news submission form.
2465
2466 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2467
2468         gnu-web-doc-update: fix --help
2469         * build-aux/gnu-web-doc-update: The information "top level" was written
2470         twice.
2471
2472 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2473
2474         maint.mk: absolute VPATH issue
2475         * top/maint.mk (release-prep): Help Git find .git/.
2476         From Jim Meyering.
2477
2478 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2479
2480         gitlog-to-changelog: fix previous change
2481         * build-aux/gitlog-to-changelog: Fix condition.
2482         Add missing ";".
2483
2484 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2485
2486         gitlog-to-changelog: don't expect .git to be in $srcdir
2487         Reported by Bruno Haible.
2488         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2489         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2490         Use it.
2491
2492 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2493
2494         maint.mk: absolute VPATH build fix
2495         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2496         $(srcdir) is not a parent of $(builddir).
2497
2498 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2499
2500         clean-temp: Fix memory leak.
2501         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2502         'files' members of tmpdir.
2503
2504 2012-07-27  Jim Meyering  <meyering@redhat.com>
2505
2506         maint.mk: new rule: refresh-gnulib-patches
2507         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2508         Use this rule to refresh them.
2509         * top/maint.mk (refresh-gnulib-patches): New rule.
2510
2511 2012-07-24  Bruno Haible  <bruno@clisp.org>
2512
2513         gnulib-tool: Fix handling of inctests variable.
2514         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2515         Reported by Nick Bowler <nbowler@elliptictech.com>.
2516
2517 2012-07-22  Bruno Haible  <bruno@clisp.org>
2518
2519         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2520         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2521         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2522         Remove exemption for getpass.h.
2523         Suggested by Eric Blake.
2524
2525 2012-07-20  Eric Blake  <eblake@redhat.com>
2526
2527         verify: document conflict with -Wnested-externs
2528         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2529
2530         maint.mk: forbid exit(-1)
2531         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2532
2533 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2534
2535         fsusage: port back to Solaris
2536         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2537         error (fsd not declared) on Solaris 10.  Reported privately by
2538         Andrew Borodin.
2539
2540 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2541
2542         gnu-web-doc-update: fix error messages
2543         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2544
2545         gnu-web-doc-update: check the requirements.
2546         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2547         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2548         * build-aux/bootstrap (find_tool): Comment change.
2549
2550 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2551
2552         maint.mk: minor simplication.
2553         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2554         for default values.
2555
2556 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2557
2558         gitlog-to-changelog: VPATH build issues
2559         If builddir is not a subdirectory of srcdir, running git from it will
2560         fail.
2561         * build-aux/gitlog-to-changelog (--srcdir): New option.
2562
2563 2012-07-15  Bruno Haible  <bruno@clisp.org>
2564
2565         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2566         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2567         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2568         Remove exemption for fpending.h.
2569         Suggested by Eric Blake.
2570
2571 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2572
2573         pthread_sigmask: fix bug on FreeBSD 9
2574         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2575         Include string.h.
2576         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2577         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2578         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2579         but pthread_sigmask (1729, NULL, NULL) returns zero.
2580         See <http://bugs.gnu.org/11884>.
2581         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2582         by inspecting whether the main call changed the old mask.
2583
2584 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2585
2586         README-release: make it more legible
2587         * top/README-release: Improve typography slightly.
2588
2589 2012-07-15  Jim Meyering  <meyering@redhat.com>
2590
2591         maint: require that each sc_... command start with "@"
2592         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2593         "make sc_maint" helps us avoid this nit.
2594
2595 2012-07-15  Jim Meyering  <meyering@redhat.com>
2596
2597         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2598         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2599
2600 2012-07-13  Eric Blake  <eblake@redhat.com>
2601
2602         maint.mk: new syntax check for HAVE_DECL checks
2603         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2604         * cfg.mk
2605         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2606         Exempt some false positives.
2607         Based on a report by Karel Zak.
2608
2609         argp: make HAVE_DECL usage consistent
2610         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2611         macros, not whether they are defined.
2612         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2613         convention with other declaration checks.
2614         Reported by Karel Zak, with suggestions from Paul Eggert.
2615
2616         stat-time: relax license to LGPLv2+
2617         * modules/stat-time (License): Relax, with consent of all authors.
2618
2619         strndup: fix m4 usage error
2620         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2621         defined, to either 0 or 1.
2622         Reported by Karel Zak.
2623
2624 2012-07-11  Jim Meyering  <meyering@redhat.com>
2625
2626         maint: enable the sc_avoid_if_before_free syntax-check rule
2627         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2628         (if_before_free_offenders_): Define.
2629         (if_before_free_basename_re_): Define.
2630         Exempt current files with useless if-before-free.
2631
2632 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2633
2634         gettext: do not assume '#define ... defined ...' behavior
2635         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2636         Do not use '#define FOO ... defined BAR ...', as the C standard says
2637         it's not portable to expect that this works after macro expansion.
2638         Problem reported for gzip by Steven M. Schweda in
2639         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2640
2641 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2642
2643         getloadavg: clean out old Emacs and Autoconf cruft
2644         See Glenn Morris in <http://bugs.gnu.org/11905>.
2645         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2646         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2647         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2648         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2649
2650 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2651
2652         bootstrap: let warn be like tests/init.sh's warn_
2653         Reported by Jim Meyering.
2654         * build-aux/bootstrap (warn): Remove, replaced by...
2655         (warnf_, warn_): these.
2656         Adjust callers.
2657         Shorten messages that no longer fit in 80 columns.
2658
2659 2012-07-09  Bruno Haible  <bruno@clisp.org>
2660
2661         getopt: Simplify after Emacs changed.
2662         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2663         (gl_GETOPT_IFELSE): Remove macro.
2664
2665 2012-07-09  Jim Meyering  <meyering@redhat.com>
2666
2667         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2668         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2669
2670         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2671         Bugs in both of those conspired to make the
2672         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2673         _sc_search_regexp's handling of non-empty $in_files would filter
2674         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2675         choice of in_files value meant there would be no match in most
2676         projects, due to the presence of two or more Makefile.in files.
2677         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2678         Fix a bug in how a non-empty $$in_files was processed:
2679         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2680         in spite of the name, it's a regexp, not a list of file names.
2681
2682 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2683
2684         getloadavg, getopt: fix commentary re configure.in
2685         Autoconf is deprecating the name 'configure.in', so change it to
2686         to the new name 'configure.ac' in a couple of places.
2687         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2688         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2689         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2690         Emacs has renamed it to configure.ac, and it no longer refers
2691         to these macros anyway.
2692
2693         timespec: mark functions with const attributes
2694         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2695         Mark with _GL_ATTRIBUTE_CONST.
2696
2697 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2698
2699         canonicalize[-lgpl]: handle "guessing" values when cross-building
2700         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2701         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2702         matches "*yes" instead of just "yes".  Regression introduced in commit
2703         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2704
2705 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2706             Bruno Haible  <bruno@clisp.org>
2707
2708         canonicalize: make the right guess when cross-compiling to GNU
2709         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2710         determine whether cross-compiling to glibc systems, so as to
2711         include GNU/Hurd.
2712
2713 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2714
2715         timespec-sub: avoid duplicate include
2716         * lib/timespec-sub.c: Do not include <config.h> twice.
2717         Reported by Juanma Barranquero.
2718
2719 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2720
2721         bootstrap: use a more consistent error reporting scheme
2722         * build-aux/bootstrap (warn, die): New.
2723         Use them.
2724
2725 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2726
2727         sys_time: allow too-wide tv_sec
2728         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2729         timeval even if tv_sec is wider than time_t.  This allows
2730         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2731         as without this patch gnulib replaces struct timeval
2732         and OpenBSD futimes therefore has a type mismatch.
2733         * doc/posix-headers/sys_time.texi: Mention this.
2734
2735         pthread: check for both pthread_create and pthread_join
2736         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2737         alter the check so that it tests for both pthread_create and
2738         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2739         Suggested by Bruno Haible and Richard Yao in
2740         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2741
2742         parse-datetime: doc tuneup
2743         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2744         spacing issues.
2745
2746 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2747
2748         do-release-commit-and-tag: fix the previous commit
2749         * build-aux/do-release-commit-and-tag: Actually the test was right,
2750         but the comment and the error message were misleading.
2751         Fix comment, and improve error message.
2752         Perform check first, so that NEWS is not modified uselessly.
2753
2754         do-release-commit-and-tag: fix typo
2755         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2756         _not_ start with a stub.
2757
2758 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2759
2760         pthread: check for pthread_create, not pthread_join
2761         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2762         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2763         pthread_join in libc.  I hope this removes the need for all the
2764         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2765         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2766
2767 2012-07-04  Jim Meyering  <meyering@redhat.com>
2768
2769         parse-datetime: fix failure to diagnose invalid input
2770         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2771         rather than diagnosing the invalid input.  Now it reports this:
2772         date: invalid date '\260'
2773         * lib/parse-datetime.y (to_uchar): Define.
2774         (yylex): Don't sign-extend "other" bytes.
2775         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2776         Thanks to Bruno Haible for the patch to this file.
2777         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2778         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2779
2780 2012-07-03  Jim Meyering  <meyering@redhat.com>
2781
2782         bootstrap: do not require now-removed build-aux/missing
2783         Now that build-aux/missing is, er, missing, bootstrap would
2784         silently fail.
2785         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2786         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2787         no longer part of gnulib.
2788         Diagnose the failure.
2789
2790 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2791
2792         alloca: add support for HP NonStop TNS/E native
2793         * lib/alloca.in.h (alloca): Support the new host.
2794         From a suggestion by Joachim Schmitz in
2795         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2796
2797 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2798
2799         fsusage: remove code not needed on non GNU/Linux systems.
2800
2801         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2802         Don't include headers no longer needed in this case.
2803         * lib/fsusage.c [STAT_STATVFS &&
2804         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2805         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2806
2807 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2808
2809         fsusage: include files needed for glibc 2.6 fallback
2810         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2811         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2812         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2813         Problem reported by Ludovic Courtès in
2814         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2815
2816         fsusage: avoid needless check on GNU/Linux
2817         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2818         on GNU/Linux systems, since it can't possibly work.
2819
2820 2012-07-01  Bruno Haible  <bruno@clisp.org>
2821
2822         log: Fix an autoconf >= 2.64 warning.
2823         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2824         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2825
2826 2012-06-28  Bruno Haible  <bruno@clisp.org>
2827
2828         log10f: Fix possible configuration problem.
2829         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2830         $LOGF_LIBM.
2831         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2832
2833 2012-06-28  Bruno Haible  <bruno@clisp.org>
2834
2835         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2836         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2837         not gl_cv_func_unlink_works.
2838         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2839
2840 2012-06-27  Eric Blake  <eblake@redhat.com>
2841
2842         config: drop scripts that automake says are not independent
2843         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2844         * build-aux/elisp-comp: Delete.
2845         * build-aux/missing: Likewise.
2846         * build-aux/ylwrap: Likewise.
2847         * modules/elisp-comp: Likewise.
2848         * MODULES.html.sh: Drop mention of elisp-comp.
2849         * NEWS: Mention this.
2850
2851 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2852
2853         root-uid: new module
2854         This is for portability to Tandem's NonStop Kernel.
2855         * lib/root-uid.h, modules/root-uid: New files.
2856         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2857         * lib/write-any-file.c, tests/test-sethostname2.c:
2858         Include "root-uid.h".
2859         * lib/euidaccess.c (euidaccess):
2860         * lib/pt_chown.c (main):
2861         * lib/unlinkdir.c (cannot_unlink_dir):
2862         * lib/write-any-file.c (can_write_any_file):
2863         * m4/mknod.m4 (gl_FUNC_MKNOD):
2864         * tests/test-sethostname2.c (geteuid, main):
2865         Don't assume ROOT_UID == 0.
2866         * modules/euidaccess (Depends-on):
2867         * modules/pt_chown (Depends-on):
2868         * modules/sethostname-tests (Depends-on):
2869         * modules/unlinkdir (Depends-on):
2870         * modules/write-any-file (Depends-on):
2871         Add root-uid.
2872
2873         regex: use locale-independent comparison for codeset name
2874         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2875         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2876         for codeset name.
2877         * lib/regex_internal.h: Do not include <strings.h>, since we
2878         no longer use strcasecmp.
2879         * modules/regex (Depends-on): Remove strcase.
2880
2881 2012-06-23  Bruno Haible  <bruno@clisp.org>
2882
2883         getopt-posix: No longer guarantee that option processing is resettable.
2884         * doc/posix-functions/getopt.texi: Drop description of problem with
2885         internal state. Fix info about mingw and msvc9.
2886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2887         option processing by getopt(). Run three test programs instead of one.
2888         Simplify cross-compilation guess.
2889         * NEWS: Mention the change.
2890         Reported by Rich Felker <dalias@aerifal.cx>.
2891
2892 2012-06-26  Bruno Haible  <bruno@clisp.org>
2893
2894         argp, regex: Ensure strcasecmp gets declared.
2895         * lib/argp-help.c: Include <strings.h>.
2896         * lib/regex_internal.h: Likewise.
2897         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2898
2899 2012-06-24  Bruno Haible  <bruno@clisp.org>
2900
2901         ptsname_r: Make it consistent with ptsname on AIX.
2902         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2903         implementation as for OSF/1.
2904         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2905         a pty master.
2906
2907         ptsname_r: Make it consistent with ptsname on OSF/1.
2908         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2909         OSF/1.
2910
2911 2012-06-24  Bruno Haible  <bruno@clisp.org>
2912
2913         ttyname_r: Fix result on OSF/1, Solaris.
2914         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2915
2916 2012-06-24  Bruno Haible  <bruno@clisp.org>
2917
2918         ptsname_r: Add support for Solaris.
2919         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2920         Solaris.
2921
2922         ptsname_r: Fix test failure on native Windows.
2923         * modules/ptsname_r (Depends-on): Add isatty.
2924
2925         ptsname_r: Fix test failures on IRIX, Solaris.
2926         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2927         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2928         accordingly.
2929         * lib/ptsname_r.c: Include <fcntl.h>.
2930         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2931         set errno if fd is invalid.
2932         * tests/test-isatty.c (main): Update comments.
2933
2934 2012-06-24  Bruno Haible  <bruno@clisp.org>
2935
2936         ptsname test: Extend test.
2937         * tests/test-ptsname.c: Include <errno.h>.
2938         (main): Test behaviour with invalid file descriptor.
2939
2940 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2941
2942         time: fix obsolete comment
2943         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2944         reference to HAVE_STRUCT_TIMESPEC in comment.
2945
2946 2012-06-23  Bruno Haible  <bruno@clisp.org>
2947
2948         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2950         does not handle abbreviated long options with equivalent
2951         disambiguations, set gl_replace_getopt to yes.
2952         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2953
2954 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2955
2956         time_r: fix typo that always overrode localtime_r decl
2957         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2958         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2959         not in a standard include.
2960
2961 2012-06-22  Bruno Haible  <bruno@clisp.org>
2962
2963         Write "Mac OS X" instead of "MacOS X".
2964         * README: Write "Mac OS X" instead of "MacOS X".
2965         * build-aux/bootstrap: Likewise.
2966         * build-aux/install-reloc: Likewise.
2967         * lib/acl-internal.h: Likewise.
2968         * lib/acl_entries.c: Likewise.
2969         * lib/argp-ba.c: Likewise.
2970         * lib/argp-pv.c: Likewise.
2971         * lib/config.charset: Likewise.
2972         * lib/copy-acl.c: Likewise.
2973         * lib/csharpexec.c: Likewise.
2974         * lib/euidaccess.c: Likewise.
2975         * lib/fbufmode.c: Likewise.
2976         * lib/fflush.c: Likewise.
2977         * lib/file-has-acl.c: Likewise.
2978         * lib/filemode.h: Likewise.
2979         * lib/fpurge.c: Likewise.
2980         * lib/freadable.c: Likewise.
2981         * lib/freadahead.c: Likewise.
2982         * lib/freading.c: Likewise.
2983         * lib/freadptr.c: Likewise.
2984         * lib/freadseek.c: Likewise.
2985         * lib/fseeko.c: Likewise.
2986         * lib/fseterr.c: Likewise.
2987         * lib/fsusage.c: Likewise.
2988         * lib/fwritable.c: Likewise.
2989         * lib/fwriting.c: Likewise.
2990         * lib/get-rusage-as.c: Likewise.
2991         * lib/get-rusage-data.c: Likewise.
2992         * lib/getdomainname.c: Likewise.
2993         * lib/idpriv-drop.c: Likewise.
2994         * lib/idpriv-droptemp.c: Likewise.
2995         * lib/localcharset.c: Likewise.
2996         * lib/locale.in.h: Likewise.
2997         * lib/localename.c: Likewise.
2998         * lib/mbsrtowcs-state.c: Likewise.
2999         * lib/nproc.c: Likewise.
3000         * lib/passfd.c: Likewise.
3001         * lib/posix_openpt.c: Likewise.
3002         * lib/printf-parse.c: Likewise.
3003         * lib/progreloc.c: Likewise.
3004         * lib/safe-read.h: Likewise.
3005         * lib/safe-write.h: Likewise.
3006         * lib/sched.in.h: Likewise.
3007         * lib/set-mode-acl.c: Likewise.
3008         * lib/signal.in.h: Likewise.
3009         * lib/stdint.in.h: Likewise.
3010         * lib/stdio-impl.h: Likewise.
3011         * lib/stdlib.in.h: Likewise.
3012         * lib/strtod.c: Likewise.
3013         * lib/sys_select.in.h: Likewise.
3014         * lib/tcgetsid.c: Likewise.
3015         * lib/unistd.in.h: Likewise.
3016         * lib/unlockpt.c: Likewise.
3017         * lib/vasnprintf.c: Likewise.
3018         * lib/vma-iter.c: Likewise.
3019         * lib/wcsrtombs-state.c: Likewise.
3020         * m4/acl.m4: Likewise.
3021         * m4/acosl.m4: Likewise.
3022         * m4/asinl.m4: Likewise.
3023         * m4/atanl.m4: Likewise.
3024         * m4/c-stack.m4: Likewise.
3025         * m4/cosl.m4: Likewise.
3026         * m4/expl.m4: Likewise.
3027         * m4/extensions.m4: Likewise.
3028         * m4/fdatasync.m4: Likewise.
3029         * m4/fmal.m4: Likewise.
3030         * m4/frexp.m4: Likewise.
3031         * m4/frexpf.m4: Likewise.
3032         * m4/frexpl.m4: Likewise.
3033         * m4/fsusage.m4: Likewise.
3034         * m4/getdomainname.m4: Likewise.
3035         * m4/getloadavg.m4: Likewise.
3036         * m4/getopt.m4: Likewise.
3037         * m4/gettext.m4: Likewise.
3038         * m4/gnulib-common.m4: Likewise.
3039         * m4/intdiv0.m4: Likewise.
3040         * m4/intlmacosx.m4: Likewise.
3041         * m4/largefile.m4: Likewise.
3042         * m4/ldexpl.m4: Likewise.
3043         * m4/link-follow.m4: Likewise.
3044         * m4/locale-ar.m4: Likewise.
3045         * m4/locale-fr.m4: Likewise.
3046         * m4/locale-ja.m4: Likewise.
3047         * m4/locale-tr.m4: Likewise.
3048         * m4/locale-zh.m4: Likewise.
3049         * m4/locale_h.m4: Likewise.
3050         * m4/lock.m4: Likewise.
3051         * m4/logl.m4: Likewise.
3052         * m4/mathfunc.m4: Likewise.
3053         * m4/minus-zero.m4: Likewise.
3054         * m4/mktime.m4: Likewise.
3055         * m4/mmap-anon.m4: Likewise.
3056         * m4/multiarch.m4: Likewise.
3057         * m4/nanosleep.m4: Likewise.
3058         * m4/nocrash.m4: Likewise.
3059         * m4/poll.m4: Likewise.
3060         * m4/printf-frexpl.m4: Likewise.
3061         * m4/printf.m4: Likewise.
3062         * m4/signbit.m4: Likewise.
3063         * m4/sinl.m4: Likewise.
3064         * m4/sqrtl.m4: Likewise.
3065         * m4/strerror_r.m4: Likewise.
3066         * m4/tanl.m4: Likewise.
3067         * m4/threadlib.m4: Likewise.
3068         * m4/ttyname_r.m4: Likewise.
3069         * m4/unlink.m4: Likewise.
3070         * m4/visibility.m4: Likewise.
3071         * m4/wcwidth.m4: Likewise.
3072         * tests/minus-zero.h: Likewise.
3073         * tests/test-alloca-opt.c: Likewise.
3074         * tests/test-copy-acl.sh: Likewise.
3075         * tests/test-copy-file.sh: Likewise.
3076         * tests/test-fdatasync.c: Likewise.
3077         * tests/test-file-has-acl.sh: Likewise.
3078         * tests/test-flock.c: Likewise.
3079         * tests/test-fsync.c: Likewise.
3080         * tests/test-localename.c: Likewise.
3081         * tests/test-malloca.c: Likewise.
3082         * tests/test-nonblocking-pipe.h: Likewise.
3083         * tests/test-nonblocking-socket.h: Likewise.
3084         * tests/test-openpty.c: Likewise.
3085         * tests/test-posix_openpt.c: Likewise.
3086         * tests/test-ptsname.c: Likewise.
3087         * tests/test-ptsname_r.c: Likewise.
3088         * tests/test-sameacls.c: Likewise.
3089         * tests/test-select.h: Likewise.
3090         * tests/test-set-mode-acl.sh: Likewise.
3091         * tests/test-snprintf-posix.h: Likewise.
3092         * tests/test-sprintf-posix.h: Likewise.
3093         * tests/test-strtod.c: Likewise.
3094         * tests/test-time.c: Likewise.
3095         * tests/test-vasnprintf-posix.c: Likewise.
3096         * tests/test-vasprintf-posix.c: Likewise.
3097         * doc/acl-resources.txt: Likewise.
3098         * doc/**/*.texi: Likewise.
3099         Reported by Max Horn <max@quendi.de>.
3100
3101 2012-06-22  Bruno Haible  <bruno@clisp.org>
3102
3103         grantpt: Relax requirement regarding invalid file descriptors.
3104         * lib/grantpt.c: Don't include <fcntl.h>.
3105         (grantpt): Don't verify the validity of the file descriptor.
3106         * modules/grantpt (Depends-on): Remove fcntl-h.
3107         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3108         file descriptors.
3109         * doc/posix-functions/grantpt.texi: Document more platforms on which
3110         grantpt succeeds for invalid file descriptors.
3111         Reported by Rich Felker <dalias@aerifal.cx>.
3112
3113 2012-06-22  Bruno Haible  <bruno@clisp.org>
3114
3115         fbufmode test: Don't test unportable behaviour.
3116         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3117         (main): Invoke it three times.
3118         Reported by Szabolcs Nagy <nsz@port70.net>
3119         and Rich Felker <dalias@aerifal.cx>.
3120
3121 2012-06-21  Bruno Haible  <bruno@clisp.org>
3122
3123         gnulib-tool: Refactor inctests variable.
3124         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3125         (func_modules_transitive_closure,
3126         func_modules_transitive_closure_separately,
3127         func_import, func_create_testdir): Update.
3128
3129         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3130         * gnulib-tool: Accept option --without-tests.
3131         (func_usage): Document --without-tests option. Rearrange.
3132         (inctests): Normalize according to the mode.
3133         * NEWS: Mention the change.
3134         Suggested by Simon Josefsson.
3135
3136 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3137
3138         parse-duration test: Avoid spurious output.
3139         * tests/test-parse-duration.sh: Reindent with leading tabs.
3140
3141 2012-06-21  Jim Meyering  <meyering@redhat.com>
3142
3143         maint: disable the strncpy prohibition
3144         * cfg.mk: Do not prohibit strncpy here.
3145
3146 2012-06-21  Bruno Haible  <bruno@clisp.org>
3147
3148         nonblocking: Avoid compilation error on mingw64.
3149         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3150         fscanf.
3151         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3152         * modules/vfscanf (configure.ac): Likewise.
3153         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3154         definition only if stdio.h has prepared it.
3155         Reported by Daniel P. Berrange <berrange@redhat.com>.
3156
3157 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3158
3159         gnulib-tool: Use readlink if it is available.
3160         * gnulib-tool (func_readlink): Choose function more appropriately.
3161
3162 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3163
3164         posixtm-tests: port to buggy compiler
3165         Problem reported by Simon Josefsson in
3166         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3167         * modules/posixtm-tests (Depends-on): Add stdint.
3168         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3169         Now of type int_least64_t, not int64_t, both because that's
3170         what INT64_C returns and because int_least64_t works even
3171         on 72-bit hosts.
3172         (T): Use INT64_C on constants outside the traditional int range,
3173         to work around compiler bug noted by Simon.
3174
3175         mktime: fix integer overflow in 'configure'-time test
3176         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3177         after integer overflow.  Problem reported by Rich Felker in
3178         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3179         Also, don't look for further instances of a bug if we've already
3180         found one instance; this helps 'configure' run faster.
3181
3182 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3183
3184         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3185         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3186         GetVersionEx correctly.
3187         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3188
3189 2012-06-20  Bruno Haible  <bruno@clisp.org>
3190
3191         fdopen: Allow implementations that don't reject invalid fd arguments.
3192         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3193         succeeds.
3194         Reported by Rich Felker <dalias@aerifal.cx>.
3195
3196 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3197
3198         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3199         bring in LIBINTL.
3200
3201 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3202
3203         init.sh: do not rely on autoupated PWD
3204         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3205         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3206         Although Nelson's bug was not necessarily fixed by this patch,
3207         it seems wise to make the change for safety.
3208         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3209         automagically after 'cd'; this is not reliable on older shells.
3210         (setup_): Fail if we cannot cd to temporary directory.
3211
3212 2012-06-19  Bruno Haible  <bruno@clisp.org>
3213
3214         stat, fstat: Avoid warnings on mingw64.
3215         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3216         redefining.
3217         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3218         Reported by Daniel P. Berrange <berrange@redhat.com>.
3219
3220 2012-06-19  Bruno Haible  <bruno@clisp.org>
3221
3222         stdioext: Add support for musl libc.
3223
3224         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3225         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3226
3227         * m4/fseterr.m4: New file.
3228         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3229         function exists.
3230         * modules/fseterr (Files): Add m4/fseterr.m4.
3231         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3232         __fseterr does not exist.
3233         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3234
3235         * lib/freadable.h: Update comment.
3236
3237         * lib/fwritable.h: Update comment.
3238
3239         * lib/freading.h: Update comment.
3240
3241         * lib/fwriting.h: Update comment.
3242
3243         * m4/freadahead.m4: New file.
3244         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3245         that function exists.
3246         * modules/freadahead (Files): Add m4/freadahead.m4.
3247         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3248         __freadahead does not exist.
3249         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3250
3251         * m4/freadptr.m4: New file.
3252         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3253         function exists.
3254         * modules/freadptr (Files): Add m4/freadptr.m4.
3255         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3256         __freadptr does not exist.
3257         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3258
3259         * m4/freadseek.m4: New file.
3260         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3261         exists.
3262         * modules/freadseek (Files): Add m4/freadseek.m4.
3263         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3264
3265         * lib/fpurge.c (fpurge): Update comment.
3266
3267         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3268
3269 2012-06-19  Bruno Haible  <bruno@clisp.org>
3270
3271         *printf-posix: Put more info into config.log.
3272         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3273         exit code into config.log.
3274
3275 2012-06-19  Bruno Haible  <bruno@clisp.org>
3276
3277         getopt-gnu: Fix exit code overflow in autoconf test.
3278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3279         to keep them below < 128.
3280
3281 2012-06-17  Jim Meyering  <meyering@redhat.com>
3282
3283         maint.mk: fix typo in code to derive GPG key at release time
3284         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3285
3286 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3287
3288         regex: avoid warning when pointers are not long
3289         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3290         and uintptr_t, not long, for portability to hosts where pointers and
3291         long have different sizes.  Issue noted by Daniel P. Berrange in
3292         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3293         and fix suggested by Bruno Haible in
3294         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3295
3296 2012-06-17  Bruno Haible  <bruno@clisp.org>
3297
3298         dummy: Relicense into the public domain.
3299         * modules/dummy (License): Set to "public domain".
3300         Suggested by Reuben Thomas.
3301
3302 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3303
3304         announce-gen: VPATH issues
3305         * build-aux/announce-gen (--srcdir): New option, used to trim the
3306         $srcdir part of the path from $builddir to NEWS.
3307         * top/maint.mk (announcement): Adjust.
3308
3309 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3310
3311         gnu-web-doc-update: VPATH builds
3312         * build-aux/gnu-web-doc-update (--builddir): New option.
3313         Revamp the handling of options.
3314         Prefer $(...) to `...`.
3315         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3316         the template, and it is GNU mktemp specific.
3317         Prefer set -e to long series of &&.
3318         Restore the initial git branch, not "master".
3319         Properly initialize submodules (don't rely only on bootstrap).
3320         Do not reconfigure blindly, use config.status.
3321         * top/README-release: Update instructions for gnu-web-doc-update.
3322
3323 2012-06-11  Jim Meyering  <meyering@redhat.com>
3324
3325         maint.mk: revert most of the previous change re "all these"
3326         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3327         For rationale, see the discussion at
3328         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3329
3330 2012-06-10  Karl Berry  <karl@gnu.org>
3331
3332         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3333
3334         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3335
3336 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3337
3338         parse-duration: Relicense under LGPLv2+.
3339         * modules/parse-duration (License): Change to LGPLv2+.
3340
3341 2012-06-10  Jim Meyering  <meyering@redhat.com>
3342
3343         maint.mk: prohibit common grammar error: "all these"
3344         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3345         the list of prohibited word sequences.  It should be "all of these".
3346         * lib/tempname.c (__gen_tempname): Fix one of them.
3347
3348 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3349
3350         do-release-commit-and-tag: support VPATH builds
3351         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3352         (noteworthy): Defined earlier to factor its value.
3353         (noteworthy_stub): New.
3354         Use it to factor.
3355         (help_version): Split into...
3356         (help, version): these.
3357         Adjust the option processing part.
3358         Support "--option=value" in addition to "--option value".
3359         (builddir): New.
3360         (--builddir): New option.
3361         * top/README-release: Document this.
3362         Reword slightly so that the reader cannot understand that he
3363         has to do these steps before calling do-release-commit-and-tag.
3364
3365 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3366
3367         readme-release: also require announce-gen and maintainer-makefile
3368         * modules/readme-release (Depends-on): here.
3369         * modules/announce-gen, modules/do-release-commit-and-tag,
3370         modules/gnu-web-doc-update, modules/maintainer-makefile
3371         (Description): Point to readme-release.
3372
3373 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3374
3375         maint.mk: fix VPATH issues.
3376         * top/maint.mk (news-check): GNU Make understand $< very well.
3377         (release-prep): NEWS is in $(srcdir).
3378
3379 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3380
3381         readme-release: require the promoted modules.
3382         * modules/readme-release (Depends-on): Add
3383         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3384         in this text.
3385
3386 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3387             Bruno Haible  <bruno@clisp.org>
3388
3389         error, strerror-override: Support mingw64 from Fedora 17.
3390         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3391         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3392         EINPROGRESS.
3393         * lib/strerror-override.h (strerror_override): Test it.
3394         * lib/strerror-override.c (strerror_override): Likewise.
3395         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3396
3397 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3398             Bruno Haible  <bruno@clisp.org>
3399
3400         error, strerror-override: Support mingw64 from Fedora 17.
3401         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3402         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3403         * lib/strerror-override.h (strerror_override): Test it.
3404         * lib/strerror-override.c (strerror_override): Likewise.
3405
3406 2012-06-03  Bruno Haible  <bruno@clisp.org>
3407
3408         error, strerror-override: Support new errno values from POSIX:2008.
3409         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3410         ENOTRECOVERABLE.
3411         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3412         platforms.
3413         * lib/strerror-override.c (strerror_override): Conditionalize the
3414         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3415         * lib/strerror-override.h (strerror_override): Declare also if
3416         GNULIB_defined_EOWNERDEAD is defined.
3417         * tests/test-errno.c (e130, e131): New variables.
3418         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3419         ENOTRECOVERABLE.
3420         Reported by Paolo Bonzini.
3421
3422 2012-05-31  Jim Meyering  <meyering@redhat.com>
3423
3424         savewd: add missing dependency on sys_wait module
3425         * modules/savewd (Depends-on): Add sys_wait, needed at least
3426         for MSVC.  Report and suggested change by Michael Goffioul.
3427
3428 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3429
3430         system-quote-tests: port to CentOS 5
3431         Problem reported by Tom G. Christensen in
3432         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3433         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3434
3435 2012-05-29  Jim Meyering  <meyering@redhat.com>
3436
3437         maint: fix typos in comments and ChangeLog
3438         Culprits identified and fixed mostly automatically using these commands:
3439         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3440         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3441         using http://github.com/lyda/misspell-check
3442         * ChangeLog: Fix typos.
3443         * doc/solaris-versions: Likewise.
3444         * lib/regexec.c (re_search_stub): Likewise.
3445         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3446
3447 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3448
3449         manywarnings: remove duplicate -Wmultichar entry
3450         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3451         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3452         so keep the entry marked as documented.
3453
3454 2012-05-27  Karl Berry  <karl@gnu.org>
3455
3456         * config/srclist.txt (mktime.c): remove last libc sync,
3457         perhaps just temporarily.
3458
3459 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3460
3461         regex: don't assume uint64_t or uint32_t
3462         * lib/regcomp.c (init_word_char): Don't assume that the types
3463         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3464         them, and on some 32-bit compilers there is no uint64_t.
3465         Problem reported by Gianluigi Tiesi in
3466         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3467
3468 2012-05-25  Jim Meyering  <meyering@redhat.com>
3469
3470         maint.mk: add strncpy-prohibiting syntax-check rule
3471         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3472
3473 2012-05-24  Jim Meyering  <meyering@redhat.com>
3474
3475         maint.mk: compute $(gpg_key_ID) more portably
3476         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3477         That use of sed is not portable to some fringe systems.
3478         Reported by Paul Eggert in
3479         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3480
3481 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3482
3483         mktime: sync from glibc
3484         * config/srclist.txt: Uncomment mktime.c.
3485         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3486         First, indent with tabs, since glibc uses tabs and doesn't want to
3487         change and we'd rather be identical to glibc.  Also, two small
3488         coding changes:
3489         (isdst_differ): Use &&, not &, as && is the usual style.
3490         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3491         for clarity.
3492
3493 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3494
3495         announce-gen: du -h is more portable than du --human
3496         * build-aux/announce-gen (sizes): Invoke du with -h instead
3497         of --human.  Accept leading white space in its output.
3498
3499 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3500
3501         announce-gen: Improve diagnostics.
3502         * build-aux/announce-gen: When parsing command line options,
3503         prefer "announce-gen: option --release-type requires an argument"
3504         to "Option release-type requires an argument".
3505
3506 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3507
3508         maint.mk: gpg_key_ID: use sed more portably
3509         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3510         the closing brace.
3511         (refresh-po): Fuse two sed invocations into one.
3512
3513 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3514
3515         gitlog-to-changelog: support the log message format used in Bison.
3516         * build-aux/gitlog-to-changelog: Support --strip-tab and
3517         --strip-cherry-picked.
3518
3519 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3520
3521         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3522         the rest of the current time slice to another thread in the current
3523         process. So if the thread that feeds the file decscriptor we're
3524         polling is not in the current process, we get busy-waiting.
3525         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3526         Patch from Theodore Leblond.
3527         * lib/select.c: Split polling out of the loop that sets the output
3528         fd_sets.  Check for zero result and loop if the wait timeout is
3529         infinite.
3530
3531 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3532
3533         select: Fix build error on IRIX 6.5.
3534         * lib/select.c: Include stddef.h for NULL.
3535
3536 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3537
3538         gc: fix libgcrypt detection on older machines.
3539         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3540         copyright years because the file has been distributed every year
3541         since it was created.
3542
3543 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3544
3545         crypto: fix bug in large buffer handling
3546         Problem reported by Serge Belyshev for glibc in
3547         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3548         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3549         * lib/md4.c (md4_process_block):
3550         * lib/md5.c (md5_process_block):
3551         * lib/sha1.c (sha1_process_block):
3552         * lib/sha256.c (sha256_process_block):
3553         Don't assume the buffer length is less than 2**32.
3554         * lib/sha512.c (sha512_process_block): Likewise.
3555         Here, the bug is present only in the rare case where the host does
3556         not support uint64_t or where size_t is wider than 64 bits.
3557         Use u64size to work around the problems.
3558         * lib/u64.h (u64size): New macro.
3559
3560 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3561
3562         fsusage: fix block size returned on older Linux 2.6
3563
3564         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3565         which is available since Linux 2.6.
3566         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3567         when the member is available so it can be used as a fallback.
3568         * doc/posix-functions/statvfs.texi: Mention the hang issue
3569         on Linux < 2.6.36.
3570
3571 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3572
3573         bootstrap: suppress stderr chatter
3574         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3575         Omit unnecessary chatter to stderr.  The main program chatter
3576         was there only inadvertantly.
3577
3578         bootstrap: .gitignore files created by autopoint, libtool
3579         I ran into this problem when bootstrapping the latest diffutils.
3580         After './bootstrap', 'git status' reported lots of untracked files
3581         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3582         autopoint and do not need to be version-controlled.
3583         * build-aux/bootstrap: Put into .gitignore the files that
3584         autopoint and libtool create, by keeping track of files that exist
3585         after but not before these programs are run.
3586         (version_controlled_file): Move up.  2nd arg is now full file
3587         name, not base name; this is more convenient.  Put CVS at the end,
3588         as it's now somewhat deprecated.
3589
3590 2012-05-14  Jim Meyering  <meyering@redhat.com>
3591
3592         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3593         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3594         definition.  Reported by Bruno Haible.
3595
3596 2012-05-13  Bruno Haible  <bruno@clisp.org>
3597             Paul Eggert  <eggert@cs.ucla.edu>
3598
3599         binary-io: Define set_binary_mode function.
3600         * lib/binary-io.h (set_binary_mode): New function.
3601         (SET_BINARY): Define in terms of set_binary_mode.
3602         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3603         * tests/test-binary-io.c (main): Accept an argument, and test either
3604         set_binary_mode or SET_BINARY depending on the argument.
3605         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3606         argument. Clean up also t-bin-out0.tmp.
3607
3608 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3609
3610         bootstrap: take advantage of POSIX shell features
3611
3612         The 'bootstrap' script offered by Gnulib script already uses POSIX
3613         shell features (like $((...)) arithmetic expansions) that are not
3614         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3615         means that bootstrap must already be run using a proper POSIX shell,
3616         which will thus provide more features, like ${var#pattern} parameter
3617         expansion or inversion of a command exit status with '!'.  We can
3618         thus use these features to improve the clarity and the performances
3619         of the bootstrap script.
3620
3621         Suggested by Eric Blake.
3622
3623         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3624         of sed/expr plus command substitutions, to save some forks.  While
3625         we are at it, prefer the POSIX $(...) form of command substitution,
3626         rather than the legacy form `...` (since the former is visually
3627         clearer and interacts better with quoting), and prefer the idiom:
3628           "if ! CMD; then ACTION ..."
3629         over the idiom:
3630           "if CMD; then :; else ACTION ..."
3631         which was required by legacy Bourne shells not supporting '!'.
3632
3633 2012-05-12  Bruno Haible  <bruno@clisp.org>
3634
3635         system-quote: Add more comments.
3636         * lib/system-quote.h: Add more comments about wilcards and limitations.
3637         Suggested by Eli Zaretskii <eliz@gnu.org>.
3638
3639         sh-quote, system-quote: Add comments about wildcards.
3640         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3641         * lib/system-quote.h: Likewise.
3642         Reported by Eli Zaretskii <eliz@gnu.org>.
3643
3644 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3645
3646         fsusage: check for GNU/Linux statvfs problem dynamically
3647         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3648         Define STAT_STATFS2_BSIZE too, since in this case the code now
3649         checks dynamically whether statvfs is reliable, falling back on
3650         Linux-style statfs otherwise.
3651         (statvfs_works): New function, for dynamically testing statvfs.
3652         (get_fs_usage) [STAT_STATVFS]: Use it.
3653         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3654         statvfs on GNU/Linux hosts, since it's now done dynamically.
3655
3656 2012-05-10  Bruno Haible  <bruno@clisp.org>
3657
3658         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3659         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3660         '?' character.
3661         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3662         * tests/test-system-quote-main.c (check_all): Check also strings like
3663         "??????????".
3664         Reported by Eli Zaretskii <eliz@gnu.org>.
3665
3666 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3667
3668         _Noreturn: port config.h to gcc -Wundef
3669         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3670         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3671         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3672
3673 2012-05-10  Bruno Haible  <bruno@clisp.org>
3674
3675         system-quote: Refactor.
3676         * lib/system-quote.h (system_quote_copy): Fix comment.
3677         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3678         New functions, extracted from system_quote_copy.
3679         (system_quote_length, system_quote_copy): Use these functions.
3680         Reported by Paul Eggert.
3681
3682 2012-05-08  Bruno Haible  <bruno@clisp.org>
3683
3684         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3685         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3686
3687 2012-05-08  Bruno Haible  <bruno@clisp.org>
3688
3689         Tests for module 'system-quote'.
3690         * modules/system-quote-tests: New file.
3691         * tests/test-system-quote.sh: New file.
3692         * tests/test-system-quote-main.c: New file.
3693         * tests/test-system-quote-child.c: New file.
3694
3695         New module 'system-quote'.
3696         * lib/system-quote.h: New file.
3697         * lib/system-quote.c: New file.
3698         * modules/system-quote: New file.
3699
3700 2012-05-08  Bruno Haible  <bruno@clisp.org>
3701
3702         sh-quote: Make C++ safe and allow multiple inclusion.
3703         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3704         declarations in extern "C".
3705
3706 2012-05-08  Bruno Haible  <bruno@clisp.org>
3707
3708         sh-quote tests: Make tests stricter.
3709         * tests/test-sh-quote.c (check_one): Check the return value of
3710         shell_quote_copy.
3711         (main): Check a string with a CR character. Check a string that
3712         contains UCHAR_MAX.
3713
3714 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3715
3716         warnings.m4: provide a means to specify the program to compile.
3717         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3718         (gl_WARN_ADD): here.
3719         Use gl_AS_VAR_APPEND.
3720         Support an argument to specify the program to compile.
3721         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3722         AC_SUBST the WARN_CFLAGS when they are used.
3723         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3724         leave this to gl_WARN_ADD.
3725
3726 2012-05-08  Eric Blake  <eblake@redhat.com>
3727
3728         doc: recommendations on gettext version
3729         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3730         choice between versions.
3731         * DEPENDENCIES (gettext): Cover both approaches.
3732
3733 2012-05-08  Jim Meyering  <meyering@redhat.com>
3734
3735         init.sh: explain why EXEEXT support uses aliases rather than functions
3736         * tests/init.sh: Add a comment.
3737
3738         init.sh: don't let bash aliases interfere with tests
3739         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3740         is bash.  This avoids problems for those who alias standard commands to
3741         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3742         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3743
3744 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3745
3746         stdint: be more consistent with glibc, SunOS libc
3747         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3748         (gl_int_fast16_t, gl_uint_fast16_t)
3749         (gl_int_fast32_t, gl_uint_fast32_t)
3750         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3751         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3752         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3753         Be consistent with glibc by default, and with SunOS 5.10 and later
3754         if __sun is defined.  This lessens the likelihood of clashes if
3755         code compiled for older hosts is combined with code compiled for
3756         newer ones.  Problem reported by Niels Möller in
3757         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3758
3759 2012-05-07  Eric Blake  <eblake@redhat.com>
3760
3761         isatty: relax license to LGPLv2+
3762         * modules/isatty (License): Relax license.
3763
3764 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3765
3766         stat-size: comment fix
3767         * lib/stat-size.h: Remove obsolete comment about indenting.
3768
3769 2012-05-06  Bruno Haible  <bruno@clisp.org>
3770
3771         Tests for module 'sh-quote'.
3772         * modules/sh-quote-tests: New file.
3773         * tests/test-sh-quote.c: New file.
3774
3775 2012-05-06  Bruno Haible  <bruno@clisp.org>
3776
3777         sh-quote: Improve shell_quote_argv's signature.
3778         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3779         * lib/sh-quote.c (shell_quote_argv): Likewise.
3780
3781 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3782
3783         stdint: document issues with int_fast8_t etc.
3784         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3785         stdint.h substitutes may define these types differently.  See
3786         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3787
3788 2012-05-05  Bruno Haible  <bruno@clisp.org>
3789
3790         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3792         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3793         or 'guessing no (mishandles large arguments)'.
3794
3795 2012-05-05  Bruno Haible  <bruno@clisp.org>
3796
3797         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3798         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3799         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3800         set gl_cv_func_link_follows_symlink to "guessing no".
3801
3802 2012-05-05  Bruno Haible  <bruno@clisp.org>
3803
3804         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3805         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3806         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3807         "guessing no".
3808         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3809
3810 2012-05-05  Bruno Haible  <bruno@clisp.org>
3811
3812         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3813         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3814         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3815         set gl_cv_struct_dirent_d_ino to "guessing yes".
3816
3817 2012-05-05  Bruno Haible  <bruno@clisp.org>
3818
3819         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3820         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3821         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3822         "guessing yes".
3823
3824 2012-05-05  Bruno Haible  <bruno@clisp.org>
3825
3826         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3827         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3828         compiling to a glibc system, set gl_cv_func_signbit and
3829         gl_cv_func_signbit_gcc to "guessing yes".
3830
3831 2012-05-05  Bruno Haible  <bruno@clisp.org>
3832
3833         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3834         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3835         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3836         to "guessing yes".
3837         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3838         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3839
3840 2012-05-05  Bruno Haible  <bruno@clisp.org>
3841
3842         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3843         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3844         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3845         gl_cv_func_realpath_works to "guessing yes".
3846
3847 2012-05-05  Bruno Haible  <bruno@clisp.org>
3848
3849         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3851         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3852
3853 2012-05-04  Bruno Haible  <bruno@clisp.org>
3854
3855         Tweak last commit.
3856         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3857         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3858
3859 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3860
3861         unistd_h: make it easier to avoid sys_types_h
3862         This is useful for Emacs, which has its own method of porting to
3863         Windows, and which therefore does not need the sys_types_h module.
3864         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3865         code moved here from gl_SYS_TYPES_H.
3866         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3867         using the code directly.
3868         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3869         gl_SYS_TYPES_H.
3870         * modules/sys_types (Files):
3871         * modules/unistd (Files): Add m4/off_t.m4.
3872
3873 2012-05-03  Bruno Haible  <bruno@clisp.org>
3874
3875         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3876         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3877         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3878         "guessing yes" or "guessing no".
3879         (gl_FUNC_LSTAT): Update.
3880         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3881         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3882         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3883
3884 2012-05-03  Bruno Haible  <bruno@clisp.org>
3885
3886         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3887         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3888         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3889         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3890         cross-compiling, choose the first alternative on glibc systems.
3891         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3892
3893 2012-05-03  Bruno Haible  <bruno@clisp.org>
3894
3895         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3896         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3897         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3898
3899 2012-05-03  Bruno Haible  <bruno@clisp.org>
3900
3901         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3902         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3903
3904 2012-05-03  Bruno Haible  <bruno@clisp.org>
3905
3906         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3907         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3908         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3909         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3910         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3911         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3912         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3913         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3914         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3915         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3916         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3917         gl_cv_func_chown_ctime_works to "guessing yes".
3918         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3919         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3920         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3921         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3922         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3924         compiling to glibc systems, set gl_cv_func_open_directory_works to
3925         "guessing yes".
3926         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3927         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3928         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3929         "guessing yes".
3930         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3931         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3932         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3933         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3934         "guessing yes".
3935         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3936         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3937         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3938         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3939         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3940         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3941         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3942         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3943         "guessing yes".
3944         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3945         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3946         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3947         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3948         "guessing yes".
3949         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3950         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3951         "guessing yes".
3952         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3953         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3954         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3955         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3956         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3957         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3958         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3959         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3960         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3961         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3962         "guessing yes".
3963         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3964         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3965         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3966         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3967         "guessing yes".
3968         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3969         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3970         "guessing yes".
3971         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3972         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3973         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3974         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3975         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3976         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3977         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3978         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3979         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3980         "guessing yes".
3981         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3982         compiling to glibc systems, set gl_cv_func_mknod_works to
3983         "guessing yes".
3984         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3985         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3986         "guessing yes".
3987         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3988         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3989         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3990         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3991         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3992         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3993         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3994         compiling to glibc systems, set gl_cv_func_svid_putenv to
3995         "guessing yes".
3996         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3997         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3998         "guessing yes".
3999         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4000         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4001         "guessing yes".
4002         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4003         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4004         to "guessing yes".
4005         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4006         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4007         to "guessing yes".
4008         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4009         compiling to glibc systems, set gl_cv_func_rmdir_works to
4010         "guessing yes".
4011         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4012         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4013         gl_cv_func_unlink_parent_fails to "guessing yes".
4014         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4015         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4016         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4017         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4018         gl_cv_func_rename_dest_works to "guessing yes".
4019         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4020         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4021         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4022         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4023         "guessing yes".
4024         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4025         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4026         "guessing yes".
4027         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4028         compiling to glibc systems, set gl_cv_func_setenv_works to
4029         "guessing yes".
4030         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4031         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4032         "guessing yes".
4033         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4034         compiling to glibc systems, set gl_cv_func_sleep_works to
4035         "guessing yes".
4036         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4037         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4038         "guessing yes".
4039         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4040         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4041         "guessing yes".
4042         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4043         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4044         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4045         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4046         "guessing yes".
4047         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4048         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4049         "guessing yes".
4050         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4051         compiling to glibc systems, set gl_cv_func_usleep_works to
4052         "guessing yes".
4053         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4054         compiling to glibc systems, set gl_cv_func_futimesat_works to
4055         "guessing yes".
4056
4057 2012-05-03  Bruno Haible  <bruno@clisp.org>
4058
4059         Say "guessing yes" or "guessing no" when cross-compiling.
4060         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4061         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4062         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4063         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4064         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4065         am_cv_func_working_getline to "guessing yes" or "guessing no".
4066         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4067         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4068         (gl_FUNC_MEMMEM): When cross-compiling, set
4069         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4070         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4071         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4072         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4073         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4074         "guessing no".
4075         (gl_FUNC_STRCASESTR): When cross-compiling, set
4076         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4077         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4078         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4079         (gl_FUNC_STRSTR): When cross-compiling, set
4080         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4081         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4082         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4083         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4084         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4085
4086 2012-05-01  Bruno Haible  <bruno@clisp.org>
4087
4088         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4089         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4090         * build-aux/reloc-ldflags: Likewise.
4091         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4092
4093 2012-05-01  Bruno Haible  <bruno@clisp.org>
4094
4095         gnulib-tool: Remove transitional code.
4096         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4097         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4098
4099 2012-05-01  Bruno Haible  <bruno@clisp.org>
4100
4101         getcwd: Fix misindentation.
4102         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4103
4104 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4105
4106         exclude: process exclude and include directives in order
4107         This restores the pre-2009 behavior, and is part of a fix of a
4108         grep bug reported by Quentin Arce in
4109         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4110         * lib/exclude.c (struct exclude): Remove 'tail' member.
4111         (new_exclude_segment): Prepend the new segment instead of appending.
4112         Return void, since that's now more convenient.
4113         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4114         (file_name_matches): Renamed from excluded_file_name_p.
4115         (file_pattern_matches, file_name_matches):
4116         Return true if the pattern matches, not if it excludes.
4117         All callers changed.
4118         (excluded_file_name): Process the list in reverse order;
4119         since the list is now reversed this restores the pre-2009 behavior.
4120         (add_exclude): Adjust to new reversed-order list.  Use local var
4121         rather than macro, for clarity.
4122         * tests/test-exclude7.sh: Adjust to corrected behavior.
4123
4124         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4125         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4126         it's not possible here.  Handle the case of \ at end of pattern
4127         without dumping core.
4128         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4129
4130         _Noreturn: future-proof non-GNU and non-MSVC compilers
4131         * build-aux/snippet/_Noreturn.h (_Noreturn):
4132         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4133         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4134         C11 or later.  This is more likely to work with random future C
4135         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4136         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4137
4138         exclude: handle wildcards with FNM_EXTMATCH
4139         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4140         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4141         comment that "has wildcards" really means "has or may have
4142         wildcards".  Simplify by avoiding the need to call strcspn.
4143
4144 2012-04-29  Bruno Haible  <bruno@clisp.org>
4145
4146         gnulib-tool: Fix list of authors.
4147         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4148
4149 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4150
4151         bootstrap: support Automake-NG in $buildreq
4152         * bootstrap (check_versions): Handle automake and aclocal from
4153         Automake-NG specially.  They can be specified as respectively
4154         the "automake-ng" and "aclocal-ng" requirements.
4155
4156 2012-04-25  Eric Blake  <eblake@redhat.com>
4157
4158         bootstrap: only force latest Makefile.in.in for gettext module
4159         * build-aux/bootstrap (with_gettext): Only install latest
4160         Makefile.in.in for projects requesting bleeding edge gettext.
4161
4162 2012-04-22  Bruno Haible  <bruno@clisp.org>
4163
4164         doc: Mention reason for replacement on glibc/Linux systems.
4165         * doc/posix-functions/dprintf.texi: Mention the problem with special
4166         'long double' values.
4167         * doc/posix-functions/fprintf.texi: Likewise.
4168         * doc/posix-functions/printf.texi: Likewise.
4169         * doc/posix-functions/snprintf.texi: Likewise.
4170         * doc/posix-functions/sprintf.texi: Likewise.
4171         * doc/posix-functions/vdprintf.texi: Likewise.
4172         * doc/posix-functions/vfprintf.texi: Likewise.
4173         * doc/posix-functions/vprintf.texi: Likewise.
4174         * doc/posix-functions/vsnprintf.texi: Likewise.
4175         * doc/posix-functions/vsprintf.texi: Likewise.
4176         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4177         platforms with F_DUPFD_CLOEXEC problems.
4178         * doc/posix-functions/glob.texi: Mention which platforms are affected
4179         by the problem with symbolic links.
4180         * doc/posix-functions/linkat.texi: Mention the problem with
4181         AT_SYMLINK_FOLLOW on Linux.
4182
4183 2012-04-22  Bruno Haible  <bruno@clisp.org>
4184
4185         pwrite: Don't replace on all platforms.
4186         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4187
4188 2012-04-22  Bruno Haible  <bruno@clisp.org>
4189
4190         rint* tests: Avoid gcc warnings.
4191         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4192         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4193         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4194
4195 2012-04-21  Bruno Haible  <bruno@clisp.org>
4196
4197         users.txt: Update.
4198         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4199         switched from CVS to git, bzr, or svn.
4200
4201 2012-04-21  Bruno Haible  <bruno@clisp.org>
4202
4203         Large File Support for native Windows platforms.
4204
4205         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4206         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4207
4208         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4209         type.
4210         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4211         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4212         * doc/posix-headers/sys_types.texi: Mention the effect of the
4213         'largefile' module.
4214
4215         * lib/fcntl.in.h: Add comments about off_t.
4216         * modules/fcntl-h (Depends-on): Add sys_types.
4217
4218         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4219         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4220         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4221         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4222         * modules/unistd (Depends-on): Add sys_types.
4223         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4224
4225         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4226         instead of lseek.
4227         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4228         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4229         * modules/lseek (Depends-on): Add sys_types.
4230
4231         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4232         msvc-nothrow.h.
4233         (SetFileSize): New function.
4234         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4235         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4236         if Large File Support is requested.
4237         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4238         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4239
4240         * lib/stdio.in.h: Add comments about off_t.
4241         * modules/stdio (Depends-on): Add sys_types.
4242
4243         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4244         instead of ftello.
4245         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4246         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4247         (gl_PREREQ_FTELLO): New macro.
4248         * modules/ftello (Depends-on): Add sys_types.
4249         (configure.ac): Incoke gl_PREREQ_FTELLO.
4250
4251         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4252         instead of fseeko.
4253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4254         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4255         (gl_PREREQ_FSEEKO): New macro.
4256         * modules/fseeko (Depends-on): Add sys_types.
4257         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4258
4259         * lib/sys_stat.in.h: Add comments about off_t.
4260         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4261         64-bit integer for st_size in 'struct stat'.
4262         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4263         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4264         * modules/sys_stat (Depends-on): Add sys_types.
4265         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4266
4267         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4268         instead of stat or _stat.
4269
4270         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4271         'struct _stati64' instead of fstat and 'struct stat'.
4272         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4273         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4274
4275         Reported by Ray Satiro <raysatiro@yahoo.com>.
4276
4277 2012-04-19  Eric Blake  <eblake@redhat.com>
4278
4279         bootstrap: accommodate older libtool
4280         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4281         Reported by Daniel P. Berrange.
4282
4283 2012-04-19  Jim Meyering  <meyering@redhat.com>
4284
4285         announce-gen: avoid failure due to lack of Digest::SHA1
4286         Even with the preferred Digest::SHA available, this script
4287         would fail when the backup module, Digest::SHA1, was not installed.
4288         * build-aux/announce-gen: Quote the conditional use of "use".
4289         Reported by Reuben Thomas in:
4290         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4291
4292         bootstrap: don't let a user's CDPATH setting affect this script
4293         When CDPATH is set, cd will sometimes generate output.
4294         When "cd" is run in a subshell whose output matters, that
4295         surprising-to-some output can cause malfunction.
4296         Unsetting CDPATH turns off this shell "feature."
4297         * build-aux/bootstrap (CDPATH): Unset.
4298         Reported by Reuben Thomas in:
4299         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4300         and inspired by his patch here:
4301         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4302
4303 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4304         and Jim Meyering  <meyering@redhat.com>
4305
4306         maint.mk: catch "see @xref{}" and similar
4307         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4308         prohibit "See also @xref{", "Also see @pxref{", and similar.
4309
4310 2012-04-16  Jim Meyering  <meyering@redhat.com>
4311
4312         bootstrap: really use gnulib's po/Makefile.in.in
4313         * build-aux/bootstrap: Correct the source file name in previous change.
4314         Reported by Akim Demaille.
4315
4316         configmake: correct minor inconsistency in Makefile rule
4317         * modules/configmake (Makefile.am): All other rules like this one
4318         run the final "mv -f ..." in the same backslash-continued command
4319         as the one that does everything else.  This one put the mv -f ...
4320         command on a separate, non-backslash-continued line.
4321         Make it like the others.
4322
4323         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4324         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4325         the one from gettext.  Reported by Akim Demaille.
4326
4327 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4328
4329         Fix recursion of install-* into po directories.
4330         Bison's install-pdf bug reported by Hans Aberg at
4331         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4332         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4333         (install-info, install-pdf, install-ps): New targets.
4334
4335 2012-04-16  Jim Meyering  <meyering@redhat.com>
4336
4337         maint: avoid spurious "make sc_maint" failure
4338         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4339         exempt all *.class file names, for lib/javaversion.class.
4340
4341 2012-04-15  Bruno Haible  <bruno@clisp.org>
4342
4343         lseek: Make configure test independent of environment.
4344         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4345         Windows, we know that lseek() on pipes is broken; skip the runtime
4346         test.
4347
4348 2012-04-14  Bruno Haible  <bruno@clisp.org>
4349
4350         stat: Bypass buggy override in mingw64.
4351         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4352         * lib/stat.c (stat) [mingw64]: Define to _stat.
4353         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4354
4355 2012-04-14  Bruno Haible  <bruno@clisp.org>
4356
4357         pathmax: Fix compilation error on MSVC 9.
4358         * modules/pathmax (Depends-on): Add unistd.
4359
4360 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4361
4362         README: document pointer comparison assumption
4363         * README (Portability guidelines): Document assumption about
4364         pointer comparisons, in response to a recent bug-gnulib comment by
4365         Jeffrey Kegler.
4366
4367 2012-04-12  Bruno Haible  <bruno@clisp.org>
4368
4369         Tests for module 'getrusage'.
4370         * modules/getrusage-tests: New file.
4371         * tests/test-getrusage.c: New file.
4372
4373         New module 'getrusage'.
4374         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4375         warn-on-use.h.
4376         (getrusage): New declaration.
4377         * lib/getrusage.c: New file.
4378         * m4/getrusage.m4: New file.
4379         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4380         is declared.
4381         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4382         HAVE_GETRUSAGE.
4383         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4384         snippet/c++defs, snippet/warn-on-use.
4385         (Makefile.am): Update generation of sys/resource.h. Substitute
4386         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4387         * modules/getrusage: New file.
4388         * doc/posix-functions/getrusage.texi: Mention the new module.
4389
4390 2012-04-12  Bruno Haible  <bruno@clisp.org>
4391
4392         Tests for module 'sys_resource'.
4393         * modules/sys_resource-tests: New file.
4394         * tests/test-sys_resource.c: New file.
4395
4396         New module 'sys_resource'.
4397         * lib/sys_resource.in.h: New file.
4398         * m4/sys_resource_h.m4: New file.
4399         * modules/sys_resource: New file.
4400         * doc/posix-headers/sys_resource.texi: Mention the new module.
4401
4402 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4403
4404         ioctl: Fix compilation error on mingw.
4405         * lib/ioctl.c: Include <windows.h>.
4406         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4407
4408 2012-04-04  Jim Meyering  <meyering@redhat.com>
4409
4410         regex: correct #pragma guard expression
4411         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4412         not 4.3.  Correct its cpp guard expression.
4413
4414 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4415
4416         regex: remove unnecessary type punning
4417         Problem reported by Vladimir Serbinenko in
4418         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4419         * lib/regex.h (struct re_pattern_buffer): Change the type of
4420         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4421         Fix comment to match code.
4422         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4423         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4424         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4425         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4426         (set_regs):
4427         Omit no-longer-necessary casts.
4428
4429 2012-04-03  Bruno Haible  <bruno@clisp.org>
4430
4431         Tests for module 'ilogbl'.
4432         * modules/ilogbl-tests: New file.
4433         * tests/test-ilogbl.c: New file.
4434
4435         New module 'ilogbl'.
4436         * lib/math.in.h (ilogbl): New declaration.
4437         * lib/ilogbl.c: New file.
4438         * m4/ilogbl.m4: New file.
4439         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4441         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4442         Split sed invocation, to avoid the limit of 100 substitutions of
4443         HP-UX 'sed'.
4444         * modules/ilogbl: New file.
4445         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4446         * doc/posix-functions/ilogbl.texi: Mention the new module.
4447
4448 2012-04-03  Bruno Haible  <bruno@clisp.org>
4449
4450         Tests for module 'ilogbf'.
4451         * modules/ilogbf-tests: New file.
4452         * tests/test-ilogbf.c: New file.
4453
4454         New module 'ilogbf'.
4455         * lib/math.in.h (ilogbf): New declaration.
4456         * lib/ilogbf.c: New file.
4457         * m4/ilogbf.m4: New file.
4458         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4460         REPLACE_ILOGBF.
4461         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4462         REPLACE_ILOGBF.
4463         * modules/ilogbf: New file.
4464         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4465         * doc/posix-functions/ilogbf.texi: Mention the new module.
4466
4467 2012-04-03  Bruno Haible  <bruno@clisp.org>
4468
4469         Tests for module 'ilogb'.
4470         * modules/ilogb-tests: New file.
4471         * tests/test-ilogb.c: New file.
4472         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4473         tests/test-logb-ieee.h.
4474
4475         New module 'ilogb'.
4476         * lib/math.in.h (ilogb): New declaration.
4477         * lib/ilogb.c: New file.
4478         * m4/ilogb.m4: New file.
4479         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4481         REPLACE_ILOGB.
4482         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4483         REPLACE_ILOGB.
4484         * modules/ilogb: New file.
4485         * tests/test-math-c++.cc: Check the declaration of ilogb.
4486         * doc/posix-functions/ilogb.texi: Mention the new module.
4487
4488 2012-04-03  Bruno Haible  <bruno@clisp.org>
4489
4490         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4491         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4492         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4493         (main): Check their values.
4494         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4495         problem.
4496
4497 2012-04-03  Bruno Haible  <bruno@clisp.org>
4498
4499         Tests for module 'logbl-ieee'.
4500         * modules/logbl-ieee-tests: New file.
4501         * tests/test-logbl-ieee.c: New file.
4502
4503         New module 'logbl-ieee'.
4504         * modules/logbl-ieee: New file.
4505
4506         Tests for module 'logb-ieee'.
4507         * modules/logb-ieee-tests: New file.
4508         * tests/test-logb-ieee.c: New file.
4509
4510         New module 'logb-ieee'.
4511         * modules/logb-ieee: New file.
4512
4513         Tests for module 'logbf-ieee'.
4514         * modules/logbf-ieee-tests: New file.
4515         * tests/test-logbf-ieee.c: New file.
4516         * tests/test-logb-ieee.h: New file.
4517
4518         New module 'logbf-ieee'.
4519         * modules/logbf-ieee: New file.
4520
4521 2012-04-03  Bruno Haible  <bruno@clisp.org>
4522
4523         Tests for module 'logbl'.
4524         * modules/logbl-tests: New file.
4525         * tests/test-logbl.c: New file.
4526
4527         New module 'logbl'.
4528         * lib/math.in.h (logbl): New declaration.
4529         * lib/logbl.c: New file.
4530         * m4/logbl.m4: New file.
4531         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4533         REPLACE_LOGBL.
4534         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4535         REPLACE_LOGBL.
4536         * modules/logbl: New file.
4537         * tests/test-math-c++.cc: Check the declaration of logbl.
4538         * doc/posix-functions/logbl.texi: Mention the new module.
4539
4540 2012-04-02  Bruno Haible  <bruno@clisp.org>
4541
4542         Tests for module 'logbf'.
4543         * modules/logbf-tests: New file.
4544         * tests/test-logbf.c: New file.
4545
4546         New module 'logbf'.
4547         * lib/math.in.h (logbf): New declaration.
4548         * lib/logbf.c: New file.
4549         * m4/logbf.m4: New file.
4550         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4552         REPLACE_LOGBF.
4553         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4554         REPLACE_LOGBF.
4555         * modules/logbf: New file.
4556         * tests/test-math-c++.cc: Check the declaration of logbf.
4557         * doc/posix-functions/logbf.texi: Mention the new module.
4558
4559 2012-04-02  Bruno Haible  <bruno@clisp.org>
4560
4561         logb tests: More tests.
4562         * tests/test-logb.h: New file, based on tests/test-logb.c and
4563         tests/test-frexp.h.
4564         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4565         (main): Just invoke test_function.
4566         * modules/logb-tests (Files): Add tests/test-logb.h,
4567         tests/minus-zero.h, tests/randomd.c.
4568         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4569
4570         logb: Provide replacement and workarounds.
4571         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4572         is 1.
4573         * lib/logb.c: New file.
4574         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4575         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4577         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4578         * modules/logb (Files): Add lib/logb.c.
4579         (Depends-on): Add isfinite, frexp, isnand.
4580         (configure.ac): Compile the replacement code logb.c if needed.
4581         * tests/test-math-c++.cc: Check the declaration of logb.
4582         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4583         with subnormal numbers.
4584
4585 2012-04-02  Bruno Haible  <bruno@clisp.org>
4586
4587         log10* tests: Speed up.
4588         * tests/test-log10.h (test_function): Reduce amount of random numbers
4589         to test.
4590
4591 2012-04-01  Bruno Haible  <bruno@clisp.org>
4592
4593         logf-ieee: Fix test whether logf works.
4594         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4595
4596 2012-04-01  Bruno Haible  <bruno@clisp.org>
4597
4598         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4599         * lib/log10l.c: Include <float.h>
4600         (log10l): On IRIX, normalize the +Infinity value.
4601         * modules/log10l (Depends-on): Add 'float'.
4602         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4603         +Infinity.
4604
4605         log10f-ieee: Work around test failure on NetBSD 5.1.
4606         * m4/log10f-ieee.m4: New file.
4607         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4608         test whether log10f works with a negative argument. Replace it if not.
4609         * lib/log10f.c (log10f): For negative arguments, return NaN.
4610         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4611         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4612         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4613
4614         log10f-ieee: Work around test failure on Solaris 9.
4615         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4616         (configure.ac): Require gl_FUNC_LOG10F.
4617
4618         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4619         * m4/log10-ieee.m4: New file.
4620         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4621         whether log10 works with a negative argument. Replace it if not.
4622         * lib/log10.c (log10): For negative arguments, return NaN.
4623         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4624         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4625         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4626
4627         Tests for module 'log10l-ieee'.
4628         * modules/log10l-ieee-tests: New file.
4629         * tests/test-log10l-ieee.c: New file.
4630
4631         New module 'log10l-ieee'.
4632         * modules/log10l-ieee: New file.
4633
4634         Tests for module 'log10-ieee'.
4635         * modules/log10-ieee-tests: New file.
4636         * tests/test-log10-ieee.c: New file.
4637
4638         New module 'log10-ieee'.
4639         * modules/log10-ieee: New file.
4640
4641         Tests for module 'log10f-ieee'.
4642         * modules/log10f-ieee-tests: New file.
4643         * tests/test-log10f-ieee.c: New file.
4644         * tests/test-log10-ieee.h: New file.
4645
4646         New module 'log10f-ieee'.
4647         * modules/log10f-ieee: New file.
4648
4649 2012-04-01  Bruno Haible  <bruno@clisp.org>
4650
4651         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4652         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4653         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4654         workaround.
4655         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4656         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4658         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4659         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4660         (Depends-on): Update conditions.
4661         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4662         IRIX 6.5, OSF/1 5.1 problems.
4663
4664 2012-04-01  Bruno Haible  <bruno@clisp.org>
4665
4666         log10f: Work around OSF/1 5.1 bug.
4667         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4668         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4669         workaround.
4670         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4671         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4673         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4674         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4675         (Depends-on): Update conditions.
4676         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4677
4678 2012-04-01  Bruno Haible  <bruno@clisp.org>
4679
4680         log10: Work around OSF/1 5.1 bug.
4681         * lib/math.in.h (log10): New declaration.
4682         * lib/log10.c: New file.
4683         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4684         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4685         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4687         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4688         * modules/log10 (Files): Add lib/log10.c.
4689         (Depends-on): Add math.
4690         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4691         * tests/test-math-c++.cc: Check the declaration of log10.
4692         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4693
4694 2012-03-31  Bruno Haible  <bruno@clisp.org>
4695
4696         log10l tests: More tests.
4697         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4698         tests/minus-zero.h, tests/randoml.c.
4699         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4700         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4701         (main): Invoke test_function.
4702
4703         log10f tests: More tests.
4704         * modules/log10f-tests (Files): Add tests/test-log10.h,
4705         tests/minus-zero.h, tests/randomf.c.
4706         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4707         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4708         (main): Invoke test_function.
4709
4710         log10 tests: More tests.
4711         * tests/test-log10.h: New file.
4712         * modules/log10-tests (Files): Add tests/test-log10.h,
4713         tests/minus-zero.h, tests/randomd.c.
4714         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4715         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4716         (main): Invoke test_function.
4717
4718 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4719
4720         fflush: Fix syntax error.
4721         * lib/fflush.c: Include unused-parameter.h, needed for
4722         _GL_UNUSED_PARAMETER.
4723         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4724
4725 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4726
4727         regex: pacify GCC when compiling GRUB
4728         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4729         a diagnostic.  Reported by Vladimir Serbinenko in
4730         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4731
4732 2012-03-29  Eric Blake  <eblake@redhat.com>
4733
4734         stdio: don't assume gets any more
4735         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4736         support.
4737         * modules/stdio (Makefile.am): Likewise.
4738         * lib/stdio-read.c (gets): Likewise.
4739         * tests/test-stdio-c++.cc: Likewise.
4740         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4741         * lib/stdio.in.h (gets): Make warning occur in more places.
4742         * doc/posix-functions/gets.texi (gets): Update documentation.
4743         Reported by Christer Solskogen.
4744
4745         maint.mk: fix syntax checks without exclusions
4746         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4747         Reported by Daniel P. Berrange.
4748
4749         strerror_r: avoid compiler warning
4750         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4751         level.
4752
4753         fflush: avoid compiler warning
4754         * lib/fflush.c (update_fpos_cache): Mark variables that are
4755         potentially unused.
4756
4757 2012-03-25  Bruno Haible  <bruno@clisp.org>
4758
4759         Tests for module 'localeconv'.
4760         * modules/localeconv-tests: New file.
4761         * tests/test-localeconv.c: New file.
4762
4763         New module 'localeconv'.
4764         * lib/locale.in.h (localeconv): New declaration.
4765         * lib/localeconv.c: New file.
4766         * m4/localeconv.m4: New file.
4767         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4768         REPLACE_LOCALECONV.
4769         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4770         REPLACE_LOCALECONV.
4771         * modules/localeconv: New file.
4772         * modules/nl_langinfo (Depends-on): Add localeconv.
4773         * modules/human (Depends-on): Likewise.
4774         * doc/posix-functions/localeconv.texi: Mention the new module.
4775
4776 2012-03-25  Bruno Haible  <bruno@clisp.org>
4777
4778         locale: Provide a complete 'struct lconv'.
4779         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4780         'struct lconv' does not contain int_p_cs_precedes.
4781         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4782         * doc/posix-headers/locale.texi: Update.
4783
4784         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4785         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4786         * doc/posix-headers/locale.texi: Update.
4787
4788         locale: Provide a working 'struct lconv'.
4789         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4790         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4791         'struct lconv' does not even contain decimal_point.
4792         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4793         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4794         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4795         * doc/posix-headers/locale.texi: Mention the problems with
4796         'struct lconv'.
4797         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4798
4799 2012-03-24  Bruno Haible  <bruno@clisp.org>
4800
4801         Enable common subexpression optimization in GCC.
4802         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4803         macros.
4804         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4805         GCC attribute 'const'.
4806         (uc_locale_language): Declare with GCC attribute 'pure'.
4807         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4808         with GCC attribute 'const'.
4809         * lib/unictype.in.h (uc_is_general_category_withtable,
4810         uc_combining_class, uc_combining_class_name,
4811         uc_combining_class_long_name, uc_bidi_class_name,
4812         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4813         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4814         uc_decimal_value, uc_digit_value, uc_numeric_value,
4815         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4816         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4817         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4818         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4819         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4820         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4821         Declare with GCC attribute 'const'.
4822         (uc_general_category_name, uc_general_category_long_name,
4823         uc_general_category_byname, uc_general_category,
4824         uc_is_general_category, uc_combining_class_byname,
4825         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4826         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4827         Declare with GCC attribute 'pure'.
4828         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4829         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4830         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4831         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4832         with GCC attribute 'pure'.
4833         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4834         'const'.
4835         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4836         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4837         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4838         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4839         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4840         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4841         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4842         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4843         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4844         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4845         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4846         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4847         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4848         GCC attribute 'pure'.
4849         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4850         'const'.
4851         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4852         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4853         u32_strwidth): Declare with GCC attribute 'pure'.
4854
4855         Enable common subexpression optimization in GCC.
4856         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4857         (alphasort): Declare with GCC attribute 'pure'.
4858         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4859         (atoll): Declare with GCC attribute 'pure'.
4860         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4861         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4862         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4863         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4864         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4865         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4866         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4867
4868 2012-03-24  Bruno Haible  <bruno@clisp.org>
4869
4870         gnulib-tool: Avoid unintended error output from 'cmp'.
4871         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4872         "cmp -s", not "cmp > /dev/null".
4873
4874 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4875
4876         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4877
4878         It's not just Automake versions < 1.9b that creates an empty
4879         pkgdatadir at installation time if pkgdata_DATA is specified
4880         to empty; modern automake versions do this as well, at least
4881         until automake 1.11.4 (not yet released at the moment of writing,
4882         but soon to appear).  That behaviour was generally considered a
4883         feature rather than a bug, at least until this discussion:
4884         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4885
4886         See also automake bugs #10997 and #11030.
4887
4888         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4889         reference to relevant automake bug numbers.
4890         (func_emit_tests_Makefile_am): Likewise.
4891
4892 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4893
4894         announce-gen: use Digest::SHA when possible
4895         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4896         back to Digest::SHA1 if necessary.
4897
4898 2012-03-20  Jim Meyering  <meyering@redhat.com>
4899
4900         tests: avoid gcc warnings about argv vs. const initializers
4901         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4902         warnings about discarding 'const' qualifier from pointer target type.
4903         * tests/test-posix_spawn2.c (main): Likewise.
4904
4905 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4906
4907         README-release: simplify slightly
4908         * top/README-release: Run "git checkout master" only once.
4909
4910 2012-03-15  Mark Wielaard  <mark@klomp.org>
4911
4912         git-merge-changelog: add specific example on how to use with hg.
4913         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4914
4915 2012-03-18  Mark Wielaard  <mark@klomp.org>
4916
4917         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4918
4919 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4920
4921         git-version-gen: don't let "prefix" envvar cause trouble
4922         * build-aux/git-version-gen (prefix): Initialize properly,
4923         so as not to use a value specified via the environment.
4924         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4925
4926 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4927
4928         regex: diagnose too-large repeat counts in EREs
4929         Previously, the code did not diagnose the too-large repeat count
4930         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4931         as if it were 'b\{1000000000}', which is unexpected.
4932         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4933         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4934         is a reasonable one for this problem.  Another option would be to
4935         create a new REG_OVERFLOW error for repeat counts that are too large.
4936         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4937         count is too large, so that the caller can distinguish the two cases.
4938         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4939         "Too large" return code, and that repeat counts are one example of this.
4940
4941 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4942
4943         doc: some glibc x32 integer width issues
4944         * doc/posix-headers/sys_types.texi (sys/types.h):
4945         * doc/posix-headers/time.texi (time.h):
4946         Mention that glibc x32 does not conform to POSIX in a couple of
4947         areas related to integer widths.
4948
4949 2012-03-15  Bruno Haible  <bruno@clisp.org>
4950
4951         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4952         * lib/fma.c (VOLATILE): New macro.
4953         (FUNC): Use it to work around a GCC compiler bug.
4954
4955 2012-03-13  Bruno Haible  <bruno@clisp.org>
4956
4957         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4958         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4959         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4960         REPLACE_HYPOTL to 1.
4961         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4962
4963 2012-03-13  Bruno Haible  <bruno@clisp.org>
4964
4965         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4966         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4967         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4968         REPLACE_REMAINDERL to 1.
4969         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4970         bug.
4971
4972 2012-03-13  Bruno Haible  <bruno@clisp.org>
4973
4974         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4975         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4976         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4977         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4978         too big rounding errors.
4979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4980         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4981         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4982         (Depends-on): Update conditions.
4983         * tests/test-sqrtl.c (my_ldexpl): New function.
4984         (main): Add test of a particular value.
4985         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4986
4987 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4988
4989         doc: Update timer_* platform portability notes.
4990         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4991         that always return ENOSYS.
4992         * doc/posix-functions/timer_delete.texi: Likewise.
4993         * doc/posix-functions/timer_gettime.texi: Likewise.
4994         * doc/posix-functions/timer_settime.texi: Likewise.
4995
4996 2012-03-13  Bruno Haible  <bruno@clisp.org>
4997
4998         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4999         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5000         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5001         REPLACE_CBRTL to 1.
5002         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5003
5004 2012-03-13  Bruno Haible  <bruno@clisp.org>
5005
5006         remainderl: Avoid compilation error on AIX >= 5.2.
5007         * lib/math.in.h (remainderl): Undefine macro from the system header.
5008
5009 2012-03-13  Bruno Haible  <bruno@clisp.org>
5010
5011         Avoid compilation errors with MSVC option -fp:strict.
5012         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5013         * lib/cbrtf.c: Likewise.
5014         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5015
5016 2012-03-12  Bruno Haible  <bruno@clisp.org>
5017
5018         uninorm: Don't crash in out-of-memory conditions.
5019         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5020         gracefully.
5021         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5022         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5023
5024 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5025
5026         quote: fix syntax-check
5027         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5028         also exports quote_quoting_options.
5029
5030 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5031
5032         Collapse list of copyright years to ranges.  See
5033         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5034         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5035         build-aux/csharpexec.sh.in, build-aux/gnupload,
5036         build-aux/install-reloc, build-aux/javacomp.sh.in,
5037         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5038         build-aux/move-if-change, build-aux/reloc-ldflags,
5039         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5040
5041 2012-03-11  Bruno Haible  <bruno@clisp.org>
5042
5043         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5044         * m4/log2f-ieee.m4: New file.
5045         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5046         whether log2f works with a minus zero argument. Replace it if not.
5047         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5048         (Depends-on): Add log2-ieee.
5049         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5050         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5051
5052         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5053         * m4/log2-ieee.m4: New file.
5054         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5055         whether log2 works with a minus zero argument. Replace it if not.
5056         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5057         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5058         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5059
5060         Tests for module 'log2l-ieee'.
5061         * modules/log2l-ieee-tests: New file.
5062         * tests/test-log2l-ieee.c: New file.
5063
5064         New module 'log2l-ieee'.
5065         * modules/log2l-ieee: New file.
5066
5067         Tests for module 'log2-ieee'.
5068         * modules/log2-ieee-tests: New file.
5069         * tests/test-log2-ieee.c: New file.
5070
5071         New module 'log2-ieee'.
5072         * modules/log2-ieee: New file.
5073
5074         Tests for module 'log2f-ieee'.
5075         * modules/log2f-ieee-tests: New file.
5076         * tests/test-log2f-ieee.c: New file.
5077         * tests/test-log2-ieee.h: New file.
5078
5079         New module 'log2f-ieee'.
5080         * modules/log2f-ieee: New file.
5081
5082 2012-03-11  Bruno Haible  <bruno@clisp.org>
5083
5084         Tests for module 'log2l'.
5085         * modules/log2l-tests: New file.
5086         * tests/test-log2l.c: New file.
5087
5088         New module 'log2l'.
5089         * lib/math.in.h (log2l): New declaration.
5090         * lib/log2l.c: New file.
5091         * m4/log2l.m4: New file.
5092         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5094         REPLACE_LOG2L.
5095         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5096         REPLACE_LOG2L.
5097         * modules/log2l: New file.
5098         * tests/test-math-c++.cc: Check the declaration of log2l.
5099         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5100         and OSF/1 problems.
5101
5102 2012-03-11  Bruno Haible  <bruno@clisp.org>
5103
5104         Tests for module 'log2f'.
5105         * modules/log2f-tests: New file.
5106         * tests/test-log2f.c: New file.
5107
5108         New module 'log2f'.
5109         * lib/math.in.h (log2f): New declaration.
5110         * lib/log2f.c: New file.
5111         * m4/log2f.m4: New file.
5112         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5114         REPLACE_LOG2F.
5115         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5116         REPLACE_LOG2F.
5117         * modules/log2f: New file.
5118         * tests/test-math-c++.cc: Check the declaration of log2f.
5119         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5120         and OSF/1 and Cygwin problems.
5121
5122 2012-03-11  Bruno Haible  <bruno@clisp.org>
5123
5124         Tests for module 'log2'.
5125         * modules/log2-tests: New file.
5126         * tests/test-log2.c: New file.
5127         * tests/test-log2.h: New file.
5128
5129         New module 'log2'.
5130         * lib/math.in.h (log2): New declaration.
5131         * lib/log2.c: New file.
5132         * m4/log2.m4: New file.
5133         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5135         REPLACE_LOG2.
5136         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5137         REPLACE_LOG2.
5138         * modules/log2: New file.
5139         * tests/test-math-c++.cc: Check the declaration of log2.
5140         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5141         and OSF/1 and Cygwin problems.
5142
5143 2012-03-11  Bruno Haible  <bruno@clisp.org>
5144
5145         exp2* tests: More tests.
5146         * tests/test-exp2.h (test_function): Test all integral arguments that
5147         don't need to overflow or denormalized numbers.
5148         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5149         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5150         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5151
5152 2012-03-10  Bruno Haible  <bruno@clisp.org>
5153
5154         log1pl-ieee: Work around test failure on AIX 7.1.
5155         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5156
5157         log1pl-ieee: Work around test failure on IRIX 6.5.
5158         * m4/log1pl-ieee.m4: New file.
5159         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5160         test whether log1pl works with a minus zero argument. Replace it if
5161         not.
5162         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5164         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5165         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5166         (Depends-on): Update conditions.
5167         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5168         m4/signbit.m4.
5169         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5170         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5171
5172         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5173         * m4/log1pf-ieee.m4: New file.
5174         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5175         test whether log1pf works with a minus zero argument. Replace it if
5176         not.
5177         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5178         m4/signbit.m4.
5179         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5180         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5181
5182         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5183         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5184         (configure.ac): Require gl_FUNC_LOG1PF.
5185
5186         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5187         * m4/log1p-ieee.m4: New file.
5188         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5189         whether log1p works with a minus zero argument. Replace it if not.
5190         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5192         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5193         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5194         (Depends-on): Update conditions.
5195         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5196         m4/signbit.m4.
5197         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5198         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5199
5200         Tests for module 'log1pl-ieee'.
5201         * modules/log1pl-ieee-tests: New file.
5202         * tests/test-log1pl-ieee.c: New file.
5203
5204         New module 'log1pl-ieee'.
5205         * modules/log1pl-ieee: New file.
5206
5207         Tests for module 'log1p-ieee'.
5208         * modules/log1p-ieee-tests: New file.
5209         * tests/test-log1p-ieee.c: New file.
5210
5211         New module 'log1p-ieee'.
5212         * modules/log1p-ieee: New file.
5213
5214         Tests for module 'log1pf-ieee'.
5215         * modules/log1pf-ieee-tests: New file.
5216         * tests/test-log1pf-ieee.c: New file.
5217         * tests/test-log1p-ieee.h: New file.
5218
5219         New module 'log1pf-ieee'.
5220         * modules/log1pf-ieee: New file.
5221
5222 2012-03-10  Bruno Haible  <bruno@clisp.org>
5223
5224         Tests for module 'log1pl'.
5225         * modules/log1pl-tests: New file.
5226         * tests/test-log1pl.c: New file.
5227
5228         New module 'log1pl'.
5229         * lib/math.in.h (log1pl): New declaration.
5230         * lib/log1pl.c: New file.
5231         * m4/log1pl.m4: New file.
5232         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5234         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5235         * modules/log1pl: New file.
5236         * tests/test-math-c++.cc: Check the declaration of log1pl.
5237         * doc/posix-functions/log1pl.texi: Mention the new module.
5238
5239 2012-03-10  Bruno Haible  <bruno@clisp.org>
5240
5241         Tests for module 'log1pf'.
5242         * modules/log1pf-tests: New file.
5243         * tests/test-log1pf.c: New file.
5244
5245         New module 'log1pf'.
5246         * lib/math.in.h (log1pf): New declaration.
5247         * lib/log1pf.c: New file.
5248         * m4/log1pf.m4: New file.
5249         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5251         REPLACE_LOG1PF.
5252         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5253         REPLACE_LOG1PF.
5254         * modules/log1pf: New file.
5255         * tests/test-math-c++.cc: Check the declaration of log1pf.
5256         * doc/posix-functions/log1pf.texi: Mention the new module.
5257
5258 2012-03-10  Bruno Haible  <bruno@clisp.org>
5259
5260         log1p tests: More tests.
5261         * tests/test-log1p.h: New file.
5262         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5263         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5264         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5265         (main): Invoke test_function.
5266
5267         log1p: Provide replacement for Minix and MSVC.
5268         * lib/math.in.h (log1p): New declaration.
5269         * lib/log1p.c: New file.
5270         * m4/log1p.m4: New file.
5271         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5273         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5274         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5275         (Depends-on): Add math, isnand, log, round.
5276         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5277         HAVE_LOG1P is 0.
5278         * tests/test-math-c++.cc: Check the declaration of log1p.
5279         * doc/posix-functions/log1p.texi: Mention the replacement.
5280
5281 2012-03-10  Bruno Haible  <bruno@clisp.org>
5282
5283         math tests: Small simplification.
5284         * tests/test-exp.h (test_function): Use the same err_bound for
5285         'double' on platforms with sizeof (long double) == sizeof (double)
5286         than on platforms with sizeof (long double) > sizeof (double).
5287         * tests/test-exp2.h (test_function): Likewise.
5288         * tests/test-expm1.h (test_function): Likewise.
5289         * tests/test-log.h (test_function): Likewise.
5290
5291 2012-03-10  Bruno Haible  <bruno@clisp.org>
5292
5293         Fix some comments.
5294         * lib/expl.c: Fix an ambiguous comment.
5295         * lib/expm1.c: Likewise.
5296         * lib/expm1l.c: Likewise.
5297         * lib/exp2.c: Likewise.
5298         * lib/exp2l.c: Likewise.
5299
5300 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5301
5302         regex: allow inclusion of <regex.h> before <limits.h>
5303         Without this patch, portable programs had to include <limits.h> before
5304         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5305         I ran into this problem with a test version of GNU grep on Solaris 8.
5306         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5307         This is done conditionally so that this change can be merged
5308         back to glibc.
5309         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5310         using the included regex.
5311
5312         fts: depend on fdopendir
5313         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5314         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5315         problem was introduced when fdopendir was split out.
5316
5317 2012-03-10  Bruno Haible  <bruno@clisp.org>
5318
5319         Remove unused variables.
5320         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5321         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5322
5323 2012-03-10  Bruno Haible  <bruno@clisp.org>
5324
5325         isnanf-nolibm: Fix last commit.
5326         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5327
5328         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5329         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5330
5331 2012-03-10  Bruno Haible  <bruno@clisp.org>
5332
5333         logf-ieee: Work around test failure on NetBSD 5.1.
5334         * m4/logf-ieee.m4: New file.
5335         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5336         whether logf works with a negative argument. Replace it if not.
5337         * lib/logf.c (logf): For negative arguments, return NaN.
5338         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5339         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5340         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5341
5342         logf-ieee: Work around test failure on Solaris 9.
5343         * modules/logf-ieee (Depends-on): Add log-ieee.
5344         (configure.ac): Require gl_FUNC_LOGF.
5345
5346         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5347         * m4/log-ieee.m4: New file.
5348         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5349         log works with a negative argument. Replace it if not.
5350         * lib/log.c (log): For negative arguments, return NaN.
5351         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5352         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5353         * doc/posix-functions/log.texi: Mention the log-ieee module.
5354
5355         Tests for module 'logl-ieee'.
5356         * modules/logl-ieee-tests: New file.
5357         * tests/test-logl-ieee.c: New file.
5358
5359         New module 'logl-ieee'.
5360         * modules/logl-ieee: New file.
5361
5362         Tests for module 'log-ieee'.
5363         * modules/log-ieee-tests: New file.
5364         * tests/test-log-ieee.c: New file.
5365
5366         New module 'log-ieee'.
5367         * modules/log-ieee: New file.
5368
5369         Tests for module 'logf-ieee'.
5370         * modules/logf-ieee-tests: New file.
5371         * tests/test-logf-ieee.c: New file.
5372         * tests/test-log-ieee.h: New file.
5373
5374         New module 'logf-ieee'.
5375         * modules/logf-ieee: New file.
5376
5377 2012-03-10  Bruno Haible  <bruno@clisp.org>
5378
5379         log: Fix bug introduced on 2012-03-09.
5380         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5381
5382 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5383
5384         timer-time: link explicitly with pthreads on glibc
5385         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5386         to support static linking, when newer glibc is
5387         detected, as that contains pthread emulation of
5388         POSIX timer functions where required.
5389         * modules/timer-time: Depend on threadlib to
5390         pull in the appropriate library to link.
5391
5392 2012-03-10  Bruno Haible  <bruno@clisp.org>
5393
5394         log* tests: More tests.
5395         * tests/test-log.h: New file.
5396         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5397         (main): Invoke test_function.
5398         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5399         (main): Invoke test_function.
5400         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5401         (main): Invoke test_function.
5402         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5403         tests/randomd.c.
5404         (Makefile.am): Add randomd.c to test_log_SOURCES.
5405         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5406         tests/randomf.c.
5407         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5408         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5409         tests/randoml.c.
5410         (Depends-on): Add 'float'.
5411         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5412
5413 2012-03-09  Bruno Haible  <bruno@clisp.org>
5414
5415         logl: Work around OSF/1 5.1 bug.
5416         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5417         * lib/logl.c (logl): If logl exists, use it and provide just the
5418         workaround.
5419         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5420         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5422         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5423         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5424         (Depends-on): Update conditions.
5425         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5426
5427 2012-03-09  Bruno Haible  <bruno@clisp.org>
5428
5429         logf: Work around OSF/1 5.1 bug.
5430         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5431         * lib/logf.c (logf): If logf exists, use it and provide just the
5432         workaround.
5433         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5434         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5436         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5437         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5438         (Depends-on): Update conditions.
5439         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5440
5441 2012-03-09  Bruno Haible  <bruno@clisp.org>
5442
5443         log: Work around OSF/1 5.1 bug.
5444         * lib/math.in.h (log): New declaration.
5445         * lib/log.c: New file.
5446         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5447         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5448         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5450         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5451         * modules/log (Files): Add lib/log.c.
5452         (Depends-on): Add math.
5453         (configure.ac): If REPLACE_LOG is 1, compile an override.
5454         * tests/test-math-c++.cc: Check the declaration of log.
5455         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5456
5457 2012-03-09  Jim Meyering  <meyering@redhat.com>
5458
5459         readtokens.c: adjust wording in a comment
5460         * lib/readtokens.c: Insert omitted "that" in a comment.
5461
5462 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5463
5464         modechange: add notations +40, 00440, etc.
5465         * lib/modechange.c (mode_compile): Support new notations
5466         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5467
5468 2012-03-08  Bruno Haible  <bruno@clisp.org>
5469
5470         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5471         * m4/exp2l-ieee.m4: New file.
5472         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5473         test whether exp2l works with a NaN argument and with a negative
5474         infinity argument. Replace it if not.
5475         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5477         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5478         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5479         (Depends-on): Update conditions.
5480         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5481         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5482         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5483
5484         Tests for module 'exp2l-ieee'.
5485         * modules/exp2l-ieee-tests: New file.
5486         * tests/test-exp2l-ieee.c: New file.
5487
5488         New module 'exp2l-ieee'.
5489         * modules/exp2l-ieee: New file.
5490
5491         Tests for module 'exp2-ieee'.
5492         * modules/exp2-ieee-tests: New file.
5493         * tests/test-exp2-ieee.c: New file.
5494
5495         New module 'exp2-ieee'.
5496         * modules/exp2-ieee: New file.
5497
5498         Tests for module 'exp2f-ieee'.
5499         * modules/exp2f-ieee-tests: New file.
5500         * tests/test-exp2f-ieee.c: New file.
5501         * tests/test-exp2-ieee.h: New file.
5502
5503         New module 'exp2f-ieee'.
5504         * modules/exp2f-ieee: New file.
5505
5506 2012-03-08  Bruno Haible  <bruno@clisp.org>
5507
5508         Tests for module 'exp2l'.
5509         * modules/exp2l-tests: New file.
5510         * tests/test-exp2l.c: New file.
5511
5512         New module 'exp2l'.
5513         * lib/math.in.h (exp2l): New declaration.
5514         * lib/exp2l.c: New file.
5515         * lib/expl-table.c: New file, extracted from lib/expl.c.
5516         * lib/expl.c (gl_expl_table): New declaration.
5517         (expl): Remove expl_table. Update reference.
5518         * m4/exp2l.m4: New file.
5519         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5520         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5521         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5522         * modules/exp2l: New file.
5523         * modules/expl (Files): Add lib/expl-table.c.
5524         (configure.ac): Compile also expl-table.c.
5525         * tests/test-math-c++.cc: Check the declaration of exp2l.
5526         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5527         problem.
5528
5529 2012-03-08  Bruno Haible  <bruno@clisp.org>
5530
5531         Tests for module 'exp2f'.
5532         * modules/exp2f-tests: New file.
5533         * tests/test-exp2f.c: New file.
5534
5535         New module 'exp2f'.
5536         * lib/math.in.h (exp2f): New declaration.
5537         * lib/exp2f.c: New file.
5538         * m4/exp2f.m4: New file.
5539         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5541         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5542         * modules/exp2f: New file.
5543         * tests/test-math-c++.cc: Check the declaration of exp2f.
5544         * doc/posix-functions/exp2f.texi: Mention the new module and the
5545         IRIX problem.
5546
5547 2012-03-08  Bruno Haible  <bruno@clisp.org>
5548
5549         Tests for module 'exp2'.
5550         * modules/exp2-tests: New file.
5551         * tests/test-exp2.c: New file.
5552         * tests/test-exp2.h: New file.
5553
5554         New module 'exp2'.
5555         * lib/math.in.h (exp2): New declaration.
5556         * lib/exp2.c: New file.
5557         * m4/exp2.m4: New file.
5558         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5560         REPLACE_EXP2.
5561         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5562         REPLACE_EXP2.
5563         * modules/exp2: New file.
5564         * tests/test-math-c++.cc: Check the declaration of exp2.
5565         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5566         and OpenBSD problems.
5567
5568 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5569
5570         savedir: fix comment typo
5571         * lib/savedir.c (savedirstream): Fix typo in comment.
5572
5573 2012-03-08  Bruno Haible  <bruno@clisp.org>
5574
5575         test-readtokens.c: use const; remove unwarranted cast
5576         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5577
5578 2012-03-08  Bruno Haible  <bruno@clisp.org>
5579
5580         fmal: Avoid compilation error on AIX.
5581         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5582         AIX 5.2..7.1.
5583
5584 2012-03-08  Bruno Haible  <bruno@clisp.org>
5585
5586         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5587         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5588         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5589         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5590         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5591         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5592         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5593
5594 2012-03-08  Bruno Haible  <bruno@clisp.org>
5595
5596         remainderf: Override buggy system function on IRIX 6.5.
5597         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5598         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5599         when it exists.
5600         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5601
5602 2012-03-08  Jim Meyering  <meyering@redhat.com>
5603
5604         test-readtokens.c: avoid const-related compilation warnings
5605         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5606
5607 2012-03-07  Jim Meyering  <meyering@redhat.com>
5608             Bruno Haible  <bruno@clisp.org>
5609
5610         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5611         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5612         tests/randomd.c.
5613         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5614         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5615         tests/randoml.c.
5616         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5617
5618 2012-03-07  Bruno Haible  <bruno@clisp.org>
5619
5620         expm1l: Avoid compilation error on AIX.
5621         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5622         AIX 5.2..7.1.
5623
5624 2012-03-07  Bruno Haible  <bruno@clisp.org>
5625
5626         expm1l: Don't override undeclared system function on IRIX 6.5.
5627         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5628         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5629         it exists. Set HAVE_DECL_EXPM1L.
5630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5631         HAVE_EXPM1L.
5632         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5633         HAVE_EXPM1L.
5634         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5635
5636 2012-03-07  Bruno Haible  <bruno@clisp.org>
5637
5638         remainderl: Don't override undeclared system function on IRIX 6.5.
5639         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5640         HAVE_REMAINDERL.
5641         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5642         declared when it exists. Set HAVE_DECL_REMAINDERL.
5643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5644         not HAVE_REMAINDERL.
5645         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5646         HAVE_REMAINDERL.
5647         * doc/posix-functions/remainderl.texi: Mention missing declaration
5648         problem.
5649
5650 2012-03-07  Bruno Haible  <bruno@clisp.org>
5651
5652         rintf: Don't override undeclared system function on IRIX 6.5.
5653         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5654         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5655         exists. Set HAVE_DECL_RINTF.
5656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5657         HAVE_RINTF.
5658         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5659         HAVE_RINTF.
5660         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5661
5662 2012-03-07  Bruno Haible  <bruno@clisp.org>
5663
5664         roundl: Avoid compilation error on AIX.
5665         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5666         AIX 5.2..7.1.
5667
5668 2012-03-07  Bruno Haible  <bruno@clisp.org>
5669
5670         roundl: Don't override undeclared system function on IRIX 6.5.
5671         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5672         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5673         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5674         * modules/roundl (configure.ac): For replacement code, test
5675         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5676         (Depends-on): Update conditions.
5677         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5678
5679 2012-03-07  Bruno Haible  <bruno@clisp.org>
5680
5681         roundf: Don't override undeclared system function on IRIX 6.5.
5682         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5683         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5684         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5685         * modules/roundf (configure.ac): For replacement code, test
5686         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5687         (Depends-on): Update conditions.
5688         * modules/roundf-ieee (Depends-on): Update conditions.
5689         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5690
5691 2012-03-07  Bruno Haible  <bruno@clisp.org>
5692
5693         round: Don't override undeclared system function on IRIX 6.5.
5694         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5695         argument.
5696         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5697         also when it is not declared. Set HAVE_ROUND. For replacement code,
5698         test HAVE_ROUND, not HAVE_DECL_ROUND.
5699         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5700         not HAVE_DECL_ROUND.
5701         (Depends-on): Update conditions.
5702         * modules/round-ieee (Depends-on): Update conditions.
5703         * doc/posix-functions/round.texi: Mention the IRIX problem.
5704
5705 2012-03-07  Bruno Haible  <bruno@clisp.org>
5706
5707         copysignf: Don't override undeclared system function on IRIX 6.5.
5708         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5709         HAVE_COPYSIGNF.
5710         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5711         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5713         not HAVE_COPYSIGNF.
5714         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5715         HAVE_COPYSIGNF.
5716         * doc/posix-functions/copysignf.texi: Mention missing declaration
5717         problem.
5718
5719 2012-03-07  Jim Meyering  <meyering@redhat.com>
5720
5721         readtokens: add tests
5722         * modules/readtokens-tests: New file.
5723         * tests/test-readtokens.c: New file.
5724
5725 2012-03-07  Jim Meyering  <meyering@redhat.com>
5726
5727         quotearg: the module must now include quote.h
5728         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5729         So must the module.
5730         * modules/quotearg (Files): Add quote.h.
5731
5732 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5733
5734         readtokens: avoid core dumps with unusual calling patterns
5735         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5736         * lib/readtokens.c: Include limits.h.
5737         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5738         (readtoken): Don't cache the delimiters; the cache code was buggy
5739         if !delim && saved_delim, or if the new n_delim differs from the old.
5740         Also, it wasn't thread-safe.
5741
5742 2012-03-07  Bruno Haible  <bruno@clisp.org>
5743
5744         quote: Adhere to common module description layout.
5745         * modules/quote (Makefile.am): Add back empty section.
5746
5747 2012-03-06  Akim Demaille  <demaille@gostai.com>
5748
5749         quote: fuse into quotearg
5750         This patch is made for the benefit of Bison.
5751         quote does not leave the choice of the quoting style to the user.
5752         quoting_style provides poor customizability, yet quoting_options,
5753         which is very rich, is hidden inside quotearg.c.  So in order to
5754         allow quote customization, move its implementation to quotearg.c.
5755         * lib/quote.c: Remove.
5756         * modules/quote: Adjust.
5757         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5758         warning: provide all the members of literal structs.
5759         (quote_quoting_options): New.
5760         (quote, quote_n): Import implementation from quote.c.
5761         * lib/quote.h: Import the comments from quote.c.
5762         (quote_quoting_options): New.
5763
5764 2012-03-06  Bruno Haible  <bruno@clisp.org>
5765
5766         Tests for module 'expm1l-ieee'.
5767         * modules/expm1l-ieee-tests: New file.
5768         * tests/test-expm1l-ieee.c: New file.
5769
5770         New module 'expm1l-ieee'.
5771         * modules/expm1l-ieee: New file.
5772
5773         Tests for module 'expm1f-ieee'.
5774         * modules/expm1f-ieee-tests: New file.
5775         * tests/test-expm1f-ieee.c: New file.
5776
5777         New module 'expm1f-ieee'.
5778         * modules/expm1f-ieee: New file.
5779
5780         Tests for module 'expm1-ieee'.
5781         * modules/expm1-ieee-tests: New file.
5782         * tests/test-expm1-ieee.c: New file.
5783         * tests/test-expm1-ieee.h: New file.
5784
5785         New module 'expm1-ieee'.
5786         * modules/expm1-ieee: New file.
5787         * m4/expm1-ieee.m4: New file.
5788         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5789         whether expm1 works with a minus zero argument. Replace it if not.
5790         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5792         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5793         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5794         (Depends-on): Update conditions.
5795         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5796         AIX problem.
5797
5798 2012-03-06  Bruno Haible  <bruno@clisp.org>
5799
5800         Work around expm1f bug on IRIX 6.5.
5801         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5802         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5803         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5804         not work.
5805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5806         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5807         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5808         (Depends-on): Update conditions.
5809         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5810
5811 2012-03-06  Bruno Haible  <bruno@clisp.org>
5812
5813         Tests for module 'expm1l'.
5814         * modules/expm1l-tests: New file.
5815         * tests/test-expm1l.c: New file.
5816
5817         New module 'expm1l'.
5818         * lib/math.in.h (expm1l): New declaration.
5819         * lib/expm1l.c: New file.
5820         * m4/expm1l.m4: New file.
5821         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5823         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5824         * modules/expm1l: New file.
5825         * tests/test-math-c++.cc: Check the declaration of expm1l.
5826         * doc/posix-functions/expm1l.texi: Mention the new module.
5827
5828 2012-03-06  Bruno Haible  <bruno@clisp.org>
5829
5830         Tests for module 'expm1f'.
5831         * modules/expm1f-tests: New file.
5832         * tests/test-expm1f.c: New file.
5833
5834         New module 'expm1f'.
5835         * lib/math.in.h (expm1f): New declaration.
5836         * lib/expm1f.c: New file.
5837         * m4/expm1f.m4: New file.
5838         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5840         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5841         * modules/expm1f: New file.
5842         * tests/test-math-c++.cc: Check the declaration of expm1f.
5843         * doc/posix-functions/expm1f.texi: Mention the new module.
5844
5845 2012-03-06  Bruno Haible  <bruno@clisp.org>
5846
5847         Tests for module 'expm1'.
5848         * modules/expm1-tests: New file.
5849         * tests/test-expm1.c: New file.
5850         * tests/test-expm1.h: New file.
5851
5852         New module 'expm1'.
5853         * lib/math.in.h (expm1): New declaration.
5854         * lib/expm1.c: New file.
5855         * m4/expm1.m4: New file.
5856         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5858         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5859         * modules/expm1: New file.
5860         * tests/test-math-c++.cc: Check the declaration of expm1.
5861         * doc/posix-functions/expm1.texi: Mention the new module.
5862
5863 2012-03-06  Bruno Haible  <bruno@clisp.org>
5864
5865         math: Ensure declarations of math functions.
5866         * modules/acosf (Depends-on): Add 'extensions'.
5867         * modules/asinf (Depends-on): Likewise.
5868         * modules/atan2f (Depends-on): Likewise.
5869         * modules/atanf (Depends-on): Likewise.
5870         * modules/cbrt (Depends-on): Likewise.
5871         * modules/cbrtf (Depends-on): Likewise.
5872         * modules/cbrtl (Depends-on): Likewise.
5873         * modules/copysignf (Depends-on): Likewise.
5874         * modules/copysignl (Depends-on): Likewise.
5875         * modules/cosf (Depends-on): Likewise.
5876         * modules/coshf (Depends-on): Likewise.
5877         * modules/expf (Depends-on): Likewise.
5878         * modules/fabsf (Depends-on): Likewise.
5879         * modules/fabsl (Depends-on): Likewise.
5880         * modules/fmaf (Depends-on): Likewise.
5881         * modules/fmal (Depends-on): Likewise.
5882         * modules/fmodf (Depends-on): Likewise.
5883         * modules/fmodl (Depends-on): Likewise.
5884         * modules/frexpf (Depends-on): Likewise.
5885         * modules/frexpl (Depends-on): Likewise.
5886         * modules/hypot (Depends-on): Likewise.
5887         * modules/hypotf (Depends-on): Likewise.
5888         * modules/hypotl (Depends-on): Likewise.
5889         * modules/ldexpf (Depends-on): Likewise.
5890         * modules/ldexpl (Depends-on): Likewise.
5891         * modules/log10f (Depends-on): Likewise.
5892         * modules/log10l (Depends-on): Likewise.
5893         * modules/log1p (Depends-on): Likewise.
5894         * modules/logb (Depends-on): Likewise.
5895         * modules/logf (Depends-on): Likewise.
5896         * modules/modff (Depends-on): Likewise.
5897         * modules/modfl (Depends-on): Likewise.
5898         * modules/powf (Depends-on): Likewise.
5899         * modules/remainderf (Depends-on): Likewise.
5900         * modules/remainderl (Depends-on): Likewise.
5901         * modules/rintf (Depends-on): Likewise.
5902         * modules/rintl (Depends-on): Likewise.
5903         * modules/sinf (Depends-on): Likewise.
5904         * modules/sinhf (Depends-on): Likewise.
5905         * modules/sqrtf (Depends-on): Likewise.
5906         * modules/tanf (Depends-on): Likewise.
5907         * modules/tanhf (Depends-on): Likewise.
5908         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5909         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5910         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5911         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5912         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5913         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5914         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5915         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5916         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5917         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5918         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5919         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5920         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5921         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5922         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5923         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5924         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5925         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5926         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5927         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5928         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5929         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5930         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5931         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5932         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5933         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5934         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5935         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5936         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5937         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5938         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5939         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5940         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5941         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5942         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5943         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5944         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5945         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5946         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5947         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5948         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5949
5950 2012-03-06  Bruno Haible  <bruno@clisp.org>
5951
5952         math: Update module names in warnings.
5953         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5954         tanl): Use specific module name in warn-on-use warning.
5955
5956 2012-03-06  Bruno Haible  <bruno@clisp.org>
5957
5958         expl: Simplify computation.
5959         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5960
5961 2012-03-05  Bruno Haible  <bruno@clisp.org>
5962
5963         exp* tests: More tests.
5964         * tests/test-exp.h: New file.
5965         * tests/test-exp.c: Include <float.h> and test-exp.h.
5966         (main): Invoke test_function.
5967         * tests/test-expf.c: Include <float.h> and test-exp.h.
5968         (main): Invoke test_function.
5969         * tests/test-expl.c: Include <float.h> and test-exp.h.
5970         (main): Invoke test_function.
5971         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5972         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5973         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5974         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5975         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5976         (Depends-on): Add 'float'.
5977         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5978
5979         expl: Fix precision of computed result.
5980         * lib/expl.c: Completely rewritten.
5981         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5982         (Maintainer): Add me.
5983         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5984
5985 2012-03-05  Bruno Haible  <bruno@clisp.org>
5986
5987         cbrt* tests: More tests.
5988         * tests/test-cbrt.h: New file.
5989         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5990         (main): Invoke test_function.
5991         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5992         (main): Invoke test_function.
5993         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5994         (main): Invoke test_function.
5995         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5996         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5997         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5998         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5999         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6000         (Depends-on): Add 'float'.
6001         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6002
6003 2012-03-05  Bruno Haible  <bruno@clisp.org>
6004
6005         hypot* tests: More tests.
6006         * tests/test-hypot.h: New file, partially extracted from
6007         tests/test-hypotl.c.
6008         * tests/test-hypot.c: Include test-hypot.h.
6009         (main): Invoke test_function.
6010         * tests/test-hypotf.c: Include test-hypot.h.
6011         (main): Invoke test_function.
6012         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6013         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6014         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6015         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6016         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6017         tests/randomf.c.
6018         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6019         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6020         tests/randoml.c.
6021         (Depends-on): Add 'fpucw', 'float'.
6022         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6023
6024 2012-03-05  Bruno Haible  <bruno@clisp.org>
6025
6026         fpucw: Doc about FreeBSD.
6027         * lib/fpucw.h: Mention FreeBSD in comments.
6028
6029 2012-03-04  Bruno Haible  <bruno@clisp.org>
6030
6031         sqrt* tests: More tests.
6032         * tests/test-sqrt.h: New file.
6033         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6034         (main): Invoke test_function.
6035         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6036         (main): Invoke test_function.
6037         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6038         (main): Invoke test_function.
6039         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6040         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6041         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6042         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6043         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6044         (Depends-on): Add 'float'.
6045         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6046
6047 2012-03-04  Bruno Haible  <bruno@clisp.org>
6048
6049         remainder* tests: More tests.
6050         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6051         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6052         (main): Invoke test_function.
6053         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6054         (main): Invoke test_function.
6055         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6056         (main): Invoke test_function.
6057         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6058         tests/randomd.c.
6059         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6060         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6061         tests/randomf.c.
6062         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6063         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6064         tests/randoml.c.
6065         (Depends-on): Add 'float'.
6066         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6067
6068 2012-03-04  Bruno Haible  <bruno@clisp.org>
6069
6070         remainder, remainderf, remainderl: Fix computation for large quotients.
6071         * lib/remainder.c: Completely rewritten.
6072         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6073         USE_FLOAT.
6074         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6075         USE_LONG_DOUBLE.
6076         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6077         isnand, isinf. Remove round, fma.
6078         * modules/remainderf (Files): Add lib/remainder.c.
6079         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6080         Remove roundf, fmaf.
6081         * modules/remainderl (Files): Add lib/remainder.c.
6082         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6083         isinf. Remove roundl, fmal.
6084         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6085         REMAINDER_LIBM.
6086         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6087         REMAINDERF_LIBM.
6088         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6089         REMAINDERL_LIBM.
6090
6091 2012-03-04  Bruno Haible  <bruno@clisp.org>
6092
6093         fmod* tests: More tests.
6094         * tests/test-fmod.h (my_ldexp): New function.
6095         (test_function): Reduce amount of random numbers to test. Add tests
6096         of very large quotients x / y.
6097         * tests/test-fmod.c (MAX_EXP): New macro.
6098         * tests/test-fmodf.c (MAX_EXP): Likewise.
6099         * tests/test-fmodl.c (MAX_EXP): Likewise.
6100
6101 2012-03-04  Bruno Haible  <bruno@clisp.org>
6102
6103         fmod, fmodl: Fix computation for large quotients x / y.
6104         * lib/fmod.c: Completely rewritten.
6105         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6106         USE_LONG_DOUBLE.
6107         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6108         isnand. Remove fma.
6109         * modules/fmodl (Files): Add lib/fmod.c.
6110         (Depends-on): Add float, isfinite, signbit, fabsl,
6111         frexpl, ldexpl, isnanl. Remove fma.
6112         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6113         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6114
6115 2012-03-03  Bruno Haible  <bruno@clisp.org>
6116
6117         fmod* tests: More tests.
6118         * tests/test-fmod.h: New file.
6119         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6120         (main): Invoke test_function.
6121         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6122         (main): Invoke test_function.
6123         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6124         (main): Invoke test_function.
6125         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6126         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6127         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6128         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6129         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6130         (Depends-on): Add 'float'.
6131         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6132
6133 2012-03-03  Bruno Haible  <bruno@clisp.org>
6134
6135         rint* tests: More tests.
6136         * tests/test-rint.h: New file, partially extracted from
6137         tests/test-rintl.c.
6138         * tests/test-rint.c: Include test-rint.h.
6139         (main): Invoke test_function.
6140         * tests/test-rintf.c: Include test-rint.h.
6141         (main): Invoke test_function.
6142         * tests/test-rintl.c: Include test-rint.h.
6143         (main): Invoke test_function.
6144         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6145         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6146         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6147         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6148         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6149         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6150
6151 2012-03-03  Bruno Haible  <bruno@clisp.org>
6152
6153         modf* tests: More tests.
6154         * tests/test-modf.h: New file.
6155         * tests/test-modf.c: Include <float.h> and test-modf.h.
6156         (main): Invoke test_function.
6157         * tests/test-modff.c: Include <float.h> and test-modf.h.
6158         (main): Invoke test_function.
6159         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6160         (main): Invoke test_function.
6161         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6162         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6163         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6164         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6165         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6166         (Depends-on): Add 'float'.
6167         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6168
6169 2012-03-03  Bruno Haible  <bruno@clisp.org>
6170
6171         fabs* tests: More tests.
6172         * tests/test-fabs.h: New file, partially extracted from
6173         tests/test-fabsl.c.
6174         * tests/test-fabs.c (RANDOM): New macro.
6175         * tests/test-fabsf.c (RANDOM): New macro.
6176         * tests/test-fabsl.c (RANDOM): New macro.
6177         * modules/fabs-tests (Files): Add tests/randomd.c.
6178         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6179         * modules/fabsf-tests (Files): Add tests/randomf.c.
6180         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6181         * modules/fabsl-tests (Files): Add tests/randoml.c.
6182         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6183
6184 2012-03-03  Bruno Haible  <bruno@clisp.org>
6185
6186         ldexp* tests: More tests.
6187         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6188         * tests/test-ldexp.c (RANDOM): New macro.
6189         * tests/test-ldexpf.c (RANDOM): New macro.
6190         * tests/test-ldexpl.c (RANDOM): New macro.
6191         * modules/ldexp-tests (Files): Add tests/randomd.c.
6192         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6193         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6194         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6195         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6196         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6197
6198 2012-03-03  Bruno Haible  <bruno@clisp.org>
6199
6200         frexp* tests: More tests.
6201         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6202         * tests/test-frexp.c (RANDOM): New macro.
6203         * tests/test-frexpf.c (RANDOM): New macro.
6204         * tests/test-frexpl.c (RANDOM): New macro.
6205         * modules/frexp-tests (Files): Add tests/randomd.c.
6206         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6207         * modules/frexpf-tests (Files): Add tests/randomf.c.
6208         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6209         * modules/frexpl-tests (Files): Add tests/randoml.c.
6210         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6211
6212 2012-03-03  Bruno Haible  <bruno@clisp.org>
6213
6214         Support for pseudo-random numbers in tests.
6215         * tests/randomf.c: New file.
6216         * tests/randomd.c: New file.
6217         * tests/randoml.c: New file.
6218         * tests/macros.h (randomf, randomd, randoml): New declarations.
6219
6220 2012-03-03  Bruno Haible  <bruno@clisp.org>
6221
6222         frexp* tests: Refactor.
6223         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6224         * tests/test-frexp.c: Include and use it.
6225         * tests/test-frexpf.c: Likewise.
6226         * tests/test-frexpl.c: Likewise.
6227         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6228         * modules/frexpf-tests (Files): Likewise.
6229         * modules/frexpl-tests (Files): Likewise.
6230
6231 2012-03-02  Jim Meyering  <meyering@redhat.com>
6232
6233         maint: don't specify XZ_OPT=-9ev in dist-related rule
6234         Using xz's -9 option is warranted only if you have a very large
6235         tarball (see xz's documentation for the sizes vs. presets), and
6236         requires 64MiB of memory at decompression time.
6237         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6238         Automake's default of just "-e" is fine.  Override on a
6239         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6240
6241 2012-03-01  Eric Blake  <eblake@redhat.com>
6242
6243         maint.mk: allow announcement for non-gnulib project
6244         * maint.mk (announcement): Skip gnulib version if not used.
6245
6246 2012-03-01  Jim Meyering  <meyering@redhat.com>
6247
6248         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6249         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6250         envvar settings cannot interfere.  Otherwise, setting envvars like
6251         prohibit=foo require=bar, etc. would cause spurious test failures.
6252
6253 2012-03-01  Eric Blake  <eblake@redhat.com>
6254
6255         maint.mk: add per-line exclusions to prohibitions
6256         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6257         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6258         (sc_const_long_option): Use it.
6259
6260 2012-03-01  Bruno Haible  <bruno@clisp.org>
6261
6262         Tests for module 'expl-ieee'.
6263         * modules/expl-ieee-tests: New file.
6264         * tests/test-expl-ieee.c: New file.
6265
6266         New module 'expl-ieee'.
6267         * modules/expl-ieee: New file.
6268
6269         Tests for module 'exp-ieee'.
6270         * modules/exp-ieee-tests: New file.
6271         * tests/test-exp-ieee.c: New file.
6272
6273         New module 'exp-ieee'.
6274         * modules/exp-ieee: New file.
6275
6276         Tests for module 'expf-ieee'.
6277         * modules/expf-ieee-tests: New file.
6278         * tests/test-expf-ieee.c: New file.
6279         * tests/test-exp-ieee.h: New file.
6280
6281         New module 'expf-ieee'.
6282         * modules/expf-ieee: New file.
6283
6284 2012-02-29  Bruno Haible  <bruno@clisp.org>
6285
6286         cbrtl-ieee: Work around test failure on IRIX 6.5.
6287         * m4/cbrtl-ieee.m4: New file.
6288         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6289         test whether cbrtl works with a minus zero argument. Replace it if not.
6290         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6292         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6293         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6294         (Depends-on): Update conditions.
6295         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6296         m4/signbit.m4.
6297         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6298         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6299         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6300
6301         Tests for module 'cbrtl-ieee'.
6302         * modules/cbrtl-ieee-tests: New file.
6303         * tests/test-cbrtl-ieee.c: New file.
6304
6305         New module 'cbrtl-ieee'.
6306         * modules/cbrtl-ieee: New file.
6307
6308         Tests for module 'cbrt-ieee'.
6309         * modules/cbrt-ieee-tests: New file.
6310         * tests/test-cbrt-ieee.c: New file.
6311
6312         New module 'cbrt-ieee'.
6313         * modules/cbrt-ieee: New file.
6314
6315         Tests for module 'cbrtf-ieee'.
6316         * modules/cbrtf-ieee-tests: New file.
6317         * tests/test-cbrtf-ieee.c: New file.
6318         * tests/test-cbrt-ieee.h: New file.
6319
6320         New module 'cbrtf-ieee'.
6321         * modules/cbrtf-ieee: New file.
6322
6323 2012-02-29  Bruno Haible  <bruno@clisp.org>
6324
6325         cbrtf: Work around bug in IRIX 6.5 system function.
6326         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6327         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6328         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6329         work.
6330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6331         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6332         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6333         (Depends-on): Update conditions.
6334         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6335
6336 2012-02-29  Bruno Haible  <bruno@clisp.org>
6337
6338         Tests for module 'cbrtl'.
6339         * modules/cbrtl-tests: New file.
6340         * tests/test-cbrtl.c: New file.
6341
6342         New module 'cbrtl'.
6343         * lib/math.in.h (cbrtl): New declaration.
6344         * lib/cbrtl.c: New file.
6345         * m4/cbrtl.m4: New file.
6346         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6348         HAVE_DECL_CBRTL.
6349         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6350         HAVE_DECL_CBRTL.
6351         * modules/cbrtl: New file.
6352         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6353         * doc/posix-functions/cbrtl.texi: Mention the new module.
6354
6355 2012-02-29  Bruno Haible  <bruno@clisp.org>
6356
6357         Tests for module 'cbrtf'.
6358         * modules/cbrtf-tests: New file.
6359         * tests/test-cbrtf.c: New file.
6360
6361         New module 'cbrtf'.
6362         * lib/math.in.h (cbrtf): New declaration.
6363         * lib/cbrtf.c: New file.
6364         * m4/cbrtf.m4: New file.
6365         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6367         HAVE_DECL_CBRTF.
6368         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6369         HAVE_DECL_CBRTF.
6370         * modules/cbrtf: New file.
6371         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6372         * doc/posix-functions/cbrtf.texi: Mention the new module.
6373
6374 2012-02-29  Bruno Haible  <bruno@clisp.org>
6375
6376         cbrt: Provide replacement on MSVC and Minix.
6377         * lib/math.in.h (cbrt): New declaration.
6378         * lib/cbrt.c: New file.
6379         * m4/cbrt.m4: New file.
6380         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6382         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6383         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6384         (Depends-on): Add dependencies.
6385         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6386         * tests/test-math-c++.cc: Check the declaration of cbrt.
6387         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6388         replacement.
6389
6390 2012-02-29  Bruno Haible  <bruno@clisp.org>
6391
6392         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6393         * m4/hypotl-ieee.m4: New file.
6394         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6395         test whether hypotl works with mixed NaN and Infinity arguments.
6396         Replace it if not.
6397         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6399         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6400         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6401         (Depends-on): Update conditions.
6402         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6403         (Depends-on): Add hypot-ieee.
6404         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6405         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6406
6407         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6408         * m4/hypotf-ieee.m4: New file.
6409         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6410         test whether hypotf works with mixed NaN and Infinity arguments.
6411         Replace it if not.
6412         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6413         (Depends-on): Add hypot-ieee.
6414         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6415         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6416
6417         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6418         * lib/math.in.h (hypot): New declaration.
6419         * lib/hypot.c: New file.
6420         * m4/hypot-ieee.m4: New file.
6421         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6422         whether hypot works with mixed NaN and Infinity arguments. Replace it
6423         if not.
6424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6425         REPLACE_HYPOT.
6426         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6427         * modules/hypot (Files): Add lib/hypot.c.
6428         (Depends-on): Add dependencies.
6429         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6430         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6431         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6432         * tests/test-math-c++.cc: Check the declaration of hypot.
6433         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6434
6435         Tests for module 'hypotl-ieee'.
6436         * modules/hypotl-ieee-tests: New file.
6437         * tests/test-hypotl-ieee.c: New file.
6438
6439         New module 'hypotl-ieee'.
6440         * modules/hypotl-ieee: New file.
6441
6442         Tests for module 'hypot-ieee'.
6443         * modules/hypot-ieee-tests: New file.
6444         * tests/test-hypot-ieee.c: New file.
6445
6446         New module 'hypot-ieee'.
6447         * modules/hypot-ieee: New file.
6448
6449         Tests for module 'hypotf-ieee'.
6450         * modules/hypotf-ieee-tests: New file.
6451         * tests/test-hypotf-ieee.c: New file.
6452         * tests/test-hypot-ieee.h: New file.
6453
6454         New module 'hypotf-ieee'.
6455         * modules/hypotf-ieee: New file.
6456
6457 2012-02-29  Bruno Haible  <bruno@clisp.org>
6458
6459         Remove unused variables.
6460         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6461         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6462         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6463         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6464
6465 2012-02-29  Eric Blake  <eblake@redhat.com>
6466
6467         termios: fix pid_t always, not just for tcgetsid
6468         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6469         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6470         just when building tcgetsid.
6471
6472 2012-02-29  Bruno Haible  <bruno@clisp.org>
6473
6474         Tests for module 'hypotl'.
6475         * modules/hypotl-tests: New file.
6476         * tests/test-hypotl.c: New file.
6477
6478         New module 'hypotl'.
6479         * lib/math.in.h (hypotl): New declaration.
6480         * lib/hypotl.c: New file.
6481         * m4/hypotl.m4: New file.
6482         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6484         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6485         * modules/hypotl: New file.
6486         * tests/test-math-c++.cc: Check the hypotl declaration.
6487         * doc/posix-functions/hypotl.texi: Mention the new module.
6488
6489 2012-02-29  Eric Blake  <eblake@redhat.com>
6490
6491         tcgetsid: fix cygwin header bug
6492         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6493
6494         docs: update cygwin progress
6495         * doc/posix-functions/llround.texi (llround): Added in cygwin
6496         1.7.8.
6497         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6498         * doc/glibc-functions/program_invocation_name.texi
6499         (program_invocation_name): Likewise.
6500         * doc/glibc-functions/program_invocation_short_name.texi
6501         (program_invocation_short_name): Likewise.
6502         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6503         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6504         Likewise.
6505         * doc/posix-functions/pthread_spin_destroy.texi
6506         (pthread_spin_destroy): Added in cygwin 1.7.10.
6507         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6508         Likewise.
6509         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6510         Likewise.
6511         * doc/posix-functions/pthread_spin_trylock.texi
6512         (pthread_spin_trylock): Likewise.
6513         * doc/posix-functions/pthread_spin_unlock.texi
6514         (pthread_spin_unlock): Likewise.
6515         * doc/posix-functions/pthread_setschedprio.texi
6516         (pthread_setschedprio): Likewise.
6517         * doc/posix-functions/pthread_attr_getstack.texi
6518         (pthread_attr_getstack): Likewise.
6519         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6520         (pthread_attr_getstackaddr): Likewise.
6521         * doc/glibc-functions/pthread_getattr_np.texi
6522         (pthread_getattr_np): Likewise.
6523         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6524         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6525         * doc/posix-functions/clock_settime.texi (clock_settime):
6526         Likewise.
6527         * doc/posix-functions/pthread_attr_getguardsize.texi
6528         (pthread_attr_getguardsize): Likewise.
6529         * doc/posix-functions/pthread_attr_setguardsize.texi
6530         (pthread_attr_setguardsize): Likewise.
6531         * doc/posix-functions/pthread_attr_setstack.texi
6532         (pthread_attr_setstack): Likewise.
6533         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6534         (pthread_attr_setstackaddr): Likewise.
6535         * doc/posix-functions/clock_getcpuclockid.texi
6536         (clock_getcpuclockid): Likewise.
6537         * doc/posix-functions/pthread_getcpuclockid.texi
6538         (pthread_getcpuclockid): Likewise.
6539         * doc/glibc-functions/error.texi (error): Likewise.
6540         * doc/glibc-functions/error_at_line.texi (error_at_line):
6541         Likewise.
6542         * doc/glibc-functions/error_message_count.texi
6543         (error_message_count): Likewise.
6544         * doc/glibc-functions/error_one_per_line.texi
6545         (error_one_per_line): Likewise.
6546         * doc/glibc-functions/error_print_progname.texi
6547         (error_print_progname): Likewise.
6548         * doc/posix-functions/pthread_condattr_getclock.texi
6549         (pthread_condattr_getclock): Likewise.
6550         * doc/posix-functions/pthread_condattr_setclock.texi
6551         (pthread_condattr_setclock): Likewise.
6552         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6553         Likewise.
6554         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6555         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6556         * doc/glibc-functions/get_current_dir_name.texi
6557         (get_current_dir_name): Likewise.
6558         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6559         Likewise.
6560         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6561         wrong return type.
6562         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6563         1.7.11.
6564
6565 2012-02-29  Bruno Haible  <bruno@clisp.org>
6566
6567         Tests for module 'hypotf'.
6568         * modules/hypotf-tests: New file.
6569         * tests/test-hypotf.c: New file.
6570
6571         New module 'hypotf'.
6572         * lib/math.in.h (hypotf): New declaration.
6573         * lib/hypotf.c: New file.
6574         * m4/hypotf.m4: New file.
6575         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6577         REPLACE_HYPOTF.
6578         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6579         REPLACE_HYPOTF.
6580         * modules/hypotf: New file.
6581         * tests/test-math-c++.cc: Check the hypotf declaration.
6582         * doc/posix-functions/hypotf.texi: Mention the new module.
6583
6584         hypot: Prepare for hypotf module.
6585         * m4/hypot.m4: New file.
6586         * modules/hypot (Files): Add m4/hypot.m4.
6587         (configure.ac): Invoke gl_FUNC_HYPOT.
6588
6589 2012-02-29  Bruno Haible  <bruno@clisp.org>
6590
6591         hypot tests: More tests.
6592         * tests/test-hypot.c: Include <float.h>.
6593         (main): Add tests about overflow and underflow.
6594
6595 2012-02-29  Bruno Haible  <bruno@clisp.org>
6596
6597         math code: Add comments.
6598         * lib/acosl.c: Add comment about related glibc source files.
6599         * lib/asinl.c: Likewise.
6600         * lib/atanl.c: Likewise.
6601         * lib/expl.c: Likewise.
6602         * lib/logl.c: Likewise.
6603         * lib/sincosl.c: Likewise.
6604         * lib/sinl.c: Likewise.
6605         * lib/tanl.c: Likewise.
6606         * lib/trigl.c: Likewise.
6607         * lib/cosl.c: Likewise. Fix comments.
6608
6609 2012-02-28  Bruno Haible  <bruno@clisp.org>
6610
6611         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6612         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6613         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6614         HUGE_VALL are defined.
6615         (numeric_equald): Renamed from numeric_equal.
6616         (numeric_equalf, numeric_equall): New functions.
6617         (main): Check also HUGE_VALF, HUGE_VALL.
6618         * modules/math-tests (Files): Add tests/macros.h.
6619         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6620         HUGE_VALL.
6621
6622 2012-02-28  Bruno Haible  <bruno@clisp.org>
6623
6624         doc: Move ISO C11 feature notes into POSIX chapters.
6625         * doc/posix-functions/aligned_alloc.texi: Renamed from
6626         doc/glibc-functions/aligned_alloc.texi.
6627         * doc/posix-functions/quick_exit.texi: Renamed from
6628         doc/glibc-functions/quick_exit.texi.
6629         * doc/posix-headers/uchar.texi: Renamed from
6630         doc/glibc-headers/uchar.texi.
6631         * doc/posix-functions/c16rtomb.texi: Renamed from
6632         doc/glibc-functions/c16rtomb.texi.
6633         * doc/posix-functions/c32rtomb.texi: Renamed from
6634         doc/glibc-functions/c32rtomb.texi.
6635         * doc/posix-functions/mbrtoc16.texi: Renamed from
6636         doc/glibc-functions/mbrtoc16.texi.
6637         * doc/posix-functions/mbrtoc32.texi: Renamed from
6638         doc/glibc-functions/mbrtoc32.texi.
6639         * doc/gnulib.texi: Update.
6640         (Glibc uchar.h): Remove section.
6641         Suggested by Eric Blake.
6642
6643 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6644
6645         stdnoreturn: port to MSVC better
6646         MSVC standard headers use __declspec(noreturn), so #define noreturn
6647         to empty on that platform.  Reported by Bruno Haible in
6648         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6649         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6650         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6651
6652 2012-02-28  Bruno Haible  <bruno@clisp.org>
6653
6654         doc: Mention new glibc headers and functions.
6655         * doc/glibc-headers/uchar.texi: New file.
6656         * doc/glibc-functions/aligned_alloc.texi: New file.
6657         * doc/glibc-functions/c16rtomb.texi: New file.
6658         * doc/glibc-functions/c32rtomb.texi: New file.
6659         * doc/glibc-functions/clock_adjtime.texi: New file.
6660         * doc/glibc-functions/fanotify_init.texi: New file.
6661         * doc/glibc-functions/fanotify_mark.texi: New file.
6662         * doc/glibc-functions/inet6_opt_append.texi: New file.
6663         * doc/glibc-functions/inet6_opt_find.texi: New file.
6664         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6665         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6666         * doc/glibc-functions/inet6_opt_init.texi: New file.
6667         * doc/glibc-functions/inet6_opt_next.texi: New file.
6668         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6669         * doc/glibc-functions/inet6_rth_add.texi: New file.
6670         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6671         * doc/glibc-functions/inet6_rth_init.texi: New file.
6672         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6673         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6674         * doc/glibc-functions/inet6_rth_space.texi: New file.
6675         * doc/glibc-functions/login.texi: New file.
6676         * doc/glibc-functions/mbrtoc16.texi: New file.
6677         * doc/glibc-functions/mbrtoc32.texi: New file.
6678         * doc/glibc-functions/name_to_handle_at.texi: New file.
6679         * doc/glibc-functions/ntp_gettimex.texi: New file.
6680         * doc/glibc-functions/open_by_handle_at.texi: New file.
6681         * doc/glibc-functions/prlimit.texi: New file.
6682         * doc/glibc-functions/process_vm_readv.texi: New file.
6683         * doc/glibc-functions/process_vm_writev.texi: New file.
6684         * doc/glibc-functions/recvmmsg.texi: New file.
6685         * doc/glibc-functions/scandirat.texi: New file.
6686         * doc/glibc-functions/sendmmsg.texi: New file.
6687         * doc/glibc-functions/setns.texi: New file.
6688         * doc/glibc-functions/timespec_get.texi: New file.
6689         * doc/gnulib.texi: Include them.
6690         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6691         sections.
6692         Reported by Eric Blake.
6693
6694 2012-02-28  Bruno Haible  <bruno@clisp.org>
6695
6696         Avoid compilation errors with MSVC option -fp:strict.
6697         * lib/floor.c: Use MSVC specific pragma fenv_access.
6698         * lib/ceil.c: Likewise.
6699         * lib/trunc.c: Likewise.
6700         * lib/round.c: Likewise.
6701         * lib/rint.c: Likewise.
6702         * lib/fma.c: Likewise.
6703         * lib/integer_length.c: Likewise.
6704         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6705         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6706         * tests/test-floor2.c: Likewise.
6707         * tests/test-floorf2.c: Likewise.
6708         * tests/test-ceil2.c: Likewise.
6709         * tests/test-ceilf2.c: Likewise.
6710         * tests/test-trunc2.c: Likewise.
6711         * tests/test-truncf2.c: Likewise.
6712         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6713
6714 2012-02-27  Bruno Haible  <bruno@clisp.org>
6715
6716         Tests for module 'sqrtl-ieee'.
6717         * modules/sqrtl-ieee-tests: New file.
6718         * tests/test-sqrtl-ieee.c: New file.
6719
6720         New module 'sqrtl-ieee'.
6721         * modules/sqrtl-ieee: New file.
6722
6723         Tests for module 'sqrt-ieee'.
6724         * modules/sqrt-ieee-tests: New file.
6725         * tests/test-sqrt-ieee.c: New file.
6726
6727         New module 'sqrt-ieee'.
6728         * modules/sqrt-ieee: New file.
6729
6730         Tests for module 'sqrtf-ieee'.
6731         * modules/sqrtf-ieee-tests: New file.
6732         * tests/test-sqrtf-ieee.c: New file.
6733         * tests/test-sqrt-ieee.h: New file.
6734
6735         New module 'sqrtf-ieee'.
6736         * modules/sqrtf-ieee: New file.
6737
6738 2012-02-27  Bruno Haible  <bruno@clisp.org>
6739
6740         remainderl-ieee: Work around test failure on OSF/1.
6741         * m4/remainderl-ieee.m4: New file.
6742         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6743         present, test whether remainderl works with a zero second argument.
6744         Replace it if not.
6745         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6747         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6748         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6749         (Depends-on): Update conditions.
6750         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6751         (Depends-on): Add remainder-ieee.
6752         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6753         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6754         module.
6755
6756         remainderf-ieee: Work around test failure on OSF/1.
6757         * m4/remainderf-ieee.m4: New file.
6758         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6759         present, test whether remainderf works with a zero second argument.
6760         Replace it if not.
6761         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6763         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6764         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6765         (Depends-on): Update conditions.
6766         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6767         (Depends-on): Add remainder-ieee.
6768         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6769         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6770         module.
6771
6772         remainder-ieee: Work around test failure on OSF/1.
6773         * m4/remainder-ieee.m4: New file.
6774         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6775         present, test whether remainder works with a zero second argument.
6776         Replace it if not.
6777         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6779         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6780         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6781         (Depends-on): Update dependencies.
6782         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6783         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6784         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6785
6786         Tests for module 'remainderl-ieee'.
6787         * modules/remainderl-ieee-tests: New file.
6788         * tests/test-remainderl-ieee.c: New file.
6789
6790         New module 'remainderl-ieee'.
6791         * modules/remainderl-ieee: New file.
6792
6793         Tests for module 'remainder-ieee'.
6794         * modules/remainder-ieee-tests: New file.
6795         * tests/test-remainder-ieee.c: New file.
6796
6797         New module 'remainder-ieee'.
6798         * modules/remainder-ieee: New file.
6799
6800         Tests for module 'remainderf-ieee'.
6801         * modules/remainderf-ieee-tests: New file.
6802         * tests/test-remainderf-ieee.c: New file.
6803         * tests/test-remainder-ieee.h: New file.
6804
6805         New module 'remainderf-ieee'.
6806         * modules/remainderf-ieee: New file.
6807
6808 2012-02-27  Bruno Haible  <bruno@clisp.org>
6809
6810         modff, modfl: Fix configure syntax error.
6811         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6812         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6813
6814 2012-02-27  Bruno Haible  <bruno@clisp.org>
6815
6816         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6817         * m4/fmodl-ieee.m4: New file.
6818         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6819         whether fmodl works with zero arguments. Replace it if not.
6820         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6821         (Depends-on): Add fmod-ieee.
6822         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6823         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6824
6825         fmodf-ieee: Work around test failure on OSF/1.
6826         * m4/fmodf-ieee.m4: New file.
6827         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6828         whether fmodf works with zero arguments. Replace it if not.
6829         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6831         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6832         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6833         (Depends-on): Update dependencies.
6834         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6835         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6836         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6837
6838         fmodf-ieee: Work around test failure on MSVC 9.
6839         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6840         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6841
6842         fmod-ieee: Work around test failures on OSF/1, mingw.
6843         * m4/fmod-ieee.m4: New file.
6844         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6845         whether fmod works with zero arguments. Replace it if not.
6846         * lib/math.in.h (fmod): New declaration.
6847         * lib/fmod.c: New file.
6848         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6850         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6851         * modules/fmod (Files): Add lib/fmod.c.
6852         (Depends-on): Add math, isinf, trunc, fma.
6853         (configure.ac): Arrange to compile lib/fmod.c if needed.
6854         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6855         m4/signbit.m4.
6856         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6857         * tests/test-math-c++.cc: Check the declaration of fmod.
6858         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6859
6860         fmodl-ieee: Fix test failures.
6861         * lib/fmodl.c (fmodl): Treat Inf specially.
6862         * modules/fmodl (Depends-on): Add isinf.
6863
6864         Tests for module 'fmodl-ieee'.
6865         * modules/fmodl-ieee-tests: New file.
6866         * tests/test-fmodl-ieee.c: New file.
6867
6868         New module 'fmodl-ieee'.
6869         * modules/fmodl-ieee: New file.
6870
6871         Tests for module 'fmod-ieee'.
6872         * modules/fmod-ieee-tests: New file.
6873         * tests/test-fmod-ieee.c: New file.
6874
6875         New module 'fmod-ieee'.
6876         * modules/fmod-ieee: New file.
6877
6878         Tests for module 'fmodf-ieee'.
6879         * modules/fmodf-ieee-tests: New file.
6880         * tests/test-fmodf-ieee.c: New file.
6881         * tests/test-fmod-ieee.h: New file.
6882
6883         New module 'fmodf-ieee'.
6884         * modules/fmodf-ieee: New file.
6885
6886 2012-02-27  Bruno Haible  <bruno@clisp.org>
6887
6888         Tests for module 'rintl-ieee'.
6889         * modules/rintl-ieee-tests: New file.
6890         * tests/test-rintl-ieee.c: New file.
6891
6892         New module 'rintl-ieee'.
6893         * modules/rintl-ieee: New file.
6894
6895         Tests for module 'rint-ieee'.
6896         * modules/rint-ieee-tests: New file.
6897         * tests/test-rint-ieee.c: New file.
6898
6899         New module 'rint-ieee'.
6900         * modules/rint-ieee: New file.
6901
6902         Tests for module 'rintf-ieee'.
6903         * modules/rintf-ieee-tests: New file.
6904         * tests/test-rintf-ieee.c: New file.
6905         * tests/test-rint-ieee.h: New file.
6906
6907         New module 'rintf-ieee'.
6908         * modules/rintf-ieee: New file.
6909
6910 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6911
6912         regex: re_search etc. should return -2 when memory exhausted
6913         This bug was uncovered when testing 'grep'.  Without the fix,
6914         re_search and friends return -1 when memory is exhausted, but -1
6915         means no match, and this causes grep to falsely report no-match
6916         instead of memory-exhaustion.  See
6917         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6918         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6919         trouble; this can occur if re_search_internal ran out of memory.
6920
6921 2012-02-26  Bruno Haible  <bruno@clisp.org>
6922
6923         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6924         * m4/modfl-ieee.m4: New file.
6925         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6926         whether modfl works with Inf. Replace it if not.
6927         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6929         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6930         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6931         (Depends-on): Update dependencies.
6932         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6933         m4/signbit.m4.
6934         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6935         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6936
6937         modfl-ieee: Fix dependencies.
6938         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6939
6940         modfl-ieee: Fix test failures.
6941         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6942         * modules/modfl (Depends-on): Add isfinite, isinf.
6943
6944         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6945         * m4/modff-ieee.m4: New file.
6946         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6947         whether modff works with NaN and Inf. Replace it if not.
6948         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6950         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6951         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6952         (Depends-on): Update dependencies.
6953         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6954         m4/signbit.m4.
6955         (Depends-on): Add modf-ieee.
6956         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6957         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6958
6959         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6960         * m4/modf-ieee.m4: New file.
6961         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6962         whether modf works with NaN and Inf. Replace it if not.
6963         * lib/math.in.h (modf): New declaration.
6964         * lib/modf.c: New file.
6965         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6967         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6968         * modules/modf (Files): Add lib/modf.c.
6969         (Depends-on): Add math, isfinite, trunc, isinf.
6970         (configure.ac): Addrange to compile lib/modf.c if needed.
6971         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6972         m4/signbit.m4.
6973         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6974         * tests/test-math-c++.cc: Check the declaration of modf.
6975         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6976
6977         Tests for module 'modfl-ieee'.
6978         * modules/modfl-ieee-tests: New file.
6979         * tests/test-modfl-ieee.c: New file.
6980
6981         New module 'modfl-ieee'.
6982         * modules/modfl-ieee: New file.
6983
6984         Tests for module 'modf-ieee'.
6985         * modules/modf-ieee-tests: New file.
6986         * tests/test-modf-ieee.c: New file.
6987
6988         New module 'modf-ieee'.
6989         * modules/modf-ieee: New file.
6990
6991         Tests for module 'modff-ieee'.
6992         * modules/modff-ieee-tests: New file.
6993         * tests/test-modff-ieee.c: New file.
6994         * tests/test-modf-ieee.h: New file.
6995
6996         New module 'modff-ieee'.
6997         * modules/modff-ieee: New file.
6998
6999 2012-02-26  Bruno Haible  <bruno@clisp.org>
7000
7001         Tests for module 'fabsl-ieee'.
7002         * modules/fabsl-ieee-tests: New file.
7003         * tests/test-fabsl-ieee.c: New file.
7004
7005         New module 'fabsl-ieee'.
7006         * modules/fabsl-ieee: New file.
7007
7008         Tests for module 'fabs-ieee'.
7009         * modules/fabs-ieee-tests: New file.
7010         * tests/test-fabs-ieee.c: New file.
7011
7012         New module 'fabs-ieee'.
7013         * modules/fabs-ieee: New file.
7014
7015         Tests for module 'fabsf-ieee'.
7016         * modules/fabsf-ieee-tests: New file.
7017         * tests/test-fabsf-ieee.c: New file.
7018         * tests/test-fabs-ieee.h: New file.
7019
7020         New module 'fabsf-ieee'.
7021         * modules/fabsf-ieee: New file.
7022
7023 2012-02-26  Bruno Haible  <bruno@clisp.org>
7024
7025         Tests for module 'fmal-ieee'.
7026         * modules/fmal-ieee-tests: New file.
7027         * tests/test-fmal-ieee.c: New file.
7028
7029         New module 'fmal-ieee'.
7030         * modules/fmal-ieee: New file.
7031
7032         Tests for module 'fma-ieee'.
7033         * modules/fma-ieee-tests: New file.
7034         * tests/test-fma-ieee.c: New file.
7035
7036         New module 'fma-ieee'.
7037         * modules/fma-ieee: New file.
7038
7039         Tests for module 'fmaf-ieee'.
7040         * modules/fmaf-ieee-tests: New file.
7041         * tests/test-fmaf-ieee.c: New file.
7042         * tests/test-fma-ieee.h: New file.
7043
7044         New module 'fmaf-ieee'.
7045         * modules/fmaf-ieee: New file.
7046
7047 2012-02-26  Bruno Haible  <bruno@clisp.org>
7048
7049         Tests for module 'ldexpl-ieee'.
7050         * modules/ldexpl-ieee-tests: New file.
7051         * tests/test-ldexpl-ieee.c: New file.
7052
7053         New module 'ldexpl-ieee'.
7054         * modules/ldexpl-ieee: New file.
7055
7056         Tests for module 'ldexp-ieee'.
7057         * modules/ldexp-ieee-tests: New file.
7058         * tests/test-ldexp-ieee.c: New file.
7059
7060         New module 'ldexp-ieee'.
7061         * modules/ldexp-ieee: New file.
7062
7063         Tests for module 'ldexpf-ieee'.
7064         * modules/ldexpf-ieee-tests: New file.
7065         * tests/test-ldexpf-ieee.c: New file.
7066         * tests/test-ldexp-ieee.h: New file.
7067
7068         New module 'ldexpf-ieee'.
7069         * modules/ldexpf-ieee: New file.
7070
7071 2012-02-26  Bruno Haible  <bruno@clisp.org>
7072
7073         Refactor frexp*-ieee tests.
7074         * tests/test-frexp-ieee.h: New file.
7075         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7076         (main): Just call test_function.
7077         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7078         (main): Just call test_function.
7079         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7080         (main): Just call test_function.
7081         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7082         * modules/frexp-ieee-tests (Files): Likewise.
7083         * modules/frexpl-ieee-tests (Files): Likewise.
7084
7085         Tests for module 'frexpl-ieee'.
7086         * modules/frexpl-ieee-tests: New file.
7087         * tests/test-frexpl-ieee.c: New file.
7088
7089         New module 'frexpl-ieee'.
7090         * modules/frexpl-ieee: New file.
7091
7092         Tests for module 'frexp-ieee'.
7093         * modules/frexp-ieee-tests: New file.
7094         * tests/test-frexp-ieee.c: New file.
7095
7096         New module 'frexp-ieee'.
7097         * modules/frexp-ieee: New file.
7098
7099         Tests for module 'frexpf-ieee'.
7100         * modules/frexpf-ieee-tests: New file.
7101         * tests/test-frexpf-ieee.c: New file.
7102
7103         New module 'frexpf-ieee'.
7104         * modules/frexpf-ieee: New file.
7105
7106 2012-02-26  Bruno Haible  <bruno@clisp.org>
7107
7108         roundl-ieee tests: More tests.
7109         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7110         (main): Add tests for [MX] shaded specification in POSIX.
7111         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7112         (Depends-on): Add isnanl-nolibm.
7113
7114         round-ieee tests: More tests.
7115         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7116         (main): Add tests for [MX] shaded specification in POSIX.
7117         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7118         (Depends-on): Add isnand-nolibm.
7119
7120         roundf-ieee tests: More tests.
7121         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7122         (main): Add tests for [MX] shaded specification in POSIX.
7123         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7124         (Depends-on): Add isnanf-nolibm.
7125
7126         truncl-ieee tests: More tests.
7127         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7128         (main): Add tests for [MX] shaded specification in POSIX.
7129         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7130         (Depends-on): Add isnanl-nolibm.
7131
7132         trunc-ieee tests: More tests.
7133         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7134         (main): Add tests for [MX] shaded specification in POSIX.
7135         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7136         (Depends-on): Add isnand-nolibm.
7137
7138         truncf-ieee tests: More tests.
7139         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7140         (main): Add tests for [MX] shaded specification in POSIX.
7141         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7142         (Depends-on): Add isnanf-nolibm.
7143
7144         ceill-ieee tests: More tests.
7145         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7146         (main): Add tests for [MX] shaded specification in POSIX.
7147         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7148         (Depends-on): Add isnanl-nolibm.
7149
7150         ceil-ieee tests: More tests.
7151         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7152         (main): Add tests for [MX] shaded specification in POSIX.
7153         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7154         (Depends-on): Add isnand-nolibm.
7155
7156         ceilf-ieee tests: More tests.
7157         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7158         (main): Add tests for [MX] shaded specification in POSIX.
7159         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7160         (Depends-on): Add isnanf-nolibm.
7161
7162         floorl-ieee tests: More tests.
7163         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7164         (main): Add tests for [MX] shaded specification in POSIX.
7165         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7166         (Depends-on): Add isnanl-nolibm.
7167
7168         floor-ieee tests: More tests.
7169         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7170         (main): Add tests for [MX] shaded specification in POSIX.
7171         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7172         (Depends-on): Add isnand-nolibm.
7173
7174         floorf-ieee tests: More tests.
7175         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7176         (main): Add tests for [MX] shaded specification in POSIX.
7177         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7178         (Depends-on): Add isnanf-nolibm.
7179
7180 2012-02-26  Bruno Haible  <bruno@clisp.org>
7181
7182         fpieee: More comments.
7183         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7184
7185 2012-02-25  Bruno Haible  <bruno@clisp.org>
7186
7187         Tests for module 'log10l'.
7188         * modules/log10l-tests: New file.
7189         * tests/test-log10l.c: New file.
7190         * tests/test-math-c++.cc: Check the declaration of log10l.
7191
7192         New module 'log10l'.
7193         * lib/math.in.h (log10l): New declaration.
7194         * lib/log10l.c: New file.
7195         * m4/log10l.m4: New file.
7196         * modules/log10l: New file.
7197         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7199         HAVE_DECL_LOG10L.
7200         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7201         HAVE_DECL_LOG10L.
7202         * doc/posix-functions/log10l.texi: Mention the new module.
7203
7204 2012-02-25  Bruno Haible  <bruno@clisp.org>
7205
7206         fmodl, remainder*: Avoid wrong results due to rounding errors.
7207         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7208         expected bounds.
7209         * lib/remainderf.c (remainderf): Likewise.
7210         * lib/remainder.c (remainder): Likewise.
7211         * lib/remainderl.c (remainderl): Likewise.
7212
7213 2012-02-25  Bruno Haible  <bruno@clisp.org>
7214
7215         Tests for module 'remainderl'.
7216         * modules/remainderl-tests: New file.
7217         * tests/test-remainderl.c: New file.
7218         * tests/test-math-c++.cc: Check the declaration of remainderl.
7219
7220         New module 'remainderl'.
7221         * lib/math.in.h (remainderl): New declaration.
7222         * lib/remainderl.c: New file.
7223         * m4/remainderl.m4: New file.
7224         * modules/remainderl: New file.
7225         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7227         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7228         HAVE_REMAINDERL.
7229         * doc/posix-functions/remainderl.texi: Mention the new module.
7230
7231 2012-02-25  Bruno Haible  <bruno@clisp.org>
7232
7233         Tests for module 'remainderf'.
7234         * modules/remainderf-tests: New file.
7235         * tests/test-remainderf.c: New file.
7236         * tests/test-math-c++.cc: Check the declaration of remainderf.
7237
7238         New module 'remainderf'.
7239         * lib/math.in.h (remainderf): New declaration.
7240         * lib/remainderf.c: New file.
7241         * m4/remainderf.m4: New file.
7242         * modules/remainderf: New file.
7243         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7245         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7246         HAVE_REMAINDERF.
7247         * doc/posix-functions/remainderf.texi: Mention the new module.
7248
7249 2012-02-25  Bruno Haible  <bruno@clisp.org>
7250
7251         remainder: Support for MSVC.
7252         * lib/math.in.h (remainder): New declaration.
7253         * lib/remainder.c: New file.
7254         * m4/remainder.m4: New file.
7255         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7256         (Depends-on): Add math, round, fma.
7257         (configure.ac): Use results of gl_FUNC_REMAINDER.
7258         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7260         HAVE_DECL_REMAINDER.
7261         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7262         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7263         * tests/test-math-c++.cc: Check the declaration of remainder.
7264         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7265         problems are fixed.
7266
7267 2012-02-25  Bruno Haible  <bruno@clisp.org>
7268
7269         Tests for module 'fmodl'.
7270         * modules/fmodl-tests: New file.
7271         * tests/test-fmodl.c: New file.
7272         * tests/test-math-c++.cc: Check the declaration of fmodl.
7273
7274         New module 'fmodl'.
7275         * lib/math.in.h (fmodl): New declaration.
7276         * lib/fmodl.c: New file.
7277         * m4/fmodl.m4: New file.
7278         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7280         REPLACE_FMODL.
7281         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7282         REPLACE_FMODL.
7283         * modules/fmodl: New file.
7284         * doc/posix-functions/fmodl.texi: Mention the new module.
7285
7286 2012-02-25  Bruno Haible  <bruno@clisp.org>
7287
7288         Tests for module 'modfl'.
7289         * modules/modfl-tests: New file.
7290         * tests/test-modfl.c: New file.
7291         * tests/test-math-c++.cc: Check the declaration of modfl.
7292
7293         New module 'modfl'.
7294         * lib/math.in.h (modfl): New declaration.
7295         * lib/modfl.c: New file.
7296         * m4/modfl.m4: New file.
7297         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7299         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7300         * modules/modfl: New file.
7301         * doc/posix-functions/modfl.texi: Mention the new module.
7302
7303 2012-02-25  Bruno Haible  <bruno@clisp.org>
7304
7305         Tests for module 'fabsl'.
7306         * modules/fabsl-tests: New file.
7307         * tests/test-fabsl.c: New file.
7308         * tests/test-math-c++.cc: Check the declaration of fabsl.
7309
7310         New module 'fabsl'.
7311         * lib/math.in.h (fabsl): New declaration.
7312         * lib/fabsl.c: New file.
7313         * m4/fabsl.m4: New file.
7314         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7316         REPLACE_FABSL.
7317         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7318         REPLACE_FABSL.
7319         * modules/fabsl: New file.
7320         * doc/posix-functions/fabsl.texi: Mention the new module.
7321
7322 2012-02-25  Bruno Haible  <bruno@clisp.org>
7323
7324         fabs tests: More tests.
7325         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7326         (zero): New variable.
7327         (main): Add tests for signed zero.
7328         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7329
7330         fabsf tests: More tests.
7331         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7332         (zero): New variable.
7333         (main): Add tests for signed zero.
7334         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7335
7336 2012-02-24  Bruno Haible  <bruno@clisp.org>
7337
7338         atanl: Provide function definition on MSVC.
7339         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7340         function pointer.
7341         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7342
7343 2012-02-24  Bruno Haible  <bruno@clisp.org>
7344
7345         acosl: Provide function definition on MSVC.
7346         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7347         function pointer.
7348         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7349
7350 2012-02-24  Bruno Haible  <bruno@clisp.org>
7351
7352         asinl: Provide function definition on MSVC.
7353         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7354         function pointer.
7355         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7356
7357 2012-02-24  Bruno Haible  <bruno@clisp.org>
7358
7359         tanl: Provide function definition on MSVC.
7360         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7361         function pointer.
7362         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7363
7364 2012-02-24  Bruno Haible  <bruno@clisp.org>
7365
7366         cosl: Provide function definition on MSVC.
7367         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7368         function pointer.
7369         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7370
7371 2012-02-24  Bruno Haible  <bruno@clisp.org>
7372
7373         sinl: Provide function definition on MSVC.
7374         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7375         function pointer.
7376         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7377
7378 2012-02-24  Bruno Haible  <bruno@clisp.org>
7379
7380         logl: Provide function definition on MSVC.
7381         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7382         function pointer.
7383         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7384
7385 2012-02-24  Bruno Haible  <bruno@clisp.org>
7386
7387         expl: Provide function definition on MSVC.
7388         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7389         function pointer.
7390         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7391
7392 2012-02-24  Bruno Haible  <bruno@clisp.org>
7393
7394         sqrtl: Provide function definition on MSVC.
7395         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7396         a function pointer.
7397         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7398
7399 2012-02-24  Bruno Haible  <bruno@clisp.org>
7400
7401         ceill: Provide function definition on MSVC.
7402         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7403         used as a function pointer.
7404         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7405
7406 2012-02-24  Bruno Haible  <bruno@clisp.org>
7407
7408         floorl: Provide function definition on MSVC.
7409         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7410         used as a function pointer.
7411         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7412
7413 2012-02-24  Bruno Haible  <bruno@clisp.org>
7414
7415         ceilf: Provide function definition on MSVC.
7416         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7417         used as a function pointer.
7418         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7419
7420 2012-02-24  Bruno Haible  <bruno@clisp.org>
7421
7422         floorf: Provide function definition on MSVC.
7423         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7424         used as a function pointer.
7425         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7426
7427 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7428
7429         stdnoreturn: new module
7430         This implements a replacement for C11's <stdnoreturn.h>.
7431         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7432         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7433         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7434         * tests/test-stdnoreturn.c: New files.
7435
7436 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7437
7438         regex: fix false multibyte matches in some regular expressions
7439         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7440         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7441         * lib/regex_internal.c (re_string_skip_chars):
7442         Fix miscomputation of remain_len that may cause incomplete
7443         multi-byte character and false match.
7444
7445 2012-02-24  Jim Meyering  <meyering@redhat.com>
7446
7447         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7448         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7449         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7450         Remove now-unnecessary str''cmp obfuscation.
7451         Suggested by Akim Demaille.
7452
7453 2012-02-24  Bruno Haible  <bruno@clisp.org>
7454
7455         streq: Rename macro.
7456         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7457         * NEWS: Mention the change.
7458         * lib/mbrtowc.c (mbrtowc): Update.
7459         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7460         * lib/wcwidth.c (wcwidth): Update.
7461         Suggested by Akim Demaille and Jim Meyering.
7462
7463 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7464
7465         regex: fix typo in definition of MIN
7466         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7467         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7468
7469 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7470             Bruno Haible  <bruno@clisp.org>
7471
7472         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7473         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7474         entries into a stack-allocated buffer directly.
7475         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7476
7477 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7478             Bruno Haible  <bruno@clisp.org>
7479
7480         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7481
7482          - There were several instances of this pattern:
7483
7484              for (;;) {
7485                n = acl (f, GETACLCNT, 0, NULL);
7486                [ allocate an array A of size N ]
7487                if (acl (f, GETACL, n, a) == n)
7488                  break;
7489              }
7490
7491            This loop might never terminate if some other process is constantly
7492            manipulating the file's ACL.  The loop should be rewritten to
7493            terminate.
7494
7495          - The acl (... GETACLNT ...) call is merely an optimization; its value
7496            is merely a hint as to how big to make the array.  A better
7497            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7498            and just guess a reasonably-big size, growing the size and trying
7499            again if it's not large enough.  This guarantees termination, and
7500            saves a system call.
7501
7502         * lib/acl-internal.h: Include <limits.h>.
7503         (MIN, SIZE_MAX): New macros.
7504         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7505         a stack-allocated buffer, and use malloc if it does not fit. Don't
7506         use GETACLCNT.
7507         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7508
7509 2012-02-19  Bruno Haible  <bruno@clisp.org>
7510
7511         acl: Fix endless loop on Solaris with vxfs.
7512         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7513         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7514         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7515         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7516         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7517         Reported by Bill Jones in
7518         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7519
7520 2012-02-19  Bruno Haible  <bruno@clisp.org>
7521
7522         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7523         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7524         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7525         that this function returns 0 in some more cases.
7526
7527 2012-02-19  Bruno Haible  <bruno@clisp.org>
7528
7529         acl: Update doc references.
7530         * doc/acl-resources.txt: Update links to Solaris documentation.
7531
7532 2012-02-19  Bruno Haible  <bruno@clisp.org>
7533
7534         Fix test failure in many locales on Solaris 11.
7535         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7536         'tr' arguments.
7537         * tests/test-pipe-filter-ii1.c (main): Likewise.
7538         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7539         expressions in the C locale.
7540         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7541         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7542
7543 2012-02-19  Bruno Haible  <bruno@clisp.org>
7544
7545         gnulib-tool: Improve usage message.
7546         * gnulib-tool (func_usage): Move doc of --help and --version to the
7547         section "Operation modes".
7548
7549 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7550
7551         README-release: make it easier to execute commands
7552         * top/README-release: break commands out on to separate lines.
7553
7554 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7555
7556         GNUmakefile: simplify detection of unconfigured trees
7557         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7558         whether the tree make is being run from is already configured or
7559         not.  Related simplifications.
7560
7561 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7562
7563         * gnulib-tool (func_usage): Document --help and --version.
7564
7565 2012-02-11  Jim Meyering  <meyering@redhat.com>
7566
7567         bootstrap: don't exit 0 upon gnulib-tool failure
7568         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7569         its exit status, not 0.
7570
7571 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7572
7573         README-release: various improvements
7574         * top/README-release: Give a command to push changes for the
7575         release.  Add "distcheck" to list of other pre-release checks.
7576         Fix instance of "make stable" which should be "make TYPE".
7577
7578 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7579
7580         maint: replace FSF snail-mail addresses with URLs
7581         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7582         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7583         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7584         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7585         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7586         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7587         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7588         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7589         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7590         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7591         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7592         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7593         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7594         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7595         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7596         * lib/glthread/thread.c, lib/glthread/thread.h:
7597         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7598         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7599         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7600         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7601         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7602         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7603         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7604         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7605         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7606         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7607         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7608         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7609         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7610         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7611         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7612         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7613         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7614         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7615         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7616         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7617         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7618         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7619         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7620         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7621         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7622         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7623         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7624         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7625         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7626         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7627         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7628         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7629         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7630         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7631         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7632         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7633         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7634         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7635         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7636         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7637         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7638         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7639         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7640         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7641         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7642         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7643         * tests/test-poll.c, tests/test-quotearg-simple.c:
7644         * tests/test-quotearg.c, tests/test-quotearg.h:
7645         * tests/test-round-ieee.c, tests/test-round1.c:
7646         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7647         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7648         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7649         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7650         * tests/test-strerror.c, tests/test-strerror_r.c:
7651         * tests/test-strsignal.c, tests/test-strverscmp.c:
7652         * tests/test-xmemdup0.c:
7653         Replace FSF snail mail addresses with URLs, as per GNU coding
7654         standards.  See glibc bug
7655         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7656
7657 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7658
7659         README-release: capitalize a word and split a line
7660         * top/README-release: Fix punctuation and spacing.
7661
7662 2012-02-08  Akim Demaille  <demaille@gostai.com>
7663
7664         fatal-signal: use C prototypes (with explicit void).
7665         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7666         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7667
7668 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7669
7670         regex: spelling fix
7671         * lib/regexec.c: spelling fix
7672
7673         regex: rely on stdint.h for SIZE_MAX
7674         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7675
7676 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7677
7678         regex: merge glibc changes
7679
7680         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7681         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7682         (init_word_char): Work even if bitset words are not exactly 32 or
7683         64 bits wide.  Don't assume there are no padding bits.
7684         * lib/regex.c [_LIBC]: Do not include <config.h>.
7685         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7686         and -Wtype-limits.
7687         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7688         needless disagreement with glibc.  All uses changed.  Define it to
7689         1 only if _GNU_SOURCE, to match glibc.
7690         (_REG_RM_NAME): Remove; no longer needed, since the names in
7691         question are now all protected by __USE_GNU.
7692         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7693         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7694         * lib/regex_internal.h (MIN): New macro.
7695
7696         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7697         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7698
7699         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7700         * lib/regex_internal.c (re_string_fetch_byte_case):
7701         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7702         is miscompiled, and it turns out it is because of an incorrect
7703         attribute on re_string_fetch_byte_case.  Unlike
7704         re_string_peek_byte_case, this one is really not pure, it modifies
7705         memory (increments pstr->cur_idx), and with the pure attribute GCC
7706         assumed it doesn't and it cached the presumed value of
7707         regexp->cur_idx in a variable across the
7708          for (;; ++i)
7709            {
7710              if (i >= BRACKET_NAME_BUF_SIZE)
7711                return REG_EBRACK;
7712              if (token->type == OP_OPEN_CHAR_CLASS)
7713                ch = re_string_fetch_byte_case (regexp);
7714              else
7715                ch = re_string_fetch_byte (regexp);
7716              if (re_string_eoi(regexp))
7717                return REG_EBRACK;
7718              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7719                break;
7720              elem->opr.name[i] = ch;
7721            }
7722
7723         2011-11-29 Andreas Schwab <schwab@redhat.com>
7724         * lib/regcomp.c (build_equiv_class):
7725         Fix access after end of search string in regex matcher.
7726
7727         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7728         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7729
7730         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7731         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7732
7733         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7734         * lib/regcomp.c (parse_branch, parse_sub_exp):
7735         More regex memory leak fixes and tests.
7736         (parse_sub_exp, parse_bracket_exp):
7737         Fix memory leak for some invalid regular expressions.
7738
7739         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7740         * lib/regex_internal.c, lib/regexec.c:
7741         Fix unnecessary overallocation due to incomplete character.  When
7742         incomplete characters are found at the end of a string the code
7743         ran amok and allocated lots of memory.  Stricter limits are now in
7744         place.
7745
7746         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7747         * lib/regex.h: Update documentation.
7748
7749         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7750         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7751
7752         2010-05-05 Andreas Schwab <schwab@redhat.com>
7753         * lib/regexec.c (find_collation_sequence_value):
7754         Fix lookup of collation sequence value during regexp matching.
7755
7756         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7757         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7758
7759         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7760         * lib/regex.h: Cleanup namespace.
7761
7762         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7763         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7764
7765         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7766         * lib/regex_internal.h: Prevent some declarations and definitions
7767         to be seen when used in tests.
7768
7769         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7770         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7771         __libc_lock_* macros if not _LIBC.
7772         (struct re_dfa_t): Add lock.
7773
7774 2012-02-07  Eric Blake  <eblake@redhat.com>
7775
7776         maint.mk: also prohibit lower-case @var@
7777         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7778         lower case, like @top_srcdir@.
7779
7780 2012-02-04  Eric Blake  <eblake@redhat.com>
7781
7782         canonicalize: avoid uninitialized memory use
7783         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7784         random '/' left in dest.
7785         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7786
7787 2012-02-04  Bruno Haible  <bruno@clisp.org>
7788
7789         isatty: Fix test failure of ptsname_r on native Windows.
7790         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7791         and don't set errno.
7792         (isatty): Test first whether fd is valid. Set errno when returning 0.
7793
7794 2012-02-04  Bruno Haible  <bruno@clisp.org>
7795
7796         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7797         * tests/test-spawn-pipe-main.c: Include progname.h.
7798         (main): Invoke set_program_name.
7799         * modules/spawn-pipe-tests (Depends-on): Add progname.
7800
7801         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7802         * tests/test-nonblocking-socket-main.c: Include progname.h.
7803         (main): Invoke set_program_name.
7804         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7805
7806         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7807         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7808         (main): Invoke set_program_name.
7809         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7810
7811 2012-02-04  Eric Blake  <eblake@redhat.com>
7812
7813         canonicalize-lgpl: fix // handling
7814         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7815
7816         canonicalize: fix // handling
7817         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7818         /// to //, since only // is special.
7819
7820 2012-02-04  Bruno Haible  <bruno@clisp.org>
7821
7822         ioctl: Fix test failure on native Windows.
7823         * lib/ioctl.c: Include msvc-nothrow.h.
7824         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7825
7826 2012-02-04  Bruno Haible  <bruno@clisp.org>
7827
7828         fsync: Avoid test failure on native Windows.
7829         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7830         read-only.
7831
7832 2012-02-04  Bruno Haible  <bruno@clisp.org>
7833
7834         sys_select: Avoid syntax error on OpenBSD 5.0.
7835         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7836         currently being included, just include the system's <sys/select.h>.
7837
7838 2012-02-04  Bruno Haible  <bruno@clisp.org>
7839
7840         sys_select: Avoid syntax error on OpenBSD 5.0.
7841         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7842         <sys/select.h>, not before.
7843         Reported by Jiri B <jirib@devio.us>.
7844
7845 2012-02-04  Bruno Haible  <bruno@clisp.org>
7846
7847         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7848         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7849         global variables.
7850         * tests/test-get-rusage-data.c (main): Likewise.
7851         Reported by Jim Meyering.
7852
7853 2012-02-04  Bruno Haible  <bruno@clisp.org>
7854
7855         stdioext: Fix last commit.
7856         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7857
7858 2012-02-03  Bruno Haible  <bruno@clisp.org>
7859
7860         stdioext: Add tentative support for Plan9.
7861         * lib/stdio-impl.h: Include <errno.h>.
7862         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7863         * lib/freadable.c (freadable): Likewise.
7864         * lib/fwritable.c (fwritable): Likewise.
7865         * lib/fbufmode.c (fbufmode): Likewise.
7866         * lib/freading.c (freading): Likewise.
7867         * lib/fwriting.c (fwriting): Likewise.
7868         * lib/freadptr.c (freadptr): Likewise.
7869         * lib/freadseek.c (freadptrinc): Likewise.
7870         * lib/freadahead.c (freadahead): Likewise.
7871         * lib/fpurge.c (fpurge): Likewise.
7872         * lib/fseeko.c (rpl_fseeko): Likewise.
7873         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7874         Reported by Jens Staal <staal1978@gmail.com>.
7875
7876 2012-02-02  Jim Meyering  <meyering@redhat.com>
7877
7878         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7879         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7880         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7881         not even to try to add the attribute.  Instead, add a pragma to suppress
7882         the suggestion/warning.
7883
7884 2012-01-31  Karl Berry  <karl@gnu.org>
7885
7886         setstate doc: typo.
7887         * doc/posix-functions/setstate.texi (setstate): { not (.
7888
7889 2012-01-31  Bruno Haible  <bruno@clisp.org>
7890
7891         popen: Make more robust on Windows.
7892         * lib/popen.c: On native Windows, use the _popen based code even if
7893         HAVE_POPEN is set.
7894         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7895         environment variable on native Windows.
7896
7897 2012-01-30  Bruno Haible  <bruno@clisp.org>
7898
7899         pclose: Fix typo.
7900         * lib/stdio.in.h (pclose): Fix typo in warning message.
7901
7902 2012-01-30  Bruno Haible  <bruno@clisp.org>
7903
7904         doc about getlogin_r, setstate.
7905         * doc/posix-functions/getlogin_r.texi: List the incompatible
7906         declaration problem under "not fixed by gnulib".
7907         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7908         problem on Solaris 11 and other platforms.
7909
7910 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7911             Bruno Haible  <bruno@clisp.org>
7912
7913         poll tests: Make test more robust.
7914         * tests/test-poll.c: Include macros.h.
7915         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7916         return value of various I/O operations.
7917         * modules/poll-tests (Files): Add tests/macros.h.
7918
7919 2012-01-30  Bruno Haible  <bruno@clisp.org>
7920
7921         sys_stat: Fix support for mingw64 and MSVC.
7922         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7923         header files already do it.
7924         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7925         stat itself.
7926         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7927
7928 2012-01-30  Bruno Haible  <bruno@clisp.org>
7929
7930         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7932         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7933
7934 2012-01-29  Bruno Haible  <bruno@clisp.org>
7935
7936         quotearg: Fix test failure on MacOS X 10.5.
7937         * tests/test-quotearg-simple.c: Include localcharset.h.
7938         (main): If the locale encoding is not ASCII, bypass the tests of
7939         locale_quoting_style and clocale_quoting_style.
7940         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7941
7942 2012-01-29  Jim Meyering  <meyering@redhat.com>
7943
7944         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7945         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7946         detect uses of canonicalize_file_name.
7947
7948 2012-01-28  Bruno Haible  <bruno@clisp.org>
7949
7950         test-framework-sh: Fix test failure with AIX 7.1 diff.
7951         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7952         in column 1, like 'diff -c' does.
7953         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7954         whether 'diff -u' is used. Instead, test whether the output contains
7955         some '@' character.
7956
7957 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7958
7959         strtoimax: eliminate need for stdint.h, inttypes.h checks
7960         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7961         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7962         the prerequisites for a recently-introduced strtoimax test.
7963         I guess this might cause strtoimax to be replaced when not
7964         strictly necessary on older hosts, but this shouldn't introduce
7965         any bugs and it should make Emacs 'configure' faster on typical
7966         modern hosts.  Problem discovered when importing the latest gnulib
7967         to an Emacs test version.
7968         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7969
7970 2012-01-28  Bruno Haible  <bruno@clisp.org>
7971
7972         sys_time: Override 'struct timeval' on some native Windows platforms.
7973         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7974         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7975         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7976         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7977         needs to be overridden.
7978         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7979         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7980         * tests/test-sys_select.c: Check that the tv_sec member has the same
7981         size as a 'time_t'.
7982         * tests/test-sys_time.c: Likewise.
7983         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7984         is set, set also REPLACE_GETTIMEOFDAY.
7985         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7986         convert the resulting 'struct timeval' before returning.
7987         * lib/select.c: Include <sys/time.h>.
7988         (select, timeval): Undefine at the right place.
7989         * modules/select (Depends-on): Add sys_time.
7990         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7991         some Windows platforms.
7992         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7993
7994 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7995
7996         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7997         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7998         an integer.
7999         * lib/fcntl.c (dupfd): Likewise.
8000         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8001
8002 2012-01-28  Bruno Haible  <bruno@clisp.org>
8003
8004         fcntl: Avoid compilation error on native Windows.
8005         * modules/fcntl (Depends-on): Add 'close'.
8006
8007 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8008
8009         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8010         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8011         pointer to an integer.
8012         * lib/poll.c (IsConsoleHandle): Likewise.
8013         * lib/isatty.c (IsConsoleHandle): Likewise.
8014
8015 2012-01-28  Jim Meyering  <meyering@redhat.com>
8016
8017         doc: clarify README-release
8018         * top/README-release: Clarify: you should make a point to have
8019         the latest stable versions of build tools in your PATH, and the
8020         reference to buildreq is solely for its list of tool names, not
8021         for its minimal-functional version numbers.
8022         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8023
8024         maint.mk: use more readable (yet functionally equivalent) quoting
8025         It is common to quote a single quote in a single quoted string like
8026         this:  '...'\''...'.  Unless you know the idiom, that looks like
8027         gibberish, so prefer to double-quote the string when possible.
8028         Then you can use a more readable, lone single quote: "...'..."
8029         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8030         "don't" is more readable than the equivalent 'don'\''t'.
8031         (sc_cast_of_x_alloc_return_value): Likewise.
8032         (sc_cast_of_alloca_return_value): Likewise.
8033         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8034         rather than '\'':'\''.
8035
8036 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8037
8038         stdalign: relax _Alignof and tighten _Alignas test
8039         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8040         as it was too strict: alignof must divide offsetof, but it need
8041         not equal offsetof.  Inspired by Joseph S. Myers's comment
8042         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8043         Conversely, tighten the _Alignas test a bit, as the resulting
8044         alignment must be exactly 8.
8045
8046 2012-01-27  Bruno Haible  <bruno@clisp.org>
8047
8048         stdalign: Document the last change.
8049         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8050
8051 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8052
8053         stdalign: check that alignof and offsetof are consistent
8054         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8055         Problem reported for gnulib by Richard W.M. Jones in
8056         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8057
8058 2012-01-27  Jim Meyering  <meyering@redhat.com>
8059
8060         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8061         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8062         convert a sequence with gaps to the minimal containing range.
8063         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8064         * tests/test-update-copyright.sh: Test for this.
8065         The FSF confirmed it is ok to do this, assuming there is at
8066         least one significant change per year in the affected range:
8067         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8068
8069 2012-01-26  Bruno Haible  <bruno@clisp.org>
8070
8071         pipe2: refine doc about thread-safety
8072         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8073         multithread-safety problem.
8074         * doc/glibc-functions/accept4.texi: Likewise.
8075
8076 2012-01-26  Bruno Haible  <bruno@clisp.org>
8077
8078         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8079         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8080         In the test program, include <fcntl.h>, for O_RDONLY.
8081
8082 2012-01-26  Eric Blake  <eblake@redhat.com>
8083
8084         pipe2: document lack of thread-safety in replacement
8085         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8086         issue in replacement.
8087         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8088         Based on a report by Eric Wong.
8089
8090 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8091             Bruno Haible  <bruno@clisp.org>
8092
8093         malloca: Avoid warnings on x86_64 mingw64.
8094         * lib/malloca.c: Include <stdint.h>.
8095         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8096         * modules/malloca (Depends-on): Add stdint.
8097         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8098
8099 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8100
8101         obstack: remove __STDC__ conditionals
8102         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8103         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8104         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8105         m4/include_next.m4 as the only gnulib-maintained places that still
8106         refer to __STDC__.
8107
8108 2012-01-24  Bruno Haible  <bruno@clisp.org>
8109
8110         havelib: Modern quoting.
8111         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8112         the recent change to the GNU coding standards.
8113
8114 2012-01-24  Bruno Haible  <bruno@clisp.org>
8115
8116         stdint: Improve support for Android.
8117         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8118         Reported by Simon Josefsson <simon@josefsson.org>.
8119
8120 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8121
8122         doc: omit trailing empty lines from INSTALL etc.
8123         * doc/Makefile (INSTALL): Omit trailing empty lines.
8124         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8125         omit trailing empty lines.  This simplifies the build procedure.
8126
8127 2012-01-23  Jim Meyering  <meyering@redhat.com>
8128
8129         tests: avoid spurious warnings about gl_sockets_startup
8130         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8131         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8132         reporting a "statement with no effect".
8133         * tests/test-accept.c (main): Mark as "(void)".
8134         * tests/test-accept4.c (main): Likewise.
8135         * tests/test-bind.c (main): Likewise.
8136         * tests/test-connect.c (main): Likewise.
8137         * tests/test-getpeername.c (main): Likewise.
8138         * tests/test-getsockname.c (main): Likewise.
8139         * tests/test-getsockopt.c (main): Likewise.
8140         * tests/test-listen.c (main): Likewise.
8141         * tests/test-recv.c (main): Likewise.
8142         * tests/test-recvfrom.c (main): Likewise.
8143         * tests/test-send.c (main): Likewise.
8144         * tests/test-sendto.c (main): Likewise.
8145         * tests/test-setsockopt.c (main): Likewise.
8146         * tests/test-shutdown.c (main): Likewise.
8147
8148 2012-01-21  Bruno Haible  <bruno@clisp.org>
8149
8150         locale-fr.m4: Fix for Android.
8151         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8152         failure of the test program on Bionic libc.
8153
8154 2012-01-21  Jim Meyering  <meyering@redhat.com>
8155
8156         bootstrap: fail when bootstrap_post_import_hook fails
8157         Otherwise, it's far too easy to miss diagnostics emitted
8158         between gnulib-tool's output and that of running configure.
8159         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8160
8161 2012-01-17  Jim Meyering  <meyering@redhat.com>
8162
8163         maint: enable sc_trailing_blank
8164         * build-aux/pmccabe.css: Remove trailing blanks.
8165         * doc/acl-cygwin.txt: Likewise.
8166         * doc/gnu-oids.texi: Likewise
8167         * cfg.mk: Enable sc_trailing_blank.
8168         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8169
8170 2012-01-17  Jim Meyering  <meyering@redhat.com>
8171
8172         maint: enable sc_prohibit_openat_without_use
8173         * cfg.mk: Enable sc_prohibit_openat_without_use.
8174         Exempt lib/selinux-at.c.
8175
8176 2012-01-17  Jim Meyering  <meyering@redhat.com>
8177
8178         maint: enable sc_prohibit_cloexec_without_use
8179         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8180         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8181
8182 2012-01-17  Jim Meyering  <meyering@redhat.com>
8183
8184         maint: enable sc_prohibit_intprops_without_use
8185         * cfg.mk: Enable sc_prohibit_intprops_without_use
8186         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8187
8188 2012-01-17  Jim Meyering  <meyering@redhat.com>
8189
8190         maint: enable sc_prohibit_hash_pjw_without_use
8191         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8192         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8193         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8194         following " (".
8195
8196 2012-01-17  Jim Meyering  <meyering@redhat.com>
8197
8198         maint: enable double-word-prohibiting rule
8199         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8200         Exempt three files.
8201
8202 2012-01-17  Jim Meyering  <meyering@redhat.com>
8203
8204         maint: remove empty lines at EOF, but excluding modules/*
8205         Apply syntax rules at home as well as abroad.  Most changes
8206         were induced by running this:
8207           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8208             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8209             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8210         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8211         Exempt modules/* and two binary files.
8212         Also exempt doc/INSTALL*, per request from Bruno Haible.
8213         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8214         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8215         * doc/Copyright/request-assign.future: Likewise.
8216         * doc/Copyright/request-disclaim.changes: Likewise.
8217         * doc/INSTALL: Likewise.
8218         * doc/INSTALL.ISO: Likewise.
8219         * doc/INSTALL.UTF-8: Likewise.
8220         * doc/acl-cygwin.txt: Likewise.
8221         * doc/acl-resources.txt: Likewise.
8222         * doc/fdl-1.2.texi: Likewise.
8223         * doc/fdl-1.3.texi: Likewise.
8224         * doc/fdl.texi: Likewise.
8225         * lib/argp-pin.c: Likewise.
8226         * lib/round.c: Likewise.
8227         * lib/unicase/u16-totitle.c: Likewise.
8228         * lib/unictype/block_test.c: Likewise.
8229         * lib/uninorm/canonical-decomposition.c: Likewise.
8230         * m4/README: Likewise.
8231         * m4/relocatable-lib.m4: Likewise.
8232         * tests/test-isnand-nolibm.c: Likewise.
8233         * tests/test-isnand.c: Likewise.
8234         * tests/uninorm/NormalizationTest.txt: Likewise.
8235
8236 2012-01-17  Jim Meyering  <meyering@redhat.com>
8237
8238         maint: add framework to run syntax-check rules against gnulib sources
8239         * cfg.mk: New file, to disable all currently-failing tests.
8240         We'll enable them one by one, as they are made to pass.
8241         * Makefile (sc_maint): New rule.
8242
8243 2012-01-21  Bruno Haible  <bruno@clisp.org>
8244
8245         stdint: Add support for Android.
8246         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8247         include the system's <stdint.h>.
8248         Reported by Simon Josefsson <simon@josefsson.org>.
8249
8250 2012-01-19  Jim Meyering  <meyering@redhat.com>
8251
8252         bootstrap: add bootstrap_post_import_hook
8253         Bison does still need something like the gnulib_mk_hook whose
8254         invocation I had to remove along with slurp in commit 767ccd40.
8255         Technically, we could get along without it, but doing so would
8256         have required living with a warning and a mandatory post-bootstrap
8257         automake rerun.
8258         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8259         (bootstrap_post_import_hook): New function.
8260         Invoke it after gnulib-tool --import and before autoreconf.
8261
8262 2012-01-18  Jim Meyering  <meyering@redhat.com>
8263
8264         gitlog-to-changelog: don't use "no_"-prefixed variable name
8265         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8266         to enable both --cluster and --no-cluster.  Change variable name,
8267         s/\$no_cluster/$cluster/, and reverse usage to match.
8268
8269         gitlog-to-changelog: use "||", not "or" in expressions
8270         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8271         expressions.
8272
8273 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8274
8275         gitlog-to-changelog: new option --no-cluster
8276         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8277         clustering of adjacent commit messages.
8278
8279 2012-01-17  Jim Meyering  <meyering@redhat.com>
8280
8281         maint: spell file systems with two words, not one
8282         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8283         two words, not one.
8284
8285 2012-01-16  Jim Meyering  <meyering@redhat.com>
8286
8287         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8288         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8289
8290 2012-01-16  Eric Blake  <eblake@redhat.com>
8291
8292         bootstrap: cater to autoconf 2.59
8293         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8294         is not available.
8295
8296         bootstrap: properly check for libtool
8297         * build-aux/bootstrap (libtoolize): Also run libtool when older
8298         usage is detected.
8299
8300 2012-01-15  Bruno Haible  <bruno@clisp.org>
8301
8302         Improve support for MSVC 9.
8303         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8304         clashes on MSVC.
8305         * lib/fcntl.in.h: Likewise.
8306         * lib/stdlib.in.h: Likewise.
8307         * lib/sys_stat.in.h: Likewise.
8308
8309 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8310
8311         gnupload: we hold the master copy of this script now
8312         For motivation and more information, see:
8313         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8314         * build-aux/gnupload: Make it clear in the heading comments that the
8315         master copy of this file is maintained by gnulib.  Since we are at
8316         it, bump its copyright year and ...
8317         ($scriptversion): ... the date in its version.
8318         ($usage): Patches and bug reports should be sent to the gnulib list,
8319         not the automake one.
8320         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8321         anymore.
8322
8323 2012-01-15  Bruno Haible  <bruno@clisp.org>
8324
8325         Fix module 'random'.
8326         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8327         initstate, setstate are declared.
8328
8329 2012-01-14  Bruno Haible  <bruno@clisp.org>
8330
8331         Tests for module 'random'.
8332         * modules/random-tests: New file.
8333         * tests/test-random.c: New file, based on tests/test-random_r.c.
8334
8335         New module 'random'.
8336         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8337         declarations.
8338         * lib/random.c: New file, based on glibc/stdlib/random.c.
8339         * m4/random.m4: New file.
8340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8341         HAVE_RANDOM.
8342         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8343         * modules/random: New file.
8344         * config/srclist.txt: Add an entry for random.c.
8345         * doc/posix-functions/random.texi: Mention the 'random' module.
8346         * doc/posix-functions/initstate.texi: Likewise.
8347         * doc/posix-functions/setstate.texi: Likewise.
8348         * doc/posix-functions/srandom.texi: Likewise.
8349
8350 2012-01-12  Bruno Haible  <bruno@clisp.org>
8351
8352         random_r: Use common idioms.
8353         * lib/random_r.c: Include <stdlib.h> first.
8354
8355         random_r: Override incompatible API on AIX, OSF/1.
8356         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8357         Override the system function if REPLACE_RANDOM_R is 1.
8358         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8359         and OSF/1, set REPLACE_RANDOM_R.
8360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8361         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8362         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8363         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8364         * doc/glibc-functions/random_r.texi: Likewise.
8365         * doc/glibc-functions/setstate_r.texi: Likewise.
8366
8367         random_r: Support for MSVC 9.
8368         * lib/random_r.c: Include stdint.h, not inttypes.h.
8369
8370 2012-01-12  Eric Blake  <eblake@redhat.com>
8371
8372         inet_ntop: guard extra work by IF_LINT
8373         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8374         better code generation when not checking for warnings.
8375         Suggested by Paul Eggert and Jim Meyering.
8376
8377         strptime: fix regression on mingw
8378         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8379         Fix regression.  Reported by Bruno Haible.
8380
8381 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8382             Bruno Haible  <bruno@clisp.org>
8383
8384         copy-file: add error-code-returning variant.
8385         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8386         (qcopy_file_preserving): New declaration.
8387         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8388         copy_file_preserving. Change return type to 'int'. Don't emit an error
8389         message here.
8390         (copy_file_preserving): New function.
8391         * tests/test-copy-file.c: Include <stdlib.h>.
8392         (main): Test qcopy_file_preserving if the environment variable
8393         NO_STDERR_OUTPUT is set.
8394         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8395         with NO_STDERR_OUTPUT
8396         * tests/test-copy-file-2.sh: Likewise.
8397
8398 2012-01-10  Bruno Haible  <bruno@clisp.org>
8399
8400         copy-file: Use 'quote' module consistently.
8401         * lib/copy-file.c (copy_file_preserving): Use quote().
8402
8403         copy-file: Refactor.
8404         * lib/copy-file.c: Include quote.h.
8405         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8406         message here.
8407         * modules/copy-file (Depends-on): Add quote.
8408
8409         acl: Export qcopy_acl.
8410         * lib/acl.h (qcopy_acl): New declaration.
8411         * lib/copy-acl.c (qcopy_acl): Make non-static.
8412
8413         acl: Rename a local variable.
8414         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8415
8416         acl: Align return values of copy_acl and qcopy_acl.
8417         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8418         maybe < -1.
8419
8420 2012-01-11  Eric Blake  <eblake@redhat.com>
8421
8422         strptime: silence gcc warnings
8423         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8424         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8425         Reported by Daniel P. Berrange.
8426
8427         inet_ntop: silence gcc warning
8428         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8429         Reported by Daniel P. Berrange.
8430
8431 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8432
8433         getloadavg test: skip the test on GNU/Linux without /proc mounted
8434         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8435         file.  When /proc is not mounted, it always fails with ENOENT.
8436         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8437         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8438
8439 2012-01-10  Bruno Haible  <bruno@clisp.org>
8440
8441         regex: Avoid link error on MSVC 9.
8442         * modules/regex (Depends-on): Add wctype.
8443
8444 2012-01-10  Bruno Haible  <bruno@clisp.org>
8445
8446         doc: Mention --with-tests option.
8447         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8448         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8449         --with-tests.
8450         Reported by Reuben Thomas.
8451
8452 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8453
8454         users.txt: order package names lexicographically.
8455         * users.txt: Order package names lexicographically.
8456
8457 2012-01-10  Jim Meyering  <meyering@redhat.com>
8458
8459         maint.mk: fix description in comment
8460         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8461
8462         ignore-value: remove deprecated ignore_ptr function
8463         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8464         * NEWS: Note this.
8465
8466 2012-01-09  Jim Meyering  <meyering@redhat.com>
8467
8468         test-init.sh: avoid a subshell
8469         * tests/test-init.sh: Remove protective subshell.
8470         Suggested by Bernhard Voelker.  While a subshell is normally
8471         required to protect against older shells (Solaris, FreeBSD) that
8472         warn about a missing program before performing redirection, the
8473         shell-selection tests performed by init.sh probably exclude any
8474         offending shell.
8475
8476 2012-01-08  Bruno Haible  <bruno@clisp.org>
8477
8478         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8479         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8480         variable.
8481
8482 2012-01-08  Bruno Haible  <bruno@clisp.org>
8483
8484         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8485         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8486         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8487         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8488         macro.
8489         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8490         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8491         * lib/spawn_faction_addopen.c: Add workaround implementation if
8492         HAVE_WORKING_POSIX_SPAWN.
8493         * modules/spawn (Makefile): Substitute
8494         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8495         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8496         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8497         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8498         (Depends-on): Update conditions.
8499         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8500         the Solaris 11 bug.
8501
8502 2012-01-08  Bruno Haible  <bruno@clisp.org>
8503
8504         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8505         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8506         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8507         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8508         macro.
8509         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8510         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8511         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8512         HAVE_WORKING_POSIX_SPAWN.
8513         * modules/spawn (Makefile): Substitute
8514         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8515         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8516         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8517         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8518         (Depends-on): Update conditions.
8519         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8520         the Solaris 11 bug.
8521
8522 2012-01-08  Bruno Haible  <bruno@clisp.org>
8523
8524         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8525         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8526         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8527         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8528         HAVE_WORKING_POSIX_SPAWN.
8529         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8530         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8531         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8532         * lib/spawn_faction_addclose.c: Add workaround implementation if
8533         HAVE_WORKING_POSIX_SPAWN.
8534         * modules/spawn (Makefile): Substitute
8535         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8536         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8537         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8538         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8539         (Depends-on): Update conditions.
8540         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8541         the Solaris 11 bug.
8542
8543 2012-01-08  Bruno Haible  <bruno@clisp.org>
8544
8545         doc: Update for Solaris 11 2011-11.
8546         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8547         * m4/printf.m4: Update comments.
8548
8549 2012-01-08  Bruno Haible  <bruno@clisp.org>
8550
8551         mktime: Avoid compilation error on Solaris 11.
8552         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8553
8554 2012-01-08  Bruno Haible  <bruno@clisp.org>
8555
8556         doc: Small fix.
8557         * doc/posix-headers/nl_types.texi: Correct platforms list.
8558
8559 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8560
8561         Add lgpl-3.0 module.
8562         * MODULES.html.sh (Support for building documentation): Add
8563         lgpl-3.0.
8564         * modules/lgpl-3.0: New file.
8565
8566 2012-01-08  Jim Meyering  <meyering@redhat.com>
8567
8568         select.c: indent with spaces, not TABs
8569         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8570
8571 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8572
8573         quotearg: do not use grave accent for left quote
8574         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8575         locale_quoting_style.
8576         (quotearg_buffer_restyled): Fix example.
8577         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8578
8579 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8580
8581         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8582         Most programs do not have translation catalogs for English and much
8583         less separate catalogs for British and American English.  Drop the
8584         suggestion to translators about these two, and provide it
8585         automatically for Unicode locales.  Like most programs, even those
8586         using American English, we use single quotation marks.  This conflicts
8587         with the American typographic convention, but works better when you
8588         cite the entire error message within double quotes.  It also tries not
8589         to clash with established practice and with what non-gnulib programs
8590         will usually do.
8591         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8592         using an UTF-8 or GB-18030 locale.  The list of other locales with
8593         quotes was provided by Bruno Haible.
8594         (quotearg_buffer_restyled): Adjust instructions to translators.
8595         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8596         text, since this would be wrong when using Unicode.
8597         * modules/quotearg: Depend on c-strcaseeq.
8598
8599 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8600
8601         quotearg: fix Wikipedia link
8602         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8603
8604 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8605
8606         Fix for mingw with MSVC9.
8607         * m4/ld-version-script.m4: Check that compiler rejects version
8608         scripts with syntax errors.  Reported by Bruno Haible
8609         <bruno@clisp.org>.
8610
8611 2012-01-06  Bruno Haible  <bruno@clisp.org>
8612
8613         Talk about "native Windows API", not "Woe32".
8614         * lib/accept4.c: Update comments to mention native Windows.
8615         * lib/execute.c: Likewise.
8616         * lib/fatal-signal.c: Likewise.
8617         * lib/localcharset.c: Likewise.
8618         * lib/nanosleep.c: Likewise.
8619         * lib/nl_langinfo.c: Likewise.
8620         * lib/pclose.c: Likewise.
8621         * lib/pipe-filter-gi.c: Likewise.
8622         * lib/pipe-filter-ii.c: Likewise.
8623         * lib/pipe.c: Likewise.
8624         * lib/pipe2.c: Likewise.
8625         * lib/popen.c: Likewise.
8626         * lib/progreloc.c: Likewise.
8627         * lib/relocatable.c: Likewise.
8628         * lib/sigaction.c: Likewise.
8629         * lib/sigprocmask.c: Likewise.
8630         * lib/spawn-pipe.h: Likewise.
8631         * lib/spawn-pipe.c: Likewise.
8632         * lib/spawni.c: Likewise.
8633         * lib/stat-time.h: Likewise.
8634         * lib/w32spawn.h: Likewise.
8635         * tests/test-isatty.c: Likewise.
8636         * lib/config.charset: More comments.
8637         * doc/gnulib-intro.texi: Mention native Windows.
8638         * doc/posix-functions/_Exit_C99.texi: Likewise.
8639         * doc/posix-headers/fcntl.texi: Likewise.
8640
8641 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8642
8643         argp: Avoid crash if translator uses % characters in a translation.
8644         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8645         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8646
8647 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8648
8649         doc: C11 and C++11 are now official
8650         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8651         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8652         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8653         * modules/stdalign:
8654         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8655
8656 2012-01-06  Bruno Haible  <bruno@clisp.org>
8657
8658         uc-is-grapheme-break tests: Tweak.
8659         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8660         message.
8661
8662 2012-01-06  Bruno Haible  <bruno@clisp.org>
8663
8664         test-init.sh: correct the test for diff -u
8665         * tests/test-init.sh: Also redirect stdout to /dev/null.
8666
8667 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8668
8669         Use ', not `, for quoting output.
8670         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8671         (print_changelog_deltas, get_tool_versions, main program):
8672         * build-aux/git-version-gen:
8673         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8674         * build-aux/move-if-change (help):
8675         * build-aux/useless-if-before-free (usage, main program):
8676         * check-module (parse_module_file, usage)
8677         (find_included_lib_files, check_module):
8678         * lib/argmatch.c (main) [TEST]:
8679         * lib/argp-help.c (_help):
8680         * lib/getopt1.c (main) [TEST]:
8681         * lib/git-merge-changelog.c (usage):
8682         * lib/xstrtol-error.c (xstrtol_error):
8683         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8684         * m4/argz.m4 (gl_FUNC_ARGZ):
8685         * m4/bison.m4 (gl_BISON):
8686         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8687         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8688         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8689         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8690         * m4/gc-random.m4 (gl_GC_RANDOM):
8691         * m4/intl.m4 (gt_CHECK_DECL):
8692         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8693         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8694         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8695         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8696         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8697         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8698         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8699         * tests/test-dirname.c (main):
8700         * tests/test-getpass.c (main):
8701         * tests/test-iconvme.c (main):
8702         * tests/test-parse-datetime.c (LOG):
8703         * tests/test-xstrtoimax.sh:
8704         * tests/test-xstrtol.sh:
8705         * tests/test-xstrtoll.sh:
8706         * tests/test-xstrtoumax.sh:
8707         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8708         * top/GNUmakefile (abort-due-to-no-makefile):
8709         Quote 'like this', not `like this', as per the recent change to
8710         the GNU coding standards.
8711
8712 2012-01-05  Bruno Haible  <bruno@clisp.org>
8713
8714         strtoimax: Don't force a replacement on systems where intmax_t is int.
8715         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8716         'intmax_t' is not larger than 'int'.
8717         Reported by Pádraig Brady <P@draigBrady.com>.
8718
8719 2012-01-05  Bruno Haible  <bruno@clisp.org>
8720
8721         doc: Mention NetBSD bugs.
8722         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8723         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8724
8725 2012-01-05  Bruno Haible  <bruno@clisp.org>
8726
8727         strtoumax tests: Enhance tests.
8728         * tests/test-strtoumax.c (main): Add tests for large values.
8729
8730 2012-01-05  Bruno Haible  <bruno@clisp.org>
8731
8732         strtoimax: Work around AIX 5.1 bug.
8733         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8734         definition.
8735         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8736         Set HAVE_STRTOIMAX.
8737         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8738         REPLACE_STRTOIMAX.
8739         * modules/inttypes-incomplete (Makefile.am): Substitute
8740         REPLACE_STRTOIMAX.
8741         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8742         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8743         (Depends-on): Update conditions.
8744         * tests/test-strtoimax.c (main): Add tests for large values.
8745         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8746
8747 2012-01-05  Bruno Haible  <bruno@clisp.org>
8748
8749         inttypes: Modernize.
8750         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8751         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8752         (Makefile.am): Update inttypes.h rule.
8753
8754 2012-01-05  Jim Meyering  <meyering@redhat.com>
8755
8756         init.sh: don't waste a subshell just to redirect stderr
8757         * tests/init.sh: In testing for diff -u and diff -c, use a
8758         stderr-redirecting exec inside `...` rather than a subshell.
8759
8760         test-init.sh: avoid failure on HP-UX 11.00
8761         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8762         resolves to diff -c or cmp.  Reported by Bruno Haible.
8763
8764 2012-01-05  Bruno Haible  <bruno@clisp.org>
8765
8766         Tests for module 'strtoull'.
8767         * modules/strtoull-tests: New file.
8768         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8769
8770 2012-01-05  Bruno Haible  <bruno@clisp.org>
8771
8772         Tests for module 'strtoll'.
8773         * modules/strtoll-tests: New file.
8774         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8775
8776 2012-01-05  Bruno Haible  <bruno@clisp.org>
8777
8778         Tests for module 'strtoul'.
8779         * modules/strtoul-tests: New file.
8780         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8781
8782 2012-01-05  Bruno Haible  <bruno@clisp.org>
8783
8784         Tests for module 'strtol'.
8785         * modules/strtol-tests: New file.
8786         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8787
8788 2012-01-04  Jim Meyering  <meyering@redhat.com>
8789
8790         test-init.sh: accommodate Solaris 5.10's different diff -u output
8791         * tests/test-init.sh: Also exempt @@ lines from the comparison
8792         of diff output, since Solaris 5.10 and GNU diff formats differ.
8793         Reported by Stefano Lattarini.
8794
8795 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8796
8797         test-posixtm: don't assume signed integer wraparound
8798         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8799         after signed integer overflow.  Inspired by (though it may not
8800         fix) Bruno Haible's bug report in
8801         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8802
8803         Spell out "Windows 9x" and "Windows XP".
8804         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8805         "Windows 9x" and "WinXP" with "Windows XP".
8806
8807 2012-01-04  Jim Meyering  <meyering@redhat.com>
8808
8809         test-vc-list-files-cvs.sh: remove obsolete comment
8810         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8811         double exit.  Now that's all encapsulated via skip_ and Exit.
8812
8813 2012-01-04  Bruno Haible  <bruno@clisp.org>
8814
8815         Talk about "native Windows API", not "Win32".
8816         * lib/classpath.c: Update comments to mention native Windows.
8817         * lib/csharpexec.c: Likewise.
8818         * lib/dup2.c: Likewise.
8819         * lib/error.c: Likewise.
8820         * lib/fcntl.c: Likewise.
8821         * lib/filename.h: Likewise.
8822         * lib/findprog.c: Likewise.
8823         * lib/get-rusage-as.c: Likewise.
8824         * lib/get-rusage-data.c: Likewise.
8825         * lib/getpagesize.c: Likewise.
8826         * lib/javaexec.c: Likewise.
8827         * lib/msvc-inval.c: Likewise.
8828         * lib/msvc-nothrow.c: Likewise.
8829         * lib/nanosleep.c: Likewise.
8830         * lib/nonblocking.c: Likewise.
8831         * lib/printf-parse.c: Likewise.
8832         * lib/setlocale.c: Likewise.
8833         * lib/sigaction.c: Likewise.
8834         * lib/strerror_r.c: Likewise.
8835         * lib/tmpdir.c: Likewise.
8836         * lib/vasnprintf.c: Likewise.
8837         * lib/w32spawn.h: Likewise.
8838         * lib/waitpid.c: Likewise.
8839         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8840         * m4/locale-ar.m4: Likewise.
8841         * m4/locale-fr.m4: Likewise.
8842         * m4/locale-ja.m4: Likewise.
8843         * m4/locale-tr.m4: Likewise.
8844         * m4/locale-zh.m4: Likewise.
8845         * m4/printf.m4: Likewise.
8846         * tests/test-cloexec.c: Likewise.
8847         * tests/test-copy-acl.sh: Likewise.
8848         * tests/test-copy-file.sh: Likewise.
8849         * tests/test-file-has-acl.sh: Likewise.
8850         * tests/test-set-mode-acl.sh: Likewise.
8851         * tests/test-dup-safer.c: Likewise.
8852         * tests/test-dup2.c: Likewise.
8853         * tests/test-dup3.c: Likewise.
8854         * tests/test-fcntl.c: Likewise.
8855         * tests/test-nonblocking-pipe.h: Likewise.
8856         * tests/test-nonblocking-socket.h: Likewise.
8857         * tests/test-pipe.c: Likewise.
8858         * tests/test-pipe2.c: Likewise.
8859         * tests/test-spawn-pipe-child.c: Likewise.
8860         * doc/acl-resources.txt: Likewise.
8861         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8862         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8863         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8864         * lib/localcharset.c: Update comments to mention native Windows.
8865         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8866         * lib/localename.c: Likewise.
8867         * lib/progreloc.c: Likewise.
8868         * lib/relocatable.c: Likewise.
8869         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8870         (windows_compute_revents): Renamed from win32_compute_revents.
8871         (windows_compute_revents_socket): Renamed from
8872         win32_compute_revents_socket.
8873         * lib/select.c: Update comments to mention native Windows.
8874         (windows_poll_handle): Renamed from win32_poll_handle.
8875         * m4/threadlib.m4: Update comments to mention native Windows.
8876         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8877         --enable-threads=windows instead of --enable-threads=win32. Set
8878         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8879         * lib/glthread/lock.h: Update comments to mention native Windows.
8880         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8881         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8882         USE_WIN32_THREADS.
8883         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8884         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8885         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8886         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8887         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8888         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8889         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8890         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8891         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8892         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8893         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8894         * tests/test-tls.c: Likewise.
8895         Rationale:
8896         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8897         on both 32-bit and 64-bit Windows systems.
8898         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8899         line of distinction is between "native Windows" on one side and Unix/
8900         POSIX systems on the other side. More details in
8901         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8902         Suggested by Paul Eggert.
8903
8904 2012-01-03  Bruno Haible  <bruno@clisp.org>
8905
8906         isatty: Support for MSVC 9.
8907         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8908         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8909         (_isatty_nothrow): New function.
8910         (isatty): Use it instead of _isatty.
8911         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8912         * lib/poll.c (IsConsoleHandle): Likewise.
8913         * lib/select.c (IsConsoleHandle): Likewise.
8914         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8915         (gl_PREREQ_ISATTY): New macro.
8916         * modules/isatty (Depends-on): Add msvc-inval.
8917         (configure.ac): Invoke gl_PREREQ_ISATTY.
8918
8919 2012-01-03  Jim Meyering  <meyering@redhat.com>
8920
8921         maint.mk: remove temporary transition aid from over 1.5 years ago
8922         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8923         purpose was to aid in the transition (avoiding silent malfunction)
8924         from that old name to the new _sc_search_regexp.  This shim was
8925         added by commit 219c504b.
8926
8927         init.sh: do not try to accommodate compare arguments starting with "-"
8928         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8929         compare arguments that start with "-".  Besides, we do not worry
8930         about this when invoking diff or cmp; why start now with sed?
8931         Using "--" to separate options from argument would trigger sed
8932         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8933         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8934
8935 2012-01-02  Bruno Haible  <bruno@clisp.org>
8936
8937         Enhance tests for module 'isatty'.
8938         * modules/isatty-tests (Depends-on): Add pipe-posix.
8939         * tests/test-isatty.c: Include <fcntl.h>.
8940         (DEV_NULL): New macro.
8941         (main): Test the resut of isatty() also on regular files, pipes, and
8942         /dev/null.
8943
8944         New module 'isatty'.
8945         * lib/unistd.in.h (isatty): New declaration.
8946         * lib/isatty.c: New file, based on an idea of
8947         Bastien Roucariès <roucaries.bastien@gmail.com>.
8948         * m4/isatty.m4: New file.
8949         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8950         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8951         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8952         REPLACE_ISATTY.
8953         * modules/isatty: New file.
8954         * doc/posix-functions/isatty.texi: Mention the new module.
8955         Suggested by Paolo Bonzini.
8956
8957 2012-01-02  Bruno Haible  <bruno@clisp.org>
8958
8959         canonicalize: Tweak 2011-12-29 commit.
8960         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8961         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8962
8963 2012-01-02  Jim Meyering  <meyering@redhat.com>
8964
8965         gitlog-to-changelog: describe input syntax in --help output
8966         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8967
8968         gitlog-to-changelog: fix typo in --help: show backslash before email @
8969         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8970         in sources, but not in actual output.
8971
8972 2011-12-30  Jim Meyering  <meyering@redhat.com>
8973
8974         gitlog-to-changelog: don't malfunction when name contains %-directive
8975         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8976         in a name string cause trouble.  E.g., with a user name of "%s",
8977         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8978
8979 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8980
8981         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8982         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8983         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8984         the "  (tiny change)" notation that is appended to the standard
8985         ChangeLog "date  name  email" header line.
8986
8987 2012-01-01  Jim Meyering  <meyering@redhat.com>
8988
8989         test-framework-sh: init.sh: fix "make dist" failure
8990         When using gnulib-tool's --with-tests option and any module that
8991         depends on test-framework-sh, "make dist" would fail due to the
8992         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8993         in the gltests directory, and not in the gllib/ directory.
8994         One way to work around that is to move the EXTRA_DIST += init.sh
8995         from the primary module to the -tests one:
8996         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8997         * modules/test-framework-sh (Makefile.am): ...not here.
8998         Reported by Tom G. Christensen in
8999         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9000
9001         version-etc: update copyright year reported by --version
9002         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9003
9004 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9005
9006         canonicalize: only stat() if required
9007         * lib/canonicalize.c (canonicalize_filename_mode):
9008         Avoid calling l?stat() when both CAN_MISSING,
9009         and CAN_NOLINKS are set, as we neither need
9010         to resolve symlinks or test component existence.
9011
9012 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9013
9014         doc: cover st_ino issues once; add OpenVMS etc.
9015         * doc/posix-functions/stat.texi (stat):
9016         * doc/posix-functions/lstat.texi (lstat):
9017         * doc/posix-functions/fstatat.texi (fstatat):
9018         * doc/posix-functions/fstat.texi (fstat):
9019         Move general 'struct stat' stuff to sys_stat.texi,
9020         leaving behind a pointer.
9021         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9022         Merge duplicate info about 'struct stat' problems into here.
9023         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9024         and suggest partial workarounds.
9025
9026         same-inode: port to OpenVMS
9027         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9028         three st_ino values.
9029
9030 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9031
9032         canonicalize: fix references to stat() and lstat()
9033         * lib/canonicalize.c (canonicalize_filename_mode):
9034         Ensure references always resolve to a replacement
9035         function if required (even via a macro).
9036
9037 2011-12-30  Jim Meyering  <meyering@redhat.com>
9038
9039         gitlog-to-changelog: remove a little duplication
9040         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9041         rather than twice.
9042
9043 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9044
9045         canonicalize: add support for not resolving symlinks
9046         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9047         indicate we don't want to follow symlinks.  Also
9048         provide CAN_MODE_MASK to aid setting these existing
9049         mutually exclusive values.
9050         * lib/canonicalize.c (canonicalize_filename_mode):
9051         Extract the flags from can_mode parameter, which
9052         are currently just used to select between stat()
9053         and lstat().  Also ensure that mutually exclusive
9054         values are flagged immediately as invalid.
9055         * tests/test-canonicalize.c: Verify symlinks are
9056         not followed, and that invalid flag combinations
9057         are diagnosed.
9058
9059 2011-12-25  Jim Meyering  <meyering@redhat.com>
9060
9061         gitlog-to-changelog: do not clump multi-paragraph entries
9062         Identical header lines (date,name,email+coauthors) are suppressed,
9063         thus putting all entries with those same characteristics under
9064         a single header.  However, when a log entry consists of two or
9065         more paragraphs, it may not be clear where it starts and ends.
9066         This change makes it so that such an entry is always separated
9067         from others by a header line, even when that header would
9068         otherwise be suppressed.
9069         * build-aux/gitlog-to-changelog: Implement the above.
9070         Inspired by a related request from Stefano Lattarini in
9071         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9072
9073 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9074
9075         announce-gen: fix `cmd' typo in diagnostic
9076         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9077         diagnostic: a missing '$' meant that the command was not output.
9078
9079 2011-12-23  Jim Meyering  <meyering@redhat.com>
9080
9081         test-framework-sh: distribute init.sh
9082         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9083         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9084         fail due to the lack of init.sh.
9085
9086         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9087         * modules/atexit-tests: Rather than listing tests/init.sh,
9088         now that there's a module for it, simply depend on that new module.
9089         * modules/closein-tests: Likewise.
9090         * modules/exclude-tests: Likewise.
9091         * modules/getcwd-tests: Likewise.
9092         * modules/perror-tests: Likewise.
9093         * modules/pread-tests: Likewise.
9094         * modules/pwrite-tests: Likewise.
9095         * modules/vc-list-files-tests: Likewise.
9096         * modules/verify-tests: Likewise.
9097         * modules/xalloc-die-tests: Likewise.
9098         * modules/xstrtoimax-tests: Likewise.
9099         * modules/xstrtol-tests: Likewise.
9100         * modules/xstrtoll-tests: Likewise.
9101         * modules/xstrtoumax-tests: Likewise.
9102         * modules/yesno-tests: Likewise.
9103
9104 2011-12-22  Jim Meyering  <meyering@redhat.com>
9105
9106         test-framework-sh: add minimal tests of init.sh's compare function
9107         * modules/test-framework-sh-tests: New file.
9108         * tests/test-init.sh: New file.
9109
9110         test-framework-sh: new module
9111         * modules/test-framework-sh: New file.
9112         * MODULES.html.sh (Support for maintaining and releasing projects):
9113         List it.
9114
9115         init.sh: do not emit simulated diff output to stderr
9116         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9117
9118 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9119
9120         .gitignore: ignore gnulib.dvi and regex.info
9121         * doc/.gitignore:add gnulib.dvi and regex.info
9122
9123 2011-12-22  Jim Meyering  <meyering@redhat.com>
9124
9125         init.sh: correct previous change
9126         * tests/init.sh (compare): My previous change was wrong.
9127         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9128
9129         init.sh: avoid unwarranted test failure when using "set -e"
9130         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9131         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9132         a use like "compare exp out" would get evoke an unconditional failure.
9133
9134 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9135
9136         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9137         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9138         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9139         autoreconf that did not.
9140         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9141         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9142
9143 2011-12-17  Jim Meyering  <meyering@redhat.com>
9144
9145         bootstrap: remove some now-unneeded code
9146         This script arose back when gnulib-tool was young.
9147         Since then, it has seen improvements that render much of this
9148         script unnecessary.  In particular, it can now make symlinks
9149         to the files it uses.  Also, I no longer see as much value in
9150         marking files as read-only via comments.
9151         If you relied on the symlink-creation feature of the preceding
9152         version of this script, you can get most of that functionality
9153         by adding the --symlink option to the definition of
9154         gnulib_tool_option_extras in your bootstrap.conf file.
9155         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9156         Run autopoint and libtoolize *before* gnulib-tool.
9157         After it, run an abbreviated autoreconf, rather than a loop around
9158         all tools.
9159         (slirp, bt_mark_as_generated): Remove functions.
9160
9161 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9162
9163         ftoastr: fix typo
9164         * lib/ftoastr.h: Fix misspelling in comment.
9165
9166 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9167
9168         * top/README-release: fix punctuation.
9169
9170 2011-12-17  Jim Meyering  <meyering@redhat.com>
9171
9172         bootstrap: correct the recent buildreq change
9173         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9174         had no effect.
9175         * build-aux/bootstrap (buildreq): Bracket each search term with
9176         "*...*", so that the shell "case" statement works as intended.
9177         Add comments.
9178
9179 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9180
9181         build: let bootstrap resort to wget when downloading .po files
9182         * build-aux/bootstrap (download_po_files): Fallback to wget when
9183         downloading the .po files via rsync fails.  This is necessary to
9184         bootstrap from behind a strict firewall.
9185
9186 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9187
9188         stdint: don't assume C++11 when compiling with g++
9189         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9191         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9192         work also in C++ before C++11, as that improperly inhibits
9193         generating a substitute stdint.h for that case.
9194
9195 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9196
9197         alloca: protect comment from gnulib-tool
9198         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9199         that gnulib-tool doesn't think it's a license, and munge it to
9200         say "GCC version 3".
9201
9202 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9203
9204         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9205         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9206         $(abs_top_builddir) instead of $(top_builddir).
9207
9208 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9209
9210         strftime-tests: also test nanoseconds
9211         * tests/test-strftime.c (T): Add a test of %N.
9212
9213 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9214
9215         inttypes, stdint: add C++11 support
9216         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9217         when including inttypes.h and stdint.h.  Support this change to
9218         the standard.
9219         * doc/posix-headers/inttypes.texi (inttypes.h):
9220         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9221         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9222         Define if not defined already, for the benefit of pre-C++11 hosts.
9223         Define the standard format macros (e.g., PRId8) always.
9224         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9225         Likewise, if __cpluspus.  Define the standard constant and limit
9226         macros (e.g., INT8_C, INT8_MAX) always.
9227         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9228         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9229         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9230         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9231         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9232         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9233         Likewise.
9234
9235 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9236
9237         nonblocking tests: Fix test failure on Linux/PPC.
9238         Suggested by Prerna Saxena in
9239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9240         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9241         Set to 1100000.
9242
9243 2011-12-12  Jim Meyering  <meyering@redhat.com>
9244
9245         argmatch: don't hard-code `' when listing valid option arguments
9246         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9247         use the quote function to add quotes.  Use fputs rather than
9248         fprintf for the format string with no format directive.
9249
9250 2011-12-07  Eric Blake  <eblake@redhat.com>
9251
9252         bootstrap: detect tools required by gnulib-tool
9253         * build-aux/bootstrap (buildreq): Provide minimum implicit
9254         dependencies.
9255         * DEPENDENCIES: Mention patch as a prereq.
9256
9257 2011-12-04  Bruno Haible  <bruno@clisp.org>
9258
9259         sethostname: Port to Windows platforms.
9260         * lib/sethostname.c: Provide an alternate implementation for Windows
9261         platforms.
9262         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9263         (main): Skip the test if sethostname() fails with EPERM. On Windows
9264         platforms, don't check the result of gethostname().
9265
9266 2011-12-04  Bruno Haible  <bruno@clisp.org>
9267             Jim Meyering  <meyering@redhat.com>
9268
9269         tests: Avoid spurious error message on platforms without mktemp program.
9270         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9271
9272 2011-12-04  Bruno Haible  <bruno@clisp.org>
9273
9274         sethostname: Fix documentation.
9275         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9276         "not fixed" section.
9277
9278 2011-12-03  Bruno Haible  <bruno@clisp.org>
9279
9280         gnulib-tool: Verify that the License field is present and non-empty.
9281         * gnulib-tool (func_get_license_raw): New function, extracted from
9282         func_get_license.
9283         (func_get_license): Use it. Warn if the module is not a test module and
9284         has no license.
9285         Suggested by Jim Meyering.
9286
9287 2011-12-03  Bruno Haible  <bruno@clisp.org>
9288
9289         sethostname tests: Fix link error on mingw.
9290         * tests/test-sethostname1.c: New file, extracted from
9291         tests/test-sethostname.c.
9292         * tests/test-sethostname2.c: New file, extracted from
9293         tests/test-sethostname.c.
9294         * tests/test-sethostname.c: Remove file.
9295         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9296         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9297         (Depends-on): Add gethostname.
9298         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9299         Link the latter with $(GETHOSTNAME_LIB).
9300
9301         sethostname tests: Fix compilation error on mingw.
9302         * tests/test-sethostname.c: Don't include <sys/types.h>.
9303         (geteuid): Use a dummy value without uid_t.
9304         * modules/sethostname-tests (Depends-on): Remove sys_types.
9305
9306         sethostname tests: Avoid a gcc warning.
9307         * tests/test-sethostname.c (main): Remove an unused variable.
9308
9309         Tweak last commit.
9310         * modules/sethostname-tests (Files): Sort by decreasing importance.
9311         (configure.ac): Check for geteuid.
9312         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9313         the test when there's nothing to test. Drop an unnecessary cast.
9314         Improve an error message. Verify that the final sethostname() call
9315         succeeds.
9316
9317 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9318
9319         Add a test suite for the sethostname module.
9320         * modules/sethostname-tests: New file.  A test program
9321         for the sethostname module.
9322         * tests/test-sethostname.c: Likewise.
9323
9324 2011-12-03  Bruno Haible  <bruno@clisp.org>
9325
9326         Tweak last commit.
9327         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9328         Fix preprocessor directives indentation. Fix typos.
9329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9330         * modules/unistd (Makefile): Likewise.
9331
9332 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9333
9334         Integrate the sethostname module into unistd.
9335         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9336         into the unistd.h header.
9337         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9338         preprocessor directives.
9339         * modules/unistd: Setup the Makefile substitutions of the
9340         SETHOSTNAME preprocessor directives.
9341
9342 2011-12-03  Bruno Haible  <bruno@clisp.org>
9343
9344         Tweak last commit.
9345         * lib/sethostname.c: Don't include <string.h>.
9346         (sethostname): No need to copy the argument string to the stack. Don't
9347         call clearerr. Preserve errno when fprintf failed.
9348         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9349         Don't invoke AC_REPLACE_FUNCS.
9350         * modules/sethostname (Link): Remove empty section.
9351         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9352         failure problem.
9353
9354 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9355
9356         New module 'sethostname'.
9357         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9358         for systems that lack it.
9359         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9360         sethostname declaration and function.
9361         * modules/sethostname: New file.  Define the sethostname module.
9362
9363 2011-12-03  Bruno Haible  <bruno@clisp.org>
9364
9365         Tweak last commit.
9366         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9367
9368 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9369
9370         Split the HOST_NAME_MAX detection into a separate m4 macro.
9371         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9372         macro so it can be used by the pending sethostname module.
9373
9374 2011-12-03  Bruno Haible  <bruno@clisp.org>
9375
9376         Fix module descriptions syntax.
9377         * modules/argv-iter (License): Fix syntax.
9378         * modules/di-set (License): Likewise.
9379         * modules/ino-map (License): Likewise.
9380         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9381
9382 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9383
9384         stdalign: port to Clang 3.0
9385         Problem reported by Simon Josefsson in
9386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9387         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9388         which has <stdalign.h> but which does not define alignof.
9389         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9390
9391 2011-12-01  Eric Blake  <eblake@redhat.com>
9392
9393         mktempd: silence dd usage
9394         * build-aux/mktempd (rand_bytes): Silence dd.
9395
9396 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9397
9398         manywarnings: Don't mention gcc version in docstring.
9399         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9400         Jim Meyering <meyering@redhat.com>.
9401
9402 2011-11-30  Jim Meyering  <meyering@redhat.com>
9403
9404         hash: mark a few floating point constants with "f" suffix
9405         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9406         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9407         floating point constants with "f", since they're destined to be
9408         saved/used as "float"s.
9409
9410 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9411
9412         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9413         * tests/test-float.c (test_long_double): Correct and re-enable the
9414         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9415
9416 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9417
9418         Avoid subtracting two pointers that don't point into the same block.
9419         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9420         only pointers into the same memory block are subtracted. We cannot
9421         assume that sizeof (ptrdiff_t) == sizeof (void *).
9422
9423 2011-11-29  Eric Blake  <eblake@redhat.com>
9424
9425         maint.mk: add syntax check for use of compare from init.sh
9426         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9427         moved here from coreutils.
9428
9429         manywarnings: drop -Wunsuffixed-float-constants
9430         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9431         '1.0D', which is the only way to silence this warning for 'double'.
9432
9433 2011-11-29  Jim Meyering  <meyering@redhat.com>
9434
9435         hash: mark compute_bucket_size with the pure attribute
9436         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9437
9438         quotearg, propername: correct pragma guard expression
9439         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9440         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9441
9442 2011-11-28  Jim Meyering  <meyering@redhat.com>
9443
9444         propername: do not mark proper_name with the const attribute
9445         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9446         since it examines data pointed to by its parameter.
9447         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9448         the suggestion from -Wsuggest-attribute=const.
9449
9450         propername: mark one more function as const
9451         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9452
9453 2011-11-27  Jim Meyering  <meyering@redhat.com>
9454
9455         mark functions with const and pure attributes
9456
9457         Mark functions per suggestions from gcc-4.6 when using these options:
9458         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9459         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9460         Follow these guidelines: when possible, apply the attribute to
9461         an extern declaration, not to its definition.  Apply it to the
9462         definition only when the definition is static.
9463         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9464         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9465         * lib/base64.h (isbase64): Likewise.
9466         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9467         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9468         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9469         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9470         (c_tolower, c_toupper): Likewise.
9471         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9472         * lib/chdir-long.c (find_non_slash): Likewise.
9473         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9474         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9475         * lib/file-type.h (file_type): Likewise.
9476         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9477         * lib/filevercmp.c (verrevcmp): Likewise.
9478         * lib/freadahead.h (freadahead): Likewise.
9479         * lib/fts.c (fts_maxarglen): Likewise.
9480         * lib/hash-pjw.h (hash_pjw): Likewise.
9481         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9482         * lib/hash.c (is_prime, next_prime): Likewise.
9483         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9484         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9485         (hash_table_ok, hash_get_first, hash_string): Likewise.
9486         (compute_bucket_size): Likewise.
9487         * lib/i-ring.h (i_ring_empty): Likewise.
9488         * lib/isnan.c (isnanl): Likewise.
9489         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9490         * lib/memcasecmp.h (memcasecmp): Likewise.
9491         * lib/memchr2.h (memchr2): Likewise.
9492         * lib/memcmp2.h (memcmp2): Likewise.
9493         * lib/parse-datetime.y (lookup_zone): Likewise.
9494         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9495         [!WINDOWS_SOCKETS]: Likewise.
9496         * lib/strnlen1.h (strnlen1): Likewise.
9497         * lib/uniwidth.in.h (uc_width): Likewise.
9498         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9499         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9500         (quoting_options_from_style): Add a comment.
9501         * lib/propername.h (proper_name): Add a comment.
9502
9503 2011-11-27  Bruno Haible  <bruno@clisp.org>
9504
9505         Remove unused macros from !_LIBC code in glibc-borrowed files.
9506         * lib/fnmatch.c (STRCOLL): Remove macro.
9507         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9508         * lib/glob.c (__stat, __readdir64): Remove macros.
9509         * lib/tempname.c (__open64, __xstat64): Remove macros.
9510         Suggested by Paul Eggert.
9511
9512 2011-11-27  Bruno Haible  <bruno@clisp.org>
9513
9514         getcwd: Fix link error on MSVC 9.
9515         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9516
9517 2011-11-27  Bruno Haible  <bruno@clisp.org>
9518
9519         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9520         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9521         HAVE_OPENDIR is 0.
9522         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9523         HAVE_CLOSEDIR is 0.
9524         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9525         is 0.
9526         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9527
9528 2011-11-27  Bruno Haible  <bruno@clisp.org>
9529
9530         getcwd: Fix bug from 2011-08-17.
9531         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9532         platforms that need it.
9533         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9534         code of 4 to be a failure, not a success. This ensures that
9535         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9536
9537 2011-11-27  Bruno Haible  <bruno@clisp.org>
9538
9539         binary-io tests: Avoid test failure on mingw when libtool is used.
9540         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9541         Don't verify the size of t-bin-out1.tmp here.
9542         * tests/test-binary-io.sh: Verify it here.
9543         Reported by Simon Josefsson.
9544
9545 2011-11-26  Bruno Haible  <bruno@clisp.org>
9546
9547         Fix conflict between two instantiations of module 'unistd'.
9548         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9549         ${include_guard_prefix} also in the autoconf snippet.
9550         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9552         GNULIB_UNISTD_H_GETOPT.
9553         * modules/getopt-posix (configure.ac): Set the
9554         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9555         * modules/getopt-gnu (configure.ac): Likewise.
9556         * modules/unistd (Makefile.am): Change the substitution value of
9557         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9558         Reported by Simon Josefsson.
9559
9560 2011-11-25  Bruno Haible  <bruno@clisp.org>
9561
9562         pagealign_alloc: Doc and comments.
9563         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9564         module.
9565         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9566
9567 2011-11-25  Jim Meyering  <meyering@redhat.com>
9568
9569         test-update-copyright.sh: avoid false-positive failure
9570         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9571         around false positive failure on Cygwin/Windows.  The latter was
9572         matching erroneously-created files with names like
9573         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9574
9575 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9576
9577         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9578         * m4/valgrind-tests.m4: Check that the parameters that will be
9579         used works, not just a subset of them.  Reported by Bruno Haible
9580         <bruno@clisp.org>.
9581
9582 2011-11-24  Jim Meyering  <meyering@redhat.com>
9583
9584         test-stdalign.c: comment out long double tests
9585         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9586         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9587         error: '_Alignas' specifiers cannot reduce alignment of \
9588         'static_longdouble_alignas'.
9589
9590 2011-11-22  Jim Meyering  <meyering@redhat.com>
9591
9592         init.sh: make "compare /dev/null FILE" output more readable
9593         * tests/init.sh (compare_): Document the preferred order of arguments.
9594         (emit_diff_u_header_): New function.
9595         (compare_dev_null_): Emit a simulated diff, rather than just the
9596         contents of the unexpected file.  Suggestion from Bruno Haible.
9597
9598 2011-11-21  Jim Meyering  <meyering@redhat.com>
9599             Eric Blake  <eblake@redhat.com>
9600
9601         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9602         * tests/init.sh: Make our compare function slightly more portable.
9603         Reported by Bruno Haible in
9604         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9605
9606 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9607
9608         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9609         before using it, in code that ends up in config.h.
9610
9611 2011-11-20  Bruno Haible  <bruno@clisp.org>
9612
9613         getcwd: Work around getcwd bug on AIX 5..7.
9614         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9615         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9616         Use a different value for gl_cv_func_getcwd_path_max. Move the
9617         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9618         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9619         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9620         Define HAVE_MINIMALLY_WORKING_GETCWD.
9621         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9622         where it is not even minimally working, that is, on AIX.
9623         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9624         m4/getcwd-path-max.m4.
9625         (main): Update exit code computation.
9626         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9627         getcwd does not handle long file names.
9628
9629 2011-11-20  Bruno Haible  <bruno@clisp.org>
9630
9631         getcwd: Fix bug from 2009-09-10.
9632         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9633         like "no".
9634
9635 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9636
9637         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9638
9639 2011-11-20  Bruno Haible  <bruno@clisp.org>
9640
9641         fma tests: Avoid shadowing local variables.
9642         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9643         expected.
9644
9645 2011-11-20  Bruno Haible  <bruno@clisp.org>
9646
9647         copysignf tests: Fix.
9648         * tests/test-copysignf.c: Fix signature check.
9649
9650 2011-11-20  Bruno Haible  <bruno@clisp.org>
9651
9652         fma: Remove unused code.
9653         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9654         unused macros.
9655
9656 2011-11-20  Bruno Haible  <bruno@clisp.org>
9657
9658         sethostname: Fix doc about AIX.
9659         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9660         sethostname; it has it.
9661
9662         sethostname: Mention more portability problems.
9663         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9664         problem.
9665         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9666
9667 2011-11-19  Bruno Haible  <bruno@clisp.org>
9668
9669         Depend on module fcntl-h when AT_FDCWD is used.
9670         * modules/utimens (Depends-on): Add fcntl-h.
9671         * modules/areadlinkat (Depends-on): Likewise.
9672         * modules/areadlinkat-with-size (Depends-on): Likewise.
9673         * modules/faccessat (Depends-on): Likewise.
9674         * modules/fchmodat (Depends-on): Likewise.
9675         * modules/fchownat (Depends-on): Likewise.
9676         * modules/getcwd (Depends-on): Likewise.
9677         * modules/mkdirat (Depends-on): Likewise.
9678         * modules/mkfifoat (Depends-on): Likewise.
9679         * modules/readlinkat (Depends-on): Likewise.
9680         * modules/symlinkat (Depends-on): Likewise.
9681         * modules/dup2-tests (Depends-on): Likewise.
9682         * modules/fdutimensat-tests (Depends-on): Likewise.
9683         * modules/futimens-tests (Depends-on): Likewise.
9684
9685 2011-11-19  Bruno Haible  <bruno@clisp.org>
9686
9687         euidaccess: Update a comment.
9688         * lib/euidaccess.c: Update comment about platforms with faccessat.
9689
9690 2011-11-19  Bruno Haible  <bruno@clisp.org>
9691
9692         openat: Fix file list.
9693         * modules/openat (Files): Remove lib/at-func.c.
9694
9695 2011-11-19  Bruno Haible  <bruno@clisp.org>
9696
9697         fstatat: Simplify.
9698         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9699         gnulib should define rpl_fstatat, there is a
9700         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9701
9702 2011-11-19  Bruno Haible  <bruno@clisp.org>
9703
9704         Ensure 'inline' can be used in tests/test-utimens-common.h.
9705         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9706         * modules/futimens-tests (configure.ac): Likewise.
9707         * modules/utimens-tests (configure.ac): Likewise.
9708         * modules/utimensat-tests (configure.ac): Likewise.
9709
9710 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9711
9712         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9713         not hash_insert0.
9714         (hash_insert_if_absent): Doc fix.
9715
9716 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9717
9718         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9719
9720 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9721
9722         test-getcwd: disambiguate exit status
9723         * tests/test-getcwd.c (test_long_name): Return 0..7.
9724         (main): Exit with an unambiguous exit status.  The old
9725         code yielded a mysterious mixture of two failure codes.
9726
9727         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9728         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9729         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9730         rpl_fstatat or fstatat.  This should fix the other problem
9731         reported by Kai Habel in
9732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9733         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9735         and I reproduced it on a Solaris 8 host we still have in production.
9736
9737 2011-11-18  Jim Meyering  <meyering@redhat.com>
9738
9739         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9740         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9741         Add a sentence to the comment.
9742         (hash_insert0): New function that simply calls hash_insert_if_absent.
9743         * lib/hash.h (hash_insert_if_absent): Declare it.
9744         (hash_insert0): Add deprecation attribute.
9745         (_GL_ATTRIBUTE_DEPRECATED): Define.
9746         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9747         not hash_insert0.
9748         * NEWS: Mention it, even though it's not really an incompatible change.
9749
9750 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9751
9752         openat: avoid compilation failure due to lack of <errno.h> inclusion
9753         * lib/openat.c: Include <errno.h>.
9754
9755 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9756
9757         * modules/getcwd (Depends-on): Add fdopendir.
9758         This fixes one of the two problems reported by Kai Habel in
9759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9760
9761         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9762         stdalign problem reported by Ian Beckwith in
9763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9764         * modules/crypto/gc-arcfour (Depends-on):
9765         Depend conditionally on crypto/arcfour.
9766         * modules/crypto/gc-arctwo (Depends-on):
9767         Depend conditionally on crypto/arctwo.
9768         * modules/crypto/gc-des (Depends-on):
9769         Depend conditionally on crypto/des.
9770         * modules/crypto/gc-hmac-md5 (Depends-on):
9771         Depend conditionally on crypto/hmac-md5.
9772         * modules/crypto/gc-hmac-sha1 (Depends-on):
9773         Depend conditionally on crypto/hmac-sha1.
9774         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9775         * modules/crypto/gc-md4 (Depends-on):
9776         Depend conditionally on crypto/md4.
9777         * modules/crypto/gc-md5 (Depends-on):
9778         Depend conditionally on crypto/md5.
9779         * modules/crypto/gc-rijndael (Depends-on):
9780         Depend conditionally on crypto/rijndael.
9781         * modules/crypto/gc-sha1 (Depends-on):
9782         Depend conditionally on crypto/sha1.
9783         * modules/crypto/gc-arcfour:
9784         * modules/crypto/gc-arctwo:
9785         * modules/crypto/gc-des:
9786         * modules/crypto/gc-hmac-md5:
9787         * modules/crypto/gc-hmac-sha1:
9788         * modules/crypto/gc-md2:
9789         * modules/crypto/gc-md4:
9790         * modules/crypto/gc-md5:
9791         * modules/crypto/gc-rijndael:
9792         * modules/crypto/gc-sha1:
9793         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9794         now that the conditional dependencies do the work for us.
9795
9796 2011-11-17  Jim Meyering  <meyering@redhat.com>
9797
9798         tests: factor st_ctime-comparison out of two headers
9799         * tests/test-utimens-common.h (ctime_compare): Define.
9800         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9801         * tests/test-lutimens.h (test_lutimens): Likewise.
9802         * tests/test-utimens.h (test_utimens): Likewise.
9803
9804         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9805         Invoke the test program via an init.sh-using wrapper.
9806         * tests/test-getcwd.sh: New file.
9807         * modules/getcwd-tests (Files): Add it.
9808         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9809
9810 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9811
9812         gitlog-to-changelog: support multi-author commits.
9813         The FSF cares about keeping track of all authors of patches to its
9814         projects, but Git doesn't provide obvious support for multi-author
9815         changesets. Consensus seems to be forming around the use of extra
9816         Signed-off-by inspired lines in the log message formatted as
9817         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9818         multi-author commits between version control systems.
9819         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9820         log message and output in standard ChangeLog multi-author format.
9821         Reported by Peter Rosin <peda@lysator.liu.se>
9822
9823 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9824             Bruno Haible  <bruno@clisp.org>
9825
9826         Fix some modules' file list.
9827         * modules/fstatat (Files): Add m4/lstat.m4.
9828         * modules/openat (Files): Likewise.
9829         * modules/unlinkat (Files): Likewise.
9830
9831 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9832
9833         maint.mk: fix tight-scope.mk generation in VPATH builds.
9834         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9835         reference with $(srcdir) so that the file is found correctly even
9836         when running `make syntax-check' in a VPATH build.
9837
9838 2011-11-13  Bruno Haible  <bruno@clisp.org>
9839             Jim Meyering  <meyering@redhat.com>
9840
9841         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9842         * tests/init.sh (compare): Remove "No differences encountered" or
9843         synonymous output from the 'diff' program.
9844
9845 2011-11-13  Bruno Haible  <bruno@clisp.org>
9846
9847         Makefile: Tweak indentation.
9848         * Makefile: Use tab as first character in every line that contains rule
9849         commands.
9850
9851 2011-11-13  Bruno Haible  <bruno@clisp.org>
9852
9853         Syntax check for copyright statements.
9854         * check-copyright: New file.
9855         * Makefile (sc_check_copyright): New rule.
9856
9857 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9858
9859         * build-aux/git-version-gen: Add --prefix to configure the tag
9860         match string.
9861
9862 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9863
9864         * build-aux/git-version-gen: Add --help and --version.
9865
9866 2011-11-12  Jim Meyering  <meyering@redhat.com>
9867
9868         revamp the other test-exclude?.sh scripts to use init.sh, too
9869         * tests/test-exclude1.sh: Use init.sh.
9870         * tests/test-exclude2.sh: Likewise.
9871         * tests/test-exclude3.sh: Likewise.
9872         * tests/test-exclude4.sh: Likewise.
9873         * tests/test-exclude5.sh: Likewise.
9874         * tests/test-exclude6.sh: Likewise.
9875         * tests/test-exclude7.sh: Likewise.
9876         * tests/test-exclude8.sh: Likewise.
9877         * modules/exclude-tests (Files): List init.sh.
9878
9879         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9880         These shell scripts ignored failure of the binary test-exclude,
9881         so making the latter return 77 didn't cause them to be skipped.
9882         * tests/test-exclude5.sh: Exit with test-exclude's error status
9883         when that program fails.  Revamp to use init.sh.
9884         * tests/test-exclude2.sh: Likewise.
9885
9886         test-exclude: fix a typo
9887         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9888
9889 2011-11-11  Bruno Haible  <bruno@clisp.org>
9890
9891         obstack: Fix compilation error on MSVC 9.
9892         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9893
9894 2011-11-11  Jim Meyering  <meyering@redhat.com>
9895
9896         test-exclude: skip tests rather than failing on deficient systems
9897         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9898         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9899         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9900         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9901
9902 2011-11-10  Bruno Haible  <bruno@clisp.org>
9903
9904         ptsname_r test: Avoid gcc warning on glibc systems.
9905         * tests/test-ptsname_r.c (null_ptr): New function.
9906         (test_errors): Use it.
9907
9908 2011-11-10  Bruno Haible  <bruno@clisp.org>
9909
9910         ptsname_r: Avoid compilation error on OSF/1 5.1.
9911         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9913         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9914         function is not declared or incompatibly declared.
9915         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9916         * modules/ptsname_r (Depends-on, configure.ac): Update.
9917         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9918
9919 2011-11-10  Bruno Haible  <bruno@clisp.org>
9920
9921         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9922         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9923         When cross-compiling, guess yes on all platforms except AIX.
9924         Reported by Ludovic Courtès <ludo@gnu.org>.
9925
9926 2011-11-09  Bruno Haible  <bruno@clisp.org>
9927
9928         ptsname_r tests: Fix bugs.
9929         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9930         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9931
9932 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9933
9934         fstatat: work with cross-compilation
9935         Problem reported by Ludovic Courtès in
9936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9937         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9938         "cross-compiling" and assume the bug is present.  Replace
9939         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9940         an inverted sense, to be more conservative about our assumptions.
9941         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9942
9943 2011-11-09  Bruno Haible  <bruno@clisp.org>
9944
9945         Improve MODULES.html output.
9946         * modules/mkfifoat (Description): Use the word "function".
9947         * modules/readlinkat (Description): Likewise.
9948         * modules/symlinkat (Description): Likewise.
9949
9950 2011-11-09  Eric Blake  <eblake@redhat.com>
9951
9952         ptsname_r-tests: new test module
9953         * modules/ptsname_r-tests: New module.
9954         * tests/test-ptsname_r.c: New file.
9955
9956         ptsname_r: new module
9957         * modules/ptsname_r: New module.
9958         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9959         * lib/ptsname.c (__ptsname_r): Split...
9960         * lib/ptsname_r.c: ...into new file.
9961         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9962         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9963         * modules/stdlib (Makefile.am): Substitute witnesses.
9964         * lib/stdlib.in.h (ptsname_r): Declare it.
9965         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9966         * MODULES.html.sh (Misc): Likewise.
9967         * modules/ptsname (Depends-on): Alter dependency.
9968         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9969
9970 2011-11-09  Jim Meyering  <meyering@redhat.com>
9971
9972         announce-gen: be more concise when there's only one URL+tarball
9973         * build-aux/announce-gen (get_tool_versions): When you distribute
9974         only one type of tarball, combine the first two "Here are..."
9975         sections and make the key-checking grammar independent of
9976         how many tarballs there are.
9977
9978 2011-11-09  Eric Blake  <eblake@redhat.com>
9979
9980         openpty: provide a stub on mingw
9981         * lib/pty.in.h (includes): Provide forward declarations.
9982         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9983
9984         raise: fix mingw handling of SIGPIPE
9985         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9986
9987 2011-11-08  Bruno Haible  <bruno@clisp.org>
9988
9989         More conditional dependencies.
9990         * modules/faccessat (Depends-on): Add conditions.
9991         * modules/fchmodat (Depends-on): Likewise.
9992         * modules/fchownat (Depends-on): Likewise.
9993         * modules/fstatat (Depends-on): Likewise.
9994         * modules/mkfifoat (Depends-on): Likewise.
9995         * modules/readlinkat (Depends-on): Likewise.
9996         * modules/symlinkat (Depends-on): Likewise.
9997         * modules/unlinkat (Depends-on): Likewise.
9998         * modules/utimensat (Depends-on): Likewise.
9999         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10000         * modules/linkat (Depends-on): Refine the conditions.
10001         * modules/renameat (Depends-on): Likewise.
10002
10003 2011-11-08  Bruno Haible  <bruno@clisp.org>
10004
10005         faccessat: Move AC_LIBOBJ invocation to module description.
10006         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10007         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10008         invocation from here...
10009         * modules/faccessat (configure.ac): ... to here. Invoke
10010         gl_PREREQ_FACCESSAT.
10011
10012 2011-11-08  Bruno Haible  <bruno@clisp.org>
10013
10014         faccessat: Simplify autoconf macro.
10015         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10016         gl_FUNC_EUIDACCESS.
10017
10018 2011-11-08  Bruno Haible  <bruno@clisp.org>
10019
10020         renameat: Fix dependencies.
10021         * modules/renameat (Depends-on): Add stdbool.
10022
10023 2011-11-08  Bruno Haible  <bruno@clisp.org>
10024
10025         mkfifoat: Fix module description.
10026         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10027         not gl_UNISTD_MODULE_INDICATOR.
10028
10029 2011-11-08  Bruno Haible  <bruno@clisp.org>
10030
10031         fstatat: Remove unused dependency.
10032         * modules/fstatat (Depends-on): Remove fstat.
10033
10034 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10035
10036         GNUmakefile: behave when Makefile is missing.
10037         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10038
10039 2011-11-08  Bruno Haible  <bruno@clisp.org>
10040
10041         openat: Conditionalize dependencies.
10042         * lib/openat.c: Reduce the scope of some #includes.
10043         * modules/openat (Depends-on): Add conditions.
10044
10045 2011-11-07  Jim Meyering  <meyering@redhat.com>
10046
10047         maint.mk: extract GPG key ID without using a temporary file
10048         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10049         without using a temporary file.  Based on a suggestion from Werner Koch
10050         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10051
10052 2011-11-07  Eric Blake  <eblake@redhat.com>
10053
10054         grantpt: fix typo
10055         * lib/stdlib.in.h (grantpt): Check correct function.
10056
10057         maint.mk: silence new syntax check
10058         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10059
10060 2011-11-06  Bruno Haible  <bruno@clisp.org>
10061
10062         Doc about floating-point and math API.
10063         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10064         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10065
10066 2011-11-06  Bruno Haible  <bruno@clisp.org>
10067
10068         stdalign tests: Skip the test when compiled by Sun C.
10069         * tests/test-stdalign.c (main): Skip the test on Sun C.
10070
10071 2011-11-06  Bruno Haible  <bruno@clisp.org>
10072
10073         ansi-c++-opt: Complete the 2011-06-05 change.
10074         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10075         does not support namespaces, set the variable to "no", not to ":".
10076
10077 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10078
10079         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10080
10081 2011-11-06  Bruno Haible  <bruno@clisp.org>
10082
10083         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10084         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10085         (minus_zerol) [HP-UX]: New macro.
10086         (unary_minus) [HP-UX]: New function.
10087         (copysignl) [HP-UX]: Use unary_minus function.
10088
10089 2011-11-06  Bruno Haible  <bruno@clisp.org>
10090
10091         ldexp, ldexpf, ldexpl: Enhance tests.
10092         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10093         and tests/test-ldexpl.c.
10094         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10095         LDEXP, MIN_EXP, MAX_EXP): New macros.
10096         Include test-ldexp.h.
10097         (main): Just call test_function.
10098         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10099         infinity.h, nan.h.
10100         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10101         MAX_EXP): New macros.
10102         Include test-ldexp.h.
10103         (x, y): Remove variables.
10104         (main): Just call test_function.
10105         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10106         infinity.h, nan.h.
10107         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10108         MAX_EXP): New macros.
10109         Include test-ldexp.h.
10110         (x, y): Remove variables.
10111         (main): Just call test_function.
10112         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10113         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10114         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10115         (Depends-on): Add isnand-nolibm, signbit, float.
10116         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10117         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10118         (Depends-on): Add isnanf-nolibm, signbit, float.
10119
10120 2011-11-06  Bruno Haible  <bruno@clisp.org>
10121
10122         math tests: Cosmetics.
10123         * tests/test-math-c++.cc: Reorder declarations.
10124
10125 2011-11-05  Bruno Haible  <bruno@clisp.org>
10126
10127         fma*: Simplify test.
10128         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10129         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10130
10131         Tests for module 'fmal'.
10132         * modules/fmal-tests: New file.
10133         * tests/test-fmal1.c: New file.
10134         * tests/test-fmal2.c: New file.
10135
10136         New module 'fmal'.
10137         * lib/math.in.h (fmal): New declaration.
10138         * lib/fmal.c: New file.
10139         * m4/fmal.m4: New file.
10140         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10142         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10143         REPLACE_FMAL.
10144         * modules/fmal: New file.
10145         * doc/posix-functions/fmal.texi: Mention the new module and the various
10146         bugs.
10147
10148         Tests for module 'fmaf'.
10149         * modules/fmaf-tests: New file.
10150         * tests/test-fmaf1.c: New file.
10151         * tests/test-fmaf2.c: New file.
10152
10153         New module 'fmaf'.
10154         * lib/math.in.h (fmaf): New declaration.
10155         * lib/fmaf.c: New file.
10156         * m4/fmaf.m4: New file.
10157         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10159         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10160         REPLACE_FMAF.
10161         * modules/fmaf: New file.
10162         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10163         bugs.
10164
10165         Tests for module 'fma'.
10166         * modules/fma-tests: New file.
10167         * tests/test-fma1.c: New file.
10168         * tests/test-fma1.h: New file.
10169         * tests/test-fma2.c: New file.
10170         * tests/test-fma2.h: New file.
10171
10172         New module 'fma'.
10173         * lib/math.in.h (fma): New declaration.
10174         * lib/fma.c: New file.
10175         * m4/fma.m4: New file.
10176         * m4/fegetround.m4: New file.
10177         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10179         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10180         REPLACE_FMA.
10181         * modules/fma: New file.
10182         * doc/posix-functions/fma.texi: Mention the new module and the various
10183         bugs.
10184
10185         Extend gl_MATHFUNC.
10186         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10187         Support 'void' as argument type.
10188         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10189
10190 2011-11-05  Jim Meyering  <meyering@redhat.com>
10191
10192         maint.mk: also prohibit inclusion of dirent.h without use
10193         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10194
10195 2011-11-05  Bruno Haible  <bruno@clisp.org>
10196
10197         ldexpl tests: Avoid test failure on MSVC 9.
10198         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10199         value. Needed in order to enforce the conversion from a value greater
10200         than LDBL_MAX to Infinity.
10201
10202 2011-11-05  Bruno Haible  <bruno@clisp.org>
10203
10204         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10205         * modules/at-internal: New file, extracted from modules/openat.
10206         * modules/openat-h: New file.
10207         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10208         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10209         * modules/openat (Description): Add reference to POSIX function.
10210         (Files): Remove lib/openat.h, lib/openat-proc.c.
10211         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10212         intprops, unistd.
10213         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10214         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10215         gl_FCNTL_MODULE_INDICATOR.
10216         (Include): Remove unistd.h, openat.h.
10217         * modules/areadlinkat (Files): Add lib/at-func.c.
10218         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10219         openat-die, openat-h, save-cwd.
10220         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10221         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10222         openat-die, openat-h, save-cwd, unistd.
10223         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10224         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10225         openat-h, save-cwd. Remove fcntl-h, openat.
10226         * modules/fchmodat (Files): Remove lib/openat.h.
10227         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10228         openat, stdbool, unistd.
10229         * modules/fchownat (Files): Remove lib/openat.h.
10230         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10231         openat, stdbool, sys_stat.
10232         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10233         lib/openat-proc.c.
10234         (Depends-on): Add at-internal.
10235         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10236         * modules/fstatat (Files): Remove lib/openat.h.
10237         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10238         stdbool, unistd.
10239         * modules/fts (Depends-on): Add openat-h.
10240         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10241         openat.
10242         * modules/mkdirat (Files): Remove lib/openat.h.
10243         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10244         openat, stdbool, sys_stat.
10245         * modules/mkfifoat (Files): Add lib/at-func.c.
10246         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10247         openat-h, save-cwd. Remove fcntl-h, openat.
10248         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10249         * modules/readlinkat (Files): Add lib/at-func.c.
10250         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10251         openat-h, save-cwd. Remove fcntl-h, openat.
10252         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10253         openat.
10254         * modules/selinux-at (Files): Add lib/at-func.c.
10255         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10256         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10257         * modules/symlinkat (Files): Add lib/at-func.c.
10258         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10259         openat-h, save-cwd. Remove fcntl-h, openat.
10260         * modules/unlinkat (Files): Remove lib/openat.h.
10261         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10262         stdbool.
10263         * modules/utimensat (Files): Add lib/at-func.c.
10264         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10265         openat-die, openat-h, save-cwd.
10266         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10267         * modules/fdutimensat-tests (Depends-on): Add openat.
10268         * modules/fstatat-tests (Depends-on): Add openat-h.
10269         * modules/readlinkat-tests (Depends-on): Add openat.
10270         * modules/symlinkat-tests (Depends-on): Add openat.
10271
10272 2011-11-05  Bruno Haible  <bruno@clisp.org>
10273
10274         openat: Include <stdbool.h>.
10275         * lib/openat.c: Include <stdbool.h>.
10276
10277 2011-11-04  Bruno Haible  <bruno@clisp.org>
10278
10279         fchownat, renameat, unlinkat: Fix dependencies.
10280         * modules/fchownat (Depends-on): Add fstatat.
10281         * modules/renameat (Depends-on): Likewise.
10282         * modules/unlinkat (Depends-on): Likewise.
10283
10284 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10285
10286         openat: remove direct dependency on dirent
10287         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10288         and hasn't been needed ever since fdopendir was split into its own
10289         module on 2009-08-31.
10290         * modules/openat (Depends-on): Remove dirent.
10291
10292 2011-11-04  Bruno Haible  <bruno@clisp.org>
10293
10294         renameat: Optimize code size.
10295         * modules/renameat (configure.ac): Don't compile at-func2.c if
10296         REPLACE_RENAMEAT is 1.
10297
10298 2011-11-04  Bruno Haible  <bruno@clisp.org>
10299
10300         openat tests: Fix file list.
10301         * modules/openat-tests (Files): Add tests/test-open.h.
10302
10303 2011-11-04  Bruno Haible  <bruno@clisp.org>
10304
10305         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10306         * modules/fchmodat (Depends-on): Add openat-die.
10307         * modules/fchownat (Depends-on): Likewise.
10308         * modules/linkat (Depends-on): Likewise.
10309         * modules/renameat (Depends-on): Likewise.
10310         * modules/openat (Depends-on): Add dirent.
10311
10312 2011-11-04  Jim Meyering  <meyering@redhat.com>
10313
10314         at-func*.c: fix comments
10315         * lib/at-func2.c: Correct/improve first-line comment.
10316         * lib/at-func.c: Correct grammar in first-line comment.
10317
10318 2011-11-04  Bruno Haible  <bruno@clisp.org>
10319
10320         New module 'mkdirat', split off from module 'openat'.
10321         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10322         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10323         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10324         * modules/mkdirat: New file, extracted from modules/openat.
10325         * modules/openat (Files): Remove lib/mkdirat.c.
10326         (Depends-on): Remove mkdir.
10327         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10328         (Include): Remove <sys/stat.h>.
10329         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10330         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10331         tests/test-mkdir.h.
10332         (Depends-on): Remove ignore-value.
10333         (Makefile.am): Remove rules for test-mkdirat.
10334         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10335         of module 'openat'.
10336         * NEWS: Mention the change.
10337
10338 2011-11-04  Bruno Haible  <bruno@clisp.org>
10339
10340         closedir: Avoid warning on mingw.
10341         * lib/closedir.c: Include <unistd.h>.
10342
10343 2011-11-04  Bruno Haible  <bruno@clisp.org>
10344
10345         New module 'fstatat', split off from module 'openat'.
10346         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10347         defined.
10348         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10349         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10350         gl_FUNC_FSTATAT.
10351         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10352         * modules/fstatat: New file, extracted from modules/openat.
10353         * modules/openat (Files): Remove lib/fstatat.c.
10354         (Depends-on): Remove lstat.
10355         (configure.ac): Remove AC_LIBOBJ of fstatat.
10356         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10357         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10358         tests/test-lstat.h, tests/test-stat.h.
10359         (Depends-on): Remove getcwd-lgpl.
10360         (Makefile.am): Remove rules for test-fstatat.
10361         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10362         of module 'openat'.
10363         * NEWS: Mention the change.
10364         * modules/getcwd (Depends-on): Add fstatat.
10365         * modules/linkat (Depends-on): Likewise.
10366         * modules/mkfifoat-tests (Depends-on): Likewise.
10367         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10368
10369 2011-11-03  Bruno Haible  <bruno@clisp.org>
10370
10371         New module 'unlinkat', split off from module 'openat'.
10372         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10373         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10374         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10375         * modules/unlinkat: New file, extracted from modules/openat. Correct
10376         the dependency conditions.
10377         * modules/openat (Files): Remove lib/unlinkat.c.
10378         (Depends-on): Remove rmdir, unlink.
10379         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10380         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10381         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10382         tests/test-rmdir.h, tests/test-unlink.h.
10383         (Depends-on): Remove unlinkdir.
10384         (Makefile.am): Remove rules for test-unlinkat.
10385         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10386         of module 'openat'.
10387         * NEWS: Mention the change.
10388         * modules/linkat-tests (Depends-on): Add unlinkat.
10389         * modules/mkfifoat-tests (Depends-on): Likewise.
10390         * modules/readlinkat-tests (Depends-on): Likewise.
10391
10392 2011-11-02  Bruno Haible  <bruno@clisp.org>
10393
10394         New module 'fchmodat', split off from module 'openat'.
10395         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10396         defined.
10397         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10398         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10399         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10400         * modules/fchmodat: New file, extracted from modules/openat.
10401         * modules/openat (Files): Remove lib/fchmodat.c.
10402         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10403         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10404         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10405         (Makefile.am): Remove rules for test-fchmodat.
10406         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10407         of module 'openat'.
10408         * NEWS: Mention the change.
10409
10410 2011-11-02  Jim Meyering  <meyering@redhat.com>
10411
10412         putenv: indent #definition of "environ" to placate cppi
10413         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10414
10415         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10416         Git logs are often treated as immutable, because editing them
10417         changes the SHA1 checksums of all descendants.  Thus, errors in
10418         git logs tend to stay there forever.  However, when we generate
10419         a ChangeLog file -- typically for distribution -- from that git log,
10420         we can actually make corrections in the generated file.  The key
10421         lies in recording in machine-readable/applicable form the desired
10422         corrections.  See --help for description and an example.
10423         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10424         (usage): Describe it; alphabetize option descriptions.
10425         (main): Honor the new option, carefully.
10426
10427 2011-11-01  Jim Meyering  <meyering@redhat.com>
10428
10429         gitlog-to-changelog: avoid an infloop
10430         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10431         that ends up being empty.
10432
10433 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10434
10435         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10436         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10437         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10438         contains (possibly-quoted) backslashes.  This should avoid
10439         all-too-common shell bugs if COMPLICATED contains backslashes in
10440         the "wrong" places.  Reported by David Evans in
10441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10442         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10443         because we want ASCII ranges.  Is there some reason we don't use
10444         the C locale everywhere in this script?
10445         (func_module, top level): Avoid unwanted pathname expansion when
10446         $repo_url_prefix or $repo_url_suffix_repl contain shell
10447         metacharacters like '?' and '*'.
10448
10449 2011-11-01  Bruno Haible  <bruno@clisp.org>
10450
10451         fchownat: Improve description.
10452         * modules/fchownat (Description): Add link to function.
10453
10454 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10455
10456         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10457         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10459         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10460
10461 2011-11-01  Bruno Haible  <bruno@clisp.org>
10462
10463         alignof: Avoid collision with stdalign module.
10464         * lib/alignof.h (alignof): Remove macro.
10465         * NEWS: Mention the change.
10466         Reported by Paul Eggert.
10467
10468 2011-11-01  Bruno Haible  <bruno@clisp.org>
10469
10470         New module 'fchownat', split off from module 'openat'.
10471         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10472         defined.
10473         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10474         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10475         invoke gl_FUNC_FCHOWNAT.
10476         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10477         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10478         * modules/fchownat: New file, extracted from modules/openat.
10479         * modules/openat (Files): Remove lib/fchownat.c.
10480         (Depends-on): Remove lchown.
10481         (configure.ac): Remove AC_LIBOBJ of fchownat.
10482         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10483         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10484         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10485         (Depends-on): Remove mgetgroups, usleep, stat-time.
10486         (configure.ac): Remove test for getegid.
10487         (Makefile.am): Remove rules for test-fchownat.
10488         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10489         of module 'openat'.
10490         * NEWS: Mention the change.
10491
10492 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10493
10494         stdalign: port better to MSVC and to Sun C 5.11
10495         This fixes some of the problems reported by Bruno Haible in
10496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10497         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10498         shortcomings of MSVC and of Sun C 5.11.
10499         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10500         around __declspec arg.
10501         * modules/stdalign-tests (Files): Add tests/macros.h.
10502         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10503         Include macros.h, for ASSERT.
10504         (DECLARE_ALIGNED): Remove.
10505         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10506         to catch bug), and to 1 if not (simplifies the rest of the code).
10507         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10508         (CHECK_AUTO): Remove.
10509         (CHECK_ALIGNED): Check only the alignment of the static vars,
10510         since auto var alignment isn't supported by Sun C 5.11.
10511         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10512         ASSERT failures are easier to diagnose.
10513
10514 2011-10-31  Bruno Haible  <bruno@clisp.org>
10515
10516         doc about some IRIX 5.3 problems.
10517         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10518         on IRIX 5.3.
10519         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10520         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10521         5.3.
10522         * doc/posix-functions/grantpt.texi: Likewise.
10523         * doc/posix-functions/unlockpt.texi: Likewise.
10524         * doc/posix-functions/lgamma.texi: Likewise.
10525         * doc/posix-functions/nextafter.texi: Likewise.
10526         * doc/posix-functions/remainder.texi: Likewise.
10527         * doc/posix-functions/select.texi: Mention misplaced declaration on
10528         IRIX 5.3.
10529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10530
10531 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10532
10533         gitlog-to-changelog: fix git-log invocation.
10534         git-log mishandles date strings before 1970-01-01 UTC, and there is
10535         no use to specify --since=1970-01-01 by default anyway.
10536         * build-aux/gitlog-to-changelog: By default, when no --since option
10537         was given, do not specify explicit --since option to git-log.
10538
10539 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10540
10541         gitlog-to-changelog: new option --append-dot.
10542         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10543         first non-blank line of each commit message terminated with a dot.
10544
10545 2011-10-30  Bruno Haible  <bruno@clisp.org>
10546
10547         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10548         * lib/ffsl.h: Include <config.h>.
10549         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10550
10551 2011-10-30  Jim Meyering  <meyering@redhat.com>
10552
10553         GNUmakefile: reenable "make syntax-check" for most projects
10554         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10555         build-aux variable", "syntax-check" would do nothing but succeed with
10556         the "No version control files detected..." diagnostic (unless you
10557         happened to override _build-aux via cfg.mk).
10558         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10559         to precede inclusion of maint.mk.  Otherwise, these variables would
10560         be used undefined in any project that does not override the default.
10561
10562 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10563
10564         gitlog-to-changelog: treat a message with only blank lines as empty.
10565         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10566         trailing blank lines before the code that issues a warning about an
10567         empty commit message.
10568
10569 2011-10-30  Jim Meyering  <meyering@redhat.com>
10570
10571         test-parse-datetime.c: avoid new DST-related false positive test failure
10572         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10573         based on the time/date we'll convert, not the current time.
10574         Otherwise, the moment we cross a DST boundary like today's in
10575         Europe, (CEST to CET), that offset ends up being one hour off.
10576
10577 2011-10-27  Bruno Haible  <bruno@clisp.org>
10578
10579         fstat: Tweak documentation.
10580         * modules/fstat (Description): More precise description.
10581
10582 2011-10-27  Bruno Haible  <bruno@clisp.org>
10583
10584         Update documentation regarding 'largefile' module.
10585         * doc/posix-functions/fstat.texi: Tweak wording.
10586         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10587         problems with huge directories and/or small ino_t types.
10588         * doc/posix-functions/readdir.texi: Likewise.
10589         * doc/posix-functions/rewinddir.texi: Likewise.
10590
10591 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10592
10593         maint.mk: don't maintain a second build-aux variable.
10594         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10595         depends on GNUmakefile, which already maintains a cfg.mk
10596         overridable $(_build-aux) for projects with a non-standard
10597         build-aux directory location, although without the $(srcdir)
10598         prefix.  Use that variable consistently instead of introducing a
10599         second one.  Adjust all call sites.
10600
10601 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10602
10603         Add stdalign module and use it in other modules.
10604         This is based on a previous proposal by Bruno Haible
10605         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10606
10607         stdalign: new module
10608         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10609         * modules/stdalign: New files.
10610         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10611         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10612
10613         stdalign-tests: new module
10614         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10615
10616         argp: use stdalign
10617         * lib/argp-parse.c: Include <stdalign.h>.
10618         (alignof): Remove.
10619         * modules/argp (Depends-on): Add stdalign.
10620
10621         crypto libraries: use stdalign
10622         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10623         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10624         Do not include <stdlib.h> twice, in md4.c.
10625         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10626         because we are accessing a pointer's bit-pattern, not a size.
10627         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10628         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10629         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10630         * modules/crypto/sha512: Likewise.
10631
10632         sys_socket: use stdalign, not alignof
10633         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10634         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10635
10636 2011-10-27  Bruno Haible  <bruno@clisp.org>
10637
10638         raise test: Avoid a test failure on Linux/MIPS.
10639         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10640         because 99 is a valid signal on Linux/MIPS.
10641
10642 2011-10-27  Bruno Haible  <bruno@clisp.org>
10643
10644         nonblocking tests: Fix test failure on Linux/MIPS.
10645         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10646         Set to 270000.
10647
10648 2011-10-27  Bruno Haible  <bruno@clisp.org>
10649
10650         utimensat: Work around problem on Linux/hppa.
10651         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10652         values.
10653         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10654
10655 2011-10-25  Jim Meyering  <meyering@redhat.com>
10656
10657         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10658         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10659         after symbols like NULL, size_t, etc.
10660         Reported by Alfred M. Szmidt.
10661
10662         maint.mk: exempt ENODATA from a syntax-check rule
10663         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10664         from the sc_prohibit_always-defined_macros syntax-check rule.
10665         Add a comment.  See this for more details:
10666         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10667
10668 2011-10-23  Jim Meyering  <meyering@redhat.com>
10669
10670         fts: close parent dir FD before returning from post-traversal fts_read
10671         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10672         unlink A, even though an FD open on A remained.  This is suboptimal
10673         (holding a file descriptor open longer than needed), but otherwise not
10674         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10675         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10676         that represents a real problem: it causes the removal of A to fail
10677         with e.g., "rm: cannot remove `A': Device or resource busy"
10678
10679         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10680         directory file descriptors.  After completing the final, FTS_DP,
10681         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10682         cache, but then proceeded to add a new FD to it via the subsequent
10683         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10684         final file descriptor would be closed only via fts_close's call to
10685         fd_ring_clear.  Now, it is usually closed earlier, via the final
10686         FTS_DP-returning fts_read call.
10687         * lib/fts.c (restore_initial_cwd): New function, converted from
10688         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10689         Update callers.
10690         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10691         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10692
10693 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10694             Bruno Haible  <bruno@clisp.org>
10695             Jim Meyering  <jim@meyering.net>
10696
10697         readme-release: improve safety of release prep instructions.
10698         * README-release: Don't git pull all branches when only master
10699         is needed for the release process.
10700         Run make maintainer-clean before changing trees and merging.
10701         Don't try to run ./configure right after git pull in case files
10702         that influence the bootstrap process have changed, move the
10703         ./configure step to after running ./bootstrap.
10704         Don't bootstrap "one last time"... it's the first time!
10705
10706 2011-10-22  Bruno Haible  <bruno@clisp.org>
10707
10708         errno, strerror-override: Support for MSVC 10.
10709         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10710         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10711         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10712         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10713         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10714         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10715         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10716         Assign values compatible with MSVC 10.
10717         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10718         New macros.
10719         (GNULIB_defined_EWINSOCK): New macro.
10720         * lib/strerror-override.c (strerror_override): Update accordingly.
10721         * lib/strerror-override.h: Likewise.
10722         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10723         longer equal to the corresponding errno value.
10724         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10725
10726 2011-10-22  Bruno Haible  <bruno@clisp.org>
10727
10728         perror: Recognize when test program crashes.
10729         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10730         strerror, set gl_cv_func_perror_works to no.
10731         Reported by Daniel Richard G. <skunk@iskunk.org>.
10732
10733         perror: Fix indentation.
10734         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10735
10736 2011-10-22  Bruno Haible  <bruno@clisp.org>
10737
10738         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10739         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10740         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10741         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10742         functions, not as a macro.
10743         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10744         macros.
10745         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10746         absence of macro.
10747         Suggested by Eric Blake.
10748         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10749
10750 2011-10-21  Bruno Haible  <bruno@clisp.org>
10751
10752         relocatable-prog-wrapper: Don't leave object files behind.
10753         * build-aux/install-reloc: Re-synchronize list of .o files to be
10754         removed with list of compilation units.
10755
10756 2011-10-20  Bruno Haible  <bruno@clisp.org>
10757
10758         openpty, posix_openpt: Remove code duplication.
10759         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10760         * lib/openpty.c: Include <stdlib.h>.
10761         (openpty): Use posix_openpt on all platforms except IRIX.
10762         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10763
10764 2011-10-20  Bruno Haible  <bruno@clisp.org>
10765
10766         unlockpt: Detect invalid argument.
10767         * lib/unlockpt.c: Include <fcntl.h>.
10768         (unlockpt): Check whether fd is valid, using fcntl().
10769         * modules/unlockpt (Depends-on): Add fcntl-h.
10770
10771 2011-10-20  Bruno Haible  <bruno@clisp.org>
10772
10773         openpty: Avoid compilation error on AIX 6.1.
10774         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10775
10776 2011-10-20  Bruno Haible  <bruno@clisp.org>
10777
10778         posix_openpt: Support for OpenBSD.
10779         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10780         (posix_openpt) [OpenBSD]: New code.
10781         * lib/grantpt.c: Include <fcntl.h>.
10782         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10783         * modules/grantpt (Depends-on): Add fcntl-h.
10784
10785 2011-10-20  Bruno Haible  <bruno@clisp.org>
10786
10787         posix_openpt test: Coding style.
10788         * tests/test-posix_openpt.c: Use GNU coding style.
10789
10790 2011-10-20  Bruno Haible  <bruno@clisp.org>
10791
10792         grantpt: Support --avoid=pt_chown.
10793         * modules/grantpt (Files): Add lib/pty-private.h.
10794
10795 2011-10-20  Bruno Haible  <bruno@clisp.org>
10796
10797         posix_openpt: Fix autoconf macro.
10798         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10799         unneeded check for _getpty.
10800
10801 2011-10-20  Bruno Haible  <bruno@clisp.org>
10802
10803         openpty: Update comments.
10804         * lib/openpty.c: Add comments about Minix.
10805
10806 2011-10-19  Eric Blake  <eblake@redhat.com>
10807
10808         openpty: relax license
10809         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10810
10811         pt_chown: use configmake to simplify build
10812         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10813
10814         ptsname and others: relax license
10815         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10816         * modules/unlockpt (License): Likewise.
10817         * modules/pt_chown (License): Likewise.
10818         * modules/ptsname (License): Likewise.
10819         * modules/ttyname_r (License): Likewise.
10820
10821 2011-10-19  Jim Meyering  <meyering@redhat.com>
10822
10823         posix_openpt: remove spurious #endif
10824         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10825
10826 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10827
10828         maint.mk: Respect $(build_aux) in web-manual rule.
10829         * top/maint.mk (web-manual): Find gen-announce script in user's
10830         $(build_aux) directory instead of hard-coding 'build-aux'.
10831
10832 2011-10-19  Bruno Haible  <bruno@clisp.org>
10833
10834         posix_openpt: Fix compilation error.
10835         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10836         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10837         Mention the openpty module as an alternative.
10838
10839 2011-10-19  Bruno Haible  <bruno@clisp.org>
10840
10841         Support for old NeXTstep 3.3 frexp().
10842         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10843         execution time of the test to 5 seconds.
10844         Reported by Daniel Richard G. <skunk@iskunk.org>.
10845
10846 2011-10-19  Bruno Haible  <bruno@clisp.org>
10847
10848         Support for old NeXTstep 3.3 sed.
10849         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10850         part, use /.../, not \|...|. Escape periods in the header file name.
10851         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10852         Reported by Daniel Richard G. <skunk@iskunk.org>.
10853
10854 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10855
10856         Support for old NeXTstep 3.3 gcc.
10857         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10858         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10859         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10860         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10861         * lib/regex.h (_Restrict_arr_): Likewise.
10862         * lib/regex_internal.h (re_token_t): Likewise.
10863         * lib/regexec.c (check_node_accept_bytes): Likewise.
10864         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10865
10866 2011-10-18  Eric Blake  <eblake@redhat.com>
10867
10868         posix_openpt: new module
10869         * modules/posix_openpt: New module.
10870         * m4/posix_openpt.m4: New file.
10871         * lib/posix_openpt.c: Likewise.
10872         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10873         (gl_STDLIB_H_DEFAULTS): Set defaults.
10874         * modules/stdlib (Makefile.am): Substitute macros.
10875         * lib/stdlib.in.h (posix_openpt): Declare.
10876         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10877         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10878         * modules/posix_openpt-tests: New test module.
10879         * tests/test-posix_openpt.c: New test.
10880
10881 2011-10-15  Bruno Haible  <bruno@clisp.org>
10882
10883         xstrtoll: Fix compilation failure.
10884         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10885         from lib/strtol.c.
10886         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10887         some platforms.
10888         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10889
10890 2011-10-15  Bruno Haible  <bruno@clisp.org>
10891
10892         vasnprintf: Optimize bit search operation.
10893         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10894         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10895         gl_DOUBLE_EXPONENT_LOCATION.
10896         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10897         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10898         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10899         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10900         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10901         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10902         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10903         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10904         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10905
10906 2011-10-15  Bruno Haible  <bruno@clisp.org>
10907
10908         vasnprintf: Fix comments.
10909         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10910
10911 2011-10-14  Bruno Haible  <bruno@clisp.org>
10912
10913         Tests for module 'integer_length_ll'.
10914         * modules/integer_length_ll-tests: New file.
10915         * tests/test-integer_length_ll.c: New file.
10916
10917         New module 'integer_length_ll'.
10918         * lib/integer_length_ll.c: New file.
10919         * modules/integer_length_ll: New file.
10920
10921 2011-10-14  Bruno Haible  <bruno@clisp.org>
10922
10923         Tests for module 'integer_length_l'.
10924         * modules/integer_length_l-tests: New file.
10925         * tests/test-integer_length_l.c: New file.
10926
10927         New module 'integer_length_l'.
10928         * lib/integer_length_l.c: New file.
10929         * modules/integer_length_l: New file.
10930
10931 2011-10-14  Bruno Haible  <bruno@clisp.org>
10932
10933         Tests for module 'integer_length'.
10934         * modules/integer_length-tests: New file.
10935         * tests/test-integer_length.c: New file.
10936
10937         New module 'integer_length'.
10938         * lib/integer_length.h: New file.
10939         * lib/integer_length.c: New file.
10940         * modules/integer_length: New file.
10941
10942 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10943
10944         popen: Fix dependency conditions.
10945         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10946
10947 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10948
10949         perror: Fix autoconf test.
10950         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10951         <stdlib.h> and <string.h>.
10952
10953 2011-10-14  Bruno Haible  <bruno@clisp.org>
10954
10955         ffsl: Optimize on 64-bit platforms.
10956         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10957         unrolling.
10958
10959 2011-10-13  Bruno Haible  <bruno@clisp.org>
10960
10961         ffsl: Optimize on 32-bit platforms.
10962         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10963         use ffs() without a loop.
10964
10965         ffsl, ffsll: Optimize for GCC.
10966         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10967         * lib/ffsl.c (GCC_BUILTIN): New macro.
10968         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10969
10970 2011-10-13  Bruno Haible  <bruno@clisp.org>
10971
10972         ffs, bcopy, memset: Support symbol renaming via config.h.
10973         * lib/ffs.c: Include <config.h>.
10974         * lib/bcopy.c: Likewise.
10975         * lib/memset.c: Likewise.
10976
10977 2011-10-10  Bruno Haible  <bruno@clisp.org>
10978
10979         atanl: Simplify for platforms where 'long double' == 'double'.
10980         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10981         alternative implementation.
10982         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10983         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10984         * modules/atanl (Depends-on): Add atan. Update conditions.
10985
10986 2011-10-10  Bruno Haible  <bruno@clisp.org>
10987
10988         acosl: Simplify for platforms where 'long double' == 'double'.
10989         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10990         alternative implementation.
10991         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10992         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10993         * modules/acosl (Depends-on): Add acos. Update conditions.
10994
10995 2011-10-10  Bruno Haible  <bruno@clisp.org>
10996
10997         asinl: Simplify for platforms where 'long double' == 'double'.
10998         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10999         alternative implementation.
11000         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11001         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11002         * modules/asinl (Depends-on): Add asin. Update conditions.
11003
11004 2011-10-10  Bruno Haible  <bruno@clisp.org>
11005
11006         tanl: Simplify for platforms where 'long double' == 'double'.
11007         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11008         implementation.
11009         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11010         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11011         * modules/tanl (Depends-on): Add tan. Update conditions.
11012         (configure.ac): Don't compile trigl.c if
11013         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11014
11015 2011-10-10  Bruno Haible  <bruno@clisp.org>
11016
11017         cosl: Simplify for platforms where 'long double' == 'double'.
11018         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11019         implementation.
11020         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11021         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11022         * modules/cosl (Depends-on): Add cos. Update conditions.
11023         (configure.ac): Don't compile sincosl.c and trigl.c if
11024         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11025
11026 2011-10-10  Bruno Haible  <bruno@clisp.org>
11027
11028         sinl: Simplify for platforms where 'long double' == 'double'.
11029         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11030         implementation.
11031         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11032         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11033         * modules/sinl (Depends-on): Add sin. Update conditions.
11034         (configure.ac): Don't compile sincosl.c and trigl.c if
11035         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11036
11037 2011-10-10  Bruno Haible  <bruno@clisp.org>
11038
11039         logl: Simplify for platforms where 'long double' == 'double'.
11040         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11041         implementation.
11042         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11043         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11044         * modules/logl (Depends-on): Add log. Update conditions.
11045
11046 2011-10-10  Bruno Haible  <bruno@clisp.org>
11047
11048         expl: Simplify for platforms where 'long double' == 'double'.
11049         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11050         implementation.
11051         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11052         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11053         * modules/expl (Depends-on): Add exp. Update conditions.
11054
11055 2011-10-10  Bruno Haible  <bruno@clisp.org>
11056
11057         sqrtl: Simplify for platforms where 'long double' == 'double'.
11058         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11059         alternative implementation.
11060         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11061         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11062         * modules/sqrtl (Depends-on): Update conditions.
11063
11064 2011-10-10  Bruno Haible  <bruno@clisp.org>
11065
11066         ldexpl: Simplify for platforms where 'long double' == 'double'.
11067         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11068         alternative implementation.
11069         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11070         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11071         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11072
11073 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11074
11075         ffsll: set correct witness
11076         * modules/ffsll (configure.ac): Fix typo.
11077
11078 2011-10-10  Bruno Haible  <bruno@clisp.org>
11079
11080         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11081         * lib/printf-frexpl.c: Include <config.h>.
11082         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11083         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11084         second time.
11085         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11086         gl_LONG_DOUBLE_VS_DOUBLE.
11087         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11088         conditions.
11089
11090 2011-10-10  Bruno Haible  <bruno@clisp.org>
11091
11092         frexpl: Simplify for platforms where 'long double' == 'double'.
11093         * lib/frexpl.c: Include <config.h>.
11094         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11095         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11096         time.
11097         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11098         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11099         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11100         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11101         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11102         conditions.
11103
11104 2011-10-10  Jim Meyering  <meyering@redhat.com>
11105
11106         test-renameat: don't leave behind a temporary file
11107         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11108           ERROR: files left in build directory after distclean:
11109           ./gltests/test-renameat.too
11110           make[1]: *** [distcleancheck] Error 1
11111         Reported by Tom G. Christensen.
11112
11113 2011-10-09  Bruno Haible  <bruno@clisp.org>
11114
11115         rint: Determine RINT_LIBM correctly on AIX 7.
11116         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11117         directly, not only through a function pointer. Also accept an optional
11118         4th argument with extra code.
11119         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11120         rintf() call by gcc when optimizing.
11121
11122         mathfunc.m4: Refactor.
11123         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11124         m4 variable.
11125
11126 2011-10-09  Bruno Haible  <bruno@clisp.org>
11127
11128         rintl: Simplify for platforms where 'long double' == 'double'.
11129         * lib/rintl.c: Include <config.h>.
11130         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11131         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11132         time.
11133         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11134         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11135         * modules/rintl (Depends-on): Add rint. Update conditions.
11136
11137 2011-10-09  Bruno Haible  <bruno@clisp.org>
11138
11139         roundl: Simplify for platforms where 'long double' == 'double'.
11140         * lib/roundl.c: Include <config.h>.
11141         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11142         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11143         time.
11144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11145         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11146         * modules/roundl (Depends-on): Add round. Update conditions.
11147
11148 2011-10-09  Bruno Haible  <bruno@clisp.org>
11149
11150         truncl: Simplify for platforms where 'long double' == 'double'.
11151         * lib/truncl.c: Include <config.h>.
11152         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11153         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11154         time.
11155         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11156         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11157         * modules/truncl (Depends-on): Add trunc. Update conditions.
11158
11159 2011-10-09  Bruno Haible  <bruno@clisp.org>
11160
11161         ceill: Simplify for platforms where 'long double' == 'double'.
11162         * lib/ceill.c: Include <config.h>.
11163         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11164         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11165         time.
11166         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11167         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11168         * modules/ceill (Depends-on): Add ceil. Update conditions.
11169
11170 2011-10-09  Bruno Haible  <bruno@clisp.org>
11171
11172         floorl: Simplify for platforms where 'long double' == 'double'.
11173         * lib/floorl.c: Include <config.h>.
11174         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11175         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11176         time.
11177         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11178         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11179         * modules/floorl (Depends-on): Add floor. Update conditions.
11180
11181 2011-10-09  Bruno Haible  <bruno@clisp.org>
11182
11183         rint: Fix ordering constraints.
11184         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11185         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11186         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11187
11188 2011-10-09  Bruno Haible  <bruno@clisp.org>
11189
11190         copysignl: Simplify for platforms where 'long double' == 'double'.
11191         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11192         alternative.
11193         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11194         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11195         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11196
11197 2011-10-09  Bruno Haible  <bruno@clisp.org>
11198
11199         Tests for module 'rintl'.
11200         * modules/rintl-tests: New file.
11201         * tests/test-rintl.c: New file.
11202
11203         New module 'rintl'.
11204         * lib/math.in.h (rintl): New declaration.
11205         * lib/rintl.c: New file.
11206         * m4/rintl.m4: New file.
11207         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11209         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11210         * modules/rintl: New file.
11211         * tests/test-math-c++.cc: Check the declaration of rintl.
11212         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11213         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11214         * doc/posix-functions/rintl.texi: Mention the new module.
11215
11216 2011-10-09  Bruno Haible  <bruno@clisp.org>
11217
11218         Tests for module 'rintf'.
11219         * modules/rintf-tests: New file.
11220         * tests/test-rintf.c: New file.
11221
11222         New module 'rintf'.
11223         * lib/math.in.h (rintf): New declaration.
11224         * lib/rintf.c: New file.
11225         * m4/rintf.m4: New file.
11226         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11228         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11229         * modules/rintf: New file.
11230         * tests/test-math-c++.cc: Check the declaration of rintf.
11231         * doc/posix-functions/rintf.texi: Mention the new module.
11232
11233 2011-10-09  Bruno Haible  <bruno@clisp.org>
11234
11235         rint: Support for MSVC.
11236         * lib/math.in.h (rint): New declaration.
11237         * lib/rint.c: New file.
11238         * m4/rint.m4: New file.
11239         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11241         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11242         * modules/rint (Description): Fix.
11243         (Files): Add lib/rint.c, m4/rint.m4.
11244         (Depends-on): Add math.
11245         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11246         gl_MATH_MODULE_INDICATOR.
11247         * tests/test-math-c++.cc: Check the declaration of rint.
11248         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11249         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11250         * doc/posix-functions/rint.texi: Mention the replacement provided by
11251         the module.
11252
11253         rint tests: More tests.
11254         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11255         minus-zero.h, infinity.h, nan.h.
11256         (main): Skip the test if the current rounding mode is not standard. Add
11257         tests for negative numbers, minus zero, infinity, NaN.
11258         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11259         tests/nan.h.
11260         (Depends-on): Add isnand-nolibm.
11261
11262 2011-10-09  Bruno Haible  <bruno@clisp.org>
11263
11264         Tests for module 'copysignl'.
11265         * modules/copysignl-tests: New file.
11266         * tests/test-copysignl.c: New file.
11267
11268         New module 'copysignl'.
11269         * lib/math.in.h (copysignl): New declaration.
11270         * lib/copysignl.c: New file.
11271         * m4/copysignl.m4: New file.
11272         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11274         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11275         HAVE_COPYSIGNL.
11276         * modules/copysignl: New file.
11277         * tests/test-math-c++.cc: Check the declaration of copysignl.
11278         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11279         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11280         * doc/posix-functions/copysignl.texi: Mention the new module.
11281
11282 2011-10-09  Bruno Haible  <bruno@clisp.org>
11283
11284         Tests for module 'copysignf'.
11285         * modules/copysignf-tests: New file.
11286         * tests/test-copysignf.c: New file.
11287
11288         New module 'copysignf'.
11289         * lib/math.in.h (copysignf): New declaration.
11290         * lib/copysignf.c: New file.
11291         * m4/copysignf.m4: New file.
11292         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11294         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11295         HAVE_COPYSIGNF.
11296         * modules/copysignf: New file.
11297         * tests/test-math-c++.cc: Check the declaration of copysignf.
11298         * doc/posix-functions/copysignf.texi: Mention the new module.
11299
11300 2011-10-09  Bruno Haible  <bruno@clisp.org>
11301
11302         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11303         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11304         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11305         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11306         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11307         gl_SIGNAL_H_DEFAULTS.
11308
11309 2011-10-09  Bruno Haible  <bruno@clisp.org>
11310
11311         poll: Make macro safer.
11312         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11313         ac_cv_header_poll_h is not set.
11314
11315 2011-10-09  Bruno Haible  <bruno@clisp.org>
11316
11317         copysign: Provide replacement.
11318         * lib/math.in.h (copysign): New declaration.
11319         * lib/copysign.c: New file.
11320         * m4/copysign.m4: New file.
11321         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11323         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11324         HAVE_COPYSIGN.
11325         * modules/copysign (Description): Clarify.
11326         (Files): Add lib/copysign.c, m4/copysign.m4.
11327         (Depends-on): Add math, signbit.
11328         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11329         gl_MATH_MODULE_INDICATOR.
11330         * tests/test-math-c++.cc: Check the declaration of copysign.
11331         * doc/posix-functions/copysign.texi: Mention the effects of the module
11332         on Minix and MSVC.
11333
11334 2011-10-09  Bruno Haible  <bruno@clisp.org>
11335
11336         isinf: Ensure macro on AIX 5.1.
11337         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11338         macro.
11339         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11340
11341 2011-10-09  Bruno Haible  <bruno@clisp.org>
11342
11343         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11344         * modules/snprintf-posix-tests (configure.ac): Require
11345         gl_LONG_DOUBLE_VS_DOUBLE.
11346         * modules/sprintf-posix-tests (configure.ac): Likewise.
11347         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11348         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11349         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11350         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11351         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11352         tests on platforms where 'long double' is the same as 'double'.
11353         * tests/test-sprintf-posix.h (test_function): Likewise.
11354         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11355         * tests/test-vasprintf-posix.c (test_function): Likewise.
11356
11357         *printf: Fix for platforms where 'long double' == 'double'.
11358         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11359         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11360         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11361         * modules/fprintf-posix (Files): Likewise.
11362         * modules/obstack-printf-posix (Files): Likewise.
11363         * modules/snprintf-posix (Files): Likewise.
11364         * modules/sprintf-posix (Files): Likewise.
11365         * modules/vasnprintf (Files): Likewise.
11366         * modules/vasnprintf-posix (Files): Likewise.
11367         * modules/vasprintf-posix (Files): Likewise.
11368         * modules/vdprintf-posix (Files): Likewise.
11369         * modules/vfprintf-posix (Files): Likewise.
11370         * modules/vsnprintf-posix (Files): Likewise.
11371         * modules/vsprintf-posix (Files): Likewise.
11372         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11373         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11374         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11375         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11376         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11377         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11378         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11379
11380         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11381         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11382         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11383         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11384         'long double'.
11385         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11386
11387         isinf: Fix for platforms where 'long double' == 'double'.
11388         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11389         Don't blindly assume 80-bit 'long double'.
11390
11391         isfinite: Fix for platforms where 'long double' == 'double'.
11392         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11393         Don't blindly assume 80-bit 'long double'.
11394
11395         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11396         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11397         * modules/isfinite-tests (configure.ac): Require
11398         gl_LONG_DOUBLE_VS_DOUBLE.
11399         * modules/isinf-tests (configure.ac): Likewise.
11400         * modules/isnan-tests (configure.ac): Likewise.
11401         * modules/isnanl-tests (configure.ac): Likewise.
11402         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11403         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11404         tests on platforms where 'long double' is the same as 'double'.
11405         * tests/test-isinf.c (test_isinfl): Likewise.
11406         * tests/test-isnan.c (test_long_double): Likewise.
11407         * tests/test-isnanl.h (main): Likewise.
11408
11409 2011-10-08  Bruno Haible  <bruno@clisp.org>
11410
11411         Tests for module 'tanhf'.
11412         * modules/tanhf-tests: New file.
11413         * tests/test-tanhf.c: New file.
11414
11415         New module 'tanhf'.
11416         * lib/math.in.h (tanhf): New declaration.
11417         * lib/tanhf.c: New file.
11418         * m4/tanhf.m4: New file.
11419         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11421         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11422         * modules/tanhf: New file.
11423         * tests/test-math-c++.cc: Check the declaration of tanhf.
11424         * doc/posix-functions/tanhf.texi: Mention the new module.
11425
11426         tanh: Use a .m4 file.
11427         * m4/tanh.m4: New file.
11428         * modules/tanh (Files): Add it.
11429         (configure.ac): Just invoke gl_FUNC_TANH.
11430
11431 2011-10-08  Bruno Haible  <bruno@clisp.org>
11432
11433         Tests for module 'coshf'.
11434         * modules/coshf-tests: New file.
11435         * tests/test-coshf.c: New file.
11436
11437         New module 'coshf'.
11438         * lib/math.in.h (coshf): New declaration.
11439         * lib/coshf.c: New file.
11440         * m4/coshf.m4: New file.
11441         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11443         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11444         * modules/coshf: New file.
11445         * tests/test-math-c++.cc: Check the declaration of coshf.
11446         * doc/posix-functions/coshf.texi: Mention the new module.
11447
11448         cosh: Use a .m4 file.
11449         * m4/cosh.m4: New file.
11450         * modules/cosh (Files): Add it.
11451         (configure.ac): Just invoke gl_FUNC_COSH.
11452
11453 2011-10-08  Bruno Haible  <bruno@clisp.org>
11454
11455         Tests for module 'sinhf'.
11456         * modules/sinhf-tests: New file.
11457         * tests/test-sinhf.c: New file.
11458
11459         New module 'sinhf'.
11460         * lib/math.in.h (sinhf): New declaration.
11461         * lib/sinhf.c: New file.
11462         * m4/sinhf.m4: New file.
11463         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11465         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11466         * modules/sinhf: New file.
11467         * tests/test-math-c++.cc: Check the declaration of sinhf.
11468         * doc/posix-functions/sinhf.texi: Mention the new module.
11469
11470         sinh: Use a .m4 file.
11471         * m4/sinh.m4: New file.
11472         * modules/sinh (Files): Add it.
11473         (configure.ac): Just invoke gl_FUNC_SINH.
11474
11475 2011-10-08  Bruno Haible  <bruno@clisp.org>
11476
11477         Tests for module 'atan2f'.
11478         * modules/atan2f-tests: New file.
11479         * tests/test-atan2f.c: New file.
11480
11481         New module 'atan2f'.
11482         * lib/math.in.h (atan2f): New declaration.
11483         * lib/atan2f.c: New file.
11484         * m4/atan2f.m4: New file.
11485         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11487         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11488         * modules/atan2f: New file.
11489         * tests/test-math-c++.cc: Check the declaration of atan2f.
11490         * doc/posix-functions/atan2f.texi: Mention the new module.
11491
11492         atan2: Use a .m4 file.
11493         * m4/atan2.m4: New file.
11494         * modules/atan2 (Files): Add it.
11495         (configure.ac): Just invoke gl_FUNC_ATAN2.
11496
11497 2011-10-08  Bruno Haible  <bruno@clisp.org>
11498
11499         Tests for module 'atanf'.
11500         * modules/atanf-tests: New file.
11501         * tests/test-atanf.c: New file.
11502
11503         New module 'atanf'.
11504         * lib/math.in.h (atanf): New declaration.
11505         * lib/atanf.c: New file.
11506         * m4/atanf.m4: New file.
11507         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11509         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11510         * modules/atanf: New file.
11511         * tests/test-math-c++.cc: Check the declaration of atanf.
11512         * doc/posix-functions/atanf.texi: Mention the new module.
11513
11514         atan: Use a .m4 file.
11515         * m4/atan.m4: New file.
11516         * modules/atan (Files): Add it.
11517         (configure.ac): Just invoke gl_FUNC_ATAN.
11518
11519 2011-10-08  Bruno Haible  <bruno@clisp.org>
11520
11521         Tests for module 'acosf'.
11522         * modules/acosf-tests: New file.
11523         * tests/test-acosf.c: New file.
11524
11525         New module 'acosf'.
11526         * lib/math.in.h (acosf): New declaration.
11527         * lib/acosf.c: New file.
11528         * m4/acosf.m4: New file.
11529         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11531         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11532         * modules/acosf: New file.
11533         * tests/test-math-c++.cc: Check the declaration of acosf.
11534         * doc/posix-functions/acosf.texi: Mention the new module.
11535
11536         acos: Use a .m4 file.
11537         * m4/acos.m4: New file.
11538         * modules/acos (Files): Add it.
11539         (configure.ac): Just invoke gl_FUNC_ACOS.
11540
11541 2011-10-08  Bruno Haible  <bruno@clisp.org>
11542
11543         Tests for module 'asinf'.
11544         * modules/asinf-tests: New file.
11545         * tests/test-asinf.c: New file.
11546
11547         New module 'asinf'.
11548         * lib/math.in.h (asinf): New declaration.
11549         * lib/asinf.c: New file.
11550         * m4/asinf.m4: New file.
11551         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11553         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11554         * modules/asinf: New file.
11555         * tests/test-math-c++.cc: Check the declaration of asinf.
11556         * doc/posix-functions/asinf.texi: Mention the new module.
11557
11558         asin: Use a .m4 file.
11559         * m4/asin.m4: New file.
11560         * modules/asin (Files): Add it.
11561         (configure.ac): Just invoke gl_FUNC_ASIN.
11562
11563 2011-10-08  Bruno Haible  <bruno@clisp.org>
11564
11565         Tests for module 'tanf'.
11566         * modules/tanf-tests: New file.
11567         * tests/test-tanf.c: New file.
11568
11569         New module 'tanf'.
11570         * lib/math.in.h (tanf): New declaration.
11571         * lib/tanf.c: New file.
11572         * m4/tanf.m4: New file.
11573         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11575         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11576         * modules/tanf: New file.
11577         * tests/test-math-c++.cc: Check the declaration of tanf.
11578         * doc/posix-functions/tanf.texi: Mention the new module.
11579
11580         tan: Use a .m4 file.
11581         * m4/tan.m4: New file.
11582         * modules/tan (Files): Add it.
11583         (configure.ac): Just invoke gl_FUNC_TAN.
11584
11585 2011-10-08  Bruno Haible  <bruno@clisp.org>
11586
11587         Tests for module 'cosf'.
11588         * modules/cosf-tests: New file.
11589         * tests/test-cosf.c: New file.
11590
11591         New module 'cosf'.
11592         * lib/math.in.h (cosf): New declaration.
11593         * lib/cosf.c: New file.
11594         * m4/cosf.m4: New file.
11595         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11597         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11598         * modules/cosf: New file.
11599         * tests/test-math-c++.cc: Check the declaration of cosf.
11600         * doc/posix-functions/cosf.texi: Mention the new module.
11601
11602         cos: Use a .m4 file.
11603         * m4/cos.m4: New file.
11604         * modules/cos (Files): Add it.
11605         (configure.ac): Just invoke gl_FUNC_COS.
11606
11607 2011-10-08  Bruno Haible  <bruno@clisp.org>
11608
11609         Tests for module 'sinf'.
11610         * modules/sinf-tests: New file.
11611         * tests/test-sinf.c: New file.
11612
11613         New module 'sinf'.
11614         * lib/math.in.h (sinf): New declaration.
11615         * lib/sinf.c: New file.
11616         * m4/sinf.m4: New file.
11617         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11619         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11620         * modules/sinf: New file.
11621         * tests/test-math-c++.cc: Check the declaration of sinf.
11622         * doc/posix-functions/sinf.texi: Mention the new module.
11623
11624         sin: Use a .m4 file.
11625         * m4/sin.m4: New file.
11626         * modules/sin (Files): Add it.
11627         (configure.ac): Just invoke gl_FUNC_SIN.
11628
11629 2011-10-08  Bruno Haible  <bruno@clisp.org>
11630
11631         Tests for module 'powf'.
11632         * modules/powf-tests: New file.
11633         * tests/test-powf.c: New file.
11634
11635         New module 'powf'.
11636         * lib/math.in.h (powf): New declaration.
11637         * lib/powf.c: New file.
11638         * m4/powf.m4: New file.
11639         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11641         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11642         * modules/powf: New file.
11643         * tests/test-math-c++.cc: Check the declaration of powf.
11644         * doc/posix-functions/powf.texi: Mention the new module.
11645
11646         pow: Use a .m4 file.
11647         * m4/pow.m4: New file.
11648         * modules/pow (Files): Add it.
11649         (configure.ac): Just invoke gl_FUNC_POW.
11650
11651 2011-10-08  Bruno Haible  <bruno@clisp.org>
11652
11653         Tests for module 'log10f'.
11654         * modules/log10f-tests: New file.
11655         * tests/test-log10f.c: New file.
11656
11657         New module 'log10f'.
11658         * lib/math.in.h (log10f): New declaration.
11659         * lib/log10f.c: New file.
11660         * m4/log10f.m4: New file.
11661         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11663         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11664         * modules/log10f: New file.
11665         * tests/test-math-c++.cc: Check the declaration of log10f.
11666         * doc/posix-functions/log10f.texi: Mention the new module.
11667
11668         log10: Use a .m4 file.
11669         * m4/log10.m4: New file.
11670         * modules/log10 (Files): Add it.
11671         (configure.ac): Just invoke gl_FUNC_LOG10.
11672
11673 2011-10-08  Bruno Haible  <bruno@clisp.org>
11674
11675         Tests for module 'logf'.
11676         * modules/logf-tests: New file.
11677         * tests/test-logf.c: New file.
11678
11679         New module 'logf'.
11680         * lib/math.in.h (logf): New declaration.
11681         * lib/logf.c: New file.
11682         * m4/logf.m4: New file.
11683         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11685         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11686         * modules/logf: New file.
11687         * tests/test-math-c++.cc: Check the declaration of logf.
11688         * doc/posix-functions/logf.texi: Mention the new module.
11689
11690         log: Use a .m4 file.
11691         * m4/log.m4: New file.
11692         * modules/log (Files): Add it.
11693         (configure.ac): Just invoke gl_FUNC_LOG.
11694
11695 2011-10-08  Bruno Haible  <bruno@clisp.org>
11696
11697         Tests for module 'expf'.
11698         * modules/expf-tests: New file.
11699         * tests/test-expf.c: New file.
11700
11701         New module 'expf'.
11702         * lib/math.in.h (expf): New declaration.
11703         * lib/expf.c: New file.
11704         * m4/expf.m4: New file.
11705         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11707         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11708         * modules/expf: New file.
11709         * tests/test-math-c++.cc: Check the declaration of expf.
11710         * doc/posix-functions/expf.texi: Mention the new module.
11711
11712         exp: Use a .m4 file.
11713         * m4/exp.m4: New file.
11714         * modules/exp (Files): Add it.
11715         (configure.ac): Just invoke gl_FUNC_EXP.
11716
11717 2011-10-08  Bruno Haible  <bruno@clisp.org>
11718
11719         Tests for module 'sqrtf'.
11720         * modules/sqrtf-tests: New file.
11721         * tests/test-sqrtf.c: New file.
11722
11723         New module 'sqrtf'.
11724         * lib/math.in.h (sqrtf): New declaration.
11725         * lib/sqrtf.c: New file.
11726         * m4/sqrtf.m4: New file.
11727         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11729         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11730         * modules/sqrtf: New file.
11731         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11732         * doc/posix-functions/sqrtf.texi: Mention the new module.
11733
11734 2011-10-08  Bruno Haible  <bruno@clisp.org>
11735
11736         Tests: Avoid link failures w.r.t. libintl.
11737         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11738         $(LIBINTL).
11739         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11740         $(LIBINTL).
11741         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11742         against $(LIBINTL).
11743         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11744         $(LIBINTL).
11745         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11746         $(LIBINTL).
11747         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11748
11749 2011-10-08  Bruno Haible  <bruno@clisp.org>
11750
11751         pow tests: Defeat compiler optimizations.
11752         * tests/test-pow.c (main): Assign arguments to x and y before use.
11753
11754 2011-10-08  Bruno Haible  <bruno@clisp.org>
11755
11756         gnulib-tool: Improve last commit.
11757         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11758         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11759         ignore dependencies that are not among the modules list.
11760
11761 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         gnulib-tool: don't follow dependencies to avoided modules
11764         This fixes a bug that is related to the previous one.
11765         * gnulib-tool (func_modules_transitive_closure)
11766         (func_emit_autoconf_snippets):
11767         Check whether a dependency is acceptable before using it.
11768         (--extract-dependencies): Report an error if --avoid is also used,
11769         since this combination of options is not yet supported.
11770
11771         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11772         Problem reported by Peter Dyballa in
11773         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11774         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11775         when echoing "$condition".
11776
11777 2011-10-07  Bruno Haible  <bruno@clisp.org>
11778
11779         Fix documentation about math functions on MacOS X.
11780         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11781         MacOS X 10.5.
11782         * doc/posix-functions/fdim.texi: Likewise.
11783         * doc/posix-functions/feclearexcept.texi: Likewise.
11784         * doc/posix-functions/fegetenv.texi: Likewise.
11785         * doc/posix-functions/fegetround.texi: Likewise.
11786         * doc/posix-functions/feholdexcept.texi: Likewise.
11787         * doc/posix-functions/feraiseexcept.texi: Likewise.
11788         * doc/posix-functions/fesetenv.texi: Likewise.
11789         * doc/posix-functions/fesetround.texi: Likewise.
11790         * doc/posix-functions/fetestexcept.texi: Likewise.
11791         * doc/posix-functions/feupdateenv.texi: Likewise.
11792         * doc/posix-functions/fmax.texi: Likewise.
11793         * doc/posix-functions/fmin.texi: Likewise.
11794         * doc/posix-functions/log2.texi: Likewise.
11795         * doc/posix-functions/modff.texi: Likewise.
11796         * doc/posix-functions/nan.texi: Likewise.
11797         * doc/posix-functions/nanf.texi: Likewise.
11798         * doc/posix-functions/nextafterf.texi: Likewise.
11799         * doc/posix-functions/remquo.texi: Likewise.
11800
11801 2011-10-07  Bruno Haible  <bruno@clisp.org>
11802
11803         modff: Drop assumption about library that defines modff.
11804         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11805         AC_CHECK_FUNCS.
11806         * modules/modff (Files): Add m4/mathfunc.m4.
11807
11808 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11809
11810         raise tests: Avoid a GCC warning.
11811         * tests/test-raise.c (handler): Use _Noreturn.
11812
11813 2011-10-07  Bruno Haible  <bruno@clisp.org>
11814
11815         Tests for module 'ldexpf'.
11816         * modules/ldexpf-tests: New file.
11817         * tests/test-ldexpf.c: New file.
11818
11819         New module 'ldexpf'.
11820         * lib/math.in.h (ldexpf): New declaration.
11821         * lib/ldexpf.c: New file.
11822         * m4/ldexpf.m4: New file.
11823         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11825         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11826         * modules/ldexpf: New file.
11827         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11828         * doc/posix-functions/ldexpf.texi: Mention the new module.
11829
11830 2011-10-06  Bruno Haible  <bruno@clisp.org>
11831
11832         frexpf: Work around problems on IRIX and mingw.
11833         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11835         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11836         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11837         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11838         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11839         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11840
11841 2011-10-06  Bruno Haible  <bruno@clisp.org>
11842
11843         fabsf: Drop assumption about library that defines fabsf.
11844         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11845         AC_CHECK_FUNCS.
11846         * modules/fabsf (Files): Add m4/mathfunc.m4.
11847
11848 2011-10-06  Bruno Haible  <bruno@clisp.org>
11849
11850         frexpf: Drop assumption about library that defines frexpf.
11851         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11852         'int *', 'float *', 'long double *', 'float', 'long double'.
11853         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11854         AC_CHECK_FUNCS.
11855         * modules/frexpf (Files): Add m4/mathfunc.m4.
11856
11857         Tests for module 'frexpf'.
11858         * modules/frexpf-tests: New file.
11859         * tests/test-frexpf.c: New file.
11860
11861         New module 'frexpf'.
11862         * lib/math.in.h (frexpf): New declaration.
11863         * lib/frexpf.c: New file.
11864         * m4/frexpf.m4: New file.
11865         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11867         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11868         * modules/frexpf: New file.
11869         * tests/test-math-c++.cc: Check the declaration of frexpf.
11870         * doc/posix-functions/frexpf.texi: Mention the new module.
11871
11872 2011-10-06  Bruno Haible  <bruno@clisp.org>
11873
11874         math: Sort function declarations of math.in.h.
11875         * lib/math.in.h (frexp, logb): Move declarations.
11876
11877 2011-10-05  Bruno Haible  <bruno@clisp.org>
11878
11879         Tests for module 'modff'.
11880         * modules/modff-tests: New file.
11881         * tests/test-modff.c: New file.
11882
11883         New module 'modff'.
11884         * lib/math.in.h (modff): New declaration.
11885         * lib/modff.c: New file.
11886         * m4/modff.m4: New file.
11887         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11889         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11890         * modules/modff: New file.
11891         * tests/test-math-c++.cc: Check the declaration of modff.
11892         * doc/posix-functions/modff.texi: Mention the new module.
11893
11894         modf tests: Make test sharper.
11895         * tests/test-modf.c (main): Strengthen upper bound.
11896
11897         modf: Use a .m4 file.
11898         * m4/modf.m4: New file.
11899         * modules/modf (Files): Add it.
11900         (configure.ac): Just invoke gl_FUNC_MODF.
11901
11902 2011-10-05  Bruno Haible  <bruno@clisp.org>
11903
11904         Tests for module 'fmodf'.
11905         * modules/fmodf-tests: New file.
11906         * tests/test-fmodf.c: New file.
11907
11908         New module 'fmodf'.
11909         * lib/math.in.h (fmodf): New declaration.
11910         * lib/fmodf.c: New file.
11911         * m4/fmodf.m4: New file.
11912         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11914         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11915         * modules/fmodf: New file.
11916         * tests/test-math-c++.cc: Check the declaration of fmodf.
11917         * doc/posix-functions/fmodf.texi: Mention the new module.
11918
11919         fmod: Use a .m4 file.
11920         * m4/fmod.m4: New file.
11921         * modules/fmod (Files): Add it.
11922         (configure.ac): Just invoke gl_FUNC_FMOD.
11923
11924 2011-10-05  Bruno Haible  <bruno@clisp.org>
11925
11926         Tests for module 'fabsf'.
11927         * modules/fabsf-tests: New file.
11928         * tests/test-fabsf.c: New file.
11929
11930         New module 'fabsf'.
11931         * lib/math.in.h (fabsf): New declaration.
11932         * lib/fabsf.c: New file.
11933         * m4/fabsf.m4: New file.
11934         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11936         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11937         * modules/fabsf: New file.
11938         * tests/test-math-c++.cc: Check the declaration of fabsf.
11939         * doc/posix-functions/fabsf.texi: Mention the new module.
11940
11941         fabs: Use a .m4 file.
11942         * m4/fabs.m4: New file.
11943         * modules/fabs (Files): Add it.
11944         (configure.ac): Just invoke gl_FUNC_FABS.
11945
11946 2011-10-05  Jim Meyering  <meyering@redhat.com>
11947
11948         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11949         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11950         ls -lL regression introduced in coreutils-8.12, it does so at the
11951         cost of an additional stat call in the common case.  Besides, now
11952         that the kernel change that prompted commit 95f7c57f has been reverted
11953         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11954         we have no use for commit 95f7c57f, "file-has-acl: use
11955         acl_extended_file_nofollow if available".
11956
11957 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11958
11959         file-has-acl: revert unintended change in behavior of ls -L
11960         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11961         derived from...
11962         (file_has_acl): ...code here.  Call it.
11963         This problem was introduced with 2011-07-22 commit 95f7c57f,
11964         "file-has-acl: use acl_extended_file_nofollow if available".
11965         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11966
11967 2011-10-03  Bruno Haible  <bruno@clisp.org>
11968
11969         poll: Avoid link errors on MSVC.
11970         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11971         * modules/poll (Depends-on): Add sockets.
11972         (Link): New section.
11973         * NEWS: Mention the change.
11974         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11975         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11976         $(LIB_POLL) instead of $(LIBSOCKET).
11977
11978 2011-10-03  Bruno Haible  <bruno@clisp.org>
11979
11980         sys_select tests: Fix link error on MSVC 9.
11981         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11982         with $(LIB_SELECT) instead of $(LIBSOCKET).
11983
11984 2011-10-03  Bruno Haible  <bruno@clisp.org>
11985
11986         sys_select: Fix compilation error on mingw.
11987         * lib/sys_select.in.h: On native Windows, include <io.h>.
11988
11989 2011-10-03  Bruno Haible  <bruno@clisp.org>
11990
11991         wmemset: Support for MSVC.
11992         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11993         whether wmemset() exists.
11994
11995 2011-10-03  Bruno Haible  <bruno@clisp.org>
11996
11997         wmemmove: Support for MSVC.
11998         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11999         whether wmemmove() exists.
12000
12001 2011-10-03  Bruno Haible  <bruno@clisp.org>
12002
12003         wmemcpy: Support for MSVC.
12004         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12005         whether wmemcpy() exists.
12006
12007 2011-10-03  Bruno Haible  <bruno@clisp.org>
12008
12009         wmemcmp: Support for MSVC.
12010         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12011         whether wmemcmp() exists.
12012
12013 2011-10-03  Bruno Haible  <bruno@clisp.org>
12014
12015         wmemchr: Support for MSVC.
12016         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12017         whether wmemchr() exists.
12018
12019 2011-10-03  Bruno Haible  <bruno@clisp.org>
12020
12021         glthread/*, strsignal: Support for MSVC.
12022         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12023         including <winsock.h> on MSVC 9.
12024         * lib/glthread/lock.h: Likewise.
12025         * lib/glthread/thread.h: Likewise.
12026         * lib/glthread/tls.h: Likewise.
12027         * lib/glthread/yield.h: Likewise.
12028         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12029         if HAVE_UNISTD_H is false.
12030         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12031
12032 2011-10-03  Bruno Haible  <bruno@clisp.org>
12033
12034         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12035         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12036         Set to 100000.
12037
12038 2011-10-03  Bruno Haible  <bruno@clisp.org>
12039
12040         acl: Fix specification.
12041         * lib/file-has-acl.c (file_has_acl): Fix specification.
12042
12043 2011-10-03  Bruno Haible  <bruno@clisp.org>
12044
12045         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12046         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12047         (compute_curr_prefix, shared_library_fullname,
12048         find_shared_library_fullname, get_shared_library_fullname, relocate):
12049         Use it together with PIC && INSTALLDIR.
12050         Reported by <jojelino@gmail.com>
12051         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12052
12053 2011-10-01  Jim Meyering  <meyering@redhat.com>
12054
12055         maint.mk: adjust a release-related rule not to require use of gzip
12056         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12057         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12058         projects that build only .tar.xz files.  Also fix an erroneous test.
12059
12060         test-linkat: don't leave behind a temporary file
12061         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12062         Otherwise, coreutils' "make distcheck" would fail with this:
12063           Only in /c/cu/tests/torture/coreutils/test/\
12064             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12065           make[2]: *** [my-distcheck] Error 1
12066
12067         float, math: add omitted file
12068         * lib/itold.c: Add file, required for yesterday's float change.
12069
12070 2011-10-01  Bruno Haible  <bruno@clisp.org>
12071
12072         isinf: Fix for OpenBSD/x86.
12073         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12074         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12075         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12076
12077 2011-10-01  Bruno Haible  <bruno@clisp.org>
12078
12079         isfinite: Fix syntax error in configure test.
12080         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12081
12082         isfinite: Fix typo.
12083         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12084         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12085
12086 2011-10-01  Bruno Haible  <bruno@clisp.org>
12087
12088         nonblocking tests: Fix test failure on Linux/IA-64.
12089         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12090         Set to 270000.
12091
12092 2011-10-01  Bruno Haible  <bruno@clisp.org>
12093
12094         mkfifoat tests: Fix a test failure on mingw.
12095         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12096         with error ENOSYS.
12097
12098 2011-09-30  Bruno Haible  <bruno@clisp.org>
12099
12100         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12101         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12102         'long double'. Set REPLACE_ITOLD.
12103         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12104         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12105         * lib/itold.c: New file.
12106         * modules/float (Files): Add lib/itold.c.
12107         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12108         (Makefile.am): Substitute REPLACE_ITOLD.
12109         * modules/math (Depends-on): Add float.
12110         (Makefile.am): Substitute REPLACE_ITOLD.
12111         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12112         * doc/posix-headers/math.texi: Likewise.
12113         * doc/posix-functions/logl.texi: Likewise.
12114
12115 2011-09-30  Bruno Haible  <bruno@clisp.org>
12116
12117         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12118         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12119         Set to 140000.
12120
12121 2011-09-30  Bruno Haible  <bruno@clisp.org>
12122
12123         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12124         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12125         invocation, say "right after AC_PROG_CC_STDC", not "right after
12126         AC_PROG_CC".
12127         Reported by Gary V. Vaughan <gary@gnu.org>.
12128
12129 2011-09-30  Bruno Haible  <bruno@clisp.org>
12130
12131         Centralize C99 requirement.
12132         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12133         * modules/stdarg (configure.ac-early): Invoke it instead of
12134         AC_PROG_CC_STDC.
12135         Reported by Gary V. Vaughan and Paul Eggert.
12136
12137 2011-09-29  Bruno Haible  <bruno@clisp.org>
12138
12139         float: Fix LDBL_MAX value on Linux/PowerPC.
12140         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12141         on Linux/PowerPC.
12142         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12143         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12144         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12145         platform.
12146         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12147
12148 2011-09-29  Bruno Haible  <bruno@clisp.org>
12149
12150         doc: Improve doc about gl_EARLY.
12151         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12152         AC_PROG_CC_STDC invocation.
12153         Reported by Gary V. Vaughan <gary@gnu.org>.
12154
12155 2011-09-28  Bruno Haible  <bruno@clisp.org>
12156
12157         fgetc, fputc, fread, fwrite tests: Fix link error.
12158         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12159         on non-MSVC platforms.
12160         * tests/test-fputc.c (main): Likewise.
12161         * tests/test-fread.c (main): Likewise.
12162         * tests/test-fwrite.c (main): Likewise.
12163         Reported by Jim Meyering.
12164
12165 2011-09-27  Bruno Haible  <bruno@clisp.org>
12166
12167         fputc, fwrite tests: Avoid test failure on MSVC.
12168         * tests/test-fgetc.c: Include msvc-inval.h.
12169         (main): Invoke gl_msvc_inval_ensure_handler.
12170         * tests/test-fputc.c: Include msvc-inval.h.
12171         (main): Invoke gl_msvc_inval_ensure_handler.
12172         * tests/test-fread.c: Include msvc-inval.h.
12173         (main): Invoke gl_msvc_inval_ensure_handler.
12174         * tests/test-fwrite.c: Include msvc-inval.h.
12175         (main): Invoke gl_msvc_inval_ensure_handler.
12176         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12177         * modules/fputc-tests (Depends-on): Likewise.
12178         * modules/fread-tests (Depends-on): Likewise.
12179         * modules/fwrite-tests (Depends-on): Likewise.
12180
12181 2011-09-27  Bruno Haible  <bruno@clisp.org>
12182
12183         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12184         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12185         (raise): Remove older, duplicated declaration.
12186         (_gl_raise_SIGPIPE): New declaration.
12187         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12188         (rpl_raise): Remove function.
12189         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12190         a gnulib-defined SIGPIPE here.
12191         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12192         'sigprocmask' has detected missing signal-blocking and the module
12193         'sigpipe' is enabled.
12194         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12195
12196 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12197
12198         base64-tests: avoid memory leak
12199         * tests/test-base64.c (main): Plug memory leak.
12200
12201         base32: new module
12202         * modules/base32: New module.
12203         * lib/base32.c: New file.
12204         * lib/base32.h: Likewise.
12205         * m4/base32.m4: Likewise.
12206         * modules/base32-tests: New test.
12207         * tests/test-base32.c: Likewise.
12208         * MODULES.html.sh (Misc): Mention it.
12209
12210 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12211
12212         gnulib: use more-standard license notice wording
12213         * gnulib-tool (func_emit_copyright_notice): When emitting a
12214         license notice into a file, use the standard wording as suggested
12215         by the current information for GNU maintainers, except say "file"
12216         rather than "program".  The new wording gives a license version
12217         number, which addresses an issue raised by Glenn Morris in
12218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12219         * m4/onceonly.m4: Use that same wording here, too.
12220
12221         dup2: minor simplification
12222         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12223         as lib/dup2.c no longer uses 'inline'.
12224
12225 2011-09-25  Bruno Haible  <bruno@clisp.org>
12226
12227         strings: Fix compilation error on MSVC.
12228         * lib/strings.in.h: Include <stddef.h> for size_t.
12229
12230 2011-09-25  Bruno Haible  <bruno@clisp.org>
12231
12232         fflush et al.: Document limitation on MSVC.
12233         * doc/posix-functions/fflush.texi: Document possible crash in handling
12234         mode other than DEFAULT_HANDLING.
12235         * doc/posix-functions/fgetc.texi: Likewise.
12236         * doc/posix-functions/fputc.texi: Likewise.
12237         * doc/posix-functions/fread.texi: Likewise.
12238         * doc/posix-functions/fwrite.texi: Likewise.
12239
12240 2011-09-25  Bruno Haible  <bruno@clisp.org>
12241
12242         msvc-inval: Allow three invalid parameter handling modes.
12243         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12244         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12245         macros.
12246         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12247         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12248         SANE_LIBRARY_HANDLING as a no-op.
12249         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12250         <stdlib.h>.
12251         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12252
12253 2011-09-25  Bruno Haible  <bruno@clisp.org>
12254
12255         msvc-inval: Make handler multithread-safe.
12256         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12257         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12258         declarations.
12259         (gl_msvc_inval_current): New declaration.
12260         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12261         Operate on the structure returned by gl_msvc_inval_current().
12262         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12263         Remove varaiables.
12264         (tls_index, tls_initialized): New variables.
12265         (not_per_thread): New variable.
12266         (gl_msvc_inval_current): New function.
12267         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12268         returned by gl_msvc_inval_current().
12269
12270 2011-09-25  Bruno Haible  <bruno@clisp.org>
12271
12272         msvc-inval: Install handler globally.
12273         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12274         !_MSC_VER.
12275         (gl_msvc_invalid_parameter_handler): Remove declaration.
12276         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12277         declarations.
12278         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12279         Install the handler globally, don't uninstall it.
12280         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12281         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12282         currently valid, call RaiseException instead.
12283         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12284         for !_MSC_VER.
12285
12286 2011-09-25  Bruno Haible  <bruno@clisp.org>
12287
12288         strerror_r-posix: Fix for MSVC 9.
12289         * lib/strerror_r.c (local_snprintf): New function.
12290         (snprintf): Define to local_snprintf, not to _snprintf.
12291
12292 2011-09-25  Bruno Haible  <bruno@clisp.org>
12293
12294         ftruncate: Support for MSVC 9.
12295         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12296         (chsize_nothrow): New function.
12297         (chsize): Redefine as a macro.
12298         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12299         * modules/ftruncate (Depends-on): Add msvc-inval.
12300
12301 2011-09-25  Bruno Haible  <bruno@clisp.org>
12302
12303         New module 'fstat'.
12304         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12305         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12306         * lib/fchdir.c (rpl_fstat): Remove function.
12307         * m4/fstat.m4: New file.
12308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12309         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12310         declared.
12311         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12312         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12313         * modules/fstat: New file.
12314         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12315         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12316         is set.
12317         * doc/posix-functions/fstat.texi: Mention the new module and the
12318         problem on MSVC.
12319         * NEWS: Mention the change.
12320         * modules/acl (Depends-on): Add fstat.
12321         * modules/chdir-safer (Depends-on): Likewise.
12322         * modules/chown (Depends-on): Likewise.
12323         * modules/copy-file (Depends-on): Likewise.
12324         * modules/fchdir (Depends-on): Likewise.
12325         * modules/fdopendir (Depends-on): Likewise.
12326         * modules/fopen (Depends-on): Likewise.
12327         * modules/fts (Depends-on): Likewise.
12328         * modules/getcwd (Depends-on): Likewise.
12329         * modules/isapipe (Depends-on): Likewise.
12330         * modules/linkat (Depends-on): Likewise.
12331         * modules/lseek (Depends-on): Likewise.
12332         * modules/mkdir-p (Depends-on): Likewise.
12333         * modules/open (Depends-on): Likewise.
12334         * modules/openat (Depends-on): Likewise.
12335         * modules/read-file (Depends-on): Likewise.
12336         * modules/renameat (Depends-on): Likewise.
12337         * modules/utimens (Depends-on): Likewise.
12338
12339 2011-09-25  Bruno Haible  <bruno@clisp.org>
12340
12341         linkat: Fix compilation on MSVC 9.
12342         * lib/linkat.c: Don't include <stdint.h>.
12343
12344 2011-09-25  Bruno Haible  <bruno@clisp.org>
12345
12346         fclose: Support for MSVC 9.
12347         * lib/fclose.c: Include msvc-inval.h.
12348         (fclose_nothrow): New function.
12349         (rpl_fclose): Use it.
12350         * modules/fclose (Depends-on): Add msvc-inval.
12351         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12352
12353 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12354
12355         dup2: minor simplifications
12356         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12357         that it's a performance win.
12358         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12359         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12360
12361 2011-09-24  Jim Meyering  <meyering@redhat.com>
12362
12363         test-futimens: avoid a warning from gcc -Wshadow
12364         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12365         to avoid a shadowing warning.
12366
12367 2011-09-24  Bruno Haible  <bruno@clisp.org>
12368
12369         fdopen: Support for MSVC 9.
12370         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12371         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12372         * lib/fdopen.c: Include msvc-inval.h.
12373         (fdopen_nothrow): New function.
12374         (rpl_fdopen): Use it.
12375         * modules/fdopen (Depends-on): Add msvc-inval.
12376         * modules/fclose-tests (Depends-on): Add fdopen.
12377         * modules/fflush-tests (Depends-on): Likewise.
12378         * modules/fgetc-tests (Depends-on): Likewise.
12379         * modules/fputc-tests (Depends-on): Likewise.
12380         * modules/fread-tests (Depends-on): Likewise.
12381         * modules/freopen-tests (Depends-on): Likewise.
12382         * modules/fseeko-tests (Depends-on): Likewise.
12383         * modules/ftello-tests (Depends-on): Likewise.
12384         * modules/fwrite-tests  (Depends-on): Likewise.
12385         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12386
12387 2011-09-24  Bruno Haible  <bruno@clisp.org>
12388
12389         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12390         * modules/fgetc-tests (Depends-on): Add unistd.
12391         * modules/fputc-tests (Depends-on): Likewise.
12392         * modules/fread-tests (Depends-on): Likewise.
12393         * modules/fwrite-tests (Depends-on): Likewise.
12394
12395 2011-09-24  Bruno Haible  <bruno@clisp.org>
12396
12397         dup: Simplify autoconf test.
12398         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12399         on gl_MSVC_INVAL's result.
12400
12401 2011-09-24  Bruno Haible  <bruno@clisp.org>
12402
12403         Tests for function fwrite().
12404         * modules/fwrite-tests: New file.
12405         * tests/test-fwrite.c: New file.
12406         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12407
12408         Tests for function fread().
12409         * modules/fread-tests: New file.
12410         * tests/test-fread.c: New file.
12411         * modules/stdio-tests (Depends-on): Add fread-tests.
12412
12413         Activate fputc tests.
12414         * modules/stdio-tests (Depends-on): Add fputc-tests.
12415
12416         Enhance fgetc, fputc tests.
12417         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12418         * tests/test-fputc.c (main): Likewise.
12419
12420 2011-09-24  Bruno Haible  <bruno@clisp.org>
12421
12422         write: Support for MSVC 9.
12423         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12424         is not 1.
12425         * lib/write.c (write_nothrow): New function.
12426         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12427         not 1. Use write_nothrow.
12428         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12429         invalid parameter handler.
12430         (gl_PREREQ_WRITE): New macro.
12431         * modules/write (Depends-on): Add msvc-inval.
12432         (configure.ac): Invoke gl_PREREQ_WRITE.
12433         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12434
12435 2011-09-24  Bruno Haible  <bruno@clisp.org>
12436
12437         read: Fix last commit.
12438         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12439
12440 2011-09-24  Bruno Haible  <bruno@clisp.org>
12441
12442         dup2: Fix last commit.
12443         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12444         (rpl_dup2): Disable fcntl workaround on native Windows.
12445
12446         sigprocmask: Make code safer.
12447         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12448         section that changes macro definitions for this compilation unit.
12449
12450 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12451
12452         dup2: clarify by coalescing Windows-specific material
12453         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12454         "msvc-nothrow.h"' to the Windows-specific section, so that the
12455         Emacs source need not contain these include files.
12456         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12457         Windows-specific fixes into this function rather than just the
12458         nothrow fix, as this shortens and clarifies the code.  Always
12459         define as a function, as that's a bit cleaner than having it be
12460         sometimes a function and sometimes a macro.
12461         (rpl_dup2): Move the Windows-specific stuff out of here and into
12462         ms_windows_dup2.  Don't protect the Haiku-related fix with
12463         "#if !defined __linux__", as the same code also works around
12464         a Linux kernel bug, and it doesn't add any system calls on any
12465         platform.  Add comment about FreeBSD 6.1.
12466
12467         sigprocmask: move #include directive
12468         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12469         Windows-specific section, so that the Emacs source need not
12470         contain msvc-inval.h.
12471
12472 2011-09-23  Bruno Haible  <bruno@clisp.org>
12473
12474         read: Support for MSVC 9.
12475         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12476         is not 1.
12477         * lib/read.c (read_nothrow): New function.
12478         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12479         read_nothrow.
12480         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12481         invalid parameter handler.
12482         (gl_PREREQ_READ): New macro.
12483         * modules/read (Depends-on): Add msvc-inval.
12484         (configure.ac): Invoke gl_PREREQ_READ.
12485         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12486
12487 2011-09-23  Bruno Haible  <bruno@clisp.org>
12488
12489         close: Support for MSVC 9.
12490         * lib/close.c: Include <errno.h>, msvc-inval.h.
12491         (close_nothrow): New function.
12492         (rpl_close): Use it.
12493         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12494         invalid parameter handler.
12495         * modules/close (Depends-on): Add msvc-inval.
12496         * modules/dup2-tests (Depends-on): Add close.
12497         * modules/dup3-tests (Depends-on): Likewise.
12498         * modules/fcntl-tests (Depends-on): Likewise.
12499         * modules/spawn-pipe-tests (Depends-on): Likewise.
12500         * modules/unistd-safer-tests (Depends-on): Likewise.
12501         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12502
12503 2011-09-23  Bruno Haible  <bruno@clisp.org>
12504
12505         New module 'dup'.
12506         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12507         Allow replacement.
12508         * lib/dup.c: New file.
12509         * lib/fchdir.c (rpl_dup): Remove function.
12510         * m4/dup.m4: New file.
12511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12512         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12513         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12514         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12515         * modules/dup: New file.
12516         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12517         'dup' module is in use.
12518         * modules/fdopendir (Depends-on): Add dup.
12519         * modules/fdutimensat-tests (Depends-on): Likewise.
12520         * modules/fts (Depends-on): Likewise.
12521         * modules/futimens-tests (Depends-on): Likewise.
12522         * modules/posix_spawnp-tests (Depends-on): Likewise.
12523         * modules/unistd-safer-tests (Depends-on): Likewise.
12524         * modules/utimens-tests (Depends-on): Likewise.
12525         * doc/posix-functions/dup.texi: Mention the new module and the problem
12526         on MSVC.
12527
12528 2011-09-23  Bruno Haible  <bruno@clisp.org>
12529
12530         getdtablesize: Support for MSVC 9.
12531         * lib/getdtablesize.c: Include msvc-inval.h.
12532         (_setmaxstdio_nothrow): New function.
12533         (_setmaxstdio): Redefine it.
12534         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12535         * modules/getdtablesize (Depends-on): Add msvc-inval.
12536         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12537
12538 2011-09-23  Bruno Haible  <bruno@clisp.org>
12539
12540         signal-h: Rename from signal.
12541         * modules/signal-h: Renamed from modules/signal.
12542         * modules/pthread_sigmask (Depends-on): Update.
12543         * modules/raise (Depends-on): Likewise.
12544         * modules/sigaction (Depends-on): Likewise.
12545         * modules/sigpipe (Depends-on): Likewise.
12546         * modules/sigprocmask (Depends-on): Likewise.
12547         * modules/sys_select (Depends-on): Likewise.
12548         * modules/signal-h-tests: Renamed from modules/signal-tests.
12549         (Files, Depends-on, Makefile.am): Update.
12550         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12551         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12552         (Files, Makefile.am): Update.
12553         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12554         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12555         * modules/signal: New placeholder file.
12556         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12557         * doc/posix-headers/signal.texi: Update.
12558         * NEWS: Mention the change.
12559
12560 2011-09-23  Bruno Haible  <bruno@clisp.org>
12561
12562         sigprocmask: Avoid crashes through signal() on MSVC 9.
12563         * lib/sigprocmask.c: Include msvc-inval.h.
12564         (signal_nothrow): New function.
12565         (signal): Redefine it.
12566         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12567         * modules/sigprocmask (Depends-on): Add msvc-inval.
12568         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12569
12570 2011-09-23  Bruno Haible  <bruno@clisp.org>
12571
12572         Tests for module 'raise'.
12573         * modules/raise-tests: New file.
12574         * tests/test-raise.c: New file.
12575
12576         raise: Support for MSVC.
12577         * lib/signal.in.h (raise): New declaration.
12578         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12579         for native Windows platforms.
12580         * m4/raise.m4: New file.
12581         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12582         HAVE_RAISE, REPLACE_RAISE.
12583         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12584         REPLACE_RAISE.
12585         * modules/raise (Status, Notice): Remove fields.
12586         (Files): Add m4/raise.m4.
12587         (Depends-on): Add signal, msvc-inval.
12588         (configure.ac): Use the common idioms.
12589         (Maintainer): Add me.
12590         * tests/test-signal-c++.cc: Check the signature of raise.
12591         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12592
12593 2011-09-23  Bruno Haible  <bruno@clisp.org>
12594
12595         pipe2: Fix compilation on pre-C99 compilers.
12596         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12597
12598 2011-09-23  Bruno Haible  <bruno@clisp.org>
12599
12600         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12601         * lib/msvc-nothrow.h: New file.
12602         * lib/msvc-nothrow.c: New file.
12603         * m4/msvc-nothrow.m4: New file.
12604         * modules/msvc-nothrow: New file.
12605         * lib/dup2.c: Include msvc-nothrow.h.
12606         (rpl_dup2): No need to protect _get_osfhandle call here.
12607         * lib/accept4.c: Include msvc-nothrow.h.
12608         * lib/error.c: Likewise.
12609         * lib/fcntl.c: Likewise.
12610         * lib/lseek.c: Likewise.
12611         * lib/nonblocking.c: Likewise.
12612         * lib/poll.c: Likewise.
12613         * lib/read.c: Likewise.
12614         * lib/select.c: Likewise.
12615         * lib/sockets.h: Likewise.
12616         * lib/sockets.c: Likewise.
12617         * lib/stdio-read.c: Likewise.
12618         * lib/stdio-write.c: Likewise.
12619         * lib/write.c: Likewise.
12620         * lib/w32sock.h: Likewise.
12621         * lib/w32spawn.h: Likewise.
12622         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12623         * lib/fsync.c: Likewise.
12624         * lib/isapipe.c: Likewise.
12625         * modules/dup2 (Depends-on): Add msvc-nothrow.
12626         * modules/accept4 (Depends-on): Likewise.
12627         * modules/error (Depends-on): Likewise.
12628         * modules/fcntl (Depends-on): Likewise.
12629         * modules/lseek (Depends-on): Likewise.
12630         * modules/nonblocking (Depends-on): Likewise.
12631         * modules/poll (Depends-on): Likewise.
12632         * modules/read (Depends-on): Likewise.
12633         * modules/select (Depends-on): Likewise.
12634         * modules/sockets (Depends-on): Likewise.
12635         * modules/sigpipe (Depends-on): Likewise.
12636         * modules/write (Depends-on): Likewise.
12637         * modules/accept (Depends-on): Likewise.
12638         * modules/bind (Depends-on): Likewise.
12639         * modules/connect (Depends-on): Likewise.
12640         * modules/gethostname (Depends-on): Likewise.
12641         * modules/getpeername (Depends-on): Likewise.
12642         * modules/getsockname (Depends-on): Likewise.
12643         * modules/getsockopt (Depends-on): Likewise.
12644         * modules/ioctl (Depends-on): Likewise.
12645         * modules/listen (Depends-on): Likewise.
12646         * modules/recv (Depends-on): Likewise.
12647         * modules/recvfrom (Depends-on): Likewise.
12648         * modules/send (Depends-on): Likewise.
12649         * modules/sendto (Depends-on): Likewise.
12650         * modules/setsockopt (Depends-on): Likewise.
12651         * modules/shutdown (Depends-on): Likewise.
12652         * modules/socket (Depends-on): Likewise.
12653         * modules/execute (Depends-on): Likewise.
12654         * modules/spawn-pipe (Depends-on): Likewise.
12655         * modules/flock (Depends-on): Likewise.
12656         * modules/fsync (Depends-on): Likewise.
12657         * modules/isapipe (Depends-on): Likewise.
12658         * tests/test-cloexec.c: Include msvc-nothrow.h.
12659         * tests/test-dup-safer.c: Likewise.
12660         * tests/test-dup2.c: Likewise.
12661         * tests/test-dup3.c: Likewise.
12662         * tests/test-fcntl.c: Likewise.
12663         * tests/test-pipe.c: Likewise.
12664         * tests/test-pipe2.c: Likewise.
12665         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12666         * modules/unistd-safer-tests (Depends-on): Likewise.
12667         * modules/dup2-tests (Depends-on): Likewise.
12668         * modules/dup3-tests (Depends-on): Likewise.
12669         * modules/fcntl-tests (Depends-on): Likewise.
12670         * modules/pipe-posix-tests (Depends-on): Likewise.
12671         * modules/pipe2-tests (Depends-on): Likewise.
12672
12673 2011-09-23  Bruno Haible  <bruno@clisp.org>
12674
12675         dup2: Make code more maintainable.
12676         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12677         (rpl_dup2): Use it.
12678         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12679         * modules/dup2 (configure.ac): Invoke it.
12680         Reported by Paul Eggert.
12681
12682 2011-09-23  Bruno Haible  <bruno@clisp.org>
12683
12684         msvc-inval: Fix compilation error.
12685         * lib/msvc-inval.h: Include <excpt.h>.
12686
12687 2011-09-23  Bruno Haible  <bruno@clisp.org>
12688
12689         mkdir: Tweak for MSVC 9.
12690         * lib/sys_stat.in.h: Update comments.
12691         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12692
12693         Tests for module 'chdir'.
12694         * modules/chdir-tests: New file.
12695         * tests/test-chdir.c: New file.
12696
12697         New module 'chdir'.
12698         * modules/chdir: New file.
12699         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12700         (chdir): New declaration.
12701         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12702         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12703         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12704         * tests/test-unistd-c++.cc: Check signature of chdir.
12705         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12706         * modules/chdir-long (Depends-on): Add chdir.
12707         * modules/fchdir (Depends-on): Likewise.
12708         * modules/rename (Depends-on): Likewise.
12709         * modules/savewd (Depends-on): Likewise.
12710
12711         rmdir: Support for mingw, MSVC 9.
12712         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12713         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12714
12715         getcwd: Tweak for MSVC 9.
12716         * lib/unistd.in.h: Update comments.
12717         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12718
12719 2011-09-22  Bruno Haible  <bruno@clisp.org>
12720
12721         strerror_r-posix: Avoid a link error on MSVC.
12722         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12723         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12724
12725 2011-09-22  Bruno Haible  <bruno@clisp.org>
12726
12727         select: Avoid link errors on MSVC.
12728         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12729         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12730         * modules/pselect (Link): Likewise.
12731         * NEWS: Mention the change.
12732         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12733         test-select-stdin against $(LIB_SELECT).
12734         * modules/pselect-tests (Makefile.am): Link test-pselect against
12735         $(LIB_SELECT).
12736
12737 2011-09-22  Bruno Haible  <bruno@clisp.org>
12738
12739         select: Avoid compilation error on MSVC.
12740         * lib/select.c: Don't include <stdbool.h>.
12741
12742 2011-09-21  Bruno Haible  <bruno@clisp.org>
12743
12744         Consolidate all uses of PATH_MAX in *.m4 files.
12745         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12746         macros.
12747         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12748         and gl_PATHMAX_SNIPPET.
12749         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12750         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12751         * modules/chdir-long (Files): Add m4/pathmax.m4.
12752         * modules/getcwd (Files): Likewise.
12753
12754 2011-09-21  Bruno Haible  <bruno@clisp.org>
12755
12756         ftruncate: Un-deprecate, concentrate on Win32 support.
12757         * modules/ftruncate (Status, Notice): Remove sections.
12758         (Depends-on): Add largefile.
12759         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12760         non-mingw platforms.
12761         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12762         include <io.h>.
12763         * modules/perror-tests (Depends-on): Add ftruncate.
12764         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12765         'ftruncate' module.
12766
12767 2011-09-21  Bruno Haible  <bruno@clisp.org>
12768
12769         Add dependencies to new dirent related modules.
12770         * modules/opendir (Depends-on): Add closedir.
12771         * modules/getcwd (Depends-on): Add opendir, closedir.
12772         * modules/dirent-safer-tests (Depends-on): Likewise.
12773         * modules/fdopendir-tests (Depends-on): Likewise.
12774         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12775         * modules/renameat-tests (Depends-on): Likewise.
12776
12777 2011-09-21  Bruno Haible  <bruno@clisp.org>
12778
12779         opendir: Avoid compilation error on mingw.
12780         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12781         * modules/opendir (Depends-on): Add unistd.
12782
12783 2011-09-21  Bruno Haible  <bruno@clisp.org>
12784
12785         ftruncate tests: Avoid a test failure on mingw.
12786         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12787
12788 2011-09-21  Bruno Haible  <bruno@clisp.org>
12789
12790         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12791         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12792         native Windows.
12793
12794 2011-09-21  Bruno Haible  <bruno@clisp.org>
12795
12796         New module 'fdopen'.
12797         * lib/stdio.in.h (fdopen): New declaration.
12798         * lib/fdopen.c: New file.
12799         * m4/fdopen.m4: New file.
12800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12801         REPLACE_FDOPEN.
12802         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12803         REPLACE_FDOPEN.
12804         * modules/fdopen: New file.
12805         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12806         * tests/test-stdio-c++.cc: Check signature of fdopen.
12807         * doc/posix-functions/fdopen.texi: Mention the new module.
12808
12809 2011-09-21  Bruno Haible  <bruno@clisp.org>
12810
12811         unlockpt tests: Avoid test failure on NetBSD 5.1.
12812         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12813         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12814
12815 2011-09-21  Bruno Haible  <bruno@clisp.org>
12816
12817         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12818         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12819         * tests/test-getlogin_r.c (main): Likewise.
12820
12821 2011-09-20  Bruno Haible  <bruno@clisp.org>
12822
12823         time tests: Don't require pid_t.
12824         * doc/posix-headers/time.texi: Revert last change.
12825         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12826         * tests/test-time.c: Comment out the check for pid_t.
12827
12828 2011-09-20  Bruno Haible  <bruno@clisp.org>
12829
12830         fsync tests: Avoid a test failure on mingw.
12831         * tests/test-fsync.c (main): Allow a failure with EIO.
12832
12833 2011-09-20  Bruno Haible  <bruno@clisp.org>
12834
12835         euidaccess: Update comments.
12836         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12837
12838 2011-09-20  Bruno Haible  <bruno@clisp.org>
12839
12840         Ensure EBADF returns for socket functions on mingw.
12841         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12842         descriptor is invalid.
12843         * lib/bind.c (rpl_bind): Likewise.
12844         * lib/connect.c (rpl_connect): Likewise.
12845         * lib/getpeername.c (rpl_getpeername): Likewise.
12846         * lib/getsockname.c (rpl_getsockname): Likewise.
12847         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12848         * lib/listen.c (rpl_listen): Likewise.
12849         * lib/recv.c (rpl_recv): Likewise.
12850         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12851         * lib/send.c (rpl_send): Likewise.
12852         * lib/sendto.c (rpl_sendto): Likewise.
12853         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12854         * lib/shutdown.c (rpl_shutdown): Likewise.
12855
12856 2011-09-20  Bruno Haible  <bruno@clisp.org>
12857
12858         select tests: EBADF tests.
12859         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12860         test_bad_fd): New functions.
12861         (test_function): Invoke also test_bad_fd.
12862
12863 2011-09-20  Bruno Haible  <bruno@clisp.org>
12864
12865         Tests for module 'posix_spawn_file_actions_addopen.
12866         * modules/posix_spawn_file_actions_addopen-tests: New file.
12867         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12868
12869         Tests for module 'posix_spawn_file_actions_adddup2'.
12870         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12871         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12872
12873         Tests for module 'posix_spawn_file_actions_addclose'.
12874         * modules/posix_spawn_file_actions_addclose-tests: New file.
12875         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12876
12877 2011-09-20  Bruno Haible  <bruno@clisp.org>
12878
12879         Tests for module 'unlockpt'.
12880         * modules/unlockpt-tests: New file.
12881         * tests/test-unlockpt.c: New file.
12882         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12883
12884         Tests for module 'grantpt'.
12885         * modules/grantpt-tests: New file.
12886         * tests/test-grantpt.c: New file.
12887         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12888
12889 2011-09-20  Bruno Haible  <bruno@clisp.org>
12890
12891         freopen tests: EBADF tests.
12892         * tests/test-freopen.c: Include errno.h, unistd.h.
12893         (main): Add tests for EBADF, commented out for the moment.
12894
12895         fclose tests: EBADF tests.
12896         * tests/test-fclose.c (main): Add tests for EBADF.
12897
12898         fflush tests: EBADF tests.
12899         * tests/test-fflush.c: Include errno.h, macros.h.
12900         (main): Add tests for EBADF.
12901
12902         ftello tests: EBADF tests.
12903         * tests/test-ftello4.sh: New file.
12904         * tests/test-ftello4.c: New file.
12905         * modules/ftello-tests (Files): Add them.
12906         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12907
12908         fseeko tests: EBADF tests.
12909         * tests/test-fseeko4.sh: New file.
12910         * tests/test-fseeko4.c: New file.
12911         * modules/fseeko-tests (Files): Add them.
12912         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12913
12914         Tests for function fputc().
12915         * modules/fputc-tests: New file.
12916         * tests/test-fputc.c: New file.
12917         * modules/stdio-tests (Depends-on): Add fputc-tests.
12918
12919         Tests for function fgetc().
12920         * modules/fgetc-tests: New file.
12921         * tests/test-fgetc.c: New file.
12922         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12923
12924         Tests for function fdopen().
12925         * modules/fdopen-tests: New file.
12926         * tests/test-fdopen.c: New file.
12927         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12928
12929         Tests for module 'vdprintf'.
12930         * modules/vdprintf-tests: New file.
12931         * tests/test-vdprintf.c: New file.
12932
12933         Tests for module 'dprintf'.
12934         * modules/dprintf-tests: New file.
12935         * tests/test-dprintf.c: New file.
12936
12937 2011-09-20  Bruno Haible  <bruno@clisp.org>
12938
12939         Tests for module 'ioctl'.
12940         * modules/ioctl-tests: New file.
12941         * tests/test-ioctl.c: New file.
12942
12943 2011-09-20  Bruno Haible  <bruno@clisp.org>
12944
12945         fcntl tests: EBADF tests.
12946         * tests/test-fcntl.c (main): Add more tests for EBADF.
12947
12948 2011-09-20  Bruno Haible  <bruno@clisp.org>
12949
12950         utimensat tests: EBADF tests.
12951         * tests/test-utimensat.c (main): Add tests for EBADF.
12952
12953         renameat tests: EBADF tests.
12954         * tests/test-renameat.c (main): Add tests for EBADF.
12955
12956         mkfifoat tests: EBADF tests.
12957         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12958
12959         readlinkat tests: EBADF tests.
12960         * tests/test-readlinkat.c (main): Add tests for EBADF.
12961
12962         symlinkat tests: EBADF tests.
12963         * tests/test-symlinkat.c (main): Add tests for EBADF.
12964
12965         linkat tests: EBADF tests.
12966         * tests/test-linkat.c (main): Add tests for EBADF.
12967
12968         Tests for module 'faccessat'.
12969         * modules/faccessat-tests: New file.
12970         * tests/test-faccessat.c: New file.
12971
12972         fdopendir tests: EBADF tests.
12973         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12974
12975         openat tests: EBADF tests.
12976         * tests/test-fchownat.c (main): Add tests for EBADF.
12977         * tests/test-fstatat.c (main): Likewise.
12978         * tests/test-mkdirat.c (main): Likewise.
12979         * tests/test-openat.c (main): Likewise.
12980         * tests/test-unlinkat.c (main): Likewise.
12981         * tests/test-fchmodat.c: New file.
12982         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12983         (Makefile.am): Also run 'test-fchmodat'.
12984
12985 2011-09-20  Bruno Haible  <bruno@clisp.org>
12986
12987         utimens, futimens, fdutimensat tests: EBADF tests.
12988         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12989
12990         Tests for function fstat().
12991         * modules/fstat-tests: New file.
12992         * tests/test-fstat.c: New file.
12993         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12994
12995 2011-09-20  Bruno Haible  <bruno@clisp.org>
12996
12997         test-ttyname_r tests: EBADF tests.
12998         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12999
13000         Tests for module 'isatty'.
13001         * modules/isatty-tests: New file.
13002         * tests/test-isatty.c: New file.
13003
13004         Tests for module 'write'.
13005         * modules/write-tests: New file.
13006         * tests/test-write.c: New file.
13007
13008         Tests for module 'read'.
13009         * modules/read-tests: New file.
13010         * tests/test-read.c: New file.
13011
13012         pwrite tests: EBADF tests.
13013         * tests/test-pwrite.c (main): Add tests for EBADF.
13014
13015         pread tests: EBADF tests.
13016         * tests/test-pread.c (main): Add tests for EBADF.
13017
13018         lseek tests: EBADF tests.
13019         * tests/test-lseek.c (main): Add more tests for EBADF.
13020
13021         Tests for module 'ftruncate'.
13022         * modules/ftruncate-tests: New file.
13023         * tests/test-ftruncate.sh: New file.
13024         * tests/test-ftruncate.c: New file.
13025
13026         fsync tests: EBADF tests.
13027         * tests/test-fsync.c (main): Add more tests for EBADF.
13028
13029         fdatasync tests: EBADF tests.
13030         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13031
13032         Tests for module 'fchown'.
13033         * modules/fchown-tests: New file.
13034         * tests/test-fchown.c: New file.
13035
13036         Tests for module 'fchmod'.
13037         * modules/fchmod-tests: New file.
13038         * tests/test-fchmod.c: New file.
13039
13040         fchdir tests: EBADF tests.
13041         * tests/test-fchdir.c (main): Add more tests for EBADF.
13042
13043         dup2 tests: EBADF tests.
13044         * tests/test-dup2.c (main): Add more tests for EBADF.
13045
13046         Tests for module 'dup'.
13047         * modules/dup-tests: New file.
13048         * tests/test-dup.c: New file.
13049
13050         Tests for module 'close'.
13051         * modules/close-tests: New file.
13052         * tests/test-close.c: New file.
13053
13054 2011-09-20  Bruno Haible  <bruno@clisp.org>
13055
13056         Tests for module 'shutdown'.
13057         * modules/shutdown-tests: New file.
13058         * tests/test-shutdown.c: New file.
13059
13060         Tests for module 'setsockopt'.
13061         * modules/setsockopt-tests: New file.
13062         * tests/test-setsockopt.c: New file.
13063
13064         Tests for module 'sendto'.
13065         * modules/sendto-tests: New file.
13066         * tests/test-sendto.c: New file.
13067
13068         Tests for module 'send'.
13069         * modules/send-tests: New file.
13070         * tests/test-send.c: New file.
13071
13072         Tests for module 'recvfrom'.
13073         * modules/recvfrom-tests: New file.
13074         * tests/test-recvfrom.c: New file.
13075
13076         Tests for module 'recv'.
13077         * modules/recv-tests: New file.
13078         * tests/test-recv.c: New file.
13079
13080         Tests for module 'listen'.
13081         * modules/listen-tests: New file.
13082         * tests/test-listen.c: New file.
13083
13084         Tests for module 'getsockopt'.
13085         * modules/getsockopt-tests: New file.
13086         * tests/test-getsockopt.c: New file.
13087
13088         Tests for module 'getsockname'.
13089         * modules/getsockname-tests: New file.
13090         * tests/test-getsockname.c: New file.
13091
13092         Tests for module 'getpeername'.
13093         * modules/getpeername-tests: New file.
13094         * tests/test-getpeername.c: New file.
13095
13096         Tests for module 'connect'.
13097         * modules/connect-tests: New file.
13098         * tests/test-connect.c: New file.
13099
13100         Tests for module 'bind'.
13101         * modules/bind-tests: New file.
13102         * tests/test-bind.c: New file.
13103
13104         accept4 tests: Fix for native Windows.
13105         * tests/test-accept4.c: Include sockets.h.
13106         (main): Invoke gl_sockets_startup.
13107         * modules/accept4-tests (Depends-on): Add sockets.
13108
13109         accept tests: Fix for native Windows.
13110         * tests/test-accept.c: Include sockets.h.
13111         (main): Invoke gl_sockets_startup.
13112         * modules/accept-tests (Depends-on): Add sockets.
13113
13114 2011-09-19  Bruno Haible  <bruno@clisp.org>
13115
13116         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13117         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13118         do...while(0).
13119         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13120         Suggested by Paul Eggert.
13121
13122 2011-09-19  Bruno Haible  <bruno@clisp.org>
13123
13124         sched: Ensure pid_t is defined.
13125         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13126         not define pid_t.
13127         * lib/sched.in.h: Include <sys/types.h>.
13128         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13130
13131 2011-09-19  Bruno Haible  <bruno@clisp.org>
13132
13133         msvc-inval: Ensure the entire expansion is a single statement.
13134         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13135         of braces.
13136
13137 2011-09-19  Jim Meyering  <meyering@redhat.com>
13138
13139         tests: use printf, not echo in init.sh's warn_ function
13140         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13141         misbehave when given strings containing a backslash or starting
13142         with e.g., -n.  James Youngman suggested setting IFS.
13143
13144 2011-09-19  Eric Blake  <eblake@redhat.com>
13145
13146         futimens: enhance test
13147         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13148         closed non-negative fd.
13149
13150         date: accept 'hence' as opposite of 'ago'
13151         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13152         * tests/test-parse-datetime.c (main): Enhance test.
13153         Suggested by Jesse Wilson.
13154
13155 2011-09-19  Jim Meyering  <meyering@redhat.com>
13156
13157         getcwd: don't fail in a deep directory on a system without openat
13158         Before this change, getcwd would fail when called from a directory
13159         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13160         the non-openat implementation used "..", "../..", "../../..", etc.
13161         to access ancestor directories.  With too many, that string would
13162         be longer than PATH_MAX.
13163         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13164         using gnulib's openat replacement.
13165         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13166         we're using the replacement function.
13167
13168 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13169
13170         maint.mk: avoid warnings from perl about missing files
13171         * top/maint.mk (def_sym_regex): Ignore files listed in
13172         $(gl_other_headers_) that do not exist, say because a project
13173         does not use a corresponding module.
13174
13175 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13176
13177         stat: use pathmax.h only if needed
13178         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13179         This is better for Emacs, which does not have a mingw port and
13180         therefore can avoid the pathmax module.
13181
13182         utimens: remove dependency on dup2
13183         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13184         to work around the Linux kernel bug.
13185         * modules/utimens (Depends-on): Remove dup2.
13186
13187 2011-09-18  Bruno Haible  <bruno@clisp.org>
13188
13189         inet_ntop, inet_pton: Look for it also in libresolv.
13190         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13191         libnsl, search for it in libresolv.
13192         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13193         Needed on Solaris 7.
13194
13195 2011-09-18  Bruno Haible  <bruno@clisp.org>
13196
13197         accept, accept4 tests: Avoid link error on Solaris.
13198         * modules/accept-tests (Makefile.am): Link test-accept against
13199         $(LIBSOCKET).
13200         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13201         $(LIBSOCKET).
13202
13203         accept4: Avoid link error on Solaris.
13204         * modules/accept4 (Link): New section.
13205
13206         socket functions: Avoid link errors on Solaris.
13207         * modules/accept (Depends-on): Add socketlib.
13208         (Link): New section.
13209         * modules/bind (Depends-on): Add socketlib.
13210         (Link): New section.
13211         * modules/connect (Depends-on): Add socketlib.
13212         (Link): New section.
13213         * modules/getpeername (Depends-on): Add socketlib.
13214         (Link): New section.
13215         * modules/getsockname (Depends-on): Add socketlib.
13216         (Link): New section.
13217         * modules/getsockopt (Depends-on): Add socketlib.
13218         (Link): New section.
13219         * modules/listen (Depends-on): Add socketlib.
13220         (Link): New section.
13221         * modules/recv (Depends-on): Add socketlib.
13222         (Link): New section.
13223         * modules/recvfrom (Depends-on): Add socketlib.
13224         (Link): New section.
13225         * modules/send (Depends-on): Add socketlib.
13226         (Link): New section.
13227         * modules/sendto (Depends-on): Add socketlib.
13228         (Link): New section.
13229         * modules/setsockopt (Depends-on): Add socketlib.
13230         (Link): New section.
13231         * modules/shutdown (Depends-on): Add socketlib.
13232         (Link): New section.
13233         * modules/socket (Depends-on): Add socketlib.
13234         (Link): New section.
13235
13236 2011-09-18  Bruno Haible  <bruno@clisp.org>
13237
13238         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13239         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13240         than 5 seconds.
13241         * modules/ptsname-tests (configure.ac): Test for alarm.
13242
13243 2011-09-18  Bruno Haible  <bruno@clisp.org>
13244
13245         posix_spawn_file_actions_add*: Fix module dependencies.
13246         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13247         posix_spawn_file_actions_init.
13248         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13249         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13250
13251 2011-09-18  Bruno Haible  <bruno@clisp.org>
13252
13253         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13254         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13255         * tests/test-renameat.c (main): Likewise.
13256
13257 2011-09-18  Bruno Haible  <bruno@clisp.org>
13258
13259         Tests for module 'accept4'.
13260         * modules/accept4-tests: New file.
13261         * tests/test-accept4.c: New file.
13262
13263 2011-09-18  Bruno Haible  <bruno@clisp.org>
13264
13265         Tests for module 'accept'.
13266         * modules/accept-tests: New file.
13267         * tests/test-accept.c: New file.
13268
13269 2011-09-18  Bruno Haible  <bruno@clisp.org>
13270
13271         dup2: Support for MSVC.
13272         * lib/dup2.c: Include msvc-inval.h.
13273         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13274         _get_osfhandle calls.
13275         * modules/dup2 (Depends-on): Add msvc-inval.
13276         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13277
13278         New module 'msvc-inval'.
13279         * lib/msvc-inval.h: New file.
13280         * lib/msvc-inval.c: New file.
13281         * m4/msvc-inval.m4: New file.
13282         * modules/msvc-inval: New file.
13283
13284 2011-09-17  Bruno Haible  <bruno@clisp.org>
13285
13286         Tests for module 'pclose'.
13287         * modules/pclose-tests: New file.
13288
13289         New module 'pclose'.
13290         * lib/stdio.in.h (pclose): New declaration.
13291         * lib/pclose.c: New file.
13292         * m4/pclose.m4: New file.
13293         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13294         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13295         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13296         * modules/pclose: New file.
13297         * modules/popen-tests (Depends-on): Add pclose.
13298         * modules/popen-safer-tests (Depends-on): Likewise.
13299         * doc/posix-functions/pclose.texi: Mention the new module.
13300
13301 2011-09-17  Bruno Haible  <bruno@clisp.org>
13302
13303         popen: Support for MSVC.
13304         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13305         * lib/popen.c (popen): Provide alternate definition for native Windows.
13306         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13308         * modules/popen (Depends-on, configure.ac): Update condition.
13309         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13310         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13311         fixed.
13312
13313 2011-09-17  Bruno Haible  <bruno@clisp.org>
13314
13315         isnanl, isnand, isnanf: Work around MSVC bug.
13316         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13317
13318 2011-09-17  Bruno Haible  <bruno@clisp.org>
13319
13320         sys_socket tests: Fix recent mistake.
13321         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13322
13323 2011-09-17  Bruno Haible  <bruno@clisp.org>
13324
13325         putenv: Support for MSVC.
13326         * modules/putenv (Depends-on): Add environ.
13327         * lib/putenv.c (environ): Disable declaration.
13328         * lib/unistd.in.h: Update comment.
13329
13330 2011-09-17  Bruno Haible  <bruno@clisp.org>
13331
13332         math: Avoid macro redefinition warnings on MSVC.
13333         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13334         Undefine before redefining.
13335
13336 2011-09-17  Bruno Haible  <bruno@clisp.org>
13337
13338         doc: Mention functions which are declared as macros.
13339         * doc/posix-functions/*[fl].texi: Mention that some functions are
13340         defined as macros with arguments only.
13341
13342 2011-09-17  Bruno Haible  <bruno@clisp.org>
13343
13344         Add dependencies to new dirent related modules.
13345         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13346         * modules/fts (Depends-on): Likewise.
13347         * modules/glob (Depends-on): Likewise.
13348         * modules/savedir (Depends-on): Likewise.
13349         * modules/scandir (Depends-on): Likewise.
13350         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13351         * modules/fdopendir (Depends-on): Add opendir.
13352
13353 2011-09-17  Bruno Haible  <bruno@clisp.org>
13354
13355         inet_pton: Support for MSVC on Windows Vista or newer.
13356         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13357         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13358         HAVE_DECL_INET_PTON is defined.
13359         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13360         On platforms with <winsock2.h>, test whether inet_pton is declared in
13361         <ws2tcpip.h>. If so, arrange to replace it.
13362         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13363         REPLACE_INET_PTON.
13364         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13365         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13366         (Depends-on, configure.ac): Update condition.
13367         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13368
13369 2011-09-17  Bruno Haible  <bruno@clisp.org>
13370
13371         inet_ntop: Support for MSVC on Windows Vista or newer.
13372         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13373         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13374         HAVE_DECL_INET_NTOP is defined.
13375         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13376         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13377         <ws2tcpip.h>. If so, arrange to replace it.
13378         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13379         REPLACE_INET_NTOP.
13380         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13381         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13382         (Depends-on, configure.ac): Update condition.
13383         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13384
13385 2011-09-16  Eric Blake  <eblake@redhat.com>
13386
13387         test-fsync: yet another enhancement
13388         * tests/test-fsync.c (main): Also test behavior on read-only text
13389         file.
13390
13391 2011-09-16  Bruno Haible  <bruno@clisp.org>
13392
13393         Enhance fsync, fdatasync tests.
13394         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13395         * tests/test-fdatasync.c (main): Likewise.
13396
13397 2011-09-16  Bruno Haible  <bruno@clisp.org>
13398
13399         Support for MSVC compiler: Ensure mode_t gets defined.
13400         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13401         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13402         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13403         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13404         * tests/test-fcntl-h.c: Check that mode_t is defined.
13405         * tests/test-sys_stat.c: Likewise.
13406         * tests/test-sys_types.c: Likewise.
13407         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13408         * doc/posix-headers/sys_stat.texi: Likewise.
13409         * doc/posix-headers/sys_types.texi: Likewise.
13410
13411 2011-09-16  Bruno Haible  <bruno@clisp.org>
13412
13413         sys_stat: Support for MSVC.
13414         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13415         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13416         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13417         MSVC.
13418
13419 2011-09-16  Bruno Haible  <bruno@clisp.org>
13420
13421         Support for MSVC compiler: Ensure off_t gets defined.
13422         * lib/unistd.in.h: Include <sys/types.h>.
13423         * tests/test-fcntl-h.c: Check that off_t is defined.
13424         * tests/test-sys_stat.c: Likewise.
13425         * tests/test-sys_types.c: Likewise.
13426
13427 2011-09-16  Eric Blake  <eblake@redhat.com>
13428
13429         fdatasync: port to Solaris
13430         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13431         * modules/fdatasync (Link): Document it.
13432         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13433
13434         fdatasync: port to MacOS X 10.7
13435         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13436         declared.
13437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13438         * modules/unistd (Makefile.am): Substitute it.
13439         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13440         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13441
13442         fdatasync: minor improvements
13443         * modules/fdatasync (Depends-on): Add condition for fsync.
13444         * lib/fdatasync.c (fdatasync): Add comment.
13445         * tests/test-unistd-c++.cc: Test fdatasync.
13446
13447         unistd: update refs to newer POSIX
13448         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13449         Suggested by Bruno Haible.
13450
13451         fdatasync: new module
13452         * modules/fsync (Description): Document difference to fdatasync.
13453         * modules/fdatasync: New module.
13454         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13455         * lib/fdatasync.c (fdatasync): Likewise.
13456         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13457         defaults.
13458         * modules/unistd (Makefile.am): Set witnesses.
13459         * lib/unistd.in.h (fdatasync): Declare.
13460         * MODULES.html.sh: Document it.
13461         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13462         * modules/fdatasync-tests: New test.
13463         * tests/test-fdatasync.c: Likewise.
13464
13465 2011-09-16  Eric Blake  <eblake@redhat.com>
13466
13467         test-fsync: enhance tests
13468         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13469         * tests/test-fsync.c (main): Enhance test.
13470
13471 2011-09-15  Bruno Haible  <bruno@clisp.org>
13472
13473         Support for MSVC compiler: Ensure ssize_t gets defined.
13474         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13475         * doc/posix-headers/stdio.texi: Likewise.
13476         * modules/stdio (Depends-on): Add ssize_t.
13477         * modules/sys_socket (Depends-on): Likewise.
13478         * modules/sys_types (Depends-on): Likewise.
13479         * modules/sys_uio (Depends-on): Likewise.
13480         * modules/unistd (Depends-on): Likewise.
13481         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13482         * tests/test-sys_types.c: Check that ssize_t is defined.
13483
13484 2011-09-14  Bruno Haible  <bruno@clisp.org>
13485
13486         Avoid using #, the m4 comment starter character, near brackets.
13487         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13488         delimiter character in sed expressions.
13489         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13490         Suggested by Eric Blake.
13491
13492         Properly quote AC_CHECK_DECLS' 4th argument.
13493         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13494         argument.
13495         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13496         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13497         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13498         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13499         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13500         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13501         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13502         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13503         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13504         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13505         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13506         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13507         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13508         * m4/isinf.m4 (gl_ISINF): Likewise.
13509         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13510         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13511         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13512         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13513         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13514         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13515         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13516         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13517         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13518         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13519         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13520         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13521         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13522         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13524         Reported by Eric Blake.
13525
13526         Properly quote AC_CHECK_DECL's 4th argument.
13527         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13528         argument.
13529         * m4/argp.m4 (gl_ARGP): Likewise.
13530         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13531         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13532         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13533         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13534         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13535         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13536         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13537         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13538         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13539         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13540         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13541         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13542         Reported by Eric Blake.
13543
13544 2011-09-14  Eric Blake  <eblake@redhat.com>
13545
13546         opendir: avoid compile warning
13547         * lib/opendir.c (includes): Always include errno.h.
13548         Reported by Tatsuro MATSUOKA.
13549
13550 2011-09-14  Jim Meyering  <meyering@redhat.com>
13551
13552         maint.mk: sc_tight_scope: propagate failure from sub-make
13553         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13554         Reported by Martin von Gagern.
13555
13556 2011-09-13  Bruno Haible  <bruno@clisp.org>
13557
13558         tempname: Support for MSVC.
13559         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13560         MSVC.
13561         * modules/tempname (Depends-on): Add fcntl-h.
13562
13563 2011-09-13  Bruno Haible  <bruno@clisp.org>
13564
13565         sys_time: Support for MSVC.
13566         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13567         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13568         include <winsock2.h>.
13569         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13570         function declarations that collide with POSIX.
13571         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13572         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13573
13574 2011-09-13  Bruno Haible  <bruno@clisp.org>
13575
13576         stat: Support for MSVC.
13577         * lib/stat.c: Include pathmax.h.
13578         * modules/stat (Depends-on): Add pathmax.
13579
13580         pathmax: Support for native Windows.
13581         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13582
13583 2011-09-12  Bruno Haible  <bruno@clisp.org>
13584
13585         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13586         * lib/dirent.in.h (struct dirent): New type.
13587         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13588         DT_WHT): New macros.
13589         (DIR): New type.
13590         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13591         (readdir, rewinddir): New declarations.
13592         * lib/dirent-private.h: New file.
13593         * lib/opendir.c: New file.
13594         * lib/readdir.c: New file.
13595         * lib/rewinddir.c: New file.
13596         * lib/closedir.c: New file.
13597         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13598         * m4/opendir.m4: New file.
13599         * m4/readdir.m4: New file.
13600         * m4/rewinddir.m4: New file.
13601         * m4/closedir.m4: New file.
13602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13603         REPLACE_CLOSEDIR here.
13604         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13605         readdir, rewinddir are declared.
13606         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13607         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13608         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13609         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13610         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13611         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13612         * modules/opendir: New file.
13613         * modules/readdir: New file.
13614         * modules/rewinddir: New file.
13615         * modules/closedir: New file.
13616         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13617         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13618         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13619         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13620         * NEWS: Mention the 'fchdir' change.
13621
13622 2011-09-11  Bruno Haible  <bruno@clisp.org>
13623
13624         asm-underscore.m4: Support for MSVC.
13625         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13626         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13627
13628 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13629
13630         Doc about crypt functions.
13631         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13632         needing for _GNU_SOURCE to get crypt.
13633         * doc/posix-functions/encrypt.texi: Likewise.
13634         * doc/posix-functions/setkey.texi: Likewise.
13635
13636 2011-09-11  Bruno Haible  <bruno@clisp.org>
13637
13638         doc: Update regarding MSVC 9.
13639         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13640         tested".
13641         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13642         * doc/posix-headers/*.texi: Likewise.
13643         * doc/pastposix-functions/*.texi: Likewise.
13644         * doc/glibc-functions/*.texi: Likewise.
13645         * doc/glibc-headers/*.texi: Likewise.
13646
13647 2011-09-11  Bruno Haible  <bruno@clisp.org>
13648
13649         unistd et al.: Don't assume <unistd.h> exists.
13650         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13651         does not exist.
13652         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13653         exist. But include <stdlib.h>.
13654         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13655         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13656         symlink() does not exist.
13657         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13658         include <io.h> instead.
13659         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13660         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13661         include <direct.h> instead.
13662         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13663         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13664         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13665         <io.h> instead.
13666         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13667         correctly if the system does not have hard links.
13668         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13669         <direct.h> instead.
13670         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13671         it when looking for function declarations.
13672         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13673         <direct.h> and <io.h> instead.
13674         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13675
13676 2011-09-11  Bruno Haible  <bruno@clisp.org>
13677
13678         strcase: Support for MSVC.
13679         * modules/strcase (Status, Notice): Remove obsoletion mark.
13680         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13681         * doc/posix-functions/strncasecmp.texi: Likewise.
13682
13683         strings: Don't assume <strings.h> exists.
13684         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13685         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13686         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13687         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13688
13689 2011-09-11  Bruno Haible  <bruno@clisp.org>
13690
13691         dirent: Don't assume <dirent.h> exists.
13692         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13693         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13694         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13695         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13696
13697 2011-09-11  Bruno Haible  <bruno@clisp.org>
13698
13699         Fix wint_t on MSVC.
13700         * lib/wchar.in.h (wint_t): On MSVC, override it.
13701         * lib/wctype.in.h (wint_t): Likewise.
13702         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13703         MSVC.
13704         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13705         * doc/posix-headers/wctype.texi: Likewise.
13706
13707 2011-09-11  Bruno Haible  <bruno@clisp.org>
13708
13709         sys_types: Fix typo.
13710         * lib/sys_types.in.h: Fix typo in comment.
13711         Reported by Paul Eggert.
13712
13713         Support for MSVC compiler: Ensure size_t gets defined.
13714         * modules/strings (Depends-on): Add 'sys_types'.
13715         * modules/sys_uio (Depends-on): Likewise.
13716         * lib/sys_uio.in.h: Update comment.
13717
13718         C++ tests for module 'sys_types'.
13719         * modules/sys_types-c++-tests: New file.
13720         * tests/test-sys_types-c++.cc: New file.
13721
13722         Tests for module 'sys_types'.
13723         * modules/sys_types-tests: New file.
13724         * tests/test-sys_types.c: New file.
13725
13726         New module 'sys_types'.
13727         * lib/sys_types.in.h: New file.
13728         * m4/sys_types_h.m4: New file.
13729         * modules/sys_types: New file.
13730         * doc/posix-headers/sys_types.texi: Mention the new module and the
13731         size_t problem on MSVC 9.
13732
13733 2011-09-11  Bruno Haible  <bruno@clisp.org>
13734
13735         Support for MSVC compiler: Avoid division by a literal 0.
13736         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13737         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13738         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13739         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13740         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13741         * tests/infinity.h: New file.
13742         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13743         on MSVC.
13744         * tests/test-ceilf1.c: Include infinity.h.
13745         (main): Use Infinityf.
13746         * tests/test-ceil1.c: Include infinity.h.
13747         (main): Use Infinityd.
13748         * tests/test-ceill.c: Include infinity.h.
13749         (main): Use Infinityl.
13750         * tests/test-dprintf-posix.c: Include infinity.h.
13751         (test_function): Use Infinityd.
13752         * tests/test-floorf1.c: Include infinity.h.
13753         (main): Use Infinityf.
13754         * tests/test-floor1.c: Include infinity.h.
13755         (main): Use Infinityd.
13756         * tests/test-floorl.c: Include infinity.h.
13757         (main): Use Infinityl.
13758         * tests/test-fprintf-posix.c: Include infinity.h.
13759         (test_function): Use Infinityd.
13760         * tests/test-frexp.c: Include infinity.h.
13761         (main): Use Infinityd.
13762         * tests/test-frexpl.c: Include infinity.h.
13763         (main): Use Infinityl.
13764         * tests/test-isfinite.c: Include infinity.h.
13765         (test_isfinitef): Use Infinityf.
13766         (test_isfinited): Use Infinityd.
13767         (test_isfinitel): Use Infinityl.
13768         * tests/test-isinf.c: Include infinity.h.
13769         (test_isinff): Use Infinityf.
13770         (test_isinfd): Use Infinityd.
13771         (test_isinfl): Use Infinityl.
13772         * tests/test-isnan.c: Include infinity.h.
13773         (test_float): Use Infinityf.
13774         (test_double): Use Infinityd.
13775         (test_long_double): Use Infinityl.
13776         * tests/test-isnanf.h: Include infinity.h.
13777         (main): Use Infinityf.
13778         * tests/test-isnand.h: Include infinity.h.
13779         (main): Use Infinityd.
13780         * tests/test-isnanl.h: Include infinity.h.
13781         (main): Use Infinityl.
13782         * tests/test-ldexpl.c: Include infinity.h.
13783         (main): Use Infinityl.
13784         * tests/test-printf-posix.h: Include infinity.h.
13785         (test_function): Use Infinityd.
13786         * tests/test-roundf1.c: Include infinity.h.
13787         (main): Use Infinityf.
13788         * tests/test-round1.c: Include infinity.h.
13789         (main): Use Infinityd.
13790         * tests/test-roundl.c: Include infinity.h.
13791         (main): Use Infinityl.
13792         * tests/test-signbit.c: Include infinity.h.
13793         (test_signbitf): Use Infinityf.
13794         (test_signbitd): Use Infinityd.
13795         (test_signbitl): Use Infinityl.
13796         * tests/test-snprintf-posix.h: Include infinity.h.
13797         (test_function): Use Infinityd, Infinityl.
13798         * tests/test-sprintf-posix.h: Include infinity.h.
13799         (test_function): Use Infinityd, Infinityl.
13800         * tests/test-truncf1.c: Include infinity.h.
13801         (main): Use Infinityf.
13802         * tests/test-trunc1.c: Include infinity.h.
13803         (main): Use Infinityd.
13804         * tests/test-truncl.c: Include infinity.h.
13805         (main): Use Infinityl.
13806         * tests/test-vasnprintf-posix.c: Include infinity.h.
13807         (test_function): Use Infinityd, Infinityl.
13808         * tests/test-vasprintf-posix.c: Include infinity.h.
13809         (test_function): Use Infinityd, Infinityl.
13810         * modules/ceilf-tests (Files): Add tests/infinity.h.
13811         * modules/ceil-tests (Files): Likewise.
13812         * modules/ceill-tests (Files): Likewise.
13813         * modules/dprintf-posix-tests (Files): Likewise.
13814         * modules/floorf-tests (Files): Likewise.
13815         * modules/floor-tests (Files): Likewise.
13816         * modules/floorl-tests (Files): Likewise.
13817         * modules/fprintf-posix-tests (Files): Likewise.
13818         * modules/frexp-tests (Files): Likewise.
13819         * modules/frexp-nolibm-tests (Files): Likewise.
13820         * modules/frexpl-tests (Files): Likewise.
13821         * modules/frexpl-nolibm-tests (Files): Likewise.
13822         * modules/isfinite-tests (Files): Likewise.
13823         * modules/isinf-tests (Files): Likewise.
13824         * modules/isnan-tests (Files): Likewise.
13825         * modules/isnanf-tests (Files): Likewise.
13826         * modules/isnanf-nolibm-tests (Files): Likewise.
13827         * modules/isnand-tests (Files): Likewise.
13828         * modules/isnand-nolibm-tests (Files): Likewise.
13829         * modules/isnanl-tests (Files): Likewise.
13830         * modules/isnanl-nolibm-tests (Files): Likewise.
13831         * modules/ldexpl-tests (Files): Likewise.
13832         * modules/printf-posix-tests (Files): Likewise.
13833         * modules/roundf-tests (Files): Likewise.
13834         * modules/round-tests (Files): Likewise.
13835         * modules/roundl-tests (Files): Likewise.
13836         * modules/signbit-tests (Files): Likewise.
13837         * modules/snprintf-posix-tests (Files): Likewise.
13838         * modules/sprintf-posix-tests (Files): Likewise.
13839         * modules/truncf-tests (Files): Likewise.
13840         * modules/trunc-tests (Files): Likewise.
13841         * modules/truncl-tests (Files): Likewise.
13842         * modules/vasnprintf-posix-tests (Files): Likewise.
13843         * modules/vasprintf-posix-tests (Files): Likewise.
13844         * modules/vdprintf-posix-tests (Files): Likewise.
13845         * modules/vfprintf-posix-tests (Files): Likewise.
13846         * modules/vprintf-posix-tests (Files): Likewise.
13847         * modules/vsnprintf-posix-tests (Files): Likewise.
13848         * modules/vsprintf-posix-tests (Files): Likewise.
13849         * modules/xprintf-posix-tests (Files): Likewise.
13850
13851 2011-09-11  Bruno Haible  <bruno@clisp.org>
13852
13853         Ensure pid_t gets defined.
13854         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13855         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13856         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13857         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13858         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13859         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13860         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13861         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13862         * tests/test-fcntl-h.c: Check that pid_t is defined.
13863         * tests/test-sched.c: Likewise.
13864         * tests/test-termios.c: Likewise.
13865         * tests/test-time.c: Likewise.
13866         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13867         * doc/posix-headers/signal.texi: Likewise.
13868         * doc/posix-headers/sys_types.texi: Likewise.
13869         * doc/posix-headers/time.texi: Likewise.
13870
13871 2011-09-11  Bruno Haible  <bruno@clisp.org>
13872
13873         acl: Fix compilation on Solaris 10 (older version).
13874         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13875         of ACE_EVERYONE.
13876         * lib/set-mode-acl.c (qset_acl): Likewise.
13877         Reported by Christian Jullien <eligis@orange.fr>.
13878
13879 2011-09-10  Bruno Haible  <bruno@clisp.org>
13880
13881         iconv, unsetenv: Add support for MSVC compiler.
13882         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13883         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13884
13885 2011-09-10  Bruno Haible  <bruno@clisp.org>
13886
13887         *printf: Add support for MSVC compiler.
13888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13889         handles the exception caused by the %n directive. When cross-compiling,
13890         guess no on native Windows.
13891         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13892         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13893         emulate it through vsnprintf.
13894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13895         * doc/posix-functions/dprintf.texi: Update documentation regarding
13896         MSVC 9.
13897         * doc/posix-functions/fprintf.texi: Likewise.
13898         * doc/posix-functions/printf.texi: Likewise.
13899         * doc/posix-functions/snprintf.texi: Likewise.
13900         * doc/posix-functions/sprintf.texi: Likewise.
13901         * doc/posix-functions/swprintf.texi: Likewise.
13902         * doc/posix-functions/vdprintf.texi: Likewise.
13903         * doc/posix-functions/vfprintf.texi: Likewise.
13904         * doc/posix-functions/vprintf.texi: Likewise.
13905         * doc/posix-functions/vsnprintf.texi: Likewise.
13906         * doc/posix-functions/vsprintf.texi: Likewise.
13907         * doc/glibc-functions/asprintf.texi: Likewise.
13908         * doc/glibc-functions/obstack_printf.texi: Likewise.
13909         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13910         * doc/glibc-functions/vasprintf.texi: Likewise.
13911
13912 2011-09-10  Bruno Haible  <bruno@clisp.org>
13913
13914         nocrash: Add support for native Windows.
13915         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13916
13917 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13918             Bruno Haible  <bruno@clisp.org>
13919
13920         absolute-header, include-next: Add support for MSVC compiler.
13921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13922         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13923         directory separator in #line directives.
13924         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13925         recognize also backslash as directory separator in #line directives.
13926
13927 2011-09-08  Jim Meyering  <meyering@redhat.com>
13928
13929         maint.mk: mark the post-release commit log with "maint: " prefix
13930         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13931         one-line commit-log summary.
13932
13933 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13934             Bruno Haible  <bruno@clisp.org>
13935
13936         Doc about crypt functions.
13937         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13938         systems.
13939         * doc/posix-functions/encrypt.texi: Likewise.
13940         * doc/posix-functions/setkey.texi: Likewise.
13941
13942 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13943
13944         * lib/gc.h: Fix copyright header.
13945
13946 2011-09-07  Bruno Haible  <bruno@clisp.org>
13947
13948         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13949         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13950         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13951
13952 2011-09-07  Bruno Haible  <bruno@clisp.org>
13953
13954         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13955         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13956         * lib/freopen.c: Likewise.
13957         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13958         * lib/lstat.c: Likewise.
13959         * lib/stat.c: Likewise.
13960         * lib/open.c: Use different syntax for include of <fcntl.h>.
13961         * lib/openat.c: Include fcntl.h again, explicitly.
13962
13963 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13964
13965         parse-datetime: document the newly accepted format
13966         * doc/parse-datetime.texi (Combined date and time of day items):
13967         New section.
13968
13969 2011-09-06  Bruno Haible  <bruno@clisp.org>
13970
13971         acl: Fix a test failure on newer Solaris 10 with ZFS.
13972         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13973         ENOSYS as no ACL.
13974         Reported by Jim Meyering.
13975
13976 2011-09-06  Bruno Haible  <bruno@clisp.org>
13977
13978         acl: Update for AIX >= 5.3 with NFS.
13979         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13980         ENOSYS as no ACL.
13981
13982         acl: Fix a test failure on AIX >= 5.3 with NFS.
13983         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13984         as no ACL.
13985
13986 2011-09-06  Bruno Haible  <bruno@clisp.org>
13987
13988         acl: Fix a test failure on IRIX 6.5 with NFS.
13989         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13990         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13991         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13992         * lib/copy-acl.c (qcopy_acl): Likewise.
13993
13994 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13995
13996         openat: port to AIX 7.1 with large files
13997         AIX 7.1 does a "#define openat open64at" if large files are in use,
13998         so we can't simply #undef openat.  Use the orig_openat trick (similar
13999         to orig_open in lib/open.c) to work around the problem.  Problem
14000         reported by Kevin Brott for GNU tar, in the thread containing
14001         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14002         * lib/openat.c (__need_system_fcntl_h): Define first.
14003         Include <fcntl.h> and <sys/types.h> before undefining.
14004         (orig_openat) [HAVE_OPENAT]: New inline function.
14005         (openat) [HAVE_OPENAT]: Do not undef.
14006         (rpl_openat): Use orig_openat, not openat.
14007
14008 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14009             Bruno Haible  <bruno@clisp.org>
14010
14011         acl: Avoid errors on NonStop Kernel.
14012         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14013         ENOTSUP errors.
14014
14015 2011-09-05  Bruno Haible  <bruno@clisp.org>
14016
14017         acl: Clean up Solaris code.
14018         * lib/acl-internal.h: Remove no-op #if.
14019         * lib/file-has-acl.c: Likewise.
14020         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14021         * lib/copy-acl.c (qcopy_acl): Likewise.
14022
14023 2011-09-05  Bruno Haible  <bruno@clisp.org>
14024
14025         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14026         binaries built on the original Solaris 10.
14027         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14028         trivial.
14029
14030 2011-09-05  Bruno Haible  <bruno@clisp.org>
14031
14032         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14033         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14034         10.
14035         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14036         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14037         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14038         instead of acl_get, facl_get, acl_set, facl_set.
14039
14040 2011-09-05  Bruno Haible  <bruno@clisp.org>
14041
14042         copy-file: Try unit tests on more file systems.
14043         * tests/test-copy-file-1.sh: New file.
14044         * tests/test-copy-file-2.sh: New file.
14045         * modules/copy-file-tests (Files): Add them.
14046         (Makefile.am): Add them to TESTS.
14047
14048         acl: Try unit tests on more file systems.
14049         * tests/test-file-has-acl-1.sh: New file.
14050         * tests/test-file-has-acl-2.sh: New file.
14051         * tests/test-set-mode-acl-1.sh: New file.
14052         * tests/test-set-mode-acl-2.sh: New file.
14053         * tests/test-copy-acl-1.sh: New file.
14054         * tests/test-copy-acl-2.sh: New file.
14055         * modules/acl-tests (Files): Add them.
14056         (Makefile.am): Add them to TESTS.
14057
14058 2011-09-04  Bruno Haible  <bruno@clisp.org>
14059
14060         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14061         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14062         10.
14063         (OLD_ALLOW, OLD_DENY): New macros.
14064         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14065         ACE_ACCESS_ALLOWED_ACE_TYPE.
14066         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14067         ACE_ACCESS_DENIED_ACE_TYPE.
14068         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14069         (NEW_ACE_EXECUTE): Fix value.
14070         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14071         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14072         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14073         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14074         NEW_ACE_SYNCHRONIZE): New macros.
14075         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14076         instead of acl_fromtext, acl_set, facl_set.
14077         Fixes a coreutils/tests/cp/perm failure.
14078
14079 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14080
14081         openat: test for fstatat (..., 0) bug
14082         Further testing with tar suggests that fstatat (..., 0)
14083         does not work in general, on AIX 7.1; see
14084         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14085         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14086         replacement fstatat (which is what older AIX releases were using
14087         anyway).
14088         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14089         use is now changed to orig_fstatat.  This was probably the right
14090         thing to do anyway.
14091         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14092         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14093         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14094         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14095         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14096         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14097         if the bug is found.
14098
14099         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14100         This tests for another fstatat bug on AIX 7.1:
14101         fstatat (AT_FDCWD, ..., 0) does not work.  See
14102         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14103         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14104         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14105         (rpl_fstatat): Adjust so that it works around either (or both)
14106         bugs if present.
14107         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14108
14109 2011-09-03  Karl Berry  <karl@gnu.org>
14110
14111         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14112         in index entries.
14113
14114 2011-09-02  Bruno Haible  <bruno@clisp.org>
14115
14116         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14117         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14118         values of AR, ARFLAGS, RANLIB.
14119         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14120
14121 2011-09-02  Bruno Haible  <bruno@clisp.org>
14122
14123         Find 'ar' program that fits with --host argument.
14124         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14125
14126 2011-09-02  Bruno Haible  <bruno@clisp.org>
14127
14128         tests: init.sh: Support any non-GNU diff.
14129         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14130         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14131         Solaris 8.
14132
14133 2011-09-02  Bruno Haible  <bruno@clisp.org>
14134
14135         tests: init.sh: work also with any non-GNU diff that supports -u
14136         * tests/init.sh: Relax check for diff -u support.
14137         Rather than checking for GNU diff via --version, simply check
14138         for support for -u itself.  Useful at least on OpenBSD 4.9,
14139         AIX 7.1, IRIX 6.5, and Solaris 10.
14140
14141 2011-09-01  Bruno Haible  <bruno@clisp.org>
14142
14143         strtoimax, strtoumax: Document problem on HP-UX 11.
14144         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14145         * doc/posix-functions/strtoumax.texi: Likewise.
14146
14147 2011-09-01  Bruno Haible  <bruno@clisp.org>
14148
14149         strtoumax: Avoid link error on OSF/1 with DTK cc.
14150         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14151         defined as a function.
14152         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14153         strtoumax is defined, not whether it is declared.
14154
14155 2011-09-01  Bruno Haible  <bruno@clisp.org>
14156
14157         strtoimax: Avoid link error on OSF/1 with DTK cc.
14158         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14159         defined as a function.
14160         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14161         strtoimax is defined, not whether it is declared.
14162
14163 2011-09-01  Bruno Haible  <bruno@clisp.org>
14164
14165         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14166         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14167         as a function.
14168         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14169         whether it is declared.
14170
14171 2011-09-01  Bruno Haible  <bruno@clisp.org>
14172
14173         imaxabs: Avoid link error on OSF/1 with DTK cc.
14174         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14175         as a function.
14176         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14177         whether it is declared.
14178
14179 2011-09-01  Bruno Haible  <bruno@clisp.org>
14180
14181         Tests for module 'strtoumax'.
14182         * modules/strtoumax-tests: New file.
14183         * tests/test-strtoumax.c: New file.
14184
14185         Tests for module 'strtoimax'.
14186         * modules/strtoimax-tests: New file.
14187         * tests/test-strtoimax.c: New file.
14188
14189         Tests for module 'imaxdiv'.
14190         * modules/imaxdiv-tests: New file.
14191         * tests/test-imaxdiv.c: New file.
14192
14193         Tests for module 'imaxabs'.
14194         * modules/imaxabs-tests: New file.
14195         * tests/test-imaxabs.c: New file.
14196
14197 2011-09-01  Bruno Haible  <bruno@clisp.org>
14198
14199         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14200         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14201         pthread_create.
14202
14203 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14204
14205         openat: work around AIX 7.1 fstatat issue
14206         This should fix the problem that was not properly fixed
14207         in the previous change, dated 2011-08-30.
14208         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14209         __need_system_stat_h defined.
14210         (orig_fstatat) [HAVE_FSTATAT]: New function.
14211         (rpl_fstatat): Go back to the old way of doing things,
14212         except call orig_fstatat instead of fstatat.
14213         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14214         Remove unnecessary check whether fstatat fills in st_size etc.
14215
14216 2011-09-01  Bruno Haible  <bruno@clisp.org>
14217
14218         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14219         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14220         just include the system's header.
14221
14222 2011-08-31  Jim Meyering  <meyering@redhat.com>
14223
14224         tests: avoid spurious assertion failure in test-float.c on ppc64
14225         * tests/test-float.c (test_long_double): Comment out an assertion,
14226         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14227         with gcc-4.4.4.
14228
14229         maint: indent with spaces, not TABs
14230         I need to get in the habit of running gnulib's "make check".
14231         Both of these would have been caught.
14232         * m4/largefile.m4: Indent with spaces, not TABs.
14233         * lib/parse-datetime.y (iso_8601_time): Likewise.
14234         Spotted by Pádraig Brady.
14235
14236         test-parse-datetime.c: accommodate a relatively strict gcc warning
14237         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14238         to avoid a warning from gcc's -Werror=missing-declarations.
14239         Insert a few spaces-before-funcall-parenthesis.
14240
14241 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14242
14243         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14244         The parser now accepts ISO 8601 date-time strings with "T" as the
14245         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14246         with a space between the date and time strings.  Now it also parses
14247         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14248         variants like "2004-02-29T16:21:42.333-07:00"
14249         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14250         of day representation using the 'T' separator character.
14251         * doc/parse-datetime.texi (General date syntax): replace use of
14252         deprecated --iso-8601 option with --rfc-3339 in example of date
14253         command output formats that can be parsed.
14254         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14255         lib/parse-datetime.y.
14256         (gmt_offset): New function.
14257         (main): Add additional test cases to validate ISO8601 extended
14258         date and time of day parsing.
14259
14260 2011-08-31  Bruno Haible  <bruno@clisp.org>
14261
14262         freopen: Documentation.
14263         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14264         name.
14265         Reported by Claudio Bley <claudio.bley@gmail.com>.
14266
14267 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14268
14269         freopen: Don't crash if the filename argument is NULL.
14270         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14271         NULL.
14272
14273 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14274
14275         openat: work around AIX 7.1 fstatat bug
14276         Problem reported by Kevin Brott for GNU tar, in the thread containing
14277         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14278         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14279         FSTATAT_ST_SIZE_ETC_BROKEN.
14280         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14281         rpl_fstatat.
14282         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14283         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14284         AC_CHECK_FUNCS_ONCE for fstatat.
14285         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14286         fchmodat, mkdirat, openat and unlinkat.
14287
14288 2011-08-30  Bruno Haible  <bruno@clisp.org>
14289
14290         Avoid endless recursions if config.h includes some header files.
14291         * lib/fopen.c (__need_FILE): Define already before including config.h.
14292         * lib/freopen.c (__need_FILE): Likewise.
14293         * lib/open.c (__need_system_fcntl_h): Likewise.
14294         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14295         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14296         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14297
14298 2011-08-25  Karl Berry  <karl@gnu.org>
14299
14300         * config/srclist.txt (ylwrap): new try.
14301         * build-aux/ylwrap: new file.
14302
14303 2011-08-23  Bruno Haible  <bruno@clisp.org>
14304
14305         tmpdir: Use a good default directory on native Windows.
14306         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14307         (P_tmpdir): Default to _P_tmpdir on native Windows.
14308         (path_search): On native Windows, try the value returned by GetTempPath
14309         before trying P_tmpdir.
14310         * modules/tmpdir (Depends-on): Add pathmax.
14311         Suggested by John Darrington <john@darrington.wattle.id.au>.
14312
14313 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14314
14315         doc: fix typo in README-release
14316         * top/README-release: Capitalize first word of a sentence.
14317
14318 2011-08-19  Jim Meyering  <meyering@redhat.com>
14319
14320         fts: do not exhaust memory when processing million-entry directories
14321         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14322         directory would require about 256*N bytes of memory.  Thus, it was
14323         easy to construct a directory too large to be processed by any of
14324         those tools.  With this change, fts' maximum memory utilization is
14325         now limited to around 30MB.
14326         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14327         (fts_read): When we've processed the final entry (i.e., when
14328         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14329         using the parent entry to read any remaining entries.  Dispatch
14330         depending on what fts_build returns:
14331         - NULL+stop, aka failure: stop
14332         - NULL otherwise: move up in the dir hierarchy
14333         - non-NULL: handle this new entry
14334         (fts_build): Declare and use new local, continue_readdir.
14335         Prepare to be called from fts_read, when the entries
14336         from a partially-read directory have just been exhausted.
14337         In that case, we'll skip the opendir and instead use the parent's
14338         fts_dirp and derive dir_fd from that.
14339         Finally, in the readdir loop, if we read max_entries entries,
14340         exit the loop ensuring *not* to call closedir.  This is required
14341         so that fts_dirp can be reused on a subsequent call.
14342         Prompted by Ben England's report of memory exhaustion in find
14343         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14344
14345         maint: fts: move decl of `dp' down into while loop; split a long line
14346         * lib/fts.c (fts_build): No semantic change.
14347
14348         fts: add/use new struct member, fts_dirp
14349         We are about to use this to manage any directory with
14350         too many entries to read all of them into memory at once.
14351         To do that, we'll need to save the DIR* pointer in each
14352         affected FTSENT struct.
14353         * lib/fts_.h: Include <dirent.h>.
14354         (struct FTSENT) [fts_dirp]: New member.
14355         * lib/fts.c (closedir_and_clear): Define.
14356         Use it in place of closedir so that we are sure to
14357         clear the new fts_dirp member when done with it.
14358         (fts_alloc): Initialize the new member.
14359         (fts_lfree): Free, if needed.
14360
14361         maint: fts: give __opendir2 a new parameter and rename
14362         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14363         than surreptitiously using sole caller's "dir_fd".
14364         (fts_opendir): Rename from __opendir2.
14365
14366         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14367         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14368
14369         maint: fts.c: correct off-by-one indentation
14370         * lib/fts.c (fts_build): Correct indentation, change style
14371         of a couple of block comments, and bracing style.
14372
14373         maint: fts.c: move __opendir2 #define "up" out of function body
14374         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14375
14376         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14377         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14378         out for a long time and besides was useful only on BSD systems.
14379
14380 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14381
14382         regex: port to Stratus OpenVOS
14383         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14384         define to empty, rather than attempting nonportable optimizations.
14385         Problem reported by Paul Green in:
14386         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14387         and fix suggested by Eric Blake in:
14388         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14389
14390 2011-08-17  Eric Blake  <eblake@redhat.com>
14391
14392         getcwd: fix test failures on mingw
14393         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14394         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14395         test if long directory cannot be created, and allow mingw errno.
14396
14397         getcwd-lgpl: fix m4 to match relaxed test for BSD
14398         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14399         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14400         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14401         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14402         signature problem.
14403
14404         getcwd: fix compilation on mingw64
14405         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14406         getcwd.
14407         Reported by Marc-André Lureau.
14408
14409         pipe2: silence compiler warning
14410         * lib/pipe2.c (pipe2): Hide label if it is not used.
14411
14412 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14413
14414         relocatable-prog: fix link error
14415         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14416         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14417         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14418         into modules/relocatable-lib without noticing that
14419         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14420         also needs to build relocatable.c.
14421
14422 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14423
14424         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14426         shell code: it contained a 'break' that was not in a loop.
14427         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14428         via a shell-language loop; this may have been true in old Autoconf
14429         versions, but it's not true in Autoconf 2.68.  I found this bug
14430         when testing coreutils git on Solaris 8, whose shell complains
14431         about the syntax error.
14432
14433 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14434
14435         * lib/base64.c: Fix comment to reference RFC 4648.
14436         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14437         <gvtulder@gmail.com>.
14438
14439 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14440
14441         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14442
14443         po/Makefile.in.in: fix make -q problem
14444         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14445         rule, since there's no file named 'check-macro-version' and its
14446         use as a file breaks make -q.
14447         (all): Don't depend on check-macro-version.
14448         (CHECK_MACRO_VERSION): New macro.
14449         (stamp-po): Use it.
14450
14451         configmake: fix make -q problem
14452         * modules/configmake (configmake.h): Update configmake.h's time stamp
14453         even if the file does not change.  Otherwise, 'make -q' fails.
14454         Problem reported by Simon Josefsson in
14455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14456
14457 2011-08-11  Jim Meyering  <meyering@redhat.com>
14458
14459         git-version-gen: correct the advice in a comment
14460         * build-aux/git-version-gen: Correct comment.
14461         Don't recommend to list .tarball-version in .gitignore.
14462
14463 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14464
14465         base64: fix off-by-one buffer size bug
14466         Problem and (trivial) fix reported by Gijs van Tulder in
14467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14468         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14469         * tests/test-base64.c (main): Catch the bug.
14470
14471 2011-08-10  Eric Blake  <eblake@redhat.com>
14472
14473         closein: correct comments
14474         * lib/closein.c (close_stdin): Improve comments.
14475
14476 2011-08-09  Bruno Haible  <bruno@clisp.org>
14477
14478         More tests for 'fseeko'.
14479         * tests/test-fseeko3.c: New file, from Eric Blake.
14480         * tests/test-fseeko3.sh: New file.
14481         * modules/fseeko-tests (Files): Add them.
14482         (TESTS): Add test-fseeko3.sh.
14483         (check_PROGRAMS): Add test-fseeko3.
14484
14485 2011-08-09  Eric Blake  <eblake@redhat.com>
14486
14487         fseeko: remove unneeded hack
14488         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14489
14490         fseeko: fix bug on glibc
14491         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14492         Reported by John W. Eaton.
14493
14494 2011-08-08  Bruno Haible  <bruno@clisp.org>
14495
14496         unictype/base: Fix interoperability with preinstalled libunistring.
14497         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14498         Reported by Simon Josefsson.
14499
14500 2011-08-08  Bruno Haible  <bruno@clisp.org>
14501
14502         iswblank: Detect declaration correctly.
14503         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14504         AC_CHECK_DECLS invocation.
14505
14506 2011-08-08  Bruno Haible  <bruno@clisp.org>
14507
14508         tcgetsid: Detect declaration correctly.
14509         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14510         AC_CHECK_DECLS invocation.
14511         Reported by Simon Josefsson.
14512
14513 2011-08-08  Eric Blake  <eblake@redhat.com>
14514
14515         largefile: fix typo that regressed large file support
14516         * modules/largefile (configure.ac-early): Fix section name.
14517
14518 2011-08-06  Karl Berry  <karl@gnu.org>
14519
14520         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14521         a separate module.
14522
14523 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14524
14525         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14526         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14527         get prototype for free.
14528
14529 2011-08-04  Bruno Haible  <bruno@clisp.org>
14530
14531         Tests for module 'pathmax'.
14532         * modules/pathmax-tests: New file.
14533         * tests/test-pathmax.c: New file.
14534
14535         canonicalize-lgpl: Support larger filenames on the Hurd.
14536         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14537         Reported by Paul Eggert.
14538
14539         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14540         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14541         * lib/chdir-long.h: Include pathmax.h.
14542         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14543         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14544         (PATH_MAX): Remove code that is done by pathmax.h.
14545         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14546         * lib/tmpfile.c: Add a comment.
14547         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14548         * modules/chdir-long (Depends-on): Add pathmax.
14549         * modules/getcwd (Depends-on): Add pathmax.
14550         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14551         is not defined.
14552         * doc/posix-headers/limits.texi: Mention the pathmax module.
14553         * NEWS: Mention the change.
14554
14555 2011-08-02  Bruno Haible  <bruno@clisp.org>
14556
14557         pthread_sigmask: Actually use results of gl_THREADLIB.
14558         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14559         gl_THREADLIB, not gl_[]THREADLIB.
14560         Reported by Eric Blake.
14561
14562 2011-08-02  Jim Meyering  <meyering@redhat.com>
14563
14564         maint.mk: relax the default _gl_TS_function_match regexp
14565         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14566         space between function name and "(" in an "extern" declaration.
14567         That would fail to match a decl with no space there: extern void foo();
14568
14569 2011-07-31  Iain Nicol  <iain@thenicols.net>
14570
14571         git-version-gen: document that EXTRA_DIST must include .version
14572         * build-aux/git-version-gen: In the how-to-use comment, document
14573         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14574         will fail when run from an unpacked distribution tarball.
14575
14576 2011-08-01  Bruno Haible  <bruno@clisp.org>
14577
14578         wctype-h: Fix last change.
14579         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14580         REPLACE_TOWLOWER to 0.
14581         Reported by Sam Steingold <sds@gnu.org>.
14582
14583 2011-07-31  Bruno Haible  <bruno@clisp.org>
14584
14585         frexpl: Update autoconf test.
14586         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14587         according to changes of 2011-06-20.
14588
14589 2011-07-31  Bruno Haible  <bruno@clisp.org>
14590
14591         sys_utsname: Add support for Minix.
14592         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14593         <sys/utsname.h>.
14594         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14595         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14596
14597 2011-07-31  Bruno Haible  <bruno@clisp.org>
14598
14599         strings: Add support for Minix.
14600         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14601         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14602         * doc/posix-headers/strings.texi: Document the Minix problem.
14603
14604 2011-07-31  Bruno Haible  <bruno@clisp.org>
14605
14606         wctype-h: Add support for Minix.
14607         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14608         REPLACE_TOWLOWER.
14609         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14610         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14611         REPLACE_ISWCNTRL.
14612
14613 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14614
14615         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14616         This is a performance improvement for 64-bit hosts: it causes the
14617         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14618
14619 2011-07-31  Bruno Haible  <bruno@clisp.org>
14620
14621         stdioext: Add support for Minix.
14622         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14623         * lib/fpurge.c (fpurge): Likewise.
14624         * lib/freadahead.c (freadahead): Likewise.
14625         * lib/freadable.c (freadable): Likewise.
14626         * lib/freading.c (freading): Likewise.
14627         * lib/freadptr.c (freadptr): Likewise.
14628         * lib/freadseek.c (freadptrinc): Likewise.
14629         * lib/fseeko.c (rpl_fseeko): Likewise.
14630         * lib/fseterr.c (fseterr): Likewise.
14631         * lib/fwritable.c (fwritable): Likewise.
14632         * lib/fwriting.c (fwriting): Likewise.
14633         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14634         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14635
14636 2011-07-31  Bruno Haible  <bruno@clisp.org>
14637
14638         errno: Port to Minix.
14639         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14640         ECONNABORTED are defined.
14641         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14642         GNULIB_defined_ECONNABORTED): New macros.
14643         * lib/strerror-override.h (strerror_override): Test also
14644         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14645         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14646         ECONNABORTED.
14647         * doc/posix-headers/errno.texi: Mention the Minix problem.
14648
14649 2011-07-31  Bruno Haible  <bruno@clisp.org>
14650
14651         Work around declaration collisions on Minix.
14652         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14653         defined, set REPLACE_MBSINIT.
14654         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14655         defined, set REPLACE_MBRTOWC.
14656         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14657         set REPLACE_MBRLEN.
14658         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14659         defined, set REPLACE_MBSRTOWCS.
14660         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14661         defined, set REPLACE_WCRTOMB.
14662         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14663         defined, set REPLACE_WCSRTOMBS.
14664
14665 2011-07-31  Bruno Haible  <bruno@clisp.org>
14666
14667         Add support for Minix with ACK compiler.
14668         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14669         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14670         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14671
14672 2011-07-31  Bruno Haible  <bruno@clisp.org>
14673
14674         Documentation about Minix.
14675         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14676         * doc/glibc-headers/*.texi: Likewise.
14677         * doc/posix-functions/*.texi: Likewise.
14678         * doc/glibc-functions/*.texi: Likewise.
14679
14680 2011-07-31  Bruno Haible  <bruno@clisp.org>
14681
14682         snippet/warn-on-use: Fix indentation.
14683         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14684
14685 2011-07-25  Jim Meyering  <meyering@redhat.com>
14686
14687         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14688         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14689         commands.
14690
14691 2011-07-27  Jim Meyering  <meyering@redhat.com>
14692
14693         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14694         * top/maint.mk (gl_extract_significant_defines_): Now that
14695         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14696         gnulib/lib/signal.in.h, and now that we recommend to
14697         define-if-undefined those two symbols in application code,
14698         we must filter them out of the "significant" list.
14699         This avoids a "make syntax-check" failure in coreutils.
14700
14701 2011-07-26  Eric Blake  <eblake@redhat.com>
14702
14703         warnings: add comments about previous patch
14704         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14705         * m4/include_next.m4: Likewise.
14706         * m4/warn-on-use.m4: Likewise.
14707         * m4/warnings.m4: Likewise, and simplify use.
14708         Suggested by Stefano Lattarini.
14709
14710         include-next, warnings: support older autoconf
14711         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14712         AS_VAR_PUSHDEF in a way that works with older autoconf.
14713         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14714         Reported by Daniel P. Berrange.
14715
14716 2011-07-25  Bruno Haible  <bruno@clisp.org>
14717
14718         fseek, ftell: Fix doc.
14719         * doc/posix-functions/fseek.texi: Reword statement about
14720         AC_SYS_LARGEFILE.
14721         * doc/posix-functions/ftell.texi: Likewise.
14722
14723 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14724             Bruno Haible  <bruno@clisp.org>
14725
14726         Add dependencies to the 'largefile' module.
14727         * modules/fopen (Depends-on): Add 'largefile'.
14728         * modules/freopen (Depends-on): Likewise.
14729         * modules/fseeko (Depends-on): Likewise.
14730         * modules/ftello (Depends-on): Likewise.
14731         * modules/glob (Depends-on): Likewise.
14732         * modules/lseek (Depends-on): Likewise.
14733         * modules/lstat (Depends-on): Likewise.
14734         * modules/mkostemp (Depends-on): Likewise.
14735         * modules/mkostemps (Depends-on): Likewise.
14736         * modules/mkstemp (Depends-on): Likewise.
14737         * modules/mkstemps (Depends-on): Likewise.
14738         * modules/open (Depends-on): Likewise.
14739         * modules/openat (Depends-on): Likewise.
14740         * modules/pread (Depends-on): Likewise.
14741         * modules/pwrite (Depends-on): Likewise.
14742         * modules/scandir (Depends-on): Likewise.
14743         * modules/stat (Depends-on): Likewise.
14744         * modules/tmpfile (Depends-on): Likewise.
14745         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14746         since the containing module now depends on the largefile module.
14747         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14748         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14749         off_t is fixed by gnulib.
14750         * doc/posix-functions/freopen.texi: Likewise.
14751         * doc/posix-functions/fseeko.texi: Likewise.
14752         * doc/posix-functions/fstatat.texi: Likewise.
14753         * doc/posix-functions/ftello.texi: Likewise.
14754         * doc/posix-functions/glob.texi: Likewise.
14755         * doc/posix-functions/lseek.texi: Likewise.
14756         * doc/posix-functions/lstat.texi: Likewise.
14757         * doc/posix-functions/mkstemp.texi: Likewise.
14758         * doc/posix-functions/open.texi: Likewise.
14759         * doc/posix-functions/openat.texi: Likewise.
14760         * doc/posix-functions/pread.texi: Likewise.
14761         * doc/posix-functions/pwrite.texi: Likewise.
14762         * doc/posix-functions/scandir.texi: Likewise.
14763         * doc/posix-functions/stat.texi: Likewise.
14764         * doc/posix-functions/tmpfile.texi: Likewise.
14765         * doc/glibc-functions/mkostemp.texi: Likewise.
14766         * doc/glibc-functions/mkostemps.texi: Likewise.
14767         * doc/glibc-functions/mkstemps.texi: Likewise.
14768
14769 2011-07-25  Bruno Haible  <bruno@clisp.org>
14770
14771         fcntl: Move AC_LIBOBJ invocation to module description.
14772         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14773         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14774
14775         fcntl: Remove call-in from fchdir.m4.
14776         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14778
14779         dup3: Remove potential call-in from fchdir.m4.
14780         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14782
14783         dup2: Move AC_LIBOBJ invocation to module description.
14784         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14785         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14786         Don't invoke AC_LIBOBJ.
14787         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14788
14789         dup2: Remove call-in from fchdir.m4.
14790         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14792
14793         fclose: Move AC_LIBOBJ invocation to module description.
14794         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14795         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14796         to 1.
14797         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14798
14799         fclose: Remove call-in from close.m4.
14800         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14801         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14802
14803         close: Move AC_LIBOBJ invocation to module description.
14804         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14805         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14806         1.
14807         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14808
14809         close: Remove call-in from fchdir.m4.
14810         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14812
14813         open: Move AC_LIBOBJ invocation to module description.
14814         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14815         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14816         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14817
14818         open: Remove call-in from fchdir.m4.
14819         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14821
14822         fchdir: Start to remove gl_REPLACE_* idiom.
14823         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14824         (gl_FUNC_FCHDIR): Invoke it.
14825
14826 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14827
14828         * lib/ftell.c (ftell): Comment out cast.
14829
14830         close: use gl_REPLACE_FCLOSE only if defined
14831         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14832         is defined.  The close module doesn't depend on the fclose module
14833         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14835         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14836
14837 2011-07-24  Jim Meyering  <meyering@redhat.com>
14838
14839         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14840         * tests/test-select.h (test_function): Declare as "static".
14841
14842 2011-07-24  Bruno Haible  <bruno@clisp.org>
14843
14844         doc: Mention the effects of AC_SYS_LARGEFILE.
14845         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14846         on this function.
14847         * doc/posix-functions/aio_error.texi: Likewise.
14848         * doc/posix-functions/aio_fsync.texi: Likewise.
14849         * doc/posix-functions/aio_read.texi: Likewise.
14850         * doc/posix-functions/aio_return.texi: Likewise.
14851         * doc/posix-functions/aio_suspend.texi: Likewise.
14852         * doc/posix-functions/aio_write.texi: Likewise.
14853         * doc/posix-functions/fgetpos.texi: Likewise.
14854         * doc/posix-functions/fopen.texi: Likewise.
14855         * doc/posix-functions/freopen.texi: Likewise.
14856         * doc/posix-functions/fsetpos.texi: Likewise.
14857         * doc/posix-functions/fstatvfs.texi: Likewise.
14858         * doc/posix-functions/ftruncate.texi: Likewise.
14859         * doc/posix-functions/ftw.texi: Likewise.
14860         * doc/posix-functions/getrlimit.texi: Likewise.
14861         * doc/posix-functions/glob.texi: Likewise.
14862         * doc/posix-functions/lio_listio.texi: Likewise.
14863         * doc/posix-functions/lockf.texi: Likewise.
14864         * doc/posix-functions/mkstemp.texi: Likewise.
14865         * doc/posix-functions/mmap.texi: Likewise.
14866         * doc/posix-functions/nftw.texi: Likewise.
14867         * doc/posix-functions/openat.texi: Likewise.
14868         * doc/posix-functions/opendir.texi: Likewise.
14869         * doc/posix-functions/posix_fadvise.texi: Likewise.
14870         * doc/posix-functions/posix_fallocate.texi: Likewise.
14871         * doc/posix-functions/pread.texi: Likewise.
14872         * doc/posix-functions/pwrite.texi: Likewise.
14873         * doc/posix-functions/readdir.texi: Likewise.
14874         * doc/posix-functions/readdir_r.texi: Likewise.
14875         * doc/posix-functions/rewinddir.texi: Likewise.
14876         * doc/posix-functions/scandir.texi: Likewise.
14877         * doc/posix-functions/seekdir.texi: Likewise.
14878         * doc/posix-functions/setrlimit.texi: Likewise.
14879         * doc/posix-functions/statvfs.texi: Likewise.
14880         * doc/posix-functions/telldir.texi: Likewise.
14881         * doc/posix-functions/tmpfile.texi: Likewise.
14882         * doc/posix-functions/truncate.texi: Likewise.
14883         * doc/glibc-functions/fallocate.texi: Likewise.
14884         * doc/glibc-functions/fstatfs.texi: Likewise.
14885         * doc/glibc-functions/fts_children.texi: Likewise.
14886         * doc/glibc-functions/fts_read.texi: Likewise.
14887         * doc/glibc-functions/getdirentries.texi: Likewise.
14888         * doc/glibc-functions/mkostemp.texi: Likewise.
14889         * doc/glibc-functions/mkostemps.texi: Likewise.
14890         * doc/glibc-functions/mkstemps.texi: Likewise.
14891         * doc/glibc-functions/preadv.texi: Likewise.
14892         * doc/glibc-functions/pwritev.texi: Likewise.
14893         * doc/glibc-functions/sendfile.texi: Likewise.
14894         * doc/glibc-functions/statfs.texi: Likewise.
14895
14896 2011-07-24  Bruno Haible  <bruno@clisp.org>
14897
14898         doc: Fix typo.
14899         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14900
14901 2011-07-24  Bruno Haible  <bruno@clisp.org>
14902
14903         doc: Mention fsusage.
14904         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14905
14906 2011-07-24  Bruno Haible  <bruno@clisp.org>
14907
14908         doc: Mention new glibc headers and functions.
14909         * doc/glibc-headers/gshadow.texi: New file.
14910         * doc/glibc-functions/endsgent.texi: New file.
14911         * doc/glibc-functions/fgetsgent.texi: New file.
14912         * doc/glibc-functions/fgetsgent_r.texi: New file.
14913         * doc/glibc-functions/getsgent.texi: New file.
14914         * doc/glibc-functions/getsgent_r.texi: New file.
14915         * doc/glibc-functions/getsgnam.texi: New file.
14916         * doc/glibc-functions/getsgnam_r.texi: New file.
14917         * doc/glibc-functions/putsgent.texi: New file.
14918         * doc/glibc-functions/setsgent.texi: New file.
14919         * doc/glibc-functions/sgetsgent.texi: New file.
14920         * doc/glibc-functions/sgetsgent_r.texi: New file.
14921         * doc/glibc-functions/malloc_info.texi: New file.
14922         * doc/glibc-functions/preadv.texi: New file.
14923         * doc/glibc-functions/pwritev.texi: New file.
14924         * doc/glibc-functions/register_printf_modifier.texi: New file.
14925         * doc/glibc-functions/register_printf_specifier.texi: New file.
14926         * doc/glibc-functions/register_printf_type.texi: New file.
14927         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14928         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14929         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14930         * doc/glibc-functions/pthread_getname_np.texi: New file.
14931         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14932         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14933         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14934         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14935         * doc/glibc-functions/pthread_setname_np.texi: New file.
14936         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14937         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14938         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14939         * doc/glibc-functions/qsort_r.texi: New file.
14940         * doc/glibc-functions/quick_exit.texi: New file.
14941         * doc/glibc-functions/syncfs.texi: New file.
14942         * doc/gnulib.texi: Include them.
14943         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14944         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14945         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14946         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14947         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14948         * doc/glibc-functions/execvpe.texi: Likewise.
14949
14950 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14951
14952         ftell: don't include <unistd.h>
14953         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14954         guaranteed to define off_t, and the ftell module depends on the
14955         stdio module.
14956
14957         ftell: do not assume wraparound signed arithmetic
14958         * lib/ftell.c: Include <limits.h>.
14959         (ftell): Don't assume wraparound signed arithmetic.
14960
14961 2011-07-24  Bruno Haible  <bruno@clisp.org>
14962
14963         close: No longer depend on module 'fclose'.
14964         * modules/close (Depends-on): Remove fclose.
14965         * NEWS: Mention the change.
14966         Suggested by Sam Steingold <sds@gnu.org>.
14967
14968 2011-07-24  Bruno Haible  <bruno@clisp.org>
14969
14970         fsusage: Enable large volume support on AIX >= 5.2.
14971         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14972         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14973         instead of STAT_STATVFS.
14974         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14975
14976         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14977         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14978         f_blocks field only on MacOS X.
14979
14980         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14981         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14982         * modules/fsusage (Depends-on): Add largefile.
14983
14984 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14985
14986         * README: Modernize discussion of signed integers.
14987         Assuming overflow wraparound is no longer safe.
14988         Mention ones' complement and signed magnitude.
14989
14990 2011-07-22  Bruno Haible  <bruno@clisp.org>
14991
14992         select tests, pselect tests: Refactor.
14993         * tests/test-select.h: New file, extracted from tests/test-select.c.
14994         (select_fn): New type.
14995         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14996         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14997         test_pipe): Add my_select argument.
14998         (test_function): Renamed from main. Add my_select argument.
14999         * tests/test-select.c: Move most code to tests/test-select.h. Include
15000         test-select.h.
15001         * modules/select-tests (Files): Add tests/test-select.h.
15002         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15003         (my_select, main): New functions.
15004         * modules/pselect-tests (Files): Add tests/test-select.h,
15005         tests/macros.h, tests/signature.h.
15006         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15007         (configure.ac): Check for <sys/wait.h>.
15008
15009 2011-07-22  Bruno Haible  <bruno@clisp.org>
15010
15011         sys_select tests: Check the signature of FD_*.
15012         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15013         signature tests from here...
15014         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15015         here.
15016         * modules/sys_select-tests (Files): Add tests/signature.h.
15017
15018 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15019
15020         largefile: new module, replacing large-inode
15021         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15022         * MODULES.html.sh: Add largefile, remove large-inode.
15023         * modules/largefile, m4/largefile.m4: New files.
15024         * modules/large-inode, m4/large-inode.m4: Remove.
15025
15026         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15027         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15028         implementations that use only 32 bits to count blocks.
15029         On typical hosts with 1024-byte blocks, this fails with file
15030         systems as small as 4 TiB.  Problem reported by Herb Wartens
15031         <http://debbugs.gnu.org/9140> and this should also fix a similar
15032         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15033
15034         large-inode: New module
15035         * MODULES.html.sh: Add it.
15036         * modules/large-inode, m4/large-inode.m4: New files.
15037
15038         extensions: Enable extensions on MacOS X 10.5 and later.
15039         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15040
15041 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15042
15043         file-has-acl: use acl_extended_file_nofollow if available
15044         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15045         (acl_extended_file): New macro.
15046         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15047         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15048
15049 2011-07-21  Bruno Haible  <bruno@clisp.org>
15050
15051         Declare system functions in a way that works with C++.
15052         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15053         declare fdopendir as extern "C".
15054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15055         declare frexpl as extern "C".
15056         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15057         declare gai_strerror as extern "C".
15058         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15059         programs, declare gai_strerror as extern "C".
15060         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15061         declare getlogin_r as extern "C".
15062         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15063         as extern "C".
15064         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15065         declare ldexpl as extern "C".
15066         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15067         as extern "C".
15068         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15069         program, declare getmntinfo as extern "C".
15070         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15071         stpncpy as extern "C".
15072         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15073         program, declare __xpg_strerror_r as extern "C".
15074         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15075         strndup as extern "C".
15076         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15077         declare memset and bzero as extern "C".
15078         Reported by Sam Steingold <sds@gnu.org>.
15079
15080 2011-07-12  Jim Meyering  <meyering@redhat.com>
15081
15082         maint.mk: prohibit inclusion of "verify.h" without use
15083         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15084
15085 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15086
15087         timer-time: A new module to check for timer_settime()
15088         * m4/timer_time.m4: Check for the posix function.
15089         * modules/timer-time: Add the new module.
15090         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15091         Mention it.
15092
15093 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15094             Bruno Haible  <bruno@clisp.org>
15095
15096         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15097         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15098         not defined, assume POSIX threads and look for pthread_sigmask in
15099         $LIBS, without changing $CPPFLAGS.
15100
15101 2011-07-19  Bruno Haible  <bruno@clisp.org>
15102
15103         strstr: Update cross-compilation guess.
15104         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15105         CPUs, guess no, in view of glibc
15106         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15107         Suggested by Eric Blake. Reported by Reuben Thomas.
15108
15109 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15110
15111         getopt-gnu: suppress core dumps from detection code
15112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15113         to suppress core dumps that may well occur on glibc systems.
15114         * modules/getopt-gnu: Depend on nocrash.
15115
15116 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15117
15118         pthread_sigmask: ensure usleep is declared
15119         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15120         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15121
15122 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15123
15124         doc: Document NonStop portability issues.
15125         * doc/posix-functions/sigaction.texi (sigaction):
15126         * doc/posix-headers/signal.texi (signal.h):
15127         Document NonStop.  See Joachim Schmitz in
15128         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15129
15130 2011-07-15  Bruno Haible  <bruno@clisp.org>
15131
15132         ffsl, ffsll: Avoid unportable behaviour.
15133         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15134
15135 2011-07-15  Bruno Haible  <bruno@clisp.org>
15136
15137         ffs: More tests.
15138         * tests/test-ffs.c (NBITS): New macro.
15139         (main): Add more tests.
15140         * tests/test-ffsl.c (NBITS): New macro.
15141         (main): Add more tests.
15142         * tests/test-ffsll.c (NBITS): New macro.
15143         (main): Add more tests.
15144
15145 2011-07-15  Eric Blake  <eblake@redhat.com>
15146
15147         ffsl, ffsll: new modules
15148         * modules/ffsl: New file.
15149         * modules/ffsll: Likewise.
15150         * m4/ffsl.m4: Likewise.
15151         * m4/ffsll.m4: Likewise.
15152         * lib/ffsl.c: Likewise.
15153         * lib/ffsl.h: Likewise.
15154         * lib/ffsll.c: Likewise.
15155         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15156         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15157         * modules/string (Makefile.am): Substitute witnesses.
15158         * lib/strings.in.h (ffsl, ffsll): Declare.
15159         * modules/ffsl-tests: New test file.
15160         * modules/ffsll-tests: Likewise.
15161         * tests/test-ffsl.c: Likewise.
15162         * tests/test-ffsll.c: Likewise.
15163         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15164         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15165         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15166
15167         ffs: fix m4 prerequisite
15168         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15169
15170         ffs: avoid undefined behavior
15171         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15172         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15173         Reported by Bruno Haible.
15174
15175 2011-07-12  Bruno Haible  <bruno@clisp.org>
15176
15177         pthread_sigmask: Rely on module 'threadlib'.
15178         * modules/pthread_sigmask (Depends-on): Add threadlib.
15179         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15180         is defined.
15181
15182 2011-07-12  Bruno Haible  <bruno@clisp.org>
15183
15184         regex: Depend on module 'strcase'.
15185         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15186
15187 2011-07-12  Jim Meyering  <meyering@redhat.com>
15188
15189         warn-on-use: fix typo in file name
15190         * modules/snippet/warn-on-use (Files): Correct file name:
15191         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15192
15193 2011-07-12  Bruno Haible  <bruno@clisp.org>
15194
15195         strings: Document module.
15196         * doc/posix-headers/strings.texi: Mention module 'strings'.
15197
15198 2011-07-12  Bruno Haible  <bruno@clisp.org>
15199
15200         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15201         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15202         (Files, Makefile.am): Update.
15203         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15204         * modules/stdlib (Depends-on): Update.
15205
15206 2011-07-12  Bruno Haible  <bruno@clisp.org>
15207
15208         * NEWS: Mention the changes.
15209
15210         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15211         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15212         (Files, Makefile.am): Update.
15213         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15214         * modules/arpa_inet (Depends-on): Update.
15215         * modules/ctype (Depends-on): Update.
15216         * modules/dirent (Depends-on): Update.
15217         * modules/fcntl-h (Depends-on): Update.
15218         * modules/glob (Depends-on): Update.
15219         * modules/iconv-h (Depends-on): Update.
15220         * modules/inttypes-incomplete (Depends-on): Update.
15221         * modules/langinfo (Depends-on): Update.
15222         * modules/locale (Depends-on): Update.
15223         * modules/math (Depends-on): Update.
15224         * modules/netdb (Depends-on): Update.
15225         * modules/poll-h (Depends-on): Update.
15226         * modules/pty (Depends-on): Update.
15227         * modules/search (Depends-on): Update.
15228         * modules/signal (Depends-on): Update.
15229         * modules/spawn (Depends-on): Update.
15230         * modules/stdio (Depends-on): Update.
15231         * modules/stdlib (Depends-on): Update.
15232         * modules/string (Depends-on): Update.
15233         * modules/strings (Depends-on): Update.
15234         * modules/sys_file (Depends-on): Update.
15235         * modules/sys_ioctl (Depends-on): Update.
15236         * modules/sys_select (Depends-on): Update.
15237         * modules/sys_socket (Depends-on): Update.
15238         * modules/sys_stat (Depends-on): Update.
15239         * modules/sys_time (Depends-on): Update.
15240         * modules/sys_times (Depends-on): Update.
15241         * modules/sys_utsname (Depends-on): Update.
15242         * modules/sys_wait (Depends-on): Update.
15243         * modules/termios (Depends-on): Update.
15244         * modules/time (Depends-on): Update.
15245         * modules/unistd (Depends-on): Update.
15246         * modules/wchar (Depends-on): Update.
15247         * modules/wctype-h (Depends-on): Update.
15248         * MODULES.html.sh (Support for building libraries and executables):
15249         Update.
15250
15251         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15252         * modules/snippet/unused-parameter: Renamed from
15253         modules/unused-parameter.
15254         (Files, Makefile.am): Update.
15255         * build-aux/snippet/unused-parameter.h: Renamed from
15256         build-aux/unused-parameter.h.
15257         * modules/selinux-h (Depends-on): Update.
15258         * modules/unistr/base (Depends-on): Update.
15259         * MODULES.html.sh (Core language properties): Update.
15260
15261         Rename module 'link-warning' to 'snippet/link-warning'.
15262         * modules/snippet/link-warning: Renamed from modules/link-warning.
15263         (Files, Makefile.am): Update.
15264         * build-aux/snippet/link-warning.h: Renamed from
15265         build-aux/link-warning.h.
15266         * MODULES.html.sh (Support for building libraries and executables):
15267         Update.
15268
15269         Rename module 'c++defs' to 'snippet/c++defs'.
15270         * modules/snippet/c++defs: Renamed from modules/c++defs.
15271         (Files, Makefile.am): Update.
15272         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15273         * modules/arpa_inet (Depends-on): Update.
15274         * modules/ctype (Depends-on): Update.
15275         * modules/dirent (Depends-on): Update.
15276         * modules/fcntl-h (Depends-on): Update.
15277         * modules/glob (Depends-on): Update.
15278         * modules/iconv-h (Depends-on): Update.
15279         * modules/langinfo (Depends-on): Update.
15280         * modules/locale (Depends-on): Update.
15281         * modules/math (Depends-on): Update.
15282         * modules/netdb (Depends-on): Update.
15283         * modules/poll-h (Depends-on): Update.
15284         * modules/pty (Depends-on): Update.
15285         * modules/search (Depends-on): Update.
15286         * modules/signal (Depends-on): Update.
15287         * modules/spawn (Depends-on): Update.
15288         * modules/stdio (Depends-on): Update.
15289         * modules/stdlib (Depends-on): Update.
15290         * modules/string (Depends-on): Update.
15291         * modules/strings (Depends-on): Update.
15292         * modules/sys_ioctl (Depends-on): Update.
15293         * modules/sys_select (Depends-on): Update.
15294         * modules/sys_socket (Depends-on): Update.
15295         * modules/sys_stat (Depends-on): Update.
15296         * modules/sys_time (Depends-on): Update.
15297         * modules/sys_wait (Depends-on): Update.
15298         * modules/termios (Depends-on): Update.
15299         * modules/time (Depends-on): Update.
15300         * modules/unistd (Depends-on): Update.
15301         * modules/wchar (Depends-on): Update.
15302         * modules/wctype-h (Depends-on): Update.
15303
15304         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15305         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15306         (Files, Makefile.am): Update.
15307         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15308         * modules/argv-iter (Depends-on): Update.
15309         * modules/arpa_inet (Depends-on): Update.
15310         * modules/dirent (Depends-on): Update.
15311         * modules/fcntl-h (Depends-on): Update.
15312         * modules/fnmatch (Depends-on): Update.
15313         * modules/getopt-posix (Depends-on): Update.
15314         * modules/glob (Depends-on): Update.
15315         * modules/iconv-h (Depends-on): Update.
15316         * modules/inttypes-incomplete (Depends-on): Update.
15317         * modules/locale (Depends-on): Update.
15318         * modules/math (Depends-on): Update.
15319         * modules/netdb (Depends-on): Update.
15320         * modules/search (Depends-on): Update.
15321         * modules/signal (Depends-on): Update.
15322         * modules/spawn (Depends-on): Update.
15323         * modules/stdio (Depends-on): Update.
15324         * modules/stdlib (Depends-on): Update.
15325         * modules/string (Depends-on): Update.
15326         * modules/strings (Depends-on): Update.
15327         * modules/sys_socket (Depends-on): Update.
15328         * modules/sys_stat (Depends-on): Update.
15329         * modules/sys_time (Depends-on): Update.
15330         * modules/sys_times (Depends-on): Update.
15331         * modules/sys_utsname (Depends-on): Update.
15332         * modules/time (Depends-on): Update.
15333         * modules/unistd (Depends-on): Update.
15334         * modules/wchar (Depends-on): Update.
15335         * MODULES.html.sh (Support for building libraries and executables):
15336         Update.
15337
15338 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15339
15340         Improvements on _Noreturn and related modules.
15341
15342         modules/_Exit-tests: test _Noreturn too
15343         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15344         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15345         (main): Use them.
15346
15347         stdnoreturn, stdnoreturn-tests: remove modules
15348         They're not needed here and a bit premature for use elsewhere.  See
15349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15350         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15351         * tests/test-stdnoreturn.c: Remove files.
15352         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15353         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15354         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15355         and using noreturn.
15356         * modules/openat, modules/sigpipe-die, modules/xalloc:
15357         * modules/xmemdup0, modules/xstrtol:
15358         Remove dependency on stdnoreturn.
15359
15360         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15361         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15362         Reparenthesize to avoid GCC warning.
15363         Support Microsoft's syntax.
15364         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15365
15366         _Noreturn-tests: remove module
15367         * modules/_Noreturn-tests: Remove.
15368         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15369         * tests/test-_Noreturn.c: Remove.
15370         * tests/test-stdnoreturn.c: Merge from the old
15371         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15372
15373 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15374
15375         _Noreturn, stdnoreturn, and related modules.
15376
15377         * top/maint.mk: Adjust to new noreturn support.
15378         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15379         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15380
15381         xalloc: use stdnoreturn.h
15382         * lib/xalloc.h: Include <stdnoreturn.h>.
15383         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15384         * modules/xalloc (Depends-on): Add stdnoreturn.
15385
15386         xstrtol: use stdnoreturn.h
15387         * lib/xstrtol.h: Include <stdnoreturn.h>.
15388         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15389         * modules/xstrtol (Depends-on): Add stdnoreturn.
15390
15391         xmemdup0: use stdnoreturn.h
15392         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15393         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15394         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15395
15396         sigpipe-die: use stdnoreturn.h
15397         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15398         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15399         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15400
15401         openat: use stdnoreturn.h
15402         * lib/openat.h: Include <stdnoreturn.h>.
15403         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15404         * modules/openat (Depends-on): Add stdnoreturn.
15405
15406         * lib/openat-die.c (openat_save_fail): Modernize comment.
15407
15408         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15409
15410         * lib/glthread/thread.h: Modernize comment.
15411
15412         obstack: use _Noreturn
15413         * lib/obstack.c (__attribute__): Remove macro.
15414         (print_and_abort): Use _Noreturn.
15415
15416         c-stack: use _Noreturn
15417         * lib/c-stack.c (die, overflow_handler, segv_handler):
15418         Use _Noreturn rather than __attribute__((noreturn)).
15419
15420         argmatch-tests, exclude_tests: use _Noreturn
15421         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15422         Remove.
15423         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15424
15425         stdlib: use _Noreturn
15426         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15427         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15428         * modules/stdlib (Depends-on): Add _Noreturn.
15429         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15430
15431         stdnoreturn-tests: new module
15432         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15433
15434         stdnoreturn: new module
15435         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15436         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15437
15438         _Noreturn-tests: new module
15439         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15440
15441         _Noreturn: new module
15442         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15443         New section, mentioning it.
15444         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15445
15446         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15447
15448 2011-07-11  Eric Blake  <eblake@redhat.com>
15449
15450         ffs: new module
15451         * modules/ffs: New file.
15452         * m4/ffs.m4: Likewise.
15453         * lib/ffs.c: Likewise.
15454         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15455         * modules/strings (Makefile.am): Substitute witness.
15456         (Depends-on): Add c++defs.
15457         * lib/strings.in.h (ffs): Declare.
15458         * modules/ffs-tests: New test file.
15459         * tests/test-ffs.c: Test new module.
15460         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15461         * doc/posix-functions/ffs.texi (ffs): Likewise.
15462
15463         regex: avoid compiler warning
15464         * lib/regex.c (includes): Include <strings.h>, for use of
15465         strcasecmp in regcomp.c.
15466         Reported by Joachim Schmitz.
15467
15468 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15469
15470         stdint: respect system's intmax_t if INTMAX_MAX
15471         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15472         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15473         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15474         long but int64_t is long long, and where we will clash with the
15475         system intmax_t if we override it.  See
15476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15477         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15478         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15479         similarly for UINTMAX_C.
15480
15481 2011-07-08  Bruno Haible  <bruno@clisp.org>
15482
15483         pthread_sigmask tests: Avoid a compiler warning.
15484         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15485         non-zero.
15486
15487         sigprocmask tests: A better way to avoid a compiler warning.
15488         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15489         (main): Complain if system() returns non-zero.
15490         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15491
15492 2011-07-08  Bruno Haible  <bruno@clisp.org>
15493
15494         pthread_sigmask: Work around IRIX bug.
15495         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15496         bug.
15497         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15498         there may be unblocked pending signals.
15499         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15500
15501 2011-07-08  Bruno Haible  <bruno@clisp.org>
15502
15503         pthread_sigmask: Work around Cygwin bug.
15504         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15505         bug.
15506         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15507         the system's pthread_sigmask function.
15508         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15509
15510 2011-07-08  Bruno Haible  <bruno@clisp.org>
15511
15512         pthread_sigmask: Work around bug in single-threaded implementation.
15513         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15514         FreeBSD, HP-UX, Solaris bug.
15515         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15516         * lib/pthread_sigmask.c: Include <stddef.h>.
15517         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15518         the system's pthread_sigmask function.
15519         * modules/pthread_sigmask (configure.ac): Invoke
15520         gl_PREREQ_PTHREAD_SIGMASK.
15521         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15522         HP-UX, Solaris.
15523
15524 2011-07-08  Eric Blake  <eblake@redhat.com>
15525
15526         test-sigprocmask: avoid compiler warning
15527         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15528         * tests/test-sigprocmask.c (main): Use it to silence warning.
15529         Reported by Jim Meyering.
15530
15531         test-snprintf: avoid compiler warning
15532         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15533         * tests/test-vsnprintf.c (main): Likewise.
15534         Reported by Jim Meyering.
15535
15536 2011-07-08  Bruno Haible  <bruno@clisp.org>
15537
15538         Tests for module 'pthread_sigmask'.
15539         * modules/pthread_sigmask-tests: New file.
15540         * tests/test-pthread_sigmask1.c: New file, based on
15541         tests/test-sigprocmask.c.
15542         * tests/test-pthread_sigmask2.c: New file.
15543
15544 2011-07-08  Jim Meyering  <meyering@redhat.com>
15545
15546         test-getopt.h: avoid warning about an unused variable
15547         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15548
15549 2011-07-07  Jim Meyering  <meyering@redhat.com>
15550
15551         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15552         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15553         now that it no longer contains leading TABs.
15554         Remove unused "url=FIXME" statement.
15555
15556 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15557
15558         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15559         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15560         When gl_THREADLIB is not in use, assume that the POSIX sematics
15561         are desired.  This is better for Emacs, which uses POSIX semantics
15562         on GNUish and/or POSIXish platforms, and does not use threads at
15563         all otherwise.
15564
15565         pthread_sigmask: fix typo when testing for libraries
15566         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15567         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15568
15569 2011-07-08  Eric Blake  <eblake@redhat.com>
15570
15571         fts: introduce FTS_NOATIME
15572         * lib/fts_.h (FTS_NOATIME): New bit flag.
15573         (FTS_OPTIONMASK): Adjust.
15574         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15575         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15576
15577 2011-07-08  Bruno Haible  <bruno@clisp.org>
15578
15579         Tests for module 'thread'.
15580         * modules/thread-tests: New file.
15581         * tests/test-thread_self.c: New file.
15582         * tests/test-thread_create.cc: New file.
15583
15584 2011-07-08  Bruno Haible  <bruno@clisp.org>
15585
15586         thread: Avoid gcc warnings when using gl_thread_self().
15587         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15588         'void *'.
15589         (gl_thread_self_pointer): Update.
15590
15591 2011-07-07  Bruno Haible  <bruno@clisp.org>
15592
15593         signal-c++-tests: Check declaration of pthread_sigmask.
15594         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15595         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15596         $(LIB_PTHREAD_SIGMASK).
15597
15598 2011-07-07  Bruno Haible  <bruno@clisp.org>
15599
15600         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15601         * lib/signal.in.h (pthread_sigmask): Override if
15602         REPLACE_PTHREAD_SIGMASK is 1.
15603         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15604         REPLACE_PTHREAD_SIGMASK.
15605         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15606         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15607         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15608         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15609         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15610
15611 2011-07-07  Bruno Haible  <bruno@clisp.org>
15612
15613         pthread_sigmask: Ensure declaration in <signal.h>.
15614         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15615         include <pthread.h>.
15616         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15617         problem.
15618
15619 2011-07-07  Bruno Haible  <bruno@clisp.org>
15620
15621         pthread_sigmask: Document the module.
15622         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15623
15624 2011-07-07  Bruno Haible  <bruno@clisp.org>
15625
15626         pthread_sigmask: Follow gnulib conventions.
15627         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15628         gl_PTHREAD_SIGMASK.
15629         * modules/pthread_sigmask (configure.ac): Update.
15630
15631 2011-07-07  Bruno Haible  <bruno@clisp.org>
15632
15633         pthread_sigmask: Make declaration C++ safe.
15634         * lib/signal.in.h: In two special conditions, just do an #include_next.
15635         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15636         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15637         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15638         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15639         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15640         not REPLACE_PTHREAD_MASK.
15641         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15642         not REPLACE_PTHREAD_MASK.
15643         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15644
15645 2011-07-07  Bruno Haible  <bruno@clisp.org>
15646
15647         pthread_sigmask: Fix return value.
15648         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15649         * lib/pthread_sigmask.c: New file.
15650         * modules/pthread_sigmask (Files): Add it.
15651         (configure.ac): Invoke AC_LIBOBJ.
15652
15653 2011-07-07  Eric Blake  <eblake@redhat.com>
15654
15655         getopt: more portable argv creation
15656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15657         const, use char arrays rather than strings.
15658         Suggested by Paul Eggert.
15659
15660 2011-07-07  Bruno Haible  <bruno@clisp.org>
15661
15662         Tests for module 'sigprocmask'.
15663         * modules/sigprocmask-tests: New file.
15664         * tests/test-sigprocmask.c: New file.
15665
15666 2011-07-07  Bruno Haible  <bruno@clisp.org>
15667
15668         float tests: Tweak.
15669         * tests/test-float.c (main): Tweak skip message.
15670
15671 2011-07-07  Eric Blake  <eblake@redhat.com>
15672
15673         getopt: avoid compiler warning during configure
15674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15675         assigning string literals to non-const pointer.
15676
15677         getopt-gnu: avoid crash in glibc getopt
15678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15679         * tests/test-getopt.h (test_getopt): Enhance test.
15680         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15681         * doc/posix-functions/getopt.texi (getopt): Document it.
15682         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15683         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15684         Likewise.
15685
15686 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15687
15688         getopt: handle W; without long options in getopt [BZ #12922]
15689         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15690         but no long options are defined, just return 'W'.
15691
15692 2011-07-07  Bruno Haible  <bruno@clisp.org>
15693
15694         Avoid literal tabs.
15695         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15696         variable containing a tab instead of a literal tab.
15697         Reported by Jim Meyering.
15698
15699 2011-07-07  Bruno Haible  <bruno@clisp.org>
15700
15701         Comments.
15702         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15703
15704 2011-07-06  Bruno Haible  <bruno@clisp.org>
15705
15706         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15707         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15708         <winsock2.h>.
15709         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15710         lib/sys_socket.in.h.
15711         (close, gethostname): Hide declarations from <winsock2.h>.
15712         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15713         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15714         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15715         (select): Don't override if gnulib's <sys/select.h> was already
15716         included.
15717         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15718         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15719         setsockopt, shutdown, select): Tweak indentation.
15720
15721 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15722
15723         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15724         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15725         in an application that does not use the sys_select module.
15726
15727 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15728
15729         poll: do not return 0 on timeout=-1
15730         * lib/poll.c: Loop with yield if no events occurred.
15731
15732 2011-07-06  Eric Blake  <eblake@redhat.com>
15733
15734         pthread_sigmask: always replace when not using pthread
15735         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15736         replacement when using some threading other than pthread.  Fix
15737         logic bug.
15738
15739 2011-07-06  Bruno Haible  <bruno@clisp.org>
15740
15741         Comments.
15742         * m4/printf.m4: Update comments about mingw.
15743
15744 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15745
15746         sys_select: define sigset_t more portably
15747         * lib/sys_select.in.h: Always include <sys/types.h>, since
15748         we now need sigset_t and mingw defines it there.
15749         Include <signal.h> before split inclusion guard, to avoid
15750         mishaps on Solaris, whose <signal.h> eventually includes us.
15751         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15752         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15753         which come from ...
15754         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15755         gl_CHECK_TYPE_SIGSET_T.
15756         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15757         does the real work.
15758         * modules/sys_select (Depends-on): Add 'signal'.
15759
15760         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15761         Suggested by Bruno Haible.
15762
15763         pselect: Use pthread_sigmask, not sigprocmask.
15764         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15765         multithreaded apps better than sigprocmask does.
15766         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15767         sigprocmask directly.
15768
15769 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15770
15771         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15772         Don't #undef,  since we don't need any underlying pselect.
15773         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15774         (Depends-on): Add select.
15775         (Link): Add $(LIBSOCKET).
15776         These changes suggested by Bruno Haible.
15777
15778         pselect: document better
15779         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15780         * doc/posix-functions/pselect.texi (pselect): Document new module.
15781
15782         pthread_sigmask: new module
15783         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15784         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15785         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15786         This is done only as a macro; I don't know how well that'll
15787         work for C++.  Move <sys/types.h> include before the include_next,
15788         to avoid mishap on Solaris.
15789         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15790         * modules/signal (Makefile.am): Substitute the check's results.
15791         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15792
15793         test-pselect: new module
15794         * modules/pselect-tests, tests/test-pselect.c: New files.
15795         * tests/test-select.c, tests/test-sys_select-c++.cc:
15796         If TEST_PSELECT is defined, test pselect instead of testing select.
15797
15798         * tests/test-sys_select.c (sigset_t): Test for it, too.
15799         Suggested by Bruno Haible.
15800
15801 2011-07-05  Eric Blake  <eblake@redhat.com>
15802
15803         snprintf: guarantee %1$d, for libintl
15804         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15805         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15806         * doc/posix-functions/snprintf.texi (snprintf): Update.
15807         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15808         * tests/test-snprintf.c (main): Enhance test.
15809         * tests/test-vsnprintf.c (main): Likewise.
15810
15811 2011-07-05  Jim Meyering  <meyering@redhat.com>
15812
15813         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15814         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15815         per Bruno's request, to accommodate this idiom (no space after "#")
15816         even when the function is inside an #if block:
15817         char *
15818         gets (char *s)
15819         #undef gets
15820         {
15821           ...
15822         }
15823
15824 2011-07-04  Jim Meyering  <meyering@redhat.com>
15825
15826         maint: indent with spaces, not TABs, and add a rule to check this
15827         * tests/test-userspec.c: Indent with spaces, not TABs.
15828         * tests/test-argp.c: Likewise.
15829         * tests/test-c-stack2.sh: Likewise.
15830         * tests/test-parse-duration.sh: Likewise
15831         * m4/strtod.m4: Likewise.
15832         * m4/alloca.m4: Likewise.
15833         * m4/pselect.m4: Likewise.
15834         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15835
15836 2011-07-03  Jim Meyering  <meyering@redhat.com>
15837
15838         maint.mk: correct omissions in prohibit_argmatch_without_use check
15839         This rule would mistakenly report that argmatch.h is included without
15840         use even when both the argmatch and invalid_arg macro were used.
15841         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15842         of argmatch and invalid_arg.
15843
15844 2011-07-03  Bruno Haible  <bruno@clisp.org>
15845
15846         Comments about EINTR.
15847         * lib/safe-read.h: Explain the purpose of this module.
15848         * lib/safe-write.h: Likewise.
15849         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15850         module.
15851         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15852         module.
15853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15854
15855 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15856
15857         xnanosleep: Rewrite to use new dtotimespec module.
15858         It has the conversion code that used to be in xnanosleep.
15859         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15860         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15861         (TIME_T_MAX): Remove.
15862         (xnanosleep): Rewrite in terms of dtotimespec.
15863         * modules/xnanosleep (Depends-on): Add dtotimespec.
15864         Remove intprops, stdbool.
15865
15866         timespec-add, timespec-sub: new modules
15867         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15868         * lib/timespec-add.c, lib/timespec-sub.c:
15869         * modules/timespec-add, modules/timespec-sub: New files.
15870
15871         dtotimespec: new module
15872         * lib/timespec.h (dtotimespec): New decl.
15873         * lib/dtotimespec.c, modules/dtotimespec: New files.
15874
15875         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15876
15877         pselect: new module
15878         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15879         (pselect): New decls.
15880         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15881         since the standard pselect decl uses 'restrict'.
15882         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15883         HAVE_PSELECT, REPLACE_PSELECT.
15884         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15885         HAVE_PSELECT, REPLACE_PSELECT.
15886         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15887
15888         sys_select: don't depend on sys_socket
15889         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15891         This fix works on GNU and GNU-like platforms, but has not been tested
15892         on native Windows.
15893         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15894         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15895         gl_HEADER_SYS_SOCKET.
15896         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15897         gl_PREREQ_SYS_H_WINSOCK2.
15898
15899 2011-06-29  Eric Blake  <eblake@redhat.com>
15900
15901         pipe2: fix C89 compile problem
15902         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15903         Reported by Bruno Haible.
15904
15905         pipe, pipe2: don't corrupt fd on error
15906         * lib/pipe.c (pipe): Leave fd unchanged on error.
15907         * lib/pipe2.c (pipe2): Likewise.
15908         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15909         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15910
15911 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15912
15913         mmap-anon: do not use regular expressions inadvertently
15914         * m4/mmap-anon.m4: Remove trailing period from strings sought
15915         in the output.
15916
15917 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15918
15919         nanosleep: fix integer overflow problem
15920         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15921         arithmetic wraps around on overflow.
15922
15923         nanosleep: simplify carrying
15924         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15925         first call to the underyling nanosleep, not for the last one.
15926         This doesn't fix any bugs, but it simplifies the computation of
15927         the remaining delay.  Found while auditing integer overflow issues.
15928
15929         dup2: remove test for existence of fcntl
15930         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15931         "#if HAVE_FCNTL", in the configure-time test program.
15932         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15933         and therefore speeds up "configure" a bit.  Found while
15934         adding the dup2 module to Emacs.
15935
15936 2011-06-24  Eric Blake  <eblake@redhat.com>
15937
15938         maint.mk: enhance useless header checks
15939         * top/maint.mk (_sc_header_without_use): Check both include
15940         styles.
15941         (sc_prohibit_assert_without_use)
15942         (sc_prohibit_close_stream_without_use)
15943         (sc_prohibit_getopt_without_use)
15944         (sc_prohibit_quotearg_without_use)
15945         (sc_prohibit_quote_without_use)
15946         (sc_prohibit_long_options_without_use)
15947         (sc_prohibit_inttostr_without_use)
15948         (sc_prohibit_ignore_value_without_use)
15949         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15950         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15951         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15952         (sc_prohibit_hash_pjw_without_use)
15953         (sc_prohibit_safe_read_without_use)
15954         (sc_prohibit_argmatch_without_use)
15955         (sc_prohibit_canonicalize_without_use)
15956         (sc_prohibit_root_dev_ino_without_use)
15957         (sc_prohibit_openat_without_use)
15958         (sc_prohibit_c_ctype_without_use)
15959         (sc_prohibit_signal_without_use)
15960         (sc_prohibit_stdio--_without_use)
15961         (sc_prohibit_stdio-safer_without_use)
15962         (sc_prohibit_strings_without_use)
15963         (sc_prohibit_intprops_without_use)
15964         (sc_prohibit_stddef_without_use)
15965         (sc_prohibit_xfreopen_without_use): Update clients.
15966
15967 2011-06-24  Jim Meyering  <meyering@redhat.com>
15968
15969         syntax-check: keep one maint.mk rule in sync with its header
15970         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15971         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15972         I prefer to avoid temporary files here, so use <(...), but that
15973         is not supported by /bin/sh, so...
15974         (SHELL): Define to /bin/bash.
15975
15976 2011-06-24  Eric Blake  <eblake@redhat.com>
15977
15978         maint.mk: update sc_prohibit_intprops_without_use
15979         * top/maint.mk (_intprops_names): Match recent changes.
15980
15981 2011-06-24  Bruno Haible  <bruno@clisp.org>
15982
15983         strerror-override: No-op tweak.
15984         * lib/strerror-override.h (strerror_override): Reorder conditions,
15985         for consistency with lib/strerror-override.c.
15986
15987 2011-06-23  Eric Blake  <eblake@redhat.com>
15988
15989         maint.mk: test further PATH_MAX issues
15990         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15991         (sc_prohibit_path_max_allocation): ...and also test alloca.
15992         Suggested by Jim Meyering.
15993
15994 2011-06-22  Eric Blake  <eblake@redhat.com>
15995
15996         maint.mk: add syntax-check to avoid char[PATH_MAX]
15997         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15998
15999         stat: be robust to PATH_MAX definition
16000         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16001         * modules/stat (Depends-on): Add verify.
16002
16003         link: work around IRIX bug
16004         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16005         * lib/link.c (rpl_link): Work around it.
16006         * tests/test-link.h (test_link): Enhance test.
16007         * doc/posix-functions/link.texi (link): Document the bug.
16008
16009         getopt: silence clang warning
16010         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16011         dereference.
16012         Reported by Gustavo Martin Domato.
16013
16014 2011-06-22  Jim Meyering  <meyering@redhat.com>
16015
16016         bootstrap: do not insert a blank line into each .gitignore file
16017         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16018
16019 2011-06-21  Eric Blake  <eblake@redhat.com>
16020
16021         perror: test for output mismatch
16022         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16023         perror on IRIX.
16024
16025         strerror_r: fix OpenBSD behavior on out-of-range
16026         * lib/strerror_r.c (strerror_r): Always use maximal string.
16027         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16028
16029         strerror_r: fix OpenBSD behavior on 0
16030         * lib/strerror-override.c (strerror_override): Also override 0
16031         when needed.
16032         * lib/strerror-override.h (strerror_override): Likewise.
16033         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16034         earlier.
16035         * lib/strerror_r.c (strerror_r): Likewise.
16036         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16037         behavior...
16038         (gl_FUNC_STRERROR_0): ...into new macro.
16039         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16040         is overridden.
16041         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16042         * modules/strerror-override (Files): Add strerror.m4.
16043         (configure.ac): Also provide override for 0 when needed.
16044         * doc/posix-functions/strerror.texi (strerror): Document this.
16045         * doc/posix-functions/perror.texi (perror): Likewise.
16046
16047         perror: adjust array size
16048         * modules/perror (Depends-on): Add strerror-override.
16049         * lib/perror.c (perror): Use it to avoid magic number.
16050
16051         strerror-override: reduce size
16052         * lib/strerror-override.c (strerror_override): Use fewer lines.
16053
16054 2011-06-20  Bruno Haible  <bruno@clisp.org>
16055
16056         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16057         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16058
16059 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16060
16061         alloca: port to compilers that can optimize like GCC 4.6.0
16062         * lib/alloca.c (find_stack_direction): New signature, taken from
16063         Autoconf git.  This works with GCC 4.6.0.  This code should never
16064         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16065         be used with other compilers that optimize as well as GCC 4.6.0 does.
16066         (alloca): Adjust to new signature.
16067         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16068         New macro, which patches Autoconf in a similar way.
16069
16070         c-stack: stop worrying about stack direction
16071         * lib/c-stack.c (find_stack_direction): Remove.
16072         (segv_handler): Don't worry about stack direction growth, as it's
16073         too much of a pain to configure this correctly, given how compilers
16074         are optimizing-away our stack-growth detection code.  Instead, assume
16075         that any access to just before or just after the stack is OK.
16076         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16077         Don't require AC_FUNC_ALLOCA; no longer needed.
16078
16079 2011-06-20  Eric Blake  <eblake@redhat.com>
16080
16081         test-stat: don't allocate PATH_MAX bytes
16082         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16083         PATH_MAX-sized buffer.
16084         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16085         * modules/stat-tests (Depends-on): Likewise.
16086         * tests/test-fstatat.c (includes): Drop pathmax.h.
16087         * tests/test-stat.c (includes): Likewise.
16088         Reported by Bruno Haible.
16089
16090 2011-06-20  Bruno Haible  <bruno@clisp.org>
16091
16092         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16093         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16094         * lib/float.c: New file.
16095         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16096         REPLACE_FLOAT_LDBL.
16097         * modules/float (Files): Add lib/float.c.
16098         (configure.ac): Invoke AC_LIBOBJ.
16099         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16100
16101 2011-06-20  Bruno Haible  <bruno@clisp.org>
16102
16103         Tests for module 'float'.
16104         * modules/float-tests: New file.
16105         * tests/test-float.c: New file.
16106
16107 2011-06-19  Bruno Haible  <bruno@clisp.org>
16108
16109         isinf: Coding style.
16110         * lib/isinf.c: Use GNU coding style.
16111
16112 2011-06-19  Bruno Haible  <bruno@clisp.org>
16113
16114         linkat test: Avoid test failure on AIX 7.1.
16115         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16116         * tests/test-link.h (test_link): Likewise.
16117
16118 2011-06-19  Bruno Haible  <bruno@clisp.org>
16119
16120         pread test: Avoid test failure on OpenBSD 4.9.
16121         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16122
16123 2011-06-19  Bruno Haible  <bruno@clisp.org>
16124
16125         sprintf-posix: Fix test failure on AIX 7.1.
16126         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16127         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16128         on AIX.
16129         * doc/posix-functions/fprintf.texi: Likewise.
16130         * doc/posix-functions/printf.texi: Likewise.
16131         * doc/posix-functions/snprintf.texi: Likewise.
16132         * doc/posix-functions/sprintf.texi: Likewise.
16133         * doc/posix-functions/vdprintf.texi: Likewise.
16134         * doc/posix-functions/vfprintf.texi: Likewise.
16135         * doc/posix-functions/vprintf.texi: Likewise.
16136         * doc/posix-functions/vsnprintf.texi: Likewise.
16137         * doc/posix-functions/vsprintf.texi: Likewise.
16138
16139 2011-06-19  Bruno Haible  <bruno@clisp.org>
16140
16141         roundl-ieee: Fix test failure on AIX 7.1.
16142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16143         * doc/posix-functions/roundl.texi: Mention problem with negative
16144         arguments.
16145
16146 2011-06-19  Bruno Haible  <bruno@clisp.org>
16147
16148         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16149         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16150         * doc/posix-functions/round.texi: Mention problem with negative
16151         arguments.
16152         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16153
16154 2011-06-19  Bruno Haible  <bruno@clisp.org>
16155
16156         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16157         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16158         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16159         * doc/posix-functions/roundf.texi: Mention problem with negative
16160         arguments.
16161         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16162
16163 2011-06-19  Bruno Haible  <bruno@clisp.org>
16164
16165         ceilf-ieee: Work around bug on MacOS X 10.5.
16166         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16167
16168         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16169         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16170         IEEE compliant, avoid compiler optimizations.
16171         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16172         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16173         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16174         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16175         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16176         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16177         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16178         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16179         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16180         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16181
16182 2011-06-19  Bruno Haible  <bruno@clisp.org>
16183
16184         ceilf-ieee: Work around bug on AIX 7.1.
16185         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16186         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16187
16188 2011-06-19  Bruno Haible  <bruno@clisp.org>
16189
16190         ceil-ieee: Work around bug on AIX 7.1.
16191         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16192         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16193
16194 2011-06-18  Bruno Haible  <bruno@clisp.org>
16195
16196         fsync test: Avoid test failure on MacOS X and AIX.
16197         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16198         EINVAL.
16199
16200 2011-06-18  Bruno Haible  <bruno@clisp.org>
16201
16202         openat, fdopendir tests: Fix link errors.
16203         * modules/openat-tests (Depends-on): Add progname.
16204         * modules/fdopendir-tests (Depends-on): Likewise.
16205         * tests/test-fchownat.c: Include progname.h.
16206         (main): Call set_program_name.
16207         * tests/test-fstatat.c: Include progname.h.
16208         (main): Call set_program_name.
16209         * tests/test-mkdirat.c: Include progname.h.
16210         (main): Call set_program_name.
16211         * tests/test-openat.c: Include progname.h.
16212         (main): Call set_program_name.
16213         * tests/test-unlinkat.c: Include progname.h.
16214         (main): Call set_program_name.
16215         * tests/test-fdopendir.c: Include progname.h.
16216         (main): Call set_program_name.
16217
16218 2011-06-18  Bruno Haible  <bruno@clisp.org>
16219
16220         Doc update.
16221         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16222         HP-UX.
16223         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16224
16225 2011-06-18  Bruno Haible  <bruno@clisp.org>
16226
16227         getcwd tests: Avoid compilation error on HP-UX 11.31.
16228         * modules/getcwd-tests (Depends-on): Add pathmax.
16229         * tests/test-getcwd.c: Include pathmax.h.
16230
16231 2011-06-18  Bruno Haible  <bruno@clisp.org>
16232
16233         isfinite, isinf: Fix link error on AIX 6 and 7.
16234         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16235         needed, also test the macro with a 'float' argument.
16236         * m4/isinf.m4 (gl_ISINF): Likewise.
16237
16238 2011-06-18  Bruno Haible  <bruno@clisp.org>
16239
16240         getloadavg: Don't clobber LIBS. Regression from previous commit.
16241         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16242         AC_CHECK_LIB from here...
16243         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16244         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16245         gl_func_getloadavg_done.
16246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16247
16248 2011-06-18  Bruno Haible  <bruno@clisp.org>
16249
16250         clean-temp: Improve documentation.
16251         * lib/clean-temp.h: Explain better how to use this module.
16252         Reported by John Darrington <john@darrington.wattle.id.au>.
16253
16254 2011-06-17  Bruno Haible  <bruno@clisp.org>
16255
16256         pread, pwrite: Avoid cc warning on AIX.
16257         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16258         (pwrite): Likewise.
16259
16260 2011-06-17  Bruno Haible  <bruno@clisp.org>
16261
16262         spawn-pipe tests: Fix link error.
16263         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16265
16266 2011-06-17  Bruno Haible  <bruno@clisp.org>
16267
16268         Tests: Remove unnecessary dependency.
16269         * modules/canonicalize-tests (Depends-on): Remove progname.
16270         * modules/chown-tests (Depends-on): Likewise.
16271         * modules/dirname-tests (Depends-on): Likewise.
16272         * modules/fdopendir-tests (Depends-on): Likewise.
16273         * modules/fdutimensat-tests (Depends-on): Likewise.
16274         * modules/hash-tests (Depends-on): Likewise.
16275         * modules/lchown-tests (Depends-on): Likewise.
16276         * modules/linkat-tests (Depends-on): Likewise.
16277         * modules/renameat-tests (Depends-on): Likewise.
16278         * modules/spawn-pipe-tests (Depends-on): Likewise.
16279         * modules/utimensat-tests (Depends-on): Likewise.
16280
16281 2011-06-17  Bruno Haible  <bruno@clisp.org>
16282
16283         spawn-pipe tests: Fix link error.
16284         * tests/test-spawn-pipe-child.c: Undefine fflush.
16285
16286 2011-06-17  Bruno Haible  <bruno@clisp.org>
16287
16288         Fix tests link errors.
16289         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16290         * modules/chown-tests (Makefile.am): Don't link test-chown with
16291         LIBINTL.
16292         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16293         LIBINTL.
16294         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16295         LIBINTL.
16296         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16297         LIBINTL.
16298
16299 2011-06-16  Bruno Haible  <bruno@clisp.org>
16300
16301         crypto/gc-sha1: Fix recent regression.
16302         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16303         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16304
16305         crypto/gc-md5: Fix recent regression.
16306         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16307
16308         crypto/gc-md4: Fix recent regression.
16309         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16310         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16311
16312         crypto/gc-arctwo: Fix recent regression.
16313         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16314         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16315
16316         crypto/gc-rijndael: Fix recent regression.
16317         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16318         (configure.ac): Invoke AC_LIBOBJ here.
16319         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16320         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16321
16322         crypto/gc-hmac-sha1: Fix recent regression.
16323         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16324         (configure.ac): Invoke AC_LIBOBJ here.
16325         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16327
16328         crypto/gc-hmac-md5: Fix recent regression.
16329         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16330         (configure.ac): Invoke AC_LIBOBJ here.
16331         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16332         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16333
16334         crypto/gc-des: Fix recent regression.
16335         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16336         (configure.ac): Invoke AC_LIBOBJ here.
16337         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16338         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16339
16340         crypto/gc-arcfour: Fix recent regression.
16341         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16342         (configure.ac): Invoke AC_LIBOBJ here.
16343         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16344         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16345
16346 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16347
16348         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16349         After the 2011-05-21 change, this macro requires
16350         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16351         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16352
16353 2011-06-16  Bruno Haible  <bruno@clisp.org>
16354
16355         fprintftime: Move AC_LIBOBJ invocations to module description.
16356         * m4/fprintftime.m4: Remove file.
16357         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16358         (configure.ac): Remove gl_FPRINTFTIME call.
16359         (Makefile.am): Augment lib_SOURCES.
16360         Reported by Jim Meyering.
16361
16362 2011-06-16  Bruno Haible  <bruno@clisp.org>
16363
16364         tmpfile-safer: Finish 2011-05-23 commit.
16365         * m4/stdio-safer.m4: Really remove file.
16366         Reported by Jim Meyering.
16367
16368 2011-06-16  Bruno Haible  <bruno@clisp.org>
16369
16370         syntax-check: Fix typo.
16371         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16372         printf-posix.m4.
16373         Reported by Jim Meyering.
16374
16375 2011-06-13  Jim Meyering  <meyering@redhat.com>
16376
16377         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16378         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16379
16380 2011-05-23  Bruno Haible  <bruno@clisp.org>
16381
16382         yesno: Move AC_LIBOBJ invocations to module description.
16383         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16384         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16385
16386 2011-05-23  Bruno Haible  <bruno@clisp.org>
16387
16388         xstrtol: Move AC_LIBOBJ invocations to module description.
16389         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16390         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16391
16392 2011-05-23  Bruno Haible  <bruno@clisp.org>
16393
16394         xstrtold: Move AC_LIBOBJ invocations to module description.
16395         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16396         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16397
16398 2011-05-23  Bruno Haible  <bruno@clisp.org>
16399
16400         xstrtod: Move AC_LIBOBJ invocations to module description.
16401         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16402         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16403
16404 2011-05-23  Bruno Haible  <bruno@clisp.org>
16405
16406         xnanosleep: Move AC_LIBOBJ invocations to module description.
16407         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16408         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16409
16410 2011-05-23  Bruno Haible  <bruno@clisp.org>
16411
16412         xgetcwd: Move AC_LIBOBJ invocations to module description.
16413         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16414         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16415
16416 2011-05-23  Bruno Haible  <bruno@clisp.org>
16417
16418         xalloc: Move AC_LIBOBJ invocations to module description.
16419         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16420         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16421
16422 2011-05-23  Bruno Haible  <bruno@clisp.org>
16423
16424         write-any-file: Move AC_LIBOBJ invocations to module description.
16425         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16426         invocation.
16427         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16428
16429 2011-05-23  Bruno Haible  <bruno@clisp.org>
16430
16431         utimens: Move AC_LIBOBJ invocations to module description.
16432         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16433         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16434
16435 2011-05-23  Bruno Haible  <bruno@clisp.org>
16436
16437         utimecmp: Move AC_LIBOBJ invocations to module description.
16438         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16439         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16440
16441 2011-05-23  Bruno Haible  <bruno@clisp.org>
16442
16443         userspec: Move AC_LIBOBJ invocations to module description.
16444         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16445         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16446
16447 2011-05-23  Bruno Haible  <bruno@clisp.org>
16448
16449         unlinkdir: Move AC_LIBOBJ invocations to module description.
16450         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16451         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16452
16453 2011-05-23  Bruno Haible  <bruno@clisp.org>
16454
16455         unistd-safer: Move AC_LIBOBJ invocations to module description.
16456         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16457         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16458
16459 2011-05-23  Bruno Haible  <bruno@clisp.org>
16460
16461         tempname: Move AC_LIBOBJ invocations to module description.
16462         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16463         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16464
16465 2011-05-23  Bruno Haible  <bruno@clisp.org>
16466
16467         strftime: Move AC_LIBOBJ invocations to module description.
16468         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16469         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16470
16471 2011-05-23  Bruno Haible  <bruno@clisp.org>
16472
16473         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16474         * m4/stdlib-safer.m4: Remove file.
16475         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16476         (configure.ac): Remove gl_STDLIB_SAFER call.
16477         (Makefile.am): Augment lib_SOURCES.
16478
16479 2011-05-23  Bruno Haible  <bruno@clisp.org>
16480
16481         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16482         * m4/stdio-safer.m4: Remove file.
16483         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16484         (configure.ac): Remove gl_TMPFILE_SAFER call.
16485         (Makefile.am): Augment lib_SOURCES.
16486
16487 2011-05-23  Bruno Haible  <bruno@clisp.org>
16488
16489         popen-safer: Move AC_LIBOBJ invocations to module description.
16490         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16491         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16492         (configure.ac): Remove gl_POPEN_SAFER call.
16493         (Makefile.am): Augment lib_SOURCES.
16494
16495 2011-05-23  Bruno Haible  <bruno@clisp.org>
16496
16497         freopen-safer: Move AC_LIBOBJ invocations to module description.
16498         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16499         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16500         (configure.ac): Remove gl_FREOPEN_SAFER call.
16501         (Makefile.am): Augment lib_SOURCES.
16502
16503 2011-05-23  Bruno Haible  <bruno@clisp.org>
16504
16505         fopen-safer: Move AC_LIBOBJ invocations to module description.
16506         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16507         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16508         (configure.ac): Remove gl_FOPEN_SAFER call.
16509         (Makefile.am): Augment lib_SOURCES.
16510
16511 2011-05-23  Bruno Haible  <bruno@clisp.org>
16512
16513         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16514         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16515         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16516
16517 2011-05-23  Bruno Haible  <bruno@clisp.org>
16518
16519         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16520         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16521         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16522
16523 2011-05-23  Bruno Haible  <bruno@clisp.org>
16524
16525         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16526         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16527         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16528
16529 2011-05-23  Bruno Haible  <bruno@clisp.org>
16530
16531         settime: Move AC_LIBOBJ invocations to module description.
16532         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16533         * modules/settime (Makefile.am): Augment lib_SOURCES.
16534
16535 2011-05-23  Bruno Haible  <bruno@clisp.org>
16536
16537         savedir: Move AC_LIBOBJ invocations to module description.
16538         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16539         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16540
16541 2011-05-23  Bruno Haible  <bruno@clisp.org>
16542
16543         save-cwd: Move AC_LIBOBJ invocations to module description.
16544         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16545         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16546
16547 2011-05-23  Bruno Haible  <bruno@clisp.org>
16548
16549         same: Move AC_LIBOBJ invocations to module description.
16550         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16551         * modules/same (Makefile.am): Augment lib_SOURCES.
16552
16553 2011-05-23  Bruno Haible  <bruno@clisp.org>
16554
16555         safe-write: Move AC_LIBOBJ invocations to module description.
16556         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16557         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16558         instead of gl_SAFE_WRITE.
16559         (Makefile.am): Augment lib_SOURCES.
16560
16561 2011-05-23  Bruno Haible  <bruno@clisp.org>
16562
16563         safe-read: Move AC_LIBOBJ invocations to module description.
16564         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16565         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16566         of gl_SAFE_READ.
16567         (Makefile.am): Augment lib_SOURCES.
16568
16569 2011-05-23  Bruno Haible  <bruno@clisp.org>
16570
16571         safe-alloc: Move AC_LIBOBJ invocations to module description.
16572         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16573         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16574
16575 2011-05-23  Bruno Haible  <bruno@clisp.org>
16576
16577         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16578         * m4/rijndael.m4: Remove file.
16579         * modules/crypto/rijndael (Files): Remove it.
16580         (configure.ac): Remove gl_RIJNDAEL call.
16581         (Makefile.am): Augment lib_SOURCES.
16582
16583 2011-05-23  Bruno Haible  <bruno@clisp.org>
16584
16585         readtokens: Move AC_LIBOBJ invocations to module description.
16586         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16587         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16588
16589 2011-05-23  Bruno Haible  <bruno@clisp.org>
16590
16591         read-file: Move AC_LIBOBJ invocations to module description.
16592         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16593         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16594         of gl_FUNC_READ_FILE.
16595         (Makefile.am): Augment lib_SOURCES.
16596
16597 2011-05-23  Bruno Haible  <bruno@clisp.org>
16598
16599         quotearg: Move AC_LIBOBJ invocations to module description.
16600         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16601         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16602
16603 2011-05-23  Bruno Haible  <bruno@clisp.org>
16604
16605         quote: Move AC_LIBOBJ invocations to module description.
16606         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16607         * modules/quote (Makefile.am): Augment lib_SOURCES.
16608
16609 2011-05-23  Bruno Haible  <bruno@clisp.org>
16610
16611         posixver: Move AC_LIBOBJ invocations to module description.
16612         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16613         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16614
16615 2011-05-23  Bruno Haible  <bruno@clisp.org>
16616
16617         posixtm: Move AC_LIBOBJ invocations to module description.
16618         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16619         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16620
16621 2011-05-23  Bruno Haible  <bruno@clisp.org>
16622
16623         physmem: Move AC_LIBOBJ invocations to module description.
16624         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16625         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16626
16627 2011-05-23  Bruno Haible  <bruno@clisp.org>
16628
16629         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16630         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16631         invocation.
16632         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16633
16634 2011-05-23  Bruno Haible  <bruno@clisp.org>
16635
16636         mpsort: Move AC_LIBOBJ invocations to module description.
16637         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16638         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16639
16640 2011-05-23  Bruno Haible  <bruno@clisp.org>
16641
16642         modechange: Move AC_LIBOBJ invocations to module description.
16643         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16644         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16645
16646 2011-05-23  Bruno Haible  <bruno@clisp.org>
16647
16648         mkdir-p: Move AC_LIBOBJ invocations to module description.
16649         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16650         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16651
16652 2011-05-23  Bruno Haible  <bruno@clisp.org>
16653
16654         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16655         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16656         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16657
16658 2011-05-23  Bruno Haible  <bruno@clisp.org>
16659
16660         mgetgroups: Move AC_LIBOBJ invocations to module description.
16661         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16662         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16663
16664 2011-05-23  Bruno Haible  <bruno@clisp.org>
16665
16666         memxor: Move AC_LIBOBJ invocations to module description.
16667         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16668         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16669
16670 2011-05-23  Bruno Haible  <bruno@clisp.org>
16671
16672         memcoll: Move AC_LIBOBJ invocations to module description.
16673         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16674         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16675
16676 2011-05-23  Bruno Haible  <bruno@clisp.org>
16677
16678         memcasecmp: Move AC_LIBOBJ invocations to module description.
16679         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16680         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16681
16682 2011-05-23  Bruno Haible  <bruno@clisp.org>
16683
16684         crypto/md5: Move AC_LIBOBJ invocations to module description.
16685         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16686         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16687
16688 2011-05-23  Bruno Haible  <bruno@clisp.org>
16689
16690         crypto/md4: Move AC_LIBOBJ invocations to module description.
16691         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16692         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16693
16694 2011-05-23  Bruno Haible  <bruno@clisp.org>
16695
16696         crypto/md2: Move AC_LIBOBJ invocations to module description.
16697         * m4/md2.m4: Remove file.
16698         * modules/crypto/md2 (Files): Remove it.
16699         (configure.ac): Remove gl_MD2 call.
16700         (Makefile.am): Augment lib_SOURCES.
16701
16702 2011-05-23  Bruno Haible  <bruno@clisp.org>
16703
16704         long-options: Move AC_LIBOBJ invocations to module description.
16705         * m4/long-options.m4: Remove file.
16706         * modules/long-options (Files): Remove it.
16707         (configure.ac): Remove gl_LONG_OPTIONS call.
16708         (Makefile.am): Augment lib_SOURCES.
16709
16710 2011-05-23  Bruno Haible  <bruno@clisp.org>
16711
16712         i-ring: Move AC_LIBOBJ invocations to module description.
16713         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16714         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16715
16716 2011-05-23  Bruno Haible  <bruno@clisp.org>
16717
16718         idcache: Move AC_LIBOBJ invocations to module description.
16719         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16720         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16721
16722 2011-05-23  Bruno Haible  <bruno@clisp.org>
16723
16724         human: Move AC_LIBOBJ invocations to module description.
16725         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16726         * modules/human (Makefile.am): Augment lib_SOURCES.
16727
16728 2011-05-23  Bruno Haible  <bruno@clisp.org>
16729
16730         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16731         * m4/hmac-sha1.m4: Remove file.
16732         * modules/crypto/hmac-sha1 (Files): Remove it.
16733         (configure.ac): Remove gl_HMAC_SHA1 call.
16734         (Makefile.am): Augment lib_SOURCES.
16735
16736 2011-05-23  Bruno Haible  <bruno@clisp.org>
16737
16738         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16739         * m4/hmac-md5.m4: Remove file.
16740         * modules/crypto/hmac-md5 (Files): Remove it.
16741         (configure.ac): Remove gl_HMAC_MD5 call.
16742         (Makefile.am): Augment lib_SOURCES.
16743
16744 2011-05-23  Bruno Haible  <bruno@clisp.org>
16745
16746         hash: Move AC_LIBOBJ invocations to module description.
16747         * m4/hash.m4: Remove file.
16748         * modules/hash (Files): Remove it.
16749         (configure.ac): Remove gl_HASH call.
16750         (Makefile.am): Augment lib_SOURCES.
16751
16752 2011-05-23  Bruno Haible  <bruno@clisp.org>
16753
16754         hard-locale: Move AC_LIBOBJ invocations to module description.
16755         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16756         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16757
16758 2011-05-23  Bruno Haible  <bruno@clisp.org>
16759
16760         getugroups: Move AC_LIBOBJ invocations to module description.
16761         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16762         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16763
16764 2011-05-23  Bruno Haible  <bruno@clisp.org>
16765
16766         gettime: Move AC_LIBOBJ invocations to module description.
16767         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16768         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16769
16770 2011-05-23  Bruno Haible  <bruno@clisp.org>
16771
16772         getndelim2: Move AC_LIBOBJ invocations to module description.
16773         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16774         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16775
16776 2011-05-23  Bruno Haible  <bruno@clisp.org>
16777
16778         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16779         * m4/gc-pbkdf2-sha1.m4: Remove file.
16780         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16781         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16782         (Makefile.am): Augment lib_SOURCES.
16783
16784 2011-05-23  Bruno Haible  <bruno@clisp.org>
16785
16786         fts: Move AC_LIBOBJ invocations to module description.
16787         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16788         * modules/fts (configure.ac): ... to here.
16789
16790 2011-05-23  Bruno Haible  <bruno@clisp.org>
16791
16792         file-type: Move AC_LIBOBJ invocations to module description.
16793         * m4/file-type.m4: Remove file.
16794         * modules/file-type (Files): Remove it.
16795         (configure.ac): Remove gl_FILE_TYPE call.
16796         (Makefile.am): Augment lib_SOURCES.
16797
16798 2011-05-23  Bruno Haible  <bruno@clisp.org>
16799
16800         filenamecat*: Respect rules for use of AC_LIBOBJ.
16801         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16802         Remove AC_LIBOBJ invocation.
16803         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16804         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16805
16806 2011-05-23  Bruno Haible  <bruno@clisp.org>
16807
16808         filemode: Move AC_LIBOBJ invocations to module description.
16809         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16810         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16811
16812 2011-05-23  Bruno Haible  <bruno@clisp.org>
16813
16814         openat-safer: Move AC_LIBOBJ invocations to module description.
16815         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16816         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16817
16818 2011-05-23  Bruno Haible  <bruno@clisp.org>
16819
16820         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16821         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16822         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16823
16824 2011-05-23  Bruno Haible  <bruno@clisp.org>
16825
16826         exclude: Move AC_LIBOBJ invocations to module description.
16827         * m4/exclude.m4: Remove file.
16828         * modules/exclude (Files): Remove it.
16829         (configure.ac): Remove gl_EXCLUDE call.
16830         (Makefile.am): Augment lib_SOURCES.
16831
16832 2011-05-23  Bruno Haible  <bruno@clisp.org>
16833
16834         dirname*: Respect rules for use of AC_LIBOBJ.
16835         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16836         invocations.
16837         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16838         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16839
16840 2011-05-23  Bruno Haible  <bruno@clisp.org>
16841
16842         dirent-safer: Move AC_LIBOBJ invocations to module description.
16843         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16844         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16845
16846 2011-05-23  Bruno Haible  <bruno@clisp.org>
16847
16848         crypto/des: Move AC_LIBOBJ invocations to module description.
16849         * m4/des.m4: Remove file.
16850         * modules/crypto/des (Files): Remove it.
16851         (configure.ac): Remove gl_DES call.
16852         (Makefile.am): Augment lib_SOURCES.
16853
16854 2011-05-23  Bruno Haible  <bruno@clisp.org>
16855
16856         cycle-check: Move AC_LIBOBJ invocations to module description.
16857         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16858         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16859
16860 2011-05-23  Bruno Haible  <bruno@clisp.org>
16861
16862         c-strtold: Move AC_LIBOBJ invocations to module description.
16863         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16864         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16865
16866 2011-05-23  Bruno Haible  <bruno@clisp.org>
16867
16868         c-strtod: Move AC_LIBOBJ invocations to module description.
16869         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16870         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16871
16872 2011-05-23  Bruno Haible  <bruno@clisp.org>
16873
16874         crc: Move AC_LIBOBJ invocations to module description.
16875         * m4/crc.m4: Remove file.
16876         * modules/crc (Files): Remove it.
16877         (configure.ac): Remove gl_CRC call.
16878         (Makefile.am): Augment lib_SOURCES.
16879
16880 2011-05-23  Bruno Haible  <bruno@clisp.org>
16881
16882         close-stream: Move AC_LIBOBJ invocations to module description.
16883         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16884         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16885
16886 2011-05-23  Bruno Haible  <bruno@clisp.org>
16887
16888         closeout: Move AC_LIBOBJ invocations to module description.
16889         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16890         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16891
16892 2011-05-23  Bruno Haible  <bruno@clisp.org>
16893
16894         closein: Move AC_LIBOBJ invocations to module description.
16895         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16896         * modules/closein (Makefile.am): Augment lib_SOURCES.
16897
16898 2011-05-23  Bruno Haible  <bruno@clisp.org>
16899
16900         cloexec: Move AC_LIBOBJ invocations to module description.
16901         * m4/cloexec.m4: Remove file.
16902         * modules/cloexec (Files): Remove it.
16903         (configure.ac): Remove gl_CLOEXEC call.
16904         (Makefile.am): Augment lib_SOURCES.
16905
16906 2011-05-23  Bruno Haible  <bruno@clisp.org>
16907
16908         check-version: Move AC_LIBOBJ invocations to module description.
16909         * m4/check-version.m4: Remove file.
16910         * modules/check-version (Files): Remove it.
16911         (configure.ac): Remove gl_CHECK_VERSION call.
16912         (Makefile.am): Augment lib_SOURCES.
16913
16914 2011-05-23  Bruno Haible  <bruno@clisp.org>
16915
16916         chdir-safer: Move AC_LIBOBJ invocations to module description.
16917         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16918         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16919
16920 2011-05-23  Bruno Haible  <bruno@clisp.org>
16921
16922         canonicalize: Move AC_LIBOBJ invocations to module description.
16923         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16924         AC_LIBOBJ invocation.
16925         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16926
16927 2011-05-23  Bruno Haible  <bruno@clisp.org>
16928
16929         canon-host: Move AC_LIBOBJ invocations to module description.
16930         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16931         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16932         instead of gl_CANON_HOST.
16933         (Makefile.am): Augment lib_SOURCES.
16934
16935 2011-05-23  Bruno Haible  <bruno@clisp.org>
16936
16937         backupfile: Move AC_LIBOBJ invocations to module description.
16938         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16939         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16940
16941 2011-05-23  Bruno Haible  <bruno@clisp.org>
16942
16943         argmatch: Move AC_LIBOBJ invocations to module description.
16944         * m4/argmatch.m4: Remove file.
16945         * modules/argmatch (Files): Remove it.
16946         (configure.ac): Remove gl_ARGMATCH call.
16947         (Makefile.am): Augment lib_SOURCES.
16948
16949 2011-05-23  Bruno Haible  <bruno@clisp.org>
16950
16951         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16952         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16953         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16954
16955 2011-05-23  Bruno Haible  <bruno@clisp.org>
16956
16957         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16958         * m4/arcfour.m4: Remove file.
16959         * modules/crypto/arcfour (Files): Remove it.
16960         (configure.ac): Remove gl_ARCFOUR call.
16961         (Makefile.am): Augment lib_SOURCES.
16962
16963 2011-05-22  Bruno Haible  <bruno@clisp.org>
16964
16965         write: Move AC_LIBOBJ invocations to module description.
16966         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16967         * modules/write (configure.ac): ... to here.
16968
16969 2011-05-22  Bruno Haible  <bruno@clisp.org>
16970
16971         wmemset: Move AC_LIBOBJ invocations to module description.
16972         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16973         here...
16974         * modules/wmemset (configure.ac): ... to here.
16975
16976 2011-05-22  Bruno Haible  <bruno@clisp.org>
16977
16978         wmemmove: Move AC_LIBOBJ invocations to module description.
16979         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16980         here...
16981         * modules/wmemmove (configure.ac): ... to here.
16982
16983 2011-05-22  Bruno Haible  <bruno@clisp.org>
16984
16985         wmemcpy: Move AC_LIBOBJ invocations to module description.
16986         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16987         here...
16988         * modules/wmemcpy (configure.ac): ... to here.
16989
16990 2011-05-22  Bruno Haible  <bruno@clisp.org>
16991
16992         wmemcmp: Move AC_LIBOBJ invocations to module description.
16993         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16994         here...
16995         * modules/wmemcmp (configure.ac): ... to here.
16996
16997 2011-05-22  Bruno Haible  <bruno@clisp.org>
16998
16999         wmemchr: Move AC_LIBOBJ invocations to module description.
17000         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17001         here...
17002         * modules/wmemchr (configure.ac): ... to here.
17003
17004 2011-05-22  Bruno Haible  <bruno@clisp.org>
17005
17006         wcswidth: Move AC_LIBOBJ invocations to module description.
17007         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17008         here...
17009         * modules/wcswidth (configure.ac): ... to here.
17010
17011 2011-05-22  Bruno Haible  <bruno@clisp.org>
17012
17013         wcwidth: Respect rules for use of AC_LIBOBJ.
17014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17015         invocation from here...
17016         * modules/wcwidth (configure.ac): ... to here.
17017         (Depends-on): Update conditions.
17018
17019 2011-05-22  Bruno Haible  <bruno@clisp.org>
17020
17021         wctype: Move AC_LIBOBJ invocations to module description.
17022         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17023         invocation from here...
17024         * modules/wctype (configure.ac): ... to here.
17025         (Depends-on): Update conditions.
17026
17027 2011-05-22  Bruno Haible  <bruno@clisp.org>
17028
17029         wctrans: Move AC_LIBOBJ invocations to module description.
17030         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17031         invocation from here...
17032         * modules/wctrans (configure.ac): ... to here.
17033
17034 2011-05-22  Bruno Haible  <bruno@clisp.org>
17035
17036         wctomb: Move AC_LIBOBJ invocations to module description.
17037         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17038         invocations from here...
17039         * modules/wctomb (configure.ac): ... to here.
17040
17041 2011-05-22  Bruno Haible  <bruno@clisp.org>
17042
17043         wctob: Move AC_LIBOBJ invocations to module description.
17044         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17045         gl_PREREQ_WCTOB invocations from here...
17046         * modules/wctob (configure.ac): ... to here.
17047         (Depends-on): Update conditions.
17048
17049 2011-05-22  Bruno Haible  <bruno@clisp.org>
17050
17051         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17052         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17053         here...
17054         * modules/wcsxfrm (configure.ac): ... to here.
17055
17056 2011-05-22  Bruno Haible  <bruno@clisp.org>
17057
17058         wcstok: Move AC_LIBOBJ invocations to module description.
17059         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17060         * modules/wcstok (configure.ac): ... to here.
17061
17062 2011-05-22  Bruno Haible  <bruno@clisp.org>
17063
17064         wcsstr: Move AC_LIBOBJ invocations to module description.
17065         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17066         * modules/wcsstr (configure.ac): ... to here.
17067
17068 2011-05-22  Bruno Haible  <bruno@clisp.org>
17069
17070         wcsspn: Move AC_LIBOBJ invocations to module description.
17071         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17072         * modules/wcsspn (configure.ac): ... to here.
17073
17074 2011-05-22  Bruno Haible  <bruno@clisp.org>
17075
17076         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17077         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17078         gl_PREREQ_WCSRTOMBS invocations from here...
17079         * modules/wcsrtombs (configure.ac): ... to here.
17080
17081 2011-05-22  Bruno Haible  <bruno@clisp.org>
17082
17083         wcsrchr: Move AC_LIBOBJ invocations to module description.
17084         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17085         here...
17086         * modules/wcsrchr (configure.ac): ... to here.
17087
17088 2011-05-22  Bruno Haible  <bruno@clisp.org>
17089
17090         wcspbrk: Move AC_LIBOBJ invocations to module description.
17091         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17092         here...
17093         * modules/wcspbrk (configure.ac): ... to here.
17094
17095 2011-05-22  Bruno Haible  <bruno@clisp.org>
17096
17097         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17098         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17099         gl_PREREQ_WCSNRTOMBS invocations from here...
17100         * modules/wcsnrtombs (configure.ac): ... to here.
17101
17102 2011-05-22  Bruno Haible  <bruno@clisp.org>
17103
17104         wcsnlen: Move AC_LIBOBJ invocations to module description.
17105         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17106         here...
17107         * modules/wcsnlen (configure.ac): ... to here.
17108
17109 2011-05-22  Bruno Haible  <bruno@clisp.org>
17110
17111         wcsncpy: Move AC_LIBOBJ invocations to module description.
17112         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17113         here...
17114         * modules/wcsncpy (configure.ac): ... to here.
17115
17116 2011-05-22  Bruno Haible  <bruno@clisp.org>
17117
17118         wcsncmp: Move AC_LIBOBJ invocations to module description.
17119         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17120         here...
17121         * modules/wcsncmp (configure.ac): ... to here.
17122
17123 2011-05-22  Bruno Haible  <bruno@clisp.org>
17124
17125         wcsncat: Move AC_LIBOBJ invocations to module description.
17126         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17127         here...
17128         * modules/wcsncat (configure.ac): ... to here.
17129
17130 2011-05-22  Bruno Haible  <bruno@clisp.org>
17131
17132         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17133         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17134         from here...
17135         * modules/wcsncasecmp (configure.ac): ... to here.
17136
17137 2011-05-22  Bruno Haible  <bruno@clisp.org>
17138
17139         wcslen: Move AC_LIBOBJ invocations to module description.
17140         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17141         * modules/wcslen (configure.ac): ... to here.
17142
17143 2011-05-22  Bruno Haible  <bruno@clisp.org>
17144
17145         wcsdup: Move AC_LIBOBJ invocations to module description.
17146         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17147         * modules/wcsdup (configure.ac): ... to here.
17148
17149 2011-05-22  Bruno Haible  <bruno@clisp.org>
17150
17151         wcscspn: Move AC_LIBOBJ invocations to module description.
17152         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17153         here...
17154         * modules/wcscspn (configure.ac): ... to here.
17155
17156 2011-05-22  Bruno Haible  <bruno@clisp.org>
17157
17158         wcscpy: Move AC_LIBOBJ invocations to module description.
17159         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17160         * modules/wcscpy (configure.ac): ... to here.
17161
17162 2011-05-22  Bruno Haible  <bruno@clisp.org>
17163
17164         wcscoll: Move AC_LIBOBJ invocations to module description.
17165         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17166         here...
17167         * modules/wcscoll (configure.ac): ... to here.
17168
17169 2011-05-22  Bruno Haible  <bruno@clisp.org>
17170
17171         wcscmp: Move AC_LIBOBJ invocations to module description.
17172         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17173         * modules/wcscmp (configure.ac): ... to here.
17174
17175 2011-05-22  Bruno Haible  <bruno@clisp.org>
17176
17177         wcschr: Move AC_LIBOBJ invocations to module description.
17178         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17179         * modules/wcschr (configure.ac): ... to here.
17180
17181 2011-05-22  Bruno Haible  <bruno@clisp.org>
17182
17183         wcscat: Move AC_LIBOBJ invocations to module description.
17184         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17185         * modules/wcscat (configure.ac): ... to here.
17186
17187 2011-05-22  Bruno Haible  <bruno@clisp.org>
17188
17189         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17190         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17191         here...
17192         * modules/wcscasecmp (configure.ac): ... to here.
17193
17194 2011-05-22  Bruno Haible  <bruno@clisp.org>
17195
17196         wcrtomb: Move AC_LIBOBJ invocations to module description.
17197         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17198         invocations from here...
17199         * modules/wcrtomb (configure.ac): ... to here.
17200
17201 2011-05-22  Bruno Haible  <bruno@clisp.org>
17202
17203         wcpncpy: Move AC_LIBOBJ invocations to module description.
17204         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17205         here...
17206         * modules/wcpncpy (configure.ac): ... to here.
17207
17208 2011-05-22  Bruno Haible  <bruno@clisp.org>
17209
17210         wcpcpy: Move AC_LIBOBJ invocations to module description.
17211         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17212         * modules/wcpcpy (configure.ac): ... to here.
17213
17214 2011-05-22  Bruno Haible  <bruno@clisp.org>
17215
17216         waitpid: Move AC_LIBOBJ invocations to module description.
17217         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17218         invocation from here...
17219         * modules/waitpid (configure.ac): ... to here.
17220
17221 2011-05-22  Bruno Haible  <bruno@clisp.org>
17222
17223         utimensat: Move AC_LIBOBJ invocations to module description.
17224         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17225         here...
17226         * modules/utimensat (configure.ac): ... to here.
17227
17228 2011-05-22  Bruno Haible  <bruno@clisp.org>
17229
17230         usleep: Move AC_LIBOBJ invocations to module description.
17231         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17232         here...
17233         * modules/usleep (configure.ac): ... to here.
17234
17235 2011-05-22  Bruno Haible  <bruno@clisp.org>
17236
17237         unlockpt: Move AC_LIBOBJ invocations to module description.
17238         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17239         gl_PREREQ_UNLOCKPT invocations from here...
17240         * modules/unlockpt (configure.ac): ... to here.
17241
17242 2011-05-22  Bruno Haible  <bruno@clisp.org>
17243
17244         unlink: Respect rules for use of AC_LIBOBJ.
17245         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17246         * modules/unlink (configure.ac): ... to here.
17247
17248 2011-05-22  Bruno Haible  <bruno@clisp.org>
17249
17250         uname: Move AC_LIBOBJ invocations to module description.
17251         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17253         here...
17254         * modules/uname (configure.ac): ... to here.
17255
17256 2011-05-22  Bruno Haible  <bruno@clisp.org>
17257
17258         ttyname_r: Move AC_LIBOBJ invocations to module description.
17259         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17260         gl_PREREQ_TTYNAME_R invocations from here...
17261         * modules/ttyname_r (configure.ac): ... to here.
17262
17263 2011-05-22  Bruno Haible  <bruno@clisp.org>
17264
17265         tsearch: Move AC_LIBOBJ invocations to module description.
17266         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17267         invocations from here...
17268         * modules/tsearch (configure.ac): ... to here.
17269
17270 2011-05-22  Bruno Haible  <bruno@clisp.org>
17271
17272         towctrans: Move AC_LIBOBJ invocations to module description.
17273         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17274         AC_LIBOBJ invocation from here...
17275         * modules/towctrans (configure.ac): ... to here.
17276
17277 2011-05-22  Bruno Haible  <bruno@clisp.org>
17278
17279         tmpfile: Move AC_LIBOBJ invocations to module description.
17280         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17281         invocations from here...
17282         * modules/tmpfile (configure.ac): ... to here.
17283
17284 2011-05-22  Bruno Haible  <bruno@clisp.org>
17285
17286         times: Move AC_LIBOBJ invocations to module description.
17287         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17288         * modules/times (configure.ac): ... to here.
17289
17290 2011-05-22  Bruno Haible  <bruno@clisp.org>
17291
17292         time_r: Move AC_LIBOBJ invocations to module description.
17293         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17294         invocations from here...
17295         * modules/time_r (configure.ac): ... to here.
17296
17297 2011-05-22  Bruno Haible  <bruno@clisp.org>
17298
17299         timegm: Move AC_LIBOBJ invocations to module description.
17300         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17301         invocations from here...
17302         * modules/timegm (configure.ac): ... to here.
17303
17304 2011-05-22  Bruno Haible  <bruno@clisp.org>
17305
17306         tcgetsid: Move AC_LIBOBJ invocations to module description.
17307         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17308         and gl_PREREQ_TCGETSID invocations from here...
17309         * modules/tcgetsid (configure.ac): ... to here.
17310         (Depends-on): Update conditions.
17311
17312 2011-05-22  Bruno Haible  <bruno@clisp.org>
17313
17314         symlinkat: Move AC_LIBOBJ invocations to module description.
17315         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17316         here...
17317         * modules/symlinkat (configure.ac): ... to here.
17318
17319 2011-05-22  Bruno Haible  <bruno@clisp.org>
17320
17321         symlink: Move AC_LIBOBJ invocations to module description.
17322         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17323         here...
17324         * modules/symlink (configure.ac): ... to here.
17325
17326 2011-05-22  Bruno Haible  <bruno@clisp.org>
17327
17328         strverscmp: Move AC_LIBOBJ invocations to module description.
17329         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17330         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17331         from here...
17332         * modules/strverscmp (configure.ac): ... to here.
17333
17334 2011-05-22  Bruno Haible  <bruno@clisp.org>
17335
17336         strtok_r: Move AC_LIBOBJ invocations to module description.
17337         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17338         and gl_PREREQ_STRTOK_R invocations from here...
17339         * modules/strtok_r (configure.ac): ... to here.
17340         (Depends-on): Update conditions.
17341
17342 2011-05-22  Bruno Haible  <bruno@clisp.org>
17343
17344         strtoumax: Move AC_LIBOBJ invocations to module description.
17345         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17346         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17347         from here...
17348         * modules/strtoumax (configure.ac): ... to here.
17349
17350 2011-05-22  Bruno Haible  <bruno@clisp.org>
17351
17352         strtoimax: Move AC_LIBOBJ invocations to module description.
17353         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17355         from here...
17356         * modules/strtoimax (configure.ac): ... to here.
17357
17358 2011-05-22  Bruno Haible  <bruno@clisp.org>
17359
17360         strtoull: Move AC_LIBOBJ invocations to module description.
17361         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17362         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17363         from here...
17364         * modules/strtoull (configure.ac): ... to here.
17365
17366 2011-05-22  Bruno Haible  <bruno@clisp.org>
17367
17368         strtoll: Move AC_LIBOBJ invocations to module description.
17369         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17370         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17371         here...
17372         * modules/strtoll (configure.ac): ... to here.
17373
17374 2011-05-22  Bruno Haible  <bruno@clisp.org>
17375
17376         strtoul: Move AC_LIBOBJ invocations to module description.
17377         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17378         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17379         * modules/strtoul (configure.ac): ... to here.
17380
17381 2011-05-22  Bruno Haible  <bruno@clisp.org>
17382
17383         strtol: Move AC_LIBOBJ invocations to module description.
17384         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17385         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17386         * modules/strtol (configure.ac): ... to here.
17387
17388 2011-05-22  Bruno Haible  <bruno@clisp.org>
17389
17390         strtod: Move AC_LIBOBJ invocations to module description.
17391         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17392         invocations from here...
17393         * modules/strtod (configure.ac): ... to here.
17394
17395 2011-05-22  Bruno Haible  <bruno@clisp.org>
17396
17397         strstr*: Move AC_LIBOBJ invocations to module description.
17398         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17399         invocations from here...
17400         * modules/strstr-simple (configure.ac): ... to here.
17401         * modules/strstr (configure.ac): ... and here.
17402
17403 2011-05-22  Bruno Haible  <bruno@clisp.org>
17404
17405         strsignal: Move AC_LIBOBJ invocations to module description.
17406         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17407         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17408         * modules/strsignal (configure.ac): ... to here.
17409         (Depends-on): Update conditions.
17410
17411 2011-05-22  Bruno Haible  <bruno@clisp.org>
17412
17413         strsep: Move AC_LIBOBJ invocations to module description.
17414         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17415         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17416         here...
17417         * modules/strsep (configure.ac): ... to here.
17418
17419 2011-05-22  Bruno Haible  <bruno@clisp.org>
17420
17421         strptime: Move AC_LIBOBJ invocations to module description.
17422         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17423         gl_PREREQ_STRPTIME invocations from here...
17424         * modules/strptime (configure.ac): ... to here.
17425
17426 2011-05-22  Bruno Haible  <bruno@clisp.org>
17427
17428         strpbrk: Move AC_LIBOBJ invocations to module description.
17429         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17430         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17431         here...
17432         * modules/strpbrk (configure.ac): ... to here.
17433
17434 2011-05-22  Bruno Haible  <bruno@clisp.org>
17435
17436         strnlen: Move AC_LIBOBJ invocations to module description.
17437         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17438         invocations from here...
17439         * modules/strnlen (configure.ac): ... to here.
17440
17441 2011-05-22  Bruno Haible  <bruno@clisp.org>
17442
17443         strndup: Move AC_LIBOBJ invocations to module description.
17444         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17445         invocations from here...
17446         * modules/strndup (configure.ac): ... to here.
17447         (Depends-on): Update conditions.
17448
17449 2011-05-22  Bruno Haible  <bruno@clisp.org>
17450
17451         strncat: Move AC_LIBOBJ invocations to module description.
17452         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17453         invocations from here...
17454         * modules/strncat (configure.ac): ... to here.
17455
17456 2011-05-22  Bruno Haible  <bruno@clisp.org>
17457
17458         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17459         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17460         invocations from here...
17461         * modules/strdup (configure.ac): ... to here.
17462         * modules/strdup-posix (configure.ac): ... and here.
17463
17464 2011-05-22  Bruno Haible  <bruno@clisp.org>
17465
17466         strcspn: Move AC_LIBOBJ invocations to module description.
17467         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17468         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17469         here...
17470         * modules/strcspn (configure.ac): ... to here.
17471
17472 2011-05-22  Bruno Haible  <bruno@clisp.org>
17473
17474         strchrnul: Move AC_LIBOBJ invocations to module description.
17475         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17476         gl_PREREQ_STRCHRNUL invocations from here...
17477         * modules/strchrnul (configure.ac): ... to here.
17478
17479 2011-05-22  Bruno Haible  <bruno@clisp.org>
17480
17481         strcasestr*: Move AC_LIBOBJ invocations to module description.
17482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17483         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17484         * modules/strcasestr-simple (configure.ac): ... to here.
17485         * modules/strcasestr (configure.ac): ... and here.
17486
17487 2011-05-22  Bruno Haible  <bruno@clisp.org>
17488
17489         strcase: Move AC_LIBOBJ invocations to module description.
17490         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17491         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17492         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17493         gl_PREREQ_STRNCASECMP invocations from here...
17494         * modules/strcase (configure.ac): ... to here.
17495
17496 2011-05-22  Bruno Haible  <bruno@clisp.org>
17497
17498         stpncpy: Move AC_LIBOBJ invocations to module description.
17499         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17500         here...
17501         * modules/stpncpy (configure.ac): ... to here.
17502
17503 2011-05-22  Bruno Haible  <bruno@clisp.org>
17504
17505         stpcpy: Move AC_LIBOBJ invocations to module description.
17506         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17508         here...
17509         * modules/stpcpy (configure.ac): ... to here.
17510
17511 2011-05-21  Bruno Haible  <bruno@clisp.org>
17512
17513         stat: Move AC_LIBOBJ invocations to module description.
17514         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17515         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17516         here...
17517         * modules/stat (configure.ac): ... to here.
17518
17519 2011-05-21  Bruno Haible  <bruno@clisp.org>
17520
17521         sleep: Move AC_LIBOBJ invocations to module description.
17522         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17523         * modules/sleep (configure.ac): ... to here.
17524
17525 2011-05-21  Bruno Haible  <bruno@clisp.org>
17526
17527         signbit: Move AC_LIBOBJ invocations to module description.
17528         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17529         * modules/signbit (configure.ac): ... to here.
17530
17531 2011-05-21  Bruno Haible  <bruno@clisp.org>
17532
17533         sigprocmask: Move AC_LIBOBJ invocations to module description.
17534         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17535         gl_PREREQ_SIGPROMASK invocations from here...
17536         * modules/sigprocmask (configure.ac): ... to here.
17537
17538 2011-05-21  Bruno Haible  <bruno@clisp.org>
17539
17540         sigaction: Move AC_LIBOBJ invocations to module description.
17541         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17542         gl_PREREQ_SIGACTION invocations from here...
17543         * modules/sigaction (configure.ac): ... to here.
17544
17545 2011-05-21  Bruno Haible  <bruno@clisp.org>
17546
17547         sig2str: Move AC_LIBOBJ invocations to module description.
17548         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17549         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17550         here...
17551         * modules/sig2str (configure.ac): ... to here.
17552
17553 2011-05-21  Bruno Haible  <bruno@clisp.org>
17554
17555         setlocale: Move AC_LIBOBJ invocations to module description.
17556         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17557         gl_PREREQ_SETLOCALE invocations from here...
17558         * modules/setlocale (configure.ac): ... to here.
17559
17560 2011-05-21  Bruno Haible  <bruno@clisp.org>
17561
17562         unsetenv: Move AC_LIBOBJ invocations to module description.
17563         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17564         and gl_PREREQ_UNSETENV invocations from here...
17565         * modules/unsetenv (configure.ac): ... to here.
17566         (Depends-on): Update.
17567
17568 2011-05-21  Bruno Haible  <bruno@clisp.org>
17569
17570         setenv: Move AC_LIBOBJ invocations to module description.
17571         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17572         here...
17573         * modules/setenv (configure.ac): ... to here.
17574
17575 2011-05-21  Bruno Haible  <bruno@clisp.org>
17576
17577         selinux-h: Move AC_LIBOBJ invocations to module description.
17578         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17579         AC_LIBOBJ invocation from here...
17580         * modules/selinux-h (configure.ac): ... to here.
17581
17582 2011-05-21  Bruno Haible  <bruno@clisp.org>
17583
17584         select: Respect rules for use of AC_LIBOBJ.
17585         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17586         here...
17587         * modules/select (configure.ac): ... to here.
17588
17589 2011-05-21  Bruno Haible  <bruno@clisp.org>
17590
17591         scandir: Move AC_LIBOBJ invocations to module description.
17592         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17593         invocations from here...
17594         * modules/scandir (configure.ac): ... to here.
17595
17596 2011-05-21  Bruno Haible  <bruno@clisp.org>
17597
17598         rpmatch: Move AC_LIBOBJ invocations to module description.
17599         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17600         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17601         here...
17602         * modules/rpmatch (configure.ac): ... to here.
17603
17604 2011-05-21  Bruno Haible  <bruno@clisp.org>
17605
17606         rmdir: Respect rules for use of AC_LIBOBJ.
17607         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17608         * modules/rmdir (configure.ac): ... to here.
17609
17610 2011-05-21  Bruno Haible  <bruno@clisp.org>
17611
17612         renameat: Move AC_LIBOBJ invocations to module description.
17613         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17614         here...
17615         * modules/renameat (configure.ac): ... to here.
17616
17617 2011-05-21  Bruno Haible  <bruno@clisp.org>
17618
17619         rename: Respect rules for use of AC_LIBOBJ.
17620         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17621         here...
17622         * modules/rename (configure.ac): ... to here.
17623
17624 2011-05-21  Bruno Haible  <bruno@clisp.org>
17625
17626         remove: Move AC_LIBOBJ invocations to module description.
17627         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17628         here...
17629         * modules/remove (configure.ac): ... to here.
17630
17631 2011-05-21  Bruno Haible  <bruno@clisp.org>
17632
17633         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17634         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17635         macro.
17636         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17637         * modules/relocatable-lib (configure.ac): ... to here.
17638         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17639         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17640
17641 2011-05-21  Bruno Haible  <bruno@clisp.org>
17642
17643         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17644         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17645         here...
17646         * modules/relocatable-prog (configure.ac): ... to here.
17647
17648 2011-05-21  Bruno Haible  <bruno@clisp.org>
17649
17650         regex: Move AC_LIBOBJ invocations to module description.
17651         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17652         invocations from here...
17653         * modules/regex (configure.ac): ... to here.
17654
17655 2011-05-21  Bruno Haible  <bruno@clisp.org>
17656
17657         realloc-*: Move AC_LIBOBJ invocations to module description.
17658         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17659         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17660         AC_LIBOBJ invocations from here...
17661         * modules/realloc-gnu (configure.ac): ... to here.
17662         * modules/realloc-posix (configure.ac): ... and here.
17663
17664 2011-05-21  Bruno Haible  <bruno@clisp.org>
17665
17666         readutmp: Move AC_LIBOBJ invocations to module description.
17667         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17668         * modules/readutmp (configure.ac): ... to here.
17669
17670 2011-05-21  Bruno Haible  <bruno@clisp.org>
17671
17672         readlinkat: Move AC_LIBOBJ invocations to module description.
17673         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17674         here...
17675         * modules/readlinkat (configure.ac): ... to here.
17676
17677 2011-05-21  Bruno Haible  <bruno@clisp.org>
17678
17679         readlink: Move AC_LIBOBJ invocations to module description.
17680         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17681         gl_PREREQ_READLINK invocations from here...
17682         * modules/readlink (configure.ac): ... to here.
17683
17684 2011-05-21  Bruno Haible  <bruno@clisp.org>
17685
17686         readline: Move AC_LIBOBJ invocations to module description.
17687         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17688         gl_PREREQ_READLINE invocations from here...
17689         * modules/readline (configure.ac): ... to here.
17690
17691 2011-05-21  Bruno Haible  <bruno@clisp.org>
17692
17693         read: Move AC_LIBOBJ invocations to module description.
17694         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17695         * modules/read (configure.ac): ... to here.
17696
17697 2011-05-21  Bruno Haible  <bruno@clisp.org>
17698
17699         rawmemchr: Move AC_LIBOBJ invocations to module description.
17700         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17701         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17702         from here...
17703         * modules/rawmemchr (configure.ac): ... to here.
17704
17705 2011-05-21  Bruno Haible  <bruno@clisp.org>
17706
17707         random_r: Move AC_LIBOBJ invocations to module description.
17708         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17709         gl_PREREQ_RANDOM_R invocations from here...
17710         * modules/random_r (configure.ac): ... to here.
17711
17712 2011-05-21  Bruno Haible  <bruno@clisp.org>
17713
17714         pwrite: Move AC_LIBOBJ invocations to module description.
17715         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17716         * modules/pwrite (configure.ac): ... to here.
17717
17718 2011-05-21  Bruno Haible  <bruno@clisp.org>
17719
17720         putenv: Move AC_LIBOBJ invocations to module description.
17721         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17722         * modules/putenv (configure.ac): ... to here.
17723
17724 2011-05-21  Bruno Haible  <bruno@clisp.org>
17725
17726         login_tty: Move AC_LIBOBJ invocations to module description.
17727         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17728         * modules/login_tty (configure.ac): ... to here.
17729
17730 2011-05-21  Bruno Haible  <bruno@clisp.org>
17731
17732         openpty: Move AC_LIBOBJ invocations to module description.
17733         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17734         * modules/openpty (configure.ac): ... to here.
17735
17736 2011-05-21  Bruno Haible  <bruno@clisp.org>
17737
17738         forkpty: Move AC_LIBOBJ invocations to module description.
17739         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17740         * modules/forkpty (configure.ac): ... to here.
17741
17742 2011-05-21  Bruno Haible  <bruno@clisp.org>
17743
17744         ptsname: Move AC_LIBOBJ invocations to module description.
17745         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17746         invocations from here...
17747         * modules/ptsname (configure.ac): ... to here.
17748
17749 2011-05-21  Bruno Haible  <bruno@clisp.org>
17750
17751         pread: Move AC_LIBOBJ invocations to module description.
17752         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17753         * modules/pread (configure.ac): ... to here.
17754
17755 2011-05-21  Bruno Haible  <bruno@clisp.org>
17756
17757         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17758         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17759         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17760         * modules/posix_spawn (configure.ac): ... to here.
17761         * modules/posix_spawnp (configure.ac): ... and here.
17762
17763 2011-05-21  Bruno Haible  <bruno@clisp.org>
17764
17765         popen: Move AC_LIBOBJ invocations to module description.
17766         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17767         invocations from here...
17768         * modules/popen (configure.ac): ... to here.
17769
17770 2011-05-21  Bruno Haible  <bruno@clisp.org>
17771
17772         poll: Move AC_LIBOBJ invocations to module description.
17773         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17774         invocations from here...
17775         * modules/poll (configure.ac): ... to here.
17776
17777 2011-05-21  Bruno Haible  <bruno@clisp.org>
17778
17779         pipe-posix: Move AC_LIBOBJ invocations to module description.
17780         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17781         * modules/pipe-posix (configure.ac): ... to here.
17782
17783 2011-05-21  Bruno Haible  <bruno@clisp.org>
17784
17785         openat: Respect rules for use of AC_LIBOBJ.
17786         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17787         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17788         * modules/openat (configure.ac): ... to here.
17789
17790 2011-05-21  Bruno Haible  <bruno@clisp.org>
17791
17792         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17793         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17794         invocation from here...
17795         * modules/obstack-printf (configure.ac): ... to here.
17796         * modules/obstack-printf-posix (configure.ac): ... and here.
17797
17798 2011-05-21  Bruno Haible  <bruno@clisp.org>
17799
17800         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17801         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17802         from here...
17803         * modules/nl_langinfo (configure.ac): ... to here.
17804
17805 2011-05-21  Bruno Haible  <bruno@clisp.org>
17806
17807         nanosleep: Move AC_LIBOBJ invocations to module description.
17808         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17809         gl_PREREQ_NANOSLEEP invocations from here...
17810         * modules/nanosleep (configure.ac): ... to here.
17811
17812 2011-05-21  Bruno Haible  <bruno@clisp.org>
17813
17814         mountlist: Move AC_LIBOBJ invocations to module description.
17815         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17816         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17817         * modules/mountlist (configure.ac): ... to here.
17818
17819 2011-05-21  Bruno Haible  <bruno@clisp.org>
17820
17821         mktime: Respect rules for use of AC_LIBOBJ.
17822         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17823         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17824         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17825         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17826         * modules/mktime (configure.ac): ... to here.
17827         * modules/mktime-internal (configure.ac): ... and here.
17828         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17829
17830 2011-05-21  Bruno Haible  <bruno@clisp.org>
17831
17832         mkstemps: Move AC_LIBOBJ invocations to module description.
17833         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17834         here...
17835         * modules/mkstemps (configure.ac): ... to here.
17836
17837 2011-05-21  Bruno Haible  <bruno@clisp.org>
17838
17839         mkstemp: Move AC_LIBOBJ invocations to module description.
17840         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17841         gl_PREREQ_MKSTEMP invocations from here...
17842         * modules/mkstemp (configure.ac): ... to here.
17843
17844 2011-05-21  Bruno Haible  <bruno@clisp.org>
17845
17846         mkostemps: Move AC_LIBOBJ invocations to module description.
17847         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17848         here...
17849         * modules/mkostemps (configure.ac): ... to here.
17850
17851 2011-05-21  Bruno Haible  <bruno@clisp.org>
17852
17853         mkostemp: Move AC_LIBOBJ invocations to module description.
17854         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17855         gl_PREREQ_MKOSTEMP invocations from here...
17856         * modules/mkostemp (configure.ac): ... to here.
17857
17858 2011-05-21  Bruno Haible  <bruno@clisp.org>
17859
17860         mknod: Move AC_LIBOBJ invocations to module description.
17861         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17862         * modules/mknod (configure.ac): ... to here.
17863
17864 2011-05-21  Bruno Haible  <bruno@clisp.org>
17865
17866         mkfifoat: Move AC_LIBOBJ invocations to module description.
17867         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17868         here...
17869         * modules/mkfifoat (configure.ac): ... to here.
17870
17871 2011-05-21  Bruno Haible  <bruno@clisp.org>
17872
17873         mkfifo: Respect rules for use of AC_LIBOBJ.
17874         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17875         here...
17876         * modules/mkfifo (configure.ac): ... to here.
17877
17878 2011-05-21  Bruno Haible  <bruno@clisp.org>
17879
17880         mkdtemp: Move AC_LIBOBJ invocations to module description.
17881         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17882         invocations from here...
17883         * modules/mkdtemp (configure.ac): ... to here.
17884
17885 2011-05-21  Bruno Haible  <bruno@clisp.org>
17886
17887         mkdir: Move AC_LIBOBJ invocations to module description.
17888         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17889         * modules/mkdir (configure.ac): ... to here.
17890
17891 2011-05-21  Bruno Haible  <bruno@clisp.org>
17892
17893         memset: Move AC_LIBOBJ invocations to module description.
17894         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17896         here...
17897         * modules/memset (configure.ac): ... to here.
17898
17899 2011-05-21  Bruno Haible  <bruno@clisp.org>
17900
17901         memrchr: Move AC_LIBOBJ invocations to module description.
17902         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17904         here...
17905         * modules/memrchr (configure.ac): ... to here.
17906
17907 2011-05-21  Bruno Haible  <bruno@clisp.org>
17908
17909         mempcpy: Move AC_LIBOBJ invocations to module description.
17910         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17912         here...
17913         * modules/mempcpy (configure.ac): ... to here.
17914
17915 2011-05-21  Bruno Haible  <bruno@clisp.org>
17916
17917         memmove: Move AC_LIBOBJ invocations to module description.
17918         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17920         here...
17921         * modules/memmove (configure.ac): ... to here.
17922
17923 2011-05-21  Bruno Haible  <bruno@clisp.org>
17924
17925         memmem*: Move AC_LIBOBJ invocations to module description.
17926         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17927         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17928         here...
17929         (gl_FUNC_MEMMEM): ... and here...
17930         * modules/memmem-simple (configure.ac): ... to here.
17931         * modules/memmem (configure.ac): ... and here.
17932
17933 2011-05-21  Bruno Haible  <bruno@clisp.org>
17934
17935         memcpy: Move AC_LIBOBJ invocations to module description.
17936         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17938         here...
17939         * modules/memcpy (configure.ac): ... to here.
17940
17941 2011-05-21  Bruno Haible  <bruno@clisp.org>
17942
17943         memcmp: Simplify autoconf macro.
17944         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17945         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17946         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17947
17948 2011-05-21  Bruno Haible  <bruno@clisp.org>
17949
17950         memcmp: Move AC_LIBOBJ invocations to module description.
17951         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17952         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17953         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17954         * modules/memcmp (configure.ac): ... to here.
17955         (Depends-on): Update conditions.
17956
17957 2011-05-21  Bruno Haible  <bruno@clisp.org>
17958
17959         memchr: Respect rules for use of AC_LIBOBJ.
17960         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17961         invocations from here...
17962         * modules/memchr (configure.ac): ... to here.
17963
17964 2011-05-21  Bruno Haible  <bruno@clisp.org>
17965
17966         mbtowc: Move AC_LIBOBJ invocations to module description.
17967         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17968         invocations from here...
17969         * modules/mbtowc (configure.ac): ... to here.
17970
17971 2011-05-21  Bruno Haible  <bruno@clisp.org>
17972
17973         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17974         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17975         gl_PREREQ_MBSRTOWCS invocations from here...
17976         * modules/mbsrtowcs (configure.ac): ... to here.
17977
17978 2011-05-21  Bruno Haible  <bruno@clisp.org>
17979
17980         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17981         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17982         gl_PREREQ_MBSNRTOWCS invocations from here...
17983         * modules/mbsnrtowcs (configure.ac): ... to here.
17984
17985 2011-05-21  Bruno Haible  <bruno@clisp.org>
17986
17987         mbsinit: Move AC_LIBOBJ invocations to module description.
17988         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17989         invocations from here...
17990         * modules/mbsinit (configure.ac): ... to here.
17991
17992 2011-05-21  Bruno Haible  <bruno@clisp.org>
17993
17994         mbrlen: Move AC_LIBOBJ invocations to module description.
17995         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17996         invocations from here...
17997         * modules/mbrlen (configure.ac): ... to here.
17998
17999 2011-05-21  Bruno Haible  <bruno@clisp.org>
18000
18001         mbrtowc: Respect rules for use of AC_LIBOBJ.
18002         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18003         invocations from here...
18004         * modules/mbrtowc (configure.ac): ... to here.
18005
18006 2011-05-21  Bruno Haible  <bruno@clisp.org>
18007
18008         malloc-*: Move AC_LIBOBJ invocations to module description.
18009         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18010         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18011         AC_LIBOBJ invocations from here...
18012         * modules/malloc-gnu (configure.ac): ... to here.
18013         * modules/malloc-posix (configure.ac): ... and here.
18014
18015 2011-05-21  Bruno Haible  <bruno@clisp.org>
18016
18017         lstat, openat: Respect rules for use of AC_LIBOBJ.
18018         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18019         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18020         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18021         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18022         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18023         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18024         here.
18025         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18026
18027 2011-05-21  Bruno Haible  <bruno@clisp.org>
18028
18029         lseek: Move AC_LIBOBJ invocations to module description.
18030         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18031         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18032         * modules/lseek (configure.ac): ... to here.
18033
18034 2011-05-21  Bruno Haible  <bruno@clisp.org>
18035
18036         linkat: Move AC_LIBOBJ invocations to module description.
18037         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18038         here...
18039         * modules/linkat (configure.ac): ... to here.
18040
18041 2011-05-21  Bruno Haible  <bruno@clisp.org>
18042
18043         link: Respect rules for use of AC_LIBOBJ.
18044         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18045         * modules/link (configure.ac): ... to here.
18046
18047 2011-05-21  Bruno Haible  <bruno@clisp.org>
18048
18049         lchown: Move AC_LIBOBJ invocations to module description.
18050         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18051         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18052         * modules/lchown (configure.ac): ... to here.
18053
18054 2011-05-21  Bruno Haible  <bruno@clisp.org>
18055
18056         iswctype: Move AC_LIBOBJ invocations to module description.
18057         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18058         here...
18059         * modules/iswctype (configure.ac): ... to here.
18060
18061 2011-05-21  Bruno Haible  <bruno@clisp.org>
18062
18063         iswblank: Move AC_LIBOBJ invocations to module description.
18064         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18065         here...
18066         * modules/iswblank (configure.ac): ... to here.
18067
18068 2011-05-21  Bruno Haible  <bruno@clisp.org>
18069
18070         atanl: Move AC_LIBOBJ invocations to module description.
18071         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18072         * modules/atanl (configure.ac): ... to here.
18073
18074 2011-05-21  Bruno Haible  <bruno@clisp.org>
18075
18076         acosl: Move AC_LIBOBJ invocations to module description.
18077         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18078         * modules/acosl (configure.ac): ... to here.
18079
18080 2011-05-21  Bruno Haible  <bruno@clisp.org>
18081
18082         asinl: Respect rules for use of AC_LIBOBJ.
18083         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18084         * modules/asinl (configure.ac): ... to here.
18085
18086 2011-05-21  Bruno Haible  <bruno@clisp.org>
18087
18088         tanl: Move AC_LIBOBJ invocations to module description.
18089         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18090         * modules/tanl (configure.ac): ... to here.
18091
18092 2011-05-21  Bruno Haible  <bruno@clisp.org>
18093
18094         cosl: Move AC_LIBOBJ invocations to module description.
18095         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18096         * modules/cosl (configure.ac): ... to here.
18097
18098 2011-05-21  Bruno Haible  <bruno@clisp.org>
18099
18100         sinl: Move AC_LIBOBJ invocations to module description.
18101         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18102         * modules/sinl (configure.ac): ... to here.
18103
18104 2011-05-21  Bruno Haible  <bruno@clisp.org>
18105
18106         logl: Move AC_LIBOBJ invocations to module description.
18107         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18108         * modules/logl (configure.ac): ... to here.
18109
18110 2011-05-21  Bruno Haible  <bruno@clisp.org>
18111
18112         expl: Move AC_LIBOBJ invocations to module description.
18113         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18114         * modules/expl (configure.ac): ... to here.
18115
18116 2011-05-21  Bruno Haible  <bruno@clisp.org>
18117
18118         roundl: Move AC_LIBOBJ invocations to module description.
18119         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18120         * modules/roundl (configure.ac): ... to here.
18121
18122 2011-05-21  Bruno Haible  <bruno@clisp.org>
18123
18124         round: Move AC_LIBOBJ invocations to module description.
18125         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18126         * modules/round (configure.ac): ... to here.
18127
18128 2011-05-21  Bruno Haible  <bruno@clisp.org>
18129
18130         roundf: Move AC_LIBOBJ invocations to module description.
18131         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18132         * modules/roundf (configure.ac): ... to here.
18133
18134 2011-05-21  Bruno Haible  <bruno@clisp.org>
18135
18136         truncl: Move AC_LIBOBJ invocations to module description.
18137         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18138         * modules/truncl (configure.ac): ... to here.
18139
18140 2011-05-21  Bruno Haible  <bruno@clisp.org>
18141
18142         trunc: Move AC_LIBOBJ invocations to module description.
18143         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18144         * modules/trunc (configure.ac): ... to here.
18145
18146 2011-05-21  Bruno Haible  <bruno@clisp.org>
18147
18148         truncf: Move AC_LIBOBJ invocations to module description.
18149         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18150         * modules/truncf (configure.ac): ... to here.
18151
18152 2011-05-21  Bruno Haible  <bruno@clisp.org>
18153
18154         ceill: Move AC_LIBOBJ invocations to module description.
18155         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18156         * modules/ceill (configure.ac): ... to here.
18157
18158 2011-05-21  Bruno Haible  <bruno@clisp.org>
18159
18160         ceil: Move AC_LIBOBJ invocations to module description.
18161         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18162         * modules/ceil (configure.ac): ... to here.
18163
18164 2011-05-21  Bruno Haible  <bruno@clisp.org>
18165
18166         ceilf: Move AC_LIBOBJ invocations to module description.
18167         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18168         * modules/ceilf (configure.ac): ... to here.
18169
18170 2011-05-21  Bruno Haible  <bruno@clisp.org>
18171
18172         floorl: Respect rules for use of AC_LIBOBJ.
18173         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18174         * modules/floorl (configure.ac): ... to here.
18175
18176 2011-05-21  Bruno Haible  <bruno@clisp.org>
18177
18178         floor: Respect rules for use of AC_LIBOBJ.
18179         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18180         * modules/floor (configure.ac): ... to here.
18181
18182 2011-05-21  Bruno Haible  <bruno@clisp.org>
18183
18184         floorf: Move AC_LIBOBJ invocations to module description.
18185         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18186         * modules/floorf (configure.ac): ... to here.
18187
18188 2011-05-20  Bruno Haible  <bruno@clisp.org>
18189
18190         sqrtl: Respect rules for use of AC_LIBOBJ.
18191         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18192         * modules/sqrtl (configure.ac): ... to here.
18193
18194 2011-05-20  Bruno Haible  <bruno@clisp.org>
18195
18196         ldexpl: Respect rules for use of AC_LIBOBJ.
18197         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18198         * modules/ldexpl (configure.ac): ... to here.
18199
18200 2011-05-20  Bruno Haible  <bruno@clisp.org>
18201
18202         frexpl*: Respect rules for use of AC_LIBOBJ.
18203         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18204         invocation from here...
18205         * modules/frexpl (configure.ac): ... to here.
18206         * modules/frexpl-nolibm (configure.ac): ... and here.
18207
18208 2011-05-20  Bruno Haible  <bruno@clisp.org>
18209
18210         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18211         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18212         invocation from here...
18213         * modules/frexp (configure.ac): ... to here.
18214         * modules/frexp-nolibm (configure.ac): ... and here.
18215
18216 2011-05-20  Bruno Haible  <bruno@clisp.org>
18217
18218         isnan: Respect rules for use of AC_LIBOBJ.
18219         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18220         invocations here.
18221         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18222         REPLACE_ISNAN.
18223         * modules/isnand (configure.ac): Likewise.
18224         * modules/isnanl (configure.ac): Likewise.
18225
18226 2011-05-20  Bruno Haible  <bruno@clisp.org>
18227
18228         isnanl*: Respect rules for use of AC_LIBOBJ.
18229         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18230         invocation from here...
18231         * modules/isnanl (configure.ac): ... to here.
18232         * modules/isnanl-nolibm (configure.ac): ... and here.
18233
18234 2011-05-20  Bruno Haible  <bruno@clisp.org>
18235
18236         isnand*: Move AC_LIBOBJ invocations to module description.
18237         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18238         invocation from here...
18239         * modules/isnand (configure.ac): ... to here.
18240         * modules/isnand-nolibm (configure.ac): ... and here.
18241
18242 2011-05-20  Bruno Haible  <bruno@clisp.org>
18243
18244         isnanf*: Move AC_LIBOBJ invocations to module description.
18245         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18246         invocation from here...
18247         * modules/isnanf (configure.ac): ... to here.
18248         * modules/isnanf-nolibm (configure.ac): ... and here.
18249
18250 2011-05-20  Bruno Haible  <bruno@clisp.org>
18251
18252         isnan*: Separate the AC_LIBOBJ invocations.
18253         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18254         AC_LIBOBJ invocation.
18255         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18256         here.
18257         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18258         AC_LIBOBJ invocation.
18259         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18260         here.
18261         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18262         AC_LIBOBJ invocation.
18263         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18264         here.
18265         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18266
18267 2011-05-08  Bruno Haible  <bruno@clisp.org>
18268
18269         isinf: Move AC_LIBOBJ invocations to module description.
18270         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18271         * modules/isinf (configure.ac): ... to here.
18272
18273 2011-05-08  Bruno Haible  <bruno@clisp.org>
18274
18275         isfinite: Move AC_LIBOBJ invocations to module description.
18276         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18277         * modules/isfinite (configure.ac): ... to here.
18278
18279 2011-05-08  Bruno Haible  <bruno@clisp.org>
18280
18281         isblank: Move AC_LIBOBJ invocations to module description.
18282         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18283         here...
18284         * modules/isblank (configure.ac): ... to here.
18285
18286 2011-05-08  Bruno Haible  <bruno@clisp.org>
18287
18288         isapipe: Move AC_LIBOBJ invocations to module description.
18289         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18290         gl_PREREQ_ISAPIPE invocations from here...
18291         * modules/isapipe (configure.ac): ... to here.
18292         (Depends-on): Update condition.
18293
18294 2011-05-08  Bruno Haible  <bruno@clisp.org>
18295
18296         ioctl: Move AC_LIBOBJ invocations to module description.
18297         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18298         invocations from here...
18299         * modules/ioctl (configure.ac): ... to here.
18300         (Depends-on): Update condition.
18301
18302 2011-05-08  Bruno Haible  <bruno@clisp.org>
18303
18304         imaxdiv: Move AC_LIBOBJ invocations to module description.
18305         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18306         invocations from here...
18307         * modules/imaxdiv (configure.ac): ... to here.
18308
18309 2011-05-08  Bruno Haible  <bruno@clisp.org>
18310
18311         imaxabs: Move AC_LIBOBJ invocations to module description.
18312         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18313         invocations from here...
18314         * modules/imaxabs (configure.ac): ... to here.
18315
18316 2011-05-08  Bruno Haible  <bruno@clisp.org>
18317
18318         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18320         AC_LIBOBJ invocations from here...
18321         * modules/getaddrinfo (configure.ac): ... to here.
18322         (Depends-on): Add conditions.
18323
18324 2011-05-08  Bruno Haible  <bruno@clisp.org>
18325
18326         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18327         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18328         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18329         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18330         (gl_PREREQ_INET_PTON): ... from here.
18331         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18332         gl_PREREQ_INET_PTON here.
18333         (Depends-on): Update condition.
18334
18335 2011-05-08  Bruno Haible  <bruno@clisp.org>
18336
18337         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18338         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18339         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18340         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18341         (gl_PREREQ_INET_NTOP): ... from here.
18342         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18343         gl_PREREQ_INET_NTOP here.
18344         (Depends-on): Update condition.
18345
18346 2011-05-08  Bruno Haible  <bruno@clisp.org>
18347
18348         iconv_open: Move AC_LIBOBJ invocations to module description.
18349         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18350         AC_LIBOBJ invocations from here...
18351         * modules/iconv_open (configure.ac): ... to here.
18352
18353 2011-05-08  Bruno Haible  <bruno@clisp.org>
18354
18355         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18356         If module 'iconv_open' is among the main modules and module
18357         'iconv_open-utf' is among the tests dependencies, then
18358         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18359         return the special iconv_t values. Therefore iconv() and iconv_close()
18360         must support these special iconv_t values, already in lib, not only in
18361         tests.
18362         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18363         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18364         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18365         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18366         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18367         (Depends-on): Add the dependencies of iconv_open-utf.
18368         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18369         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18370         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18371
18372 2011-05-08  Bruno Haible  <bruno@clisp.org>
18373
18374         group-member: Move AC_LIBOBJ invocations to module description.
18375         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18376         gl_PREREQ_GROUP_MEMBER invocations from here...
18377         * modules/group-member (configure.ac): ... to here.
18378
18379 2011-05-08  Bruno Haible  <bruno@clisp.org>
18380
18381         grantpt: Move AC_LIBOBJ invocations to module description.
18382         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18383         invocations from here...
18384         * modules/grantpt (configure.ac): ... to here.
18385
18386 2011-05-08  Bruno Haible  <bruno@clisp.org>
18387
18388         glob: Move AC_LIBOBJ invocations to module description.
18389         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18390         from here...
18391         * modules/glob (configure.ac): ... to here.
18392
18393 2011-05-08  Bruno Haible  <bruno@clisp.org>
18394
18395         getusershell: Move AC_LIBOBJ invocations to module description.
18396         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18397         Move AC_LIBOBJ invocation from here...
18398         * modules/getusershell (configure.ac): ... to here.
18399         (Depends-on): Update condition.
18400
18401 2011-05-08  Bruno Haible  <bruno@clisp.org>
18402
18403         gettimeofday: Move AC_LIBOBJ invocations to module description.
18404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18405         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18406         gl_PREREQ_GETTIMEOFDAY invocations from here...
18407         * modules/gettimeofday (configure.ac): ... to here.
18408
18409 2011-05-08  Bruno Haible  <bruno@clisp.org>
18410
18411         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18412         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18413         just gl_FUNC_TZSET.
18414         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18415         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18416         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18417         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18418
18419 2011-05-08  Bruno Haible  <bruno@clisp.org>
18420
18421         getsubopt: Move AC_LIBOBJ invocations to module description.
18422         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18423         gl_PREREQ_GETSUBOPT invocations from here...
18424         * modules/getsubopt (configure.ac): ... to here.
18425
18426 2011-05-08  Bruno Haible  <bruno@clisp.org>
18427
18428         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18429         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18430         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18431         * modules/getpass-gnu (configure.ac): ... to here.
18432
18433 2011-05-08  Bruno Haible  <bruno@clisp.org>
18434
18435         getpass: Move AC_LIBOBJ invocations to module description.
18436         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18437         gl_PREREQ_GETPASS invocations from here...
18438         * modules/getpass (configure.ac): ... to here.
18439
18440 2011-05-08  Bruno Haible  <bruno@clisp.org>
18441
18442         getpagesize: Move AC_LIBOBJ invocations to module description.
18443         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18444         from here...
18445         * modules/getpagesize (configure.ac): ... to here.
18446
18447 2011-05-08  Bruno Haible  <bruno@clisp.org>
18448
18449         getopt: Move AC_LIBOBJ invocations to module description.
18450         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18451         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18452         invocations from here...
18453         * modules/getopt-gnu (configure.ac): ... to here.
18454         * modules/getopt-posix (configure.ac): ... and here.
18455         (Depends-on): Update condition.
18456
18457 2011-05-08  Bruno Haible  <bruno@clisp.org>
18458
18459         getopt, argp: Respect rules for use of AC_LIBOBJ.
18460         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18461         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18462         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18463         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18464
18465 2011-05-08  Bruno Haible  <bruno@clisp.org>
18466
18467         getlogin_r: Move AC_LIBOBJ invocations to module description.
18468         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18469         gl_PREREQ_GETLOGIN_R invocations from here...
18470         * modules/getlogin_r (configure.ac): ... to here.
18471
18472 2011-05-08  Bruno Haible  <bruno@clisp.org>
18473
18474         getlogin: Move AC_LIBOBJ invocations to module description.
18475         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18476         here...
18477         * modules/getlogin (configure.ac): ... to here.
18478
18479 2011-05-08  Bruno Haible  <bruno@clisp.org>
18480
18481         getloadavg: Move AC_LIBOBJ invocations to module description.
18482         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18483         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18484         * modules/getloadavg (configure.ac): ... to here.
18485
18486 2011-05-08  Bruno Haible  <bruno@clisp.org>
18487
18488         gethrxtime: Move AC_LIBOBJ invocations to module description.
18489         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18490         LIB_GETHRXTIME from here...
18491         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18492         invocations from here...
18493         * modules/gethrxtime (configure.ac): ... to here.
18494
18495 2011-05-08  Bruno Haible  <bruno@clisp.org>
18496
18497         gethostname: Move AC_LIBOBJ invocations to module description.
18498         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18499         gl_PREREQ_GETHOSTNAME invocations from here...
18500         * modules/gethostname (configure.ac): ... to here.
18501
18502 2011-05-08  Bruno Haible  <bruno@clisp.org>
18503
18504         getgroups: Move AC_LIBOBJ invocations to module description.
18505         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18506         here...
18507         * modules/getgroups (configure.ac): ... to here.
18508
18509 2011-05-08  Bruno Haible  <bruno@clisp.org>
18510
18511         getdtablesize: Move AC_LIBOBJ invocations to module description.
18512         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18513         invocation from here...
18514         * modules/getdtablesize (configure.ac): ... to here.
18515
18516 2011-05-08  Bruno Haible  <bruno@clisp.org>
18517
18518         getdomainname: Move AC_LIBOBJ invocations to module description.
18519         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18520         gl_PREREQ_GETDOMAINNAME invocations from here...
18521         * modules/getdomainname (configure.ac): ... to here.
18522
18523 2011-05-08  Bruno Haible  <bruno@clisp.org>
18524
18525         getline: Move AC_LIBOBJ invocations to module description.
18526         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18527         invocations from here...
18528         * modules/getline (configure.ac): ... to here.
18529
18530 2011-05-08  Bruno Haible  <bruno@clisp.org>
18531
18532         getline: Simplify.
18533         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18534         It's already handled through the module dependency.
18535
18536 2011-05-08  Bruno Haible  <bruno@clisp.org>
18537
18538         getdelim: Move AC_LIBOBJ invocations to module description.
18539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18540         and gl_PREREQ_GETDELIM invocations from here...
18541         * modules/getdelim (configure.ac): ... to here.
18542         (Depends-on): Fix condition.
18543
18544 2011-05-08  Bruno Haible  <bruno@clisp.org>
18545
18546         getcwd: Move AC_LIBOBJ invocations to module description.
18547         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18548         invocations from here...
18549         * modules/getcwd (configure.ac): ... to here.
18550
18551 2011-05-08  Bruno Haible  <bruno@clisp.org>
18552
18553         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18554         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18555         here...
18556         * modules/getcwd-lgpl (configure.ac): ... to here.
18557
18558 2011-05-07  Bruno Haible  <bruno@clisp.org>
18559
18560         crypto/gc: Move AC_LIBOBJ invocations to module description.
18561         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18562         * modules/crypto/gc (configure.ac): ... to here.
18563
18564 2011-05-07  Bruno Haible  <bruno@clisp.org>
18565
18566         fwriting: Move AC_LIBOBJ invocations to module description.
18567         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18568         here...
18569         * modules/fwriting (configure.ac): ... to here.
18570
18571 2011-05-07  Bruno Haible  <bruno@clisp.org>
18572
18573         fwritable: Move AC_LIBOBJ invocations to module description.
18574         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18575         here...
18576         * modules/fwritable (configure.ac): ... to here.
18577
18578 2011-05-07  Bruno Haible  <bruno@clisp.org>
18579
18580         futimens: Move AC_LIBOBJ invocations to module description.
18581         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18582         here...
18583         * modules/futimens (configure.ac): ... to here.
18584
18585 2011-05-07  Bruno Haible  <bruno@clisp.org>
18586
18587         ftruncate: Move AC_LIBOBJ invocations to module description.
18588         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18589         gl_PREREQ_FTRUNCATE invocations from here...
18590         * modules/ftruncate (configure.ac): ... to here.
18591
18592 2011-05-07  Bruno Haible  <bruno@clisp.org>
18593
18594         fsync: Move AC_LIBOBJ invocations to module description.
18595         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18596         invocations from here...
18597         * modules/fsync (configure.ac): ... to here.
18598
18599 2011-05-07  Bruno Haible  <bruno@clisp.org>
18600
18601         fsusage: Move AC_LIBOBJ invocations to module description.
18602         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18603         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18604         * modules/fsusage (configure.ac): ... to here.
18605
18606 2011-05-07  Bruno Haible  <bruno@clisp.org>
18607
18608         freopen: Move AC_LIBOBJ invocations to module description.
18609         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18610         invocations from here...
18611         * modules/freopen (configure.ac): ... to here.
18612
18613 2011-05-07  Bruno Haible  <bruno@clisp.org>
18614
18615         free: Move AC_LIBOBJ invocations to module description.
18616         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18617         invocations from here...
18618         * modules/free (configure.ac): ... to here.
18619
18620 2011-05-07  Bruno Haible  <bruno@clisp.org>
18621
18622         freadable: Move AC_LIBOBJ invocations to module description.
18623         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18624         here...
18625         * modules/freadable (configure.ac): ... to here.
18626
18627 2011-05-07  Bruno Haible  <bruno@clisp.org>
18628
18629         fpurge: Move AC_LIBOBJ invocations to module description.
18630         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18631         invocations from here...
18632         * modules/fpurge (configure.ac): ... to here.
18633
18634 2011-05-07  Bruno Haible  <bruno@clisp.org>
18635
18636         fpending: Move AC_LIBOBJ invocations to module description.
18637         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18638         gl_FUNC_FPENDING.
18639         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18640         invocations from here...
18641         * modules/fpending (configure.ac): ... to here.
18642
18643 2011-05-07  Bruno Haible  <bruno@clisp.org>
18644
18645         fopen: Move AC_LIBOBJ invocations to module description.
18646         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18647         invocations from here...
18648         * modules/fopen (configure.ac): ... to here.
18649
18650 2011-05-07  Bruno Haible  <bruno@clisp.org>
18651
18652         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18653         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18654         gl_FUNC_FNMATCH_POSIX.
18655         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18656         invocations from here...
18657         * modules/fnmatch (configure.ac): ... to here.
18658         * modules/fnmatch-gnu (configure.ac): ... and here.
18659
18660 2011-05-07  Bruno Haible  <bruno@clisp.org>
18661
18662         flock: Move AC_LIBOBJ invocations to module description.
18663         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18664         invocations from here...
18665         * modules/flock (configure.ac): ... to here.
18666
18667 2011-05-07  Bruno Haible  <bruno@clisp.org>
18668
18669         fileblocks: Move AC_LIBOBJ invocations to module description.
18670         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18671         gl_PREREQ_FILEBLOCKS invocations from here...
18672         * modules/fileblocks (configure.ac): ... to here.
18673
18674 2011-05-06  Bruno Haible  <bruno@clisp.org>
18675
18676         fflush: Move AC_LIBOBJ invocations to module description.
18677         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18678         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18679         invocations from here...
18680         * modules/fflush (configure.ac): ... to here.
18681
18682 2011-05-06  Bruno Haible  <bruno@clisp.org>
18683
18684         fdopendir: Move AC_LIBOBJ invocations to module description.
18685         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18686         here...
18687         * modules/fdopendir (configure.ac): ... to here.
18688         (Depends-on): Improve conditions.
18689
18690 2011-05-06  Bruno Haible  <bruno@clisp.org>
18691
18692         _Exit: Move AC_LIBOBJ invocations to module description.
18693         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18694         invocations from here...
18695         * modules/_Exit (configure.ac): ... to here.
18696
18697 2011-05-21  Bruno Haible  <bruno@clisp.org>
18698
18699         euidaccess: Respect rules for use of AC_LIBOBJ.
18700         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18701         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18702         from here...
18703         * modules/euidaccess (configure.ac): ... to here.
18704
18705 2011-05-06  Bruno Haible  <bruno@clisp.org>
18706
18707         error: Move AC_LIBOBJ invocations to module description.
18708         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18709         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18710         invocations from here...
18711         * modules/error (configure.ac): ... to here.
18712
18713 2011-05-06  Bruno Haible  <bruno@clisp.org>
18714
18715         duplocale: Move AC_LIBOBJ invocations to module description.
18716         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18717         gl_PREREQ_DUPLOCALE invocations from here...
18718         * modules/duplocale (configure.ac): ... to here.
18719
18720 2011-05-05  Bruno Haible  <bruno@clisp.org>
18721
18722         dirfd: Move AC_LIBOBJ invocations to module description.
18723         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18724         gl_FUNC_DIRFD.
18725         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18726         here...
18727         * modules/dirfd (configure.ac): ... to here.
18728         (Depends-on): Fix condition.
18729
18730 2011-05-05  Bruno Haible  <bruno@clisp.org>
18731
18732         chown: Respect rules for use of AC_LIBOBJ.
18733         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18734         * modules/chown (configure.ac): ... to here.
18735
18736 2011-05-05  Bruno Haible  <bruno@clisp.org>
18737
18738         chdir-long: Move AC_LIBOBJ invocations to module description.
18739         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18740         gl_PREREQ_CHDIR_LONG invocations from here...
18741         * modules/chdir-long (configure.ac): ... to here.
18742
18743 2011-05-05  Bruno Haible  <bruno@clisp.org>
18744
18745         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18746         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18747         from here...
18748         * modules/canonicalize-lgpl (configure.ac): ... to here.
18749
18750 2011-05-05  Bruno Haible  <bruno@clisp.org>
18751
18752         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18753         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18754         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18755         REPLACE_CALLOC.
18756         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18757         * modules/calloc-gnu (configure.ac): Likewise.
18758
18759 2011-05-05  Bruno Haible  <bruno@clisp.org>
18760
18761         btowc: Move AC_LIBOBJ invocations to module description.
18762         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18763         invocations from here...
18764         * modules/btowc (configure.ac): ... to here.
18765
18766 2011-05-21  Bruno Haible  <bruno@clisp.org>
18767
18768         atexit: Move AC_LIBOBJ invocations to module description.
18769         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18770         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18771         here...
18772         * modules/atexit (configure.ac): ... to here.
18773
18774 2011-05-05  Bruno Haible  <bruno@clisp.org>
18775
18776         atoll: Move AC_LIBOBJ invocations to module description.
18777         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18778         invocations from here...
18779         * modules/atoll (configure.ac): ... to here.
18780
18781 2011-05-05  Bruno Haible  <bruno@clisp.org>
18782
18783         argz: Move AC_LIBOBJ invocations to module description.
18784         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18785         * modules/argz (configure.ac): ... to here.
18786
18787 2011-05-05  Bruno Haible  <bruno@clisp.org>
18788
18789         alphasort: Move AC_LIBOBJ invocations to module description.
18790         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18791         gl_PREREQ_ALPHASORT invocations from here...
18792         * modules/alphasort (configure.ac): ... to here.
18793
18794 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18795
18796         verify: new macro verify_expr; verify_true deprecated
18797         * NEWS: Mention this.
18798         * doc/verify.texi (Compile-time Assertions): Document this.
18799         * lib/verify.h (verify_true): Deprecate.
18800         (verify_expr): New macro.
18801         * tests/test-verify.c (function): Test verify_expr.
18802
18803 2011-06-14  Jim Meyering  <meyering@redhat.com>
18804
18805         init.sh: give more portable redirection-related advice in a comment
18806         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18807         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18808         for lots of discussion.  Stefano Lattarini suggested the solution
18809         of putting "9>&2" after the command.  Reported by Bruno Haible.
18810
18811 2011-06-13  Bruno Haible  <bruno@clisp.org>
18812
18813         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18814         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18815         'none'.
18816
18817 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18818
18819         ftoastr: use strtof only if HAVE_STRTOF
18820         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18822         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18823         * modules/ftoastr (configure.ac): Check for strtof.
18824
18825 2011-06-13  Bruno Haible  <bruno@clisp.org>
18826
18827         gnulib-tool: Addendum to 2011-06-08 commit.
18828         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18829         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18830
18831 2011-06-13  Bruno Haible  <bruno@clisp.org>
18832
18833         fseeko: Provide a non-inline replacement of fseek().
18834         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18835         * modules/fseeko (Depends-on): Add fseek.
18836         * modules/fseek (License): Change to LGPLv2+.
18837
18838 2011-06-13  Bruno Haible  <bruno@clisp.org>
18839
18840         ftello: Provide a non-inline replacement of ftell().
18841         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18842         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18843         not have ftello() (such as on mingw).
18844         * modules/ftello (Depends-on): Add ftell.
18845         * modules/ftell (License): Change to LGPLv2+.
18846
18847 2011-05-07  Bruno Haible  <bruno@clisp.org>
18848
18849         ftell: Move AC_LIBOBJ invocations to module description.
18850         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18851         * modules/ftell (configure.ac): ... to here.
18852
18853 2011-05-07  Bruno Haible  <bruno@clisp.org>
18854
18855         ftello: Respect rules for use of AC_LIBOBJ.
18856         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18857         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18858         here...
18859         * modules/ftello (configure.ac): ... to here.
18860
18861 2011-05-07  Bruno Haible  <bruno@clisp.org>
18862
18863         fseeko: Simplify.
18864         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18865         (gl_FUNC_FSEEKO): Inline it here.
18866
18867 2011-05-07  Bruno Haible  <bruno@clisp.org>
18868
18869         fseek: Move AC_LIBOBJ invocations to module description.
18870         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18871         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18872         * modules/fseek (configure.ac): ... to here.
18873
18874 2011-05-07  Bruno Haible  <bruno@clisp.org>
18875
18876         fseek: Respect rules for use of AC_LIBOBJ.
18877         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18878         here...
18879         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18880
18881 2011-05-07  Bruno Haible  <bruno@clisp.org>
18882
18883         fseeko: Respect rules for use of AC_LIBOBJ.
18884         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18885         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18886         here...
18887         * modules/fseeko (configure.ac): ... to here.
18888
18889 2011-06-13  Bruno Haible  <bruno@clisp.org>
18890
18891         gnulib-tool: Allow comments in the 'Depends-on' section.
18892         * doc/gnulib.texi (Module description): Mention comment syntax in the
18893         Depends-on section.
18894         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18895
18896 2011-06-13  Bruno Haible  <bruno@clisp.org>
18897
18898         file-set.h: guard __attibute__ use, now that it's not always defined
18899         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18900         versions that support it.  This fixes a coreutils build failure with
18901         the vendor cc on HP-UX 11.31.
18902
18903 2011-06-12  Bruno Haible  <bruno@clisp.org>
18904
18905         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18906         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18907         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18908         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18909         (acl, aclsort): New declarations.
18910         (aclv_nontrivial): New declaration.
18911         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18912         (file_has_acl): Read also the second kind of HP-UX ACLs.
18913         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18914         kind of HP-UX ACLs if the first kind fails.
18915         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18916         second kind of HP-UX ACLs.
18917         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18918         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18919         agree.
18920         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18921         hpuxjfs.
18922         Handle hpuxjfs.
18923         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18924         hpuxjfs.
18925         Handle hpuxjfs.
18926         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18927         (func_test_same_acls): Use both lsacl and getacl.
18928         Handle hpuxjfs.
18929         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18930         (func_test_same_acls): Use both lsacl and getacl.
18931         Handle hpuxjfs.
18932
18933 2011-06-12  Bruno Haible  <bruno@clisp.org>
18934
18935         acl: Complete the 2010-08-10 fix.
18936         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18937         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18938         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18939         explicitly.
18940         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18941         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18942
18943 2011-06-12  Bruno Haible  <bruno@clisp.org>
18944
18945         spawn-pipe tests: Comments.
18946         * tests/test-spawn-pipe-child.c (main): Update comment.
18947         Reported by James Youngman <jay@gnu.org>.
18948
18949 2011-06-11  James Youngman  <jay@gnu.org>
18950
18951         New module 'stat-size'.
18952         * modules/stat-size: New module.  Provides macros for accessing
18953         file size information in instances of struct stat.  Depends on the
18954         fileblocks module because it calls st_blocks.
18955         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18956         * doc/gnulib.texi: Include stat-size.texi.
18957         * doc/stat-size.texi: Documentation for this module.
18958         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18959         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18960         AC_STRUCT_ST_BLOCKS.
18961
18962 2011-06-09  Bruno Haible  <bruno@clisp.org>
18963
18964         thread: Support pthreads-win32.
18965         * lib/glthread/thread.h (gl_thread_self): Define differently on
18966         pthreads-win32.
18967         (gl_null_thread): New declaration.
18968         (gl_thread_self_pointer): New macro.
18969         * lib/glthread/thread.c (gl_null_thread): New constant.
18970         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18971         gl_thread_self.
18972         * tests/test-tls.c: Likewise.
18973         Suggested by Paul Eggert. Reported by Eric Blake.
18974
18975 2011-06-09  Bruno Haible  <bruno@clisp.org>
18976
18977         thread: Fix confusion between NULL and 0.
18978         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18979         Reported by Paul Eggert.
18980
18981 2011-06-09  Bruno Haible  <bruno@clisp.org>
18982
18983         spawn-pipe tests: Avoid test failure on HP-UX 11.
18984         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18985         is closed.
18986
18987 2011-06-09  Bruno Haible  <bruno@clisp.org>
18988
18989         acl tests: Fix compilation error on HP-UX 11.
18990         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18991
18992 2011-06-09  Bruno Haible  <bruno@clisp.org>
18993
18994         rmdir: Avoid test failure on HP-UX 10.20.
18995         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18996         EEXIST.
18997
18998 2011-06-08  Eric Blake  <eblake@redhat.com>
18999
19000         perror: fix test on mingw
19001         * modules/perror-tests (Depends-on): Add dup2.
19002
19003         strerror_r-posix: fix on MacOS
19004         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19005         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19006         logic bug.
19007         * lib/strerror_r.c (strerror_r): Fix the bug.
19008         * lib/strerror.c (strerror): Likewise.
19009         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19010         problem.
19011         * doc/posix-functions/strerror.texi (strerror): Likewise.
19012         * doc/posix-functions/perror.texi (perror): Likewise.
19013         * tests/test-strerror.c (main): Enhance test.
19014         * tests/test-strerror_r.c (main): Likewise.
19015
19016 2011-06-08  Bruno Haible  <bruno@clisp.org>
19017
19018         gnulib-tool: Better isolation between different gnulib-tool invocations.
19019         * gnulib-tool: New option --witness-c-macro.
19020         (witness_c_macro): New variable.
19021         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19022         AM_CPPFLAGS define it as a C macro.
19023         (func_emit_tests_Makefile_am): Likewise.
19024         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19025         read it from there.
19026         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19027         m4_define, not AC_DEFUN.
19028         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19029         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19030         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19031         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19032         s|...|...|, to substitute the values of the GNULIB_* module indicator
19033         variables.
19034         * modules/dirent (Makefile.am): Likewise.
19035         * modules/fcntl-h (Makefile.am): Likewise.
19036         * modules/iconv-h (Makefile.am): Likewise.
19037         * modules/langinfo (Makefile.am): Likewise.
19038         * modules/locale (Makefile.am): Likewise.
19039         * modules/math (Makefile.am): Likewise.
19040         * modules/netdb (Makefile.am): Likewise.
19041         * modules/poll-h (Makefile.am): Likewise.
19042         * modules/pty (Makefile.am): Likewise.
19043         * modules/search (Makefile.am): Likewise.
19044         * modules/signal (Makefile.am): Likewise.
19045         * modules/spawn (Makefile.am): Likewise.
19046         * modules/stdio (Makefile.am): Likewise.
19047         * modules/stdlib (Makefile.am): Likewise.
19048         * modules/string (Makefile.am): Likewise.
19049         * modules/sys_ioctl (Makefile.am): Likewise.
19050         * modules/sys_select (Makefile.am): Likewise.
19051         * modules/sys_socket (Makefile.am): Likewise.
19052         * modules/sys_stat (Makefile.am): Likewise.
19053         * modules/sys_times (Makefile.am): Likewise.
19054         * modules/sys_utsname (Makefile.am): Likewise.
19055         * modules/sys_wait (Makefile.am): Likewise.
19056         * modules/termios (Makefile.am): Likewise.
19057         * modules/time (Makefile.am): Likewise.
19058         * modules/unistd (Makefile.am): Likewise.
19059         * modules/wchar (Makefile.am): Likewise.
19060
19061 2011-06-08  Eric Blake  <eblake@redhat.com>
19062
19063         strerror: simplify replacement
19064         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19065         * modules/strerror (configure.ac): No prereqs needed here...
19066         * modules/strerror-override (configure.ac): ...but this needs it.
19067         (Files): Add file for needed prereq macro.
19068
19069 2011-06-08  Bruno Haible  <bruno@clisp.org>
19070
19071         strerror_r-posix: Tweaks.
19072         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19073         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19075         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19076         (gl_FUNC_STRERROR_R): ... to here.
19077         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19078
19079 2011-06-07  Eric Blake  <eblake@redhat.com>
19080
19081         perror: document fixed bugs
19082         * doc/posix-functions/perror.texi (perror): Document recent
19083         patches.
19084
19085 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19086
19087         stat-time: get_stat_birthtime failure is better-defined
19088         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19089         return a timestamp whose tv_sec and tv_nsec values are both -1.
19090         Previously, the spec said only that the tv_nsec value was negative.
19091         This upward-compatible change simplifies GNU tar a bit.
19092
19093 2011-06-07  Eric Blake  <eblake@redhat.com>
19094
19095         strerror_r-posix: work around cygwin 1.7.9
19096         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19097         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19098         bug without replacing strerror_r.
19099         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19100         strerror_r is buggy, but without requiring strerror_r compilation.
19101         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19102
19103         test-perror: relax test to ignore cygwin bug
19104         * tests/test-perror2.c (main): Relax test on requiring detection
19105         of stream errors, and use unbuffered stream.
19106         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19107         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19108         * doc/posix-functions/fputc.texi (fputc): Likewise.
19109         * doc/posix-functions/fputs.texi (fputs): Likewise.
19110         * doc/posix-functions/fputws.texi (fputws): Likewise.
19111         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19112         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19113         * doc/posix-functions/getopt.texi (getopt): Likewise.
19114         * doc/posix-functions/perror.texi (perror): Likewise.
19115         * doc/posix-functions/printf.texi (printf): Likewise.
19116         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19117         * doc/posix-functions/psignal.texi (psignal): Likewise.
19118         * doc/posix-functions/putc.texi (putc): Likewise.
19119         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19120         Likewise.
19121         * doc/posix-functions/putchar.texi (putchar): Likewise.
19122         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19123         Likewise.
19124         * doc/posix-functions/puts.texi (puts): Likewise.
19125         * doc/posix-functions/putwc.texi (putwc): Likewise.
19126         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19127         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19128         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19129         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19130         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19131         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19132         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19133         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19134
19135 2011-05-22  Bruno Haible  <bruno@clisp.org>
19136
19137         strerror: Move AC_LIBOBJ invocations to module description.
19138         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19139         gl_PREREQ_STRERROR invocations from here...
19140         * modules/strerror (configure.ac): ... to here.
19141
19142 2011-05-21  Bruno Haible  <bruno@clisp.org>
19143
19144         perror: Use common idiom.
19145         * modules/perror (configure.ac): Reorder statements.
19146
19147 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19148
19149         tests: fix usage message in 'mktempd_'
19150         * tests/init.sh (mktempd_): In the usage message, use literal
19151         'mktempd_', not '$ME' (which is even undefined), as the name of
19152         the subroutine.
19153
19154 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19155
19156         tests init: new function 'fatal_', for hard errors
19157         Before this patch, the only way offered by tests/init.sh to
19158         properly signal a hard error was the `framework_failure_'
19159         function.  But the error message issued by that function,
19160         as its name would suggest, refers to a set-up failure in the
19161         testsuite, while hard errors can obviously also be due to
19162         other reasons.  The best way to fix this inconsistency is to
19163         introduce a new function with a more general error message.
19164         * tests/init.sh (fatal_): New function.
19165
19166 2011-06-06  Eric Blake  <eblake@redhat.com>
19167
19168         canonicalize-lgpl: use common idiom
19169         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19170         over newer POSIX -Rf.
19171         Reported by Bruno Haible.
19172
19173         canonicalize-lgpl: work around AIX realpath bug
19174         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19175         * doc/posix-functions/realpath.texi (realpath): Document it.
19176         Reported by Bruno Haible.
19177
19178         strerror: work around FreeBSD bug
19179         * lib/strerror.c (strerror): Special case 0.
19180         Reported by Bruno Haible.
19181
19182         strerror-override: avoid bloating errno module
19183         * modules/errno (Files, configure.ac): Move replacement strings...
19184         * modules/strerror-override: ...to new module.
19185         * modules/strerror (Depends-on): Add strerror-override.
19186         * modules/strerror_r-posix (Depends-on): Likewise.
19187         * MODULES.html.sh: Document new module.
19188         Reported by Bruno Haible.
19189
19190 2011-06-06  Bruno Haible  <bruno@clisp.org>
19191
19192         spawn-pipe tests: Rename program.
19193         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19194         * tests/test-spawn-pipe-child.c: Update comment.
19195         * tests/test-spawn-pipe.sh: Update.
19196         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19197
19198         spawn-pipe tests: Link the child program only against libc.
19199         * tests/test-spawn-pipe-child.c: New file, extracted from
19200         tests/test-spawn-pipe.c.
19201         (main): Expect only one argument.
19202         (is_open): New function, copied from tests/test-pipe.c.
19203         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19204         (child_main): Remove function.
19205         (test_pipe): Pass only one argument to the child program.
19206         (main): Remove child process code. Expect the child program's name as
19207         first argument.
19208         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19209         argument.
19210         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19211         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19212         test-spawn-pipe-child against no libraries.
19213
19214 2011-06-06  Bruno Haible  <bruno@clisp.org>
19215
19216         careadlinkat: Avoid mismatch between ssize_t and int.
19217         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19218         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19219
19220 2011-06-06  Jim Meyering  <meyering@redhat.com>
19221
19222         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19223         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19224         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19225
19226 2011-06-05  Bruno Haible  <bruno@clisp.org>
19227
19228         ansi-c++-opt: Interoperability with libtool.
19229         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19230         set the variable to "no", not to ":".
19231         * NEWS: Mention the change.
19232
19233 2011-06-05  Bruno Haible  <bruno@clisp.org>
19234
19235         acl: Fix test failure on AIX 7.
19236         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19237         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19238
19239 2011-06-05  Bruno Haible  <bruno@clisp.org>
19240
19241         pipe-filter-ii: Fix test failure on AIX and IRIX.
19242         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19243         with EAGAIN, retry with a smaller buffer size.
19244
19245 2011-06-05  Bruno Haible  <bruno@clisp.org>
19246
19247         localename: Fix link dependencies.
19248         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19249         * modules/localename-tests (Makefile.am): Link test-localename with
19250         $(LIBTHREAD).
19251
19252 2011-06-05  Bruno Haible  <bruno@clisp.org>
19253
19254         error: Avoid gcc warning.
19255         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19256
19257 2011-06-05  Bruno Haible  <bruno@clisp.org>
19258
19259         unsetenv: Avoid gcc warning.
19260         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19261
19262 2011-06-05  Bruno Haible  <bruno@clisp.org>
19263
19264         setenv: Avoid gcc warning.
19265         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19266
19267 2011-06-05  Bruno Haible  <bruno@clisp.org>
19268
19269         sys_select: Ensure memset is declared also on AIX 7.
19270         * lib/sys_select.in.h: Include <string.h> also on AIX.
19271         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19272         self-contained also on AIX 7.1.
19273
19274 2011-06-04  Jim Meyering  <meyering@redhat.com>
19275
19276         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19277         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19278         function name, "error".
19279         (_gl_translatable_diag_func_re): New configurable variable.
19280
19281 2011-06-04  Bruno Haible  <bruno@clisp.org>
19282
19283         getopt: Avoid gcc warning.
19284         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19285
19286 2011-06-04  Bruno Haible  <bruno@clisp.org>
19287
19288         strerror_r: Fix comments.
19289         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19290         commit.
19291
19292 2011-06-04  Bruno Haible  <bruno@clisp.org>
19293
19294         perror: Fix compilation error.
19295         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19296         Undefine fprintf, not sprintf.
19297         * modules/perror (Depends-on): Remove intprops, verify.
19298
19299 2011-06-04  Bruno Haible  <bruno@clisp.org>
19300
19301         setlocale: Enable replacement on Cygwin 1.5.
19302         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19303         Cygwin 1.5.x.
19304         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19305         LC_CTYPE category also exists on Cygwin 1.5.x.
19306
19307 2011-06-04  Bruno Haible  <bruno@clisp.org>
19308
19309         strerror-override: Don't disable symbol renamings.
19310         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19311         * lib/strerror-override.c: Include config.h.
19312         (strerror_override): Don't undefine.
19313
19314 2011-06-03  Bruno Haible  <bruno@clisp.org>
19315
19316         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19317         * lib/localename.h: Update copyright header.
19318         * lib/localename.c: Likewise.
19319         * lib/relocatable.h: Likewise.
19320         * lib/relocatable.c: Likewise.
19321
19322 2011-06-02  Bruno Haible  <bruno@clisp.org>
19323
19324         doc: Fix a module name.
19325         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19326
19327 2011-06-02  Bruno Haible  <bruno@clisp.org>
19328
19329         pipe2: Remove dependency on 'nonblocking' module.
19330         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19331         O_NONBLOCK is defined by gnulib.
19332         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19333         is zero.
19334         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19335         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19336         defined by gnulib.
19337         (get_nonblocking_flag): New function.
19338         (main): Test O_NONBLOCK flag only if it is nonzero.
19339         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19340
19341 2011-06-03  Jim Meyering  <meyering@redhat.com>
19342
19343         maint: three new prohibit-header-without-use rules
19344         Prohibit use of cloexec.h, posixver.h, same.h without use.
19345         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19346         (sc_prohibit_posixver_without_use): Likewise.
19347         (sc_prohibit_same_without_use): Likewise.
19348
19349 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19350
19351         allocator: 'die' routine is now given requested size
19352         * lib/allocator.h (struct allocator.die): New size arg.
19353         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19354         If the actual problem is an ssize_t limitation, not a size_t or
19355         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19356
19357 2011-06-01  Eric Blake  <eblake@redhat.com>
19358
19359         strerror: drop strerror_r dependency
19360         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19361         * lib/strerror-override.c (strerror_override): ...to new file.
19362         * lib/strerror-override.h: Add prototype.
19363         * lib/strerror-impl.h: Delete.
19364         * lib/strerror.c (strerror): New implementation.
19365         * modules/errno (Files): Add new files.
19366         (configure.ac): Compile new file as appropriate.
19367         * modules/strerror (Files): Drop unused file.
19368         (Depends-on): Drop strerror_r-posix.
19369         * MODULES.html.sh: Document strerror_r-posix.
19370         Requested by Sam Steingold.
19371
19372         perror: call strerror_r directly
19373         * modules/perror (Files): Drop strerror-impl.h.
19374         * lib/perror.c (perror): Use our own stack buffer, rather than
19375         calling a wrapper that uses static storage.
19376         * doc/posix-functions/perror.texi (perror): Document a limitation
19377         of our replacement.
19378
19379         strerror_r: fix includes for FreeBSD
19380         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19381         since we use abort on some platforms.
19382         Reported by Matthias Bolte.
19383
19384 2011-05-31  Bruno Haible  <bruno@clisp.org>
19385
19386         Fix link errors in tests: openat-die uses gettext-h.
19387         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19388         against $(LIBINTL).
19389         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19390         against $(LIBINTL).
19391         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19392         $(LIBINTL).
19393         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19394         against $(LIBINTL).
19395         * modules/linkat-tests (Makefile.am): Link test-linkat against
19396         $(LIBINTL).
19397         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19398         $(LIBINTL).
19399         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19400         against $(LIBINTL).
19401         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19402         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19403         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19404         $(LIBINTL).
19405         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19406         $(LIBINTL).
19407         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19408         $(LIBINTL).
19409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19410
19411 2011-05-31  Bruno Haible  <bruno@clisp.org>
19412
19413         Fix link errors in tests: wait-process uses gettext-h.
19414         * modules/nonblocking-pipe-tests (Makefile.am): Set
19415         test_nonblocking_pipe_main_LDADD.
19416         * modules/nonblocking-socket-tests (Makefile.am): Link
19417         test-nonblocking-socket-main against $(LIBINTL).
19418         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19419
19420 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19421
19422         assert-h: work around 'verify' incompatibility
19423         * lib/verify.h: Use @...@ directives, not ifdef.
19424         * modules/assert-h (assert.h): Implement the directives.
19425         (assert.h): Substitute the symbol-prefix more consistently.
19426
19427 2011-05-29  Jim Meyering  <meyering@redhat.com>
19428
19429         trim: remove three superfluous assignments
19430         * lib/trim.c (trim2): Remove three superfluous assignments
19431         and correct brace positioning.
19432
19433 2011-05-29  Bruno Haible  <bruno@clisp.org>
19434
19435         wctype-h: Avoid namespace pollution on Solaris 2.6.
19436         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19437         identifiers.
19438         * doc/posix-headers/wctype.texi: Mention the problem.
19439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19440
19441 2011-05-28  Jim Meyering  <meyering@redhat.com>
19442
19443         parse-datetime.y: accommodate -Wstrict-overflow
19444         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19445         placate -Wstrict-overflow.
19446
19447         trim: avoid a warning from -O2 -Wstrict-overflow
19448         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19449
19450 2011-05-29  Bruno Haible  <bruno@clisp.org>
19451
19452         gnulib-tool: Fix bug in yesterday's commit.
19453         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19454         twice.
19455
19456 2011-05-29  Bruno Haible  <bruno@clisp.org>
19457
19458         Allow multiple gnulib generated include files to be combined.
19459         * gnulib-tool (func_compute_include_guard_prefix): New function.
19460         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19461         ${gl_include_guard_prefix} references.
19462         (func_import, func_create_testdir): Invoke
19463         func_compute_include_guard_prefix.
19464         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19465         * lib/ctype.in.h: Likewise.
19466         * lib/dirent.in.h: Likewise.
19467         * lib/errno.in.h: Likewise.
19468         * lib/fcntl.in.h: Likewise.
19469         * lib/float.in.h: Likewise.
19470         * lib/getopt.in.h: Likewise.
19471         * lib/iconv.in.h: Likewise.
19472         * lib/langinfo.in.h: Likewise.
19473         * lib/locale.in.h: Likewise.
19474         * lib/math.in.h: Likewise.
19475         * lib/netdb.in.h: Likewise.
19476         * lib/netinet_in.in.h: Likewise.
19477         * lib/poll.in.h: Likewise.
19478         * lib/pthread.in.h: Likewise.
19479         * lib/pty.in.h: Likewise.
19480         * lib/sched.in.h: Likewise.
19481         * lib/se-selinux.in.h: Likewise.
19482         * lib/search.in.h: Likewise.
19483         * lib/signal.in.h: Likewise.
19484         * lib/spawn.in.h: Likewise.
19485         * lib/stdarg.in.h: Likewise.
19486         * lib/stddef.in.h: Likewise.
19487         * lib/stdint.in.h: Likewise.
19488         * lib/stdio.in.h: Likewise.
19489         * lib/stdlib.in.h: Likewise.
19490         * lib/string.in.h: Likewise.
19491         * lib/strings.in.h: Likewise.
19492         * lib/sys_file.in.h: Likewise.
19493         * lib/sys_ioctl.in.h: Likewise.
19494         * lib/sys_select.in.h: Likewise.
19495         * lib/sys_socket.in.h: Likewise.
19496         * lib/sys_stat.in.h: Likewise.
19497         * lib/sys_time.in.h: Likewise.
19498         * lib/sys_times.in.h: Likewise.
19499         * lib/sys_uio.in.h: Likewise.
19500         * lib/sys_utsname.in.h: Likewise.
19501         * lib/sys_wait.in.h: Likewise.
19502         * lib/sysexits.in.h: Likewise.
19503         * lib/termios.in.h: Likewise.
19504         * lib/time.in.h: Likewise.
19505         * lib/unistd.in.h: Likewise.
19506         * lib/wchar.in.h: Likewise.
19507         * lib/wctype.in.h: Likewise.
19508         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19509         * modules/ctype (Makefile.am): Likewise.
19510         * modules/dirent (Makefile.am): Likewise.
19511         * modules/errno (Makefile.am): Likewise.
19512         * modules/fcntl-h (Makefile.am): Likewise.
19513         * modules/float (Makefile.am): Likewise.
19514         * modules/getopt-posix (Makefile.am): Likewise.
19515         * modules/iconv-h (Makefile.am): Likewise.
19516         * modules/langinfo (Makefile.am): Likewise.
19517         * modules/locale (Makefile.am): Likewise.
19518         * modules/math (Makefile.am): Likewise.
19519         * modules/netdb (Makefile.am): Likewise.
19520         * modules/netinet_in (Makefile.am): Likewise.
19521         * modules/poll-h (Makefile.am): Likewise.
19522         * modules/pthread (Makefile.am): Likewise.
19523         * modules/pty (Makefile.am): Likewise.
19524         * modules/sched (Makefile.am): Likewise.
19525         * modules/search (Makefile.am): Likewise.
19526         * modules/selinux-h (Makefile.am): Likewise.
19527         * modules/signal (Makefile.am): Likewise.
19528         * modules/spawn (Makefile.am): Likewise.
19529         * modules/stdarg (Makefile.am): Likewise.
19530         * modules/stddef (Makefile.am): Likewise.
19531         * modules/stdint (Makefile.am): Likewise.
19532         * modules/stdio (Makefile.am): Likewise.
19533         * modules/stdlib (Makefile.am): Likewise.
19534         * modules/string (Makefile.am): Likewise.
19535         * modules/strings (Makefile.am): Likewise.
19536         * modules/sys_file (Makefile.am): Likewise.
19537         * modules/sys_ioctl (Makefile.am): Likewise.
19538         * modules/sys_select (Makefile.am): Likewise.
19539         * modules/sys_socket (Makefile.am): Likewise.
19540         * modules/sys_stat (Makefile.am): Likewise.
19541         * modules/sys_time (Makefile.am): Likewise.
19542         * modules/sys_times (Makefile.am): Likewise.
19543         * modules/sys_uio (Makefile.am): Likewise.
19544         * modules/sys_utsname (Makefile.am): Likewise.
19545         * modules/sys_wait (Makefile.am): Likewise.
19546         * modules/sysexits (Makefile.am): Likewise.
19547         * modules/termios (Makefile.am): Likewise.
19548         * modules/time (Makefile.am): Likewise.
19549         * modules/unistd (Makefile.am): Likewise.
19550         * modules/wchar (Makefile.am): Likewise.
19551         * modules/wctype-h (Makefile.am): Likewise.
19552         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19553
19554 2011-05-29  Bruno Haible  <bruno@clisp.org>
19555
19556         assert-h: Allow multiple gnulib generated replacements to coexist.
19557         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19558
19559 2011-05-29  Bruno Haible  <bruno@clisp.org>
19560
19561         argp: Allow coexistence with strerror_r-posix module.
19562         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19563         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19564         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19565         not the glibc signature.
19566
19567 2011-05-28  Bruno Haible  <bruno@clisp.org>
19568
19569         gnulib-tool: Alternative structure of testdirs, similar to --import.
19570         * gnulib-tool: New option --single-configure.
19571         (func_usage): Document it.
19572         (single_configure): New variable.
19573         (func_modules_transitive_closure_separately,
19574         func_modules_transitive_closure_separately,
19575         func_determine_use_libtests, func_modules_add_dummy_separately,
19576         func_modules_to_filelist_separately): New functions, extracted from
19577         func_import.
19578         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19579         (func_import): Use the new functions.
19580         (func_create_testdir): Set final_modules. Handle $single_configure =
19581         true case.
19582
19583 2011-05-28  Bruno Haible  <bruno@clisp.org>
19584
19585         getloadavg: Remove an unreliable safety check.
19586         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19587         getloadavg.c is in place.
19588         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19589         Reported by Sam Steingold <sds@gnu.org>.
19590
19591 2011-05-28  Bruno Haible  <bruno@clisp.org>
19592
19593         doc: Cleanup yet another file produced by texinfo.tex.
19594         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19595
19596 2011-05-28  Bruno Haible  <bruno@clisp.org>
19597
19598         Finish the conditional dependencies mechanism.
19599         * gnulib-tool: New option --no-conditional-dependencies.
19600         (func_usage): Document it. Don't mark --conditional-dependencies as
19601         experimental.
19602         (cond_dependencies): The possible values can now be true, false, empty.
19603         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19604         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19605         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19606
19607 2011-05-28  Bruno Haible  <bruno@clisp.org>
19608
19609         doc: Use a recent texinfo.tex.
19610         * doc/Makefile (tex_opts): New variable.
19611         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19612
19613 2011-05-28  Jim Meyering  <meyering@redhat.com>
19614
19615         intprops.h: adjust comment to match code change
19616         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19617         only once, it *may* have side effects.  Also fix an unrelated typo.
19618         (_GL_INT_SIGNED): Likewise.
19619
19620 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19621
19622         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19623
19624 2011-05-26  Bruno Haible  <bruno@clisp.org>
19625
19626         mbsrchr: Avoid collision with system function on Interix.
19627         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19628         Reported by Markus Duft <mduft@gentoo.org>.
19629
19630 2011-05-15  James Youngman  <jay@gnu.org>
19631
19632         getopt: for ambiguous options, enumerate the possibilities.
19633         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19634         the ambiguous options when an ambiguous prefix is given. This was
19635         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19636         glibc change was
19637         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19638
19639 2011-05-25  Eric Blake  <eblake@redhat.com>
19640
19641         getcwd: work around mingw bug
19642         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19643         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19644         Reported by Matthias Bolte.
19645
19646 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19647
19648         test-intprops: disable -Wtype-limits diagnostics
19649         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19650         diagnostics.  Otherwise, the integer overflow macros generate many
19651         diagnostics.  Reported by Jim Meyering in
19652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19653
19654         intprops: shorten, to pacify gcc -Woverlength-strings
19655         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19656         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19657         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19658         likely to run afoul of C compiler limits for string constant lengths.
19659         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19660
19661 2011-05-24  Eric Blake  <eblake@redhat.com>
19662
19663         docs: document recently fixed glibc printf bug
19664         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19665         * doc/posix-functions/printf.texi (printf): Likewise.
19666         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19667         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19668
19669         closein-tests: convert to init.sh
19670         * modules/closein-tests (Files): Add init.sh
19671         * tests/test-closein.sh Use it.
19672
19673         yesno-tests: convert to init.sh
19674         * modules/yesno-tests (Files): Add init.sh.
19675         * tests/test-yesno.sh: Use it.
19676
19677         atexit-tests: ensure reliable exit status
19678         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19679         Reported by Bruno Haible.
19680
19681 2011-05-24  Bruno Haible  <bruno@clisp.org>
19682
19683         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19684         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19685         gl_PREREQ_STRERROR_R invocations from here...
19686         * modules/strerror_r-posix (configure.ac): ... to here.
19687
19688 2011-05-24  Eric Blake  <eblake@redhat.com>
19689
19690         strerror_r: fix missing header
19691         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19692
19693         strerror_r: fix AIX test failures
19694         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19695         ERANGE failure.
19696
19697         strerror_r: fix Solaris test failures
19698         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19699         failures.
19700         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19701
19702         strerror_r: enforce POSIX recommendations
19703         * lib/strerror_r.c (safe_copy): New helper method.
19704         (strerror_r): Guarantee a non-empty string.
19705         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19706         recent POSIX rulings and to match our strerror guarantees.
19707         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19708
19709 2011-05-24  Jim Meyering  <meyering@redhat.com>
19710
19711         test-perror2.c: avoid warning about unused variable
19712         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19713
19714 2011-05-24  Eric Blake  <eblake@redhat.com>
19715
19716         perror: avoid spurious test failure on HP-UX
19717         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19718
19719         tests: fix logic bug in init.sh
19720         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19721         shell.
19722
19723 2011-05-24  Jim Meyering  <meyering@redhat.com>
19724
19725         utimensat: do not reference an out-of-scope buffer
19726         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19727         declared in an inner scope, yet "times" would be dereferenced outside
19728         the scope in which "ts" was valid.
19729         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19730         of ts[2] "out/up", so that the use of aliased "times" (via
19731         "times = ts;") does not end up referencing an out-of-scope "ts"
19732
19733         opendir-safer.c: don't clobber errno; don't close negative FD
19734         * lib/opendir-safer.c (opendir_safer):
19735         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19736         file descriptor, and more importantly, don't clobber the
19737         offending errno value with EINVAL.  Before, upon failure
19738         of dup_safer, we would pass the negative file descriptor to
19739         fdopendir, which would clobber errno.
19740
19741 2011-05-23  Bruno Haible  <bruno@clisp.org>
19742
19743         idcache: Fix module description.
19744         * modules/idcache (Include): Set to "idcache.h".
19745
19746 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19747
19748         gnulib-tool: fix portability problem with MacOS sed
19749         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19750         before the "}".  Problem reported by Leo in
19751         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19752         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19753         sed_extract_condition1, sed_extract_condition2.
19754
19755 2011-05-23  Bruno Haible  <bruno@clisp.org>
19756
19757         hash: Simplify autoconf macro.
19758         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19759
19760 2011-05-23  Bruno Haible  <bruno@clisp.org>
19761
19762         getugroups: Fix module description.
19763         * modules/getugroups (Include): Set to "getugroups.h".
19764
19765 2011-05-23  Bruno Haible  <bruno@clisp.org>
19766
19767         linkat: Simplify autoconf macro.
19768         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19769
19770 2011-05-23  Bruno Haible  <bruno@clisp.org>
19771             Eric Blake  <eblake@redhat.com>
19772
19773         linkat, renameat: Update dependencies.
19774         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19775         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19776         symlinkat.
19777
19778 2011-05-23  Jim Meyering  <meyering@redhat.com>
19779
19780         maint.mk: more tight_scope improvements
19781         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19782         (_gl_TS_headers): Define only in if-0'd block.
19783         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19784         sometimes we must *not* use it.  Adjust uses accordingly.
19785         (sc_tight_scope): Use much simpler grep-based test to determine
19786         whether we skip this rule.
19787
19788         maint.mk: generalize/improve the tight-scope rule
19789         * top/maint.mk: Emit a warning when the test is skipped.
19790         (_gl_TS_dir): Add $(srcdir)/ prefix.
19791         (_gl_TS_function_match): Simplify, rather than trying
19792         to enumerate common types.  Otherwise, it would fail to match an
19793         "extern unsigned char const *" declaration in idutils.
19794         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19795         a way to support use of that type of macro.
19796         (_gl_TS_var_match): Simplify regexp.
19797         (_gl_TS_obj_files): New configurable variable.
19798         (_gl_TS_headers): Likewise.
19799
19800 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19801
19802         verify: fix bug when gnulib <assert.h> is also included
19803         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19804         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19805         Perhaps there's a better way, but this fixes the immediate problem.
19806         Problem reported by Bruno Haible in
19807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19808
19809 2011-05-22  Bruno Haible  <bruno@clisp.org>
19810
19811         xgetcwd: Simplify autoconf macro.
19812         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19813
19814 2011-05-22  Bruno Haible  <bruno@clisp.org>
19815
19816         New module 'mktime-internal'.
19817         * modules/mktime-internal: New file.
19818         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19819         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19820         mktime_internal as a C macro if libc has __mktime_internal.
19821         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19822         conditions.
19823         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19824
19825 2011-05-22  Bruno Haible  <bruno@clisp.org>
19826
19827         timegm: Correct mktime replacement statements.
19828         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19829         defining mktime as a C macro. This completes a 2009-07-28 commit.
19830
19831 2011-05-22  Bruno Haible  <bruno@clisp.org>
19832
19833         timegm: Simplify autoconf macro.
19834         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19835
19836 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19837
19838         clock-time: change to LGPLv2+.
19839         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19840         BSD-like but we have no mark for that; this is good enough for now.
19841
19842 2011-05-21  Bruno Haible  <bruno@clisp.org>
19843
19844         strerror_r: Fix comments.
19845         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19846
19847 2011-05-21  Bruno Haible  <bruno@clisp.org>
19848
19849         relocatable-prog-wrapper: Fix possible link error.
19850         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19851         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19852         (gl_FUNC_SETENV): ... to here.
19853         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19854         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19855
19856 2011-05-21  Bruno Haible  <bruno@clisp.org>
19857
19858         relocatable-prog-wrapper: Assume strerror() exists.
19859         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19860         m4/strerror.m4.
19861         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19862         * lib/relocwrapper.c: Remove mention of strerror module.
19863         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19864         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19865         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19866         C macro.
19867
19868 2011-05-21  Bruno Haible  <bruno@clisp.org>
19869
19870         select: Simplify replacement idiom.
19871         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19872         Win32 platforms.
19873         * lib/sys_select.in.h (select): Simplify accordingly.
19874         * modules/select (Depends-on): Likewise.
19875
19876 2011-05-21  Bruno Haible  <bruno@clisp.org>
19877
19878         mkdir-p: Simplify autoconf macro.
19879         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19880         gl_FUNC_LCHOWN.
19881
19882 2011-05-21  Eric Blake  <eblake@redhat.com>
19883
19884         strerror_r: avoid clobbering strerror on cygwin
19885         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19886         fall back instead to sys_errlist.
19887         * modules/strerror (configure.ac): Add witness.
19888         * tests/test-strerror_r.c (main): Enhance test.
19889         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19890         * tests/test-perror2.c (main): Free memory before exit.
19891
19892 2011-05-21  Bruno Haible  <bruno@clisp.org>
19893
19894         mkdtemp: Use gnulib naming conventions.
19895         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19896         * modules/mkdtemp (configure.ac): Update.
19897
19898 2011-05-20  Eric Blake  <eblake@redhat.com>
19899
19900         strerror_r: avoid corrupting errno on Solaris
19901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19902         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19903
19904         strerror_r: avoid compiler warning
19905         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19906
19907         strerror_r: simplify AIX code
19908         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19909
19910         test-perror: avoid spurious failure on FreeBSD
19911         * modules/perror-tests (Depends-on): Add strerror, now that
19912         strerror_r no longer pulls it in.
19913
19914 2011-05-20  Bruno Haible  <bruno@clisp.org>
19915
19916         strerror_r-posix: Remove unused dependencies.
19917         * modules/strerror_r-posix (Depends-on): Remove strerror.
19918         Reported by Eric Blake.
19919
19920 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19921
19922         intprops: remove assumption about A|B representation
19923         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19924         is a valid integer if both A and B are.  Although this is true for
19925         all known practical hosts, the C standard doesn't guarantee it,
19926         and the code need not assume it.  Also, this change may work around
19927         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19929
19930 2011-05-20  Eric Blake  <eblake@redhat.com>
19931
19932         perror: work around FreeBSD bug
19933         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19934         is broken.  Move AC_LIBOBJ...
19935         * modules/perror (configure.ac): Here.
19936         * doc/posix-functions/perror.texi (perror): Document this.
19937         * tests/test-perror2.c (main): Enhance test.
19938
19939         test-perror: check for strerror interactions
19940         * tests/macros.h (STREQ): Add macro.
19941         * modules/perror-tests (Files): Add second test.
19942         * tests/test-perror2.c (main): New file.
19943         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19944
19945         test-perror: rewrite to use init script
19946         * modules/perror-tests (Files): Add init.sh.
19947         * tests/test-perror.sh: Use temporary directory.
19948
19949 2011-05-20  Jim Meyering  <meyering@redhat.com>
19950
19951         maint: replace misused "a" with "an"
19952         * doc/intprops.texi: "a integer"
19953         * doc/regex.texi: "a explanation"
19954         * lib/alignof.h: "a object"
19955         * lib/argmatch.h: "a explanation"
19956         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19957         * lib/stdint.in.h: "a integer"
19958         * lib/userspec.c: "a owner"
19959         * doc/gnulib.texi: Fix "a idea", and reword.
19960
19961 2011-05-19  Jim Meyering  <meyering@redhat.com>
19962
19963         maint: correct misuse of "a" and "an"
19964         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19965         * lib/argp-help.c: "an docum...": s/an/a/
19966         * lib/argp-parse.c: "An vector": s/An/A/
19967         * lib/execute.c: "an native": s/an/a/
19968         * lib/spawn-pipe.c: Likewise.
19969         * lib/gc.h: "an Gc_rc": s/an/a/
19970         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19971         * lib/fts.c: "an stat.st_dev": s/an/a/
19972
19973 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19974
19975         intprops-tests: work around HP-UX 11.23 cc bug with constants
19976         * tests/test-intprops.c (VERIFY): New macro.
19977         (main): Use it, instead of verify, to work around the compiler bug; see
19978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19979
19980         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19981         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19982         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19983         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19984         (_GL_REMAINDER_OVERFLOW): Use it.
19985
19986         intprops-tests: revert unsigned part of previous change
19987         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19988         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19989         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19991
19992 2011-05-19  Bruno Haible  <bruno@clisp.org>
19993
19994         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19995         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19996         strerror_r() returned without filling the buffer.
19997         Reported by Eric Blake.
19998
19999 2011-05-19  Eric Blake  <eblake@redhat.com>
20000
20001         strerror_r: guarantee unchanged errno
20002         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20003         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20004         failure.
20005         * tests/test-strerror_r.c (main): Enhance test.
20006
20007 2011-05-19  Bruno Haible  <bruno@clisp.org>
20008
20009         strerror_r: Reorder #if blocks.
20010         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20011         for consistency with the previous commit.
20012
20013 2011-05-19  Bruno Haible  <bruno@clisp.org>
20014
20015         perror: Avoid clobbering the strerror buffer when possible.
20016         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20017         * lib/strerror.c: Include it.
20018         * modules/strerror (Files): Add lib/strerror-impl.h.
20019         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20020         (my_strerror): New function, defined through lib/strerror-impl.h.
20021         (perror): Use it instead of strerror.
20022         * modules/perror (Files): Add lib/strerror-impl.h.
20023         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20024
20025 2011-05-19  Eric Blake  <eblake@redhat.com>
20026
20027         strerror_r: fix on newer cygwin
20028         * lib/strerror_r.c (strerror_r): Cygwin now has
20029         __xpg_strerror_r, use it.
20030
20031 2011-05-19  Bruno Haible  <bruno@clisp.org>
20032
20033         strerror_r: Avoid clobbering the strerror buffer when possible.
20034         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20035         (sys_nerr, sys_errlist): New declarations.
20036         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20037         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20038         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20039
20040 2011-05-19  Bruno Haible  <bruno@clisp.org>
20041
20042         strerror_r: Fix test failure on mingw.
20043         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20044         EXTEND_STRERROR_R.
20045         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20046         macros from errno.in.h instead.
20047
20048 2011-05-19  Eric Blake  <eblake@redhat.com>
20049
20050         strerror: relax test for Solaris
20051         * tests/test-strerror.c (main): Permit Solaris behavior.
20052         * tests/test-strerror_r.c (main): Likewise.
20053
20054         strerror: enforce POSIX ruling on strerror(0)
20055         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20056         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20057         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20058         * doc/posix-functions/strerror.texi (strerror): Document it.
20059         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20060         * tests/test-strerror.c (main): Strengthen test.
20061         * tests/test-strerror_r.c (main): Likewise.
20062
20063 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20064
20065         intprop-tests: port to older and more-pedantic compilers
20066         * modules/intprops-tests (Files): Add tests/macros.h.
20067         * tests/test-intprops.c: Include macros.h.
20068         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20069         it's no longer documented to expand to an integer constant expression.
20070         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20071         argument is floating point, as it's no longer documented to expand
20072         to an integer constant expression in that case.
20073         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20074         compiler bugs reported by Bruno Haible.  See
20075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20076         (U0, U1): New constants, to work around the same bugs.  Also,
20077         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20078
20079         intprops: work around C compiler bugs
20080         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20081         bug in Sun C 5.11 2010/08/13 and other compilers; see
20082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20083
20084         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20085         * doc/intprops.texi (Integer Type Determination): Fix
20086         documentation for TYPE_IS_INTEGER: it returns an constant
20087         expression, not an integer constant expression.  Fix doc for
20088         TYPE_SIGNED: it returns an integer constant expression only if its
20089         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20090         hardly worth documented that way....)
20091
20092 2011-05-18  Bruno Haible  <bruno@clisp.org>
20093
20094         strerror_r: Avoid clobbering the strerror buffer when possible.
20095         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20096         Handle gnulib defined errno values here. When strerror() returns NULL
20097         or an empty string, return EINVAL.
20098         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20099         gnulib defined errno values here.
20100         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20101
20102 2011-05-18  Eric Blake  <eblake@redhat.com>
20103
20104         fnmatch: avoid compiler warning
20105         * lib/fnmatch_loop.c (FCT): Use correct type.
20106         Reported by Matthias Bolte.
20107
20108 2011-05-13  Jim Meyering  <meyering@redhat.com>
20109
20110         maint.mk: three new prohibit_<HDR>_without_use rules
20111         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20112         (sc_prohibit_stdio-safer_without_use): Likewise.
20113         (sc_prohibit_xfreopen_without_use): Likewise.
20114
20115 2011-05-17  Jim Meyering  <meyering@redhat.com>
20116
20117         announce-gen: fail if the NEWS delta is empty
20118         If there's nothing noteworthy in NEWS, then either you forgot
20119         or you shouldn't be releasing.
20120         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20121
20122 2011-05-17  Pádraig Brady <P@draigBrady.com>
20123
20124         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20125         reserved symbols starting with double underscore from the check.
20126
20127 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20128
20129         intprops: add doc
20130         * doc/intprops.texi: New file, documenting intprops.
20131         * doc/gnulib.texi (Particular Modules): Include it.
20132
20133         verify: add doc to gnulib manual and fix example
20134         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20135         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20136         (Compile-time Assertions): Fix example so it can't overflow.
20137
20138 2011-05-17  Jim Meyering  <meyering@redhat.com>
20139
20140         warnings.m4: don't usurp save_CPPFLAGS variable name
20141         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20142
20143         doc: fix typo
20144         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20145
20146 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20147             Bruno Haible  <bruno@clisp.org>
20148
20149         doc: Tweak recent change.
20150         * README (Portability guidelines): Tweak new text.
20151         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20152         Interix 6.1.
20153
20154 2011-05-16  Eric Blake  <eblake@redhat.com>
20155
20156         inttypes: avoid autoconf warning
20157         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20158         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20159
20160 2011-05-16  Sam Steingold <sds@gnu.org>
20161         and Eric Blake  <eblake@redhat.com>
20162
20163         vc-list-files: accept multiple directory operands
20164         * build-aux/vc-list-files: Iterate over all remaining operands.
20165
20166 2011-05-16  Bruno Haible  <bruno@clisp.org>
20167
20168         Fix confusion regarding deprecated modules.
20169         * modules/calloc (Status, Notice): Mark module as deprecated, not
20170         obsolete.
20171         * modules/fnmatch-posix (Status, Notice): Likewise.
20172         * modules/getdate (Status, Notice): Likewise.
20173         * modules/getopt (Status, Notice): Likewise.
20174         * modules/malloc (Status, Notice): Likewise.
20175         * modules/pipe (Status, Notice): Likewise.
20176         * modules/realloc (Status, Notice): Likewise.
20177         * modules/rename-dest-slash (Status, Notice): Likewise.
20178         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20179         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20180         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20181         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20182         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20183
20184 2011-05-16  Bruno Haible  <bruno@clisp.org>
20185
20186         doc: List the target platforms.
20187         * doc/gnulib-intro.texi (Target Platforms): New section.
20188         * doc/gnulib.texi (Introduction): Update menu.
20189         * README (Portability guidelines): Refer to the new section. Update
20190         statement about oldest supported environment. Remove rationale why
20191         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20192         unportable C89 function.
20193         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20194         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20195
20196 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20197
20198         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20199
20200 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20201
20202         intprops-tests: new module
20203         * modules/intprops-tests, tests/test-intprops.c: New files.
20204
20205         intprops: add safe, portable integer overflow checking
20206         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20207         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20208         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20209         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20210         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20211         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20212         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20213         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20214         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20215         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20216         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20217
20218 2011-05-12  James Youngman  <jay@gnu.org>
20219
20220         Add a test for glibc's Bugzilla bug #12378.
20221         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20222         doesn't allow the literal matching of a lone "[" (which is
20223         required by POSIX).
20224         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20225
20226 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20227
20228         Sync glibc change fixing Bugzilla bug #12378.
20229         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20230         beginning and fall back to matching as normal character if the
20231         string ends before the matching ']' is found.  This is what POSIX
20232         requires.
20233
20234 2011-05-13  Eric Blake  <eblake@redhat.com>
20235
20236         getcwd-lgpl: relax test for FreeBSD
20237         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20238         issue.
20239         * tests/test-getcwd-lgpl.c (main): Relax test.
20240         Reported by Matthias Bolte.
20241
20242 2011-05-11  Eric Blake  <eblake@redhat.com>
20243
20244         test-fflush: silence compiler warning
20245         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20246
20247 2011-05-11  Bruno Haible  <bruno@clisp.org>
20248
20249         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20250         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20251         * modules/canonicalize (Depends-on): Add 'nocrash'.
20252         * modules/canonicalize-lgpl (Depends-on): Likewise.
20253         * doc/posix-functions/realpath.texi: Update platforms list.
20254         Reported by Ryan Schmidt <ryandesign@macports.org>.
20255
20256 2011-05-11  Bruno Haible  <bruno@clisp.org>
20257
20258         group-member: Declare function in <unistd.h>.
20259         * lib/unistd.in.h (group_member): New declaration.
20260         * lib/group-member.h: Remove file.
20261         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20262         * tests/test-unistd-c++.cc: Check signature of group_member.
20263         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20264         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20265         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20266         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20267         HAVE_GROUP_MEMBER.
20268         * modules/group-member (Files): Remove lib/group-member.h.
20269         (Depends-on): Add unistd. Specify conditions.
20270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20271         (Include): Change to <unistd.h>.
20272         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20273         HAVE_GROUP_MEMBER.
20274         * NEWS: Mention the change.
20275         * lib/euidaccess.c: Don't include group-member.h.
20276
20277 2011-05-11  Bruno Haible  <bruno@clisp.org>
20278
20279         group-member: Document module.
20280         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20281         module.
20282
20283 2011-05-11  Bruno Haible  <bruno@clisp.org>
20284
20285         fclose: Fix mistake earlier today.
20286         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20287
20288 2011-05-11  Eric Blake  <eblake@redhat.com>
20289
20290         fclose: preserve fflush errors
20291         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20292         Reported by Jim Meyering.
20293
20294         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20295         * build-aux/bootstrap (check_versions): When no specific version
20296         is required, merely check that the app produces an exit status
20297         that indicates its existence.
20298
20299         maint.mk: drop redundant check
20300         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20301         the same but better.
20302
20303 2011-05-11  Bruno Haible  <bruno@clisp.org>
20304
20305         fclose: Fix possible link error.
20306         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20307         unregister_shadow_fd. Improve comments.
20308         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20309         Eric Blake.
20310
20311 2011-05-11  Jim Meyering  <meyering@redhat.com>
20312
20313         maint.mk: improve "can not" detection and generalize rule name
20314         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20315         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20316         Use the same technique as in sc_prohibit_doubled_word, so that
20317         we recognize "can not" also when the words are separated by a newline.
20318         Suggested by Eric Blake.
20319         (perl_filename_lineno_text_): Define.  Factored out of...
20320         (prohibit_doubled_word_): ...here.  Use the new definition.
20321         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20322         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20323         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20324
20325 2011-05-10  Eric Blake  <eblake@redhat.com>
20326
20327         fclose: avoid double close race when possible
20328         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20329         all but WINDOWS_SOCKETS.
20330
20331 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20332
20333         openat: correct new comment
20334         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20335
20336 2011-05-10  Jim Meyering  <meyering@redhat.com>
20337
20338         openat: add comments
20339         * lib/openat-proc.c (openat_proc_name): Add comments,
20340         mostly from Eric Blake.
20341
20342 2011-05-09  Eric Blake  <eblake@redhat.com>
20343
20344         openat: reduce syscalls in first probe of /proc
20345         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20346         be a directory.  Simplify the probe for .. bugs.
20347         * modules/openat (Depends-on): Drop same-inode.
20348         Reported by Bastien ROUCARIES.
20349
20350 2011-05-09  Jim Meyering  <meyering@redhat.com>
20351
20352         maint.mk: change semantics/name of tight_scope variables
20353         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20354         Rename variables to align with semantics that make them more useful.
20355
20356         maint.mk: tweak new rule's name not to impinge
20357         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20358         (sc_tight_scope): Use new rule name rather than $@-0.
20359
20360         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20361         * top/maint.mk (sc_tight_scope): New rule.
20362         (sc_tight_scope-0): New rule, ifdef'd out.
20363         (_gl_TS_dir): Default.
20364         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20365         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20366
20367 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20368
20369         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20370         Haible <bruno@clisp.org>.
20371
20372 2011-05-08  Bruno Haible  <bruno@clisp.org>
20373
20374         Comments.
20375         * m4/isnanf.m4: Add comment.
20376         * m4/isnanl.m4: Likewise.
20377
20378 2011-05-08  Bruno Haible  <bruno@clisp.org>
20379
20380         glob: Remove obsolete macro.
20381         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20382
20383 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20384
20385         intprops: Sun C 5.11 supports __typeof__
20386         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20387         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20388         which is new.
20389         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20390
20391         intprops: switch to usual gnulib indenting and naming
20392         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20393         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20394
20395         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20396
20397 2011-05-08  Jim Meyering  <meyering@redhat.com>
20398
20399         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20400         * top/maint.mk (release-prep): Use make's --no-print-directory
20401         option when generating the announcement.  This eliminates the
20402         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20403         generated announcement template.
20404
20405 2011-05-08  Bruno Haible  <bruno@clisp.org>
20406
20407         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20408         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20409         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20410
20411 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20412
20413         ignore-value, verify: Omit include files from lib_SOURCES.
20414         * modules/ignore-value, modules/verify (Makefile.am):
20415         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20416         that leads Automake to duplicate use of am__objects_... variables
20417         in Makefile.in.  See
20418         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20419
20420 2011-05-07  Bruno Haible  <bruno@clisp.org>
20421
20422         fclose: Simplify autoconf macro.
20423         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20424         defined.
20425
20426 2011-05-07  Bruno Haible  <bruno@clisp.org>
20427
20428         canonicalize-lgpl: Fix autoconf macro ordering bug.
20429         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20430         gl_STDLIB_H_DEFAULTS.
20431
20432 2011-05-06  Eric Blake  <eblake@redhat.com>
20433
20434         maintainer-makefile: make sc_po_check easier to tune
20435         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20436         to probe for strings, such as an alternate location for gnulib.
20437
20438         fclose: guarantee behavior on seekable stdin
20439         * modules/fclose (Depends-on): Add fflush.
20440         * doc/posix-functions/fclose.texi (fclose): Document this.
20441         * tests/test-fclose.c (main): Make test for this unconditional.
20442
20443 2011-05-06  Bruno Haible  <bruno@clisp.org>
20444
20445         fflush, fpurge: Relicense under LGPLv2+.
20446         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20447         * modules/fpurge (License): Likewise.
20448         With permission from Eric Blake and Jim Meyering.
20449         Suggested by Eric Blake.
20450
20451 2011-05-06  Karl Berry  <karl@gnu.org>
20452
20453         * MODULES.html.sh (func_all_modules): remove exit.
20454
20455 2011-05-06  Jim Meyering  <meyering@redhat.com>
20456
20457         maint.mk: use info-gnu@ as the default only for a stable release
20458         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20459         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20460         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20461         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20462
20463 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20464
20465         assert-h: new module, which supports C1X-style static_assert
20466         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20467         * lib/verify.h: Revamp so that this can be copied into assert.h,
20468         while retaining the ability to use it standalone as before.
20469         Rename private identifiers so as not to encroach on the
20470         standard C namespace, since this is now used by assert.h.
20471         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20472         the old verify_true.
20473         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20474         the old verify_true.  Use _GL_VERIFY_TYPE.
20475         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20476         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20477         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20478         defined when this file is copied into the replacement assert.h.
20479         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20480         and _Static_assert is not built in.
20481         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20482         defined, and use the new macros mentioned above.
20483         * doc/posix-headers/assert.texi: Document this.
20484
20485 2011-05-05  Bruno Haible  <bruno@clisp.org>
20486
20487         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20488         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20489         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20490         gl_REPLACE_FCLOSE here.
20491         * modules/fflush (Depends-on): Remove fclose.
20492         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20493         combination with module 'fclose'.
20494
20495 2011-05-05  Bruno Haible  <bruno@clisp.org>
20496
20497         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20498         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20499         gl_FUNC_FFLUSH.
20500         (gl_FUNC_FFLUSH): Use it.
20501         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20502         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20503         gl_REPLACE_FSEEKO here.
20504
20505 2011-05-05  Bruno Haible  <bruno@clisp.org>
20506
20507         tzset: Relicense under LGPL.
20508         * modules/tzset (License): Change to LGPL.
20509         No agreement needed; it's a no-op.
20510
20511         strtoimax, strtoumax: Relicense under LGPL.
20512         * modules/strtoimax (License): Change to LGPL.
20513         * modules/strtoumax (License): Likewise.
20514         With permission from Jim Meyering, Paul Eggert:
20515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20517
20518         getgroups: Relicense under LGPL.
20519         * modules/getgroups (License): Change to LGPL.
20520         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20524
20525         nanosleep: Relicense under LGPL.
20526         * modules/nanosleep (License): Change to LGPL.
20527         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20528         Haible:
20529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20533
20534         futimens: Relicense under LGPL.
20535         * modules/futimens (License): Change to LGPL.
20536         With permission from Eric Blake:
20537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20538
20539         fflush: Relicense under LGPL.
20540         * modules/fflush (License): Change to LGPL.
20541         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20545
20546         tmpfile: Relicense under LGPL.
20547         * modules/tmpfile (License): Change to LGPL.
20548         With permission from Ben Pfaff:
20549         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20550
20551         isfinite: Relicense under LGPL.
20552         * modules/isfinite (License): Change to LGPL.
20553         With permission from Ben Pfaff, Bruno Haible:
20554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20556
20557         acosl..tanl: Relicense under LGPL.
20558         * modules/acosl (License): Change to LGPL.
20559         * modules/asinl (License): Likewise.
20560         * modules/atanl (License): Likewise.
20561         * modules/cosl (License): Likewise.
20562         * modules/expl (License): Likewise.
20563         * modules/logl (License): Likewise.
20564         * modules/sinl (License): Likewise.
20565         * modules/sqrtl (License): Likewise.
20566         * modules/tanl (License): Likewise.
20567         Source code originally from glibc and Paolo Bonzini. Agreements:
20568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20570
20571 2011-05-05  Bruno Haible  <bruno@clisp.org>
20572
20573         signal: Define sighandler_t.
20574         * lib/signal.in.h (sighandler_t): New type.
20575         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20576         whether sighandler_t is defined.
20577         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20578         * modules/signal (Depends-on): Add extensions.
20579         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20580         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20581         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20582
20583 2011-05-05  Eric Blake  <eblake@redhat.com>
20584
20585         maint: remove useless REPLACE_*_H macros
20586         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20587         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20588         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20589         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20590         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20591         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20592         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20593         * m4/btowc.m4: Update callers.
20594         * m4/dirfd.m4: Likewise.
20595         * m4/duplocale.m4: Likewise.
20596         * m4/fchdir.m4: Likewise.
20597         * m4/fdopendir.m4: Likewise.
20598         * m4/inet_ntop.m4: Likewise.
20599         * m4/inet_pton.m4: Likewise.
20600         * m4/ioctl.m4: Likewise.
20601         * m4/mbrlen.m4: Likewise.
20602         * m4/mbrtowc.m4: Likewise.
20603         * m4/mbsinit.m4: Likewise.
20604         * m4/mbsnrtowcs.m4: Likewise.
20605         * m4/mbsrtowcs.m4: Likewise.
20606         * m4/poll.m4: Likewise.
20607         * m4/setlocale.m4: Likewise.
20608         * m4/wcrtomb.m4: Likewise.
20609         * m4/wcsnrtombs.m4: Likewise.
20610         * m4/wcsrtombs.m4: Likewise.
20611         * m4/wctob.m4: Likewise.
20612         * m4/wcwidth.m4: Likewise.
20613         * modules/posix_spawn: Likewise.
20614         * modules/posix_spawn_file_actions_addclose: Likewise.
20615         * modules/posix_spawn_file_actions_adddup2: Likewise.
20616         * modules/posix_spawn_file_actions_addopen: Likewise.
20617         * modules/posix_spawn_file_actions_destroy: Likewise.
20618         * modules/posix_spawn_file_actions_init: Likewise.
20619         * modules/posix_spawnattr_destroy: Likewise.
20620         * modules/posix_spawnattr_getflags: Likewise.
20621         * modules/posix_spawnattr_getpgroup: Likewise.
20622         * modules/posix_spawnattr_getschedparam: Likewise.
20623         * modules/posix_spawnattr_getschedpolicy: Likewise.
20624         * modules/posix_spawnattr_getsigdefault: Likewise.
20625         * modules/posix_spawnattr_getsigmask: Likewise.
20626         * modules/posix_spawnattr_init: Likewise.
20627         * modules/posix_spawnattr_setflags: Likewise.
20628         * modules/posix_spawnattr_setpgroup: Likewise.
20629         * modules/posix_spawnattr_setschedparam: Likewise.
20630         * modules/posix_spawnattr_setschedpolicy: Likewise.
20631         * modules/posix_spawnattr_setsigdefault: Likewise.
20632         * modules/posix_spawnattr_setsigmask: Likewise.
20633         * modules/posix_spawnp: Likewise.
20634
20635 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20636
20637         Add option to do-release-commit-and-tag to specify branch.
20638         * build-aux/do-release-commit-and-tag: Add --branch.
20639
20640 2011-05-03  Bruno Haible  <bruno@clisp.org>
20641
20642         Avoid unnecessary compilation units, through conditional dependencies.
20643         * modules/accept (Depends-on): Add conditions to the dependencies.
20644         * modules/acosl (Depends-on): Likewise.
20645         * modules/argz (Depends-on): Likewise.
20646         * modules/asinl (Depends-on): Likewise.
20647         * modules/atanl (Depends-on): Likewise.
20648         * modules/atoll (Depends-on): Likewise.
20649         * modules/bind (Depends-on): Likewise.
20650         * modules/btowc (Depends-on): Likewise.
20651         * modules/canonicalize-lgpl (Depends-on): Likewise.
20652         * modules/ceil (Depends-on): Likewise.
20653         * modules/ceilf (Depends-on): Likewise.
20654         * modules/ceill (Depends-on): Likewise.
20655         * modules/chdir-long (Depends-on): Likewise.
20656         * modules/chown (Depends-on): Likewise.
20657         * modules/close (Depends-on): Likewise.
20658         * modules/connect (Depends-on): Likewise.
20659         * modules/cosl (Depends-on): Likewise.
20660         * modules/dirfd (Depends-on): Likewise.
20661         * modules/dprintf (Depends-on): Likewise.
20662         * modules/dprintf-posix (Depends-on): Likewise.
20663         * modules/error (Depends-on): Likewise.
20664         * modules/euidaccess (Depends-on): Likewise.
20665         * modules/expl (Depends-on): Likewise.
20666         * modules/faccessat (Depends-on): Likewise.
20667         * modules/fchdir (Depends-on): Likewise.
20668         * modules/fclose (Depends-on): Likewise.
20669         * modules/fcntl (Depends-on): Likewise.
20670         * modules/fdopendir (Depends-on): Likewise.
20671         * modules/fflush (Depends-on): Likewise.
20672         * modules/floor (Depends-on): Likewise.
20673         * modules/floorf (Depends-on): Likewise.
20674         * modules/floorl (Depends-on): Likewise.
20675         * modules/fnmatch (Depends-on): Likewise.
20676         * modules/fopen (Depends-on): Likewise.
20677         * modules/fprintf-posix (Depends-on): Likewise.
20678         * modules/frexp (Depends-on): Likewise.
20679         * modules/frexp-nolibm (Depends-on): Likewise.
20680         * modules/frexpl (Depends-on): Likewise.
20681         * modules/frexpl-nolibm (Depends-on): Likewise.
20682         * modules/fseek (Depends-on): Likewise.
20683         * modules/fsusage (Depends-on): Likewise.
20684         * modules/ftell (Depends-on): Likewise.
20685         * modules/ftello (Depends-on): Likewise.
20686         * modules/futimens (Depends-on): Likewise.
20687         * modules/getcwd (Depends-on): Likewise.
20688         * modules/getcwd-lgpl (Depends-on): Likewise.
20689         * modules/getdelim (Depends-on): Likewise.
20690         * modules/getdomainname (Depends-on): Likewise.
20691         * modules/getgroups (Depends-on): Likewise.
20692         * modules/gethostname (Depends-on): Likewise.
20693         * modules/getline (Depends-on): Likewise.
20694         * modules/getlogin_r (Depends-on): Likewise.
20695         * modules/getopt-posix (Depends-on): Likewise.
20696         * modules/getpeername (Depends-on): Likewise.
20697         * modules/getsockname (Depends-on): Likewise.
20698         * modules/getsockopt (Depends-on): Likewise.
20699         * modules/getsubopt (Depends-on): Likewise.
20700         * modules/getusershell (Depends-on): Likewise.
20701         * modules/glob (Depends-on): Likewise.
20702         * modules/grantpt (Depends-on): Likewise.
20703         * modules/iconv_open (Depends-on): Likewise.
20704         * modules/iconv_open-utf (Depends-on): Likewise.
20705         * modules/inet_ntop (Depends-on): Likewise.
20706         * modules/inet_pton (Depends-on): Likewise.
20707         * modules/ioctl (Depends-on): Likewise.
20708         * modules/isapipe (Depends-on): Likewise.
20709         * modules/isfinite (Depends-on): Likewise.
20710         * modules/isinf (Depends-on): Likewise.
20711         * modules/lchown (Depends-on): Likewise.
20712         * modules/ldexpl (Depends-on): Likewise.
20713         * modules/link (Depends-on): Likewise.
20714         * modules/linkat (Depends-on): Likewise.
20715         * modules/listen (Depends-on): Likewise.
20716         * modules/logl (Depends-on): Likewise.
20717         * modules/lstat (Depends-on): Likewise.
20718         * modules/mbrlen (Depends-on): Likewise.
20719         * modules/mbrtowc (Depends-on): Likewise.
20720         * modules/mbsinit (Depends-on): Likewise.
20721         * modules/mbsnrtowcs (Depends-on): Likewise.
20722         * modules/mbsrtowcs (Depends-on): Likewise.
20723         * modules/mbtowc (Depends-on): Likewise.
20724         * modules/memcmp (Depends-on): Likewise.
20725         * modules/mkdir (Depends-on): Likewise.
20726         * modules/mkdtemp (Depends-on): Likewise.
20727         * modules/mkfifo (Depends-on): Likewise.
20728         * modules/mkfifoat (Depends-on): Likewise.
20729         * modules/mknod (Depends-on): Likewise.
20730         * modules/mkostemp (Depends-on): Likewise.
20731         * modules/mkostemps (Depends-on): Likewise.
20732         * modules/mkstemp (Depends-on): Likewise.
20733         * modules/mkstemps (Depends-on): Likewise.
20734         * modules/mktime (Depends-on): Likewise.
20735         * modules/nanosleep (Depends-on): Likewise.
20736         * modules/open (Depends-on): Likewise.
20737         * modules/openat (Depends-on): Likewise.
20738         * modules/perror (Depends-on): Likewise.
20739         * modules/poll (Depends-on): Likewise.
20740         * modules/popen (Depends-on): Likewise.
20741         * modules/posix_spawn (Depends-on): Likewise.
20742         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20743         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20744         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20745         * modules/posix_spawnp (Depends-on): Likewise.
20746         * modules/pread (Depends-on): Likewise.
20747         * modules/printf-posix (Depends-on): Likewise.
20748         * modules/ptsname (Depends-on): Likewise.
20749         * modules/putenv (Depends-on): Likewise.
20750         * modules/pwrite (Depends-on): Likewise.
20751         * modules/readline (Depends-on): Likewise.
20752         * modules/readlink (Depends-on): Likewise.
20753         * modules/readlinkat (Depends-on): Likewise.
20754         * modules/recv (Depends-on): Likewise.
20755         * modules/recvfrom (Depends-on): Likewise.
20756         * modules/regex (Depends-on): Likewise.
20757         * modules/remove (Depends-on): Likewise.
20758         * modules/rename (Depends-on): Likewise.
20759         * modules/renameat (Depends-on): Likewise.
20760         * modules/rmdir (Depends-on): Likewise.
20761         * modules/round (Depends-on): Likewise.
20762         * modules/roundf (Depends-on): Likewise.
20763         * modules/roundl (Depends-on): Likewise.
20764         * modules/rpmatch (Depends-on): Likewise.
20765         * modules/select (Depends-on): Likewise.
20766         * modules/send (Depends-on): Likewise.
20767         * modules/sendto (Depends-on): Likewise.
20768         * modules/setenv (Depends-on): Likewise.
20769         * modules/setlocale (Depends-on): Likewise.
20770         * modules/setsockopt (Depends-on): Likewise.
20771         * modules/shutdown (Depends-on): Likewise.
20772         * modules/sigaction (Depends-on): Likewise.
20773         * modules/signbit (Depends-on): Likewise.
20774         * modules/sigprocmask (Depends-on): Likewise.
20775         * modules/sinl (Depends-on): Likewise.
20776         * modules/sleep (Depends-on): Likewise.
20777         * modules/snprintf (Depends-on): Likewise.
20778         * modules/snprintf-posix (Depends-on): Likewise.
20779         * modules/socket (Depends-on): Likewise.
20780         * modules/sprintf-posix (Depends-on): Likewise.
20781         * modules/sqrtl (Depends-on): Likewise.
20782         * modules/stat (Depends-on): Likewise.
20783         * modules/strchrnul (Depends-on): Likewise.
20784         * modules/strdup-posix (Depends-on): Likewise.
20785         * modules/strerror (Depends-on): Likewise.
20786         * modules/strerror_r-posix (Depends-on): Likewise.
20787         * modules/strndup (Depends-on): Likewise.
20788         * modules/strnlen (Depends-on): Likewise.
20789         * modules/strptime (Depends-on): Likewise.
20790         * modules/strsep (Depends-on): Likewise.
20791         * modules/strsignal (Depends-on): Likewise.
20792         * modules/strstr-simple (Depends-on): Likewise.
20793         * modules/strtod (Depends-on): Likewise.
20794         * modules/strtoimax (Depends-on): Likewise.
20795         * modules/strtok_r (Depends-on): Likewise.
20796         * modules/strtoumax (Depends-on): Likewise.
20797         * modules/symlink (Depends-on): Likewise.
20798         * modules/symlinkat (Depends-on): Likewise.
20799         * modules/tanl (Depends-on): Likewise.
20800         * modules/tcgetsid (Depends-on): Likewise.
20801         * modules/tmpfile (Depends-on): Likewise.
20802         * modules/trunc (Depends-on): Likewise.
20803         * modules/truncf (Depends-on): Likewise.
20804         * modules/truncl (Depends-on): Likewise.
20805         * modules/uname (Depends-on): Likewise.
20806         * modules/unlink (Depends-on): Likewise.
20807         * modules/unlockpt (Depends-on): Likewise.
20808         * modules/unsetenv (Depends-on): Likewise.
20809         * modules/usleep (Depends-on): Likewise.
20810         * modules/utimensat (Depends-on): Likewise.
20811         * modules/vasprintf (Depends-on): Likewise.
20812         * modules/vdprintf (Depends-on): Likewise.
20813         * modules/vdprintf-posix (Depends-on): Likewise.
20814         * modules/vfprintf-posix (Depends-on): Likewise.
20815         * modules/vprintf-posix (Depends-on): Likewise.
20816         * modules/vsnprintf (Depends-on): Likewise.
20817         * modules/vsnprintf-posix (Depends-on): Likewise.
20818         * modules/vsprintf-posix (Depends-on): Likewise.
20819         * modules/wcrtomb (Depends-on): Likewise.
20820         * modules/wcscasecmp (Depends-on): Likewise.
20821         * modules/wcscspn (Depends-on): Likewise.
20822         * modules/wcsdup (Depends-on): Likewise.
20823         * modules/wcsncasecmp (Depends-on): Likewise.
20824         * modules/wcsnrtombs (Depends-on): Likewise.
20825         * modules/wcspbrk (Depends-on): Likewise.
20826         * modules/wcsrtombs (Depends-on): Likewise.
20827         * modules/wcsspn (Depends-on): Likewise.
20828         * modules/wcsstr (Depends-on): Likewise.
20829         * modules/wcstok (Depends-on): Likewise.
20830         * modules/wcswidth (Depends-on): Likewise.
20831         * modules/wctob (Depends-on): Likewise.
20832         * modules/wctomb (Depends-on): Likewise.
20833         * modules/wctype (Depends-on): Likewise.
20834         * modules/wcwidth (Depends-on): Likewise.
20835         * modules/write (Depends-on): Likewise.
20836
20837 2011-05-03  Bruno Haible  <bruno@clisp.org>
20838
20839         Support for conditional dependencies.
20840         * doc/gnulib.texi (Module description): Document the syntax of
20841         conditional dependencies.
20842         * gnulib-tool: New option --conditional-dependencies.
20843         (func_usage): Document it.
20844         (cond_dependencies): New variable.
20845         (func_get_automake_snippet_conditional,
20846         func_get_automake_snippet_unconditional): New functions, extracted from
20847         func_get_automake_snippet.
20848         (func_get_automake_snippet): Use them.
20849         (sed_first_32_chars): New variable.
20850         (func_module_shellfunc_name): New function.
20851         (func_module_shellvar_name): New function.
20852         (func_module_conditional_name): New function.
20853         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20854         func_cond_module_condition): New functions.
20855         (func_modules_transitive_closure): Add support for conditional
20856         dependencies.
20857         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20858         conditional automake snippet in an automake conditional.
20859         (func_emit_autoconf_snippets): Emit shell functions that contain the
20860         code for conditional modules.
20861         (func_import, func_create_testdir): Update specification.
20862
20863 2011-05-03  Eric Blake  <eblake@redhat.com>
20864
20865         test-getaddrinfo: report error information
20866         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20867
20868 2011-05-03  Jim Meyering  <meyering@redhat.com>
20869
20870         bootstrap: avoid build failure when $GZIP is set
20871         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20872         program name.  If defined at all, it is supposed to list gzip options.
20873         Reported by Alan Curry in http://debbugs.gnu.org/8609
20874
20875 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20876
20877         readme-release: new module with release instructions
20878         * modules/readme-release: New module.
20879         * top/README-release: New file, from coreutils, grep, diffutils.
20880         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20881
20882 2011-05-02  Eric Blake  <eblake@redhat.com>
20883
20884         fflush: also replace fclose when fixing fflush
20885         * modules/fflush (Depends-on): Add fclose.
20886         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20887         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20888         memstreams with no backing fd.
20889         * doc/posix-functions/fclose.texi (fclose): Document the use of
20890         fflush module to fix the bug.
20891         * tests/test-fclose.c (main): Relax test when fclose is used in
20892         isolation.
20893
20894         fclose: add some tests
20895         * modules/fclose-tests: New test module.
20896         * tests/test-fclose.c: New file.
20897         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20898
20899         fclose: reduced dependencies
20900         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20901         simpler lseek.
20902         * lib/fclose.c (rpl_fclose): Likewise.
20903         Reported by Simon Josefsson.
20904
20905         exit: drop remaining clients
20906         * modules/argmatch (Depends-on): Replace exit with stdlib.
20907         * modules/copy-file (Depends-on): Likewise.
20908         * modules/execute (Depends-on): Likewise.
20909         * modules/exitfail (Depends-on): Likewise.
20910         * modules/obstack (Depends-on): Likewise.
20911         * modules/pagealign_alloc (Depends-on): Likewise.
20912         * modules/pipe-filter-gi (Depends-on): Likewise.
20913         * modules/pipe-filter-ii (Depends-on): Likewise.
20914         * modules/savewd (Depends-on): Likewise.
20915         * modules/spawn-pipe (Depends-on): Likewise.
20916         * modules/wait-process (Depends-on): Likewise.
20917         * modules/xsetenv (Depends-on): Likewise.
20918         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20919         * modules/git-merge-changelog (Depends-on): Likewise.
20920         * modules/long-options (Depends-on): Likewise.
20921         * modules/pt_chown (Depends-on): Likewise.
20922         * modules/sysexits (Depends-on): Likewise.
20923
20924         freading: relax license from LGPLv3+ to LGPLv2+
20925         * modules/freading (License): Relax LGPL version.
20926
20927 2011-05-02  Bruno Haible  <bruno@clisp.org>
20928
20929         fchdir: Remove unused dependencies.
20930         * modules/fchdir (Depends-on): Remove include_next.
20931
20932 2011-05-02  Bruno Haible  <bruno@clisp.org>
20933
20934         gnulib-tool: Refactor.
20935         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20936         from func_emit_autoconf_snippets.
20937         (func_emit_autoconf_snippets): Use it.
20938
20939 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20940
20941         * NEWS: Document removal of 'exit'.
20942         * modules/exit: Remove file.
20943
20944 2011-05-01  Bruno Haible  <bruno@clisp.org>
20945
20946         Update DEPENDENCIES.
20947         * DEPENDENCIES (gettext): Recommend the newest release.
20948         Reported by Simon Josefsson.
20949
20950 2011-05-01  Bruno Haible  <bruno@clisp.org>
20951
20952         gnulib-tool: Reduce code duplication.
20953         * gnulib-tool (func_emit_autoconf_snippets): New function.
20954         (func_import, func_create_testdir): Use it.
20955
20956 2011-04-30  Eric Blake  <eblake@redhat.com>
20957
20958         fclose: don't fail on non-seekable input stream
20959         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20960         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20961         since fflush is allowed to fail in that case.
20962
20963 2011-04-30  Bruno Haible  <bruno@clisp.org>
20964
20965         dup3: cleanup
20966         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20967
20968 2011-04-30  Bruno Haible  <bruno@clisp.org>
20969
20970         netdb: Make it work in C++ mode.
20971         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20972         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20973         module.
20974         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20975         gl_MODULE_INDICATOR_FOR_TESTS.
20976         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20977         * modules/netdb-c++-tests: New file.
20978         * tests/test-netdb-c++.cc: New file.
20979
20980 2011-04-30  Bruno Haible  <bruno@clisp.org>
20981
20982         New modules 'vfscanf', 'vscanf'.
20983         * modules/vfscanf: New file.
20984         * modules/vscanf: New file.
20985         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20986         here.
20987         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20988         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20989
20990 2011-04-30  Bruno Haible  <bruno@clisp.org>
20991
20992         passfd: Add comments.
20993         * lib/passfd.c: Add comments about platforms.
20994
20995 2011-04-30  Bruno Haible  <bruno@clisp.org>
20996
20997         sys_uio: Make <sys/uio.h> self-contained.
20998         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20999         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21000
21001 2011-04-30  Bruno Haible  <bruno@clisp.org>
21002
21003         sys_socket: Ensure 'struct iovec' definition.
21004         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21005         <sys/socket.h>.
21006         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21007
21008 2011-04-30  Bruno Haible  <bruno@clisp.org>
21009
21010         sys_uio: Protect definition of 'struct iovec'.
21011         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21012         it as a C struct.
21013
21014 2011-04-30  Bruno Haible  <bruno@clisp.org>
21015
21016         manywarnings: fix indentation
21017         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21018
21019 2011-04-30  Pádraig Brady <P@draigBrady.com>
21020
21021         manywarnings: add -Wno-missing-field-initializers if needed.
21022         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21023         option if it's needed to allow initialization with { 0, }
21024
21025 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21026
21027         announce-gen: cosmetic improvement
21028         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21029
21030 2011-04-29  Jim Meyering  <meyering@redhat.com>
21031
21032         vc-list-files: indent with spaces, not TABs
21033         * build-aux/vc-list-files: Convert leading TABs to spaces,
21034         to match the style of most other files in gnulib.
21035
21036         announce-gen: indent with spaces, not TABs
21037         * build-aux/announce-gen: Convert all TABs to spaces, to match
21038         the style of most other files in gnulib.
21039
21040 2011-04-29  Eric Blake  <eblake@redhat.com>
21041
21042         quotearg: avoid uninitialized variable use
21043         * lib/quotearg.c (quoting_options_from_style): Initialize
21044         remaining fields, and ensure that custom styles are only used via
21045         quoting_options rather than quoting_style.
21046
21047 2011-04-29  Jim Meyering  <meyering@redhat.com>
21048
21049         maint.mk: remove unused VC-tag variable
21050         * top/maint.mk (VC-tag): Remove unused variable.
21051
21052 2011-04-29  Bruno Haible  <bruno@clisp.org>
21053
21054         netdb: fix gai_strerror replacements
21055         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21056         * modules/netdb: Substitute it.
21057
21058 2011-04-29  Jim Meyering  <meyering@redhat.com>
21059
21060         test-getcwd.c: avoid new set-but-not-used warning
21061         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21062         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21063         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21064         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21065
21066         test-hash.c: avoid a new shadowing warning
21067         * tests/test-hash.c (main): Don't shadow "dup".
21068
21069 2011-04-28  Eric Blake  <eblake@redhat.com>
21070
21071         getaddrinfo: fix gai_strerror signature
21072         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21073         and work around mingw with UNICODE defined.
21074         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21075         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21076         * modules/netdb (Makefile.am): Substitute it.
21077         * lib/netdb.in.h (gai_strerror): Declare replacement.
21078         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21079         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21080         the fix.
21081
21082         getsockopt: avoid compiler warning
21083         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21084         Reported by Matthias Bolte.
21085
21086         tests: drop unused link dependency
21087         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21088         * modules/dirent-safer-tests (Makefile.am): Likewise.
21089         * modules/fdopendir-tests (Makefile.am): Likewise.
21090         * modules/mkfifoat-tests (Makefile.am): Likewise.
21091         * modules/openat-safer-tests (Makefile.am): Likewise.
21092         * modules/openat-tests (Makefile.am): Likewise.
21093         * modules/readlinkat-tests (Makefile.am): Likewise.
21094         * modules/symlinkat-tests (Makefile.am): Likewise.
21095         * modules/linkat-tests (Makefile.am): Likewise.
21096         (Depends-on): Switch to filenamecat-lgpl.
21097         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21098         LIBINTL.
21099         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21100         * tests/test-linkat.c (main): Don't require xalloc.
21101
21102         hash, mgetgroups: drop xalloc dependency
21103         * lib/hash.c (includes): Adjust includes.
21104         * lib/mgetgroups.c (includes): Likewise.
21105         (xgetgroups): Move...
21106         * lib/xgetgroups.c: ...to new file.
21107         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21108         * modules/xgetgroups: New file, split from...
21109         * modules/mgetgroups: ...here.
21110         (Depends-on): Add xalloc-oversized.
21111         * modules/hash (Depends-on): Likewise.
21112         * modules/hash-tests (Depends-on): Drop xalloc.
21113         (test_hash_LDADD): Drop unused library.
21114         * tests/test-hash.c (main): Break xalloc dependency.
21115         (includes): Drop unused include.
21116
21117         xalloc-oversized: new module
21118         * modules/xalloc-oversized: New module.
21119         * modules/xalloc (Depends-on): Add it.
21120         * lib/xalloc.h (xalloc_oversized): Move...
21121         * lib/xalloc-oversized.h: ...into new file.
21122
21123         utimecmp: drop dependency on xmalloc
21124         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21125         due to memory pressure.
21126         * modules/utimecmp (Depends-on): Drop xalloc.
21127
21128 2011-04-27  Eric Blake  <eblake@redhat.com>
21129
21130         getcwd: fix mingw bugs
21131         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21132         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21133         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21134
21135 2011-04-27  Bruno Haible  <bruno@clisp.org>
21136
21137         mkstemps: Ensure declaration on MacOS X 10.5.
21138         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21139         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21140         MacOS X.
21141
21142 2011-04-27  Bruno Haible  <bruno@clisp.org>
21143
21144         mkstemp: More documentation.
21145         * doc/posix-functions/mkstemp.texi: Document header file problem on
21146         MacOS X.
21147
21148 2011-04-27  Bruno Haible  <bruno@clisp.org>
21149
21150         mkstemp: Tweak configure message when cross-compiling.
21151         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21152         result as a guess.
21153
21154 2011-04-27  Bruno Haible  <bruno@clisp.org>
21155
21156         clean-temp: Clarify what it does.
21157         * lib/clean-temp.h: Add more comments.
21158         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21159         module.
21160         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21161         * doc/glibc-functions/mkstemps.texi: Likewise.
21162         * doc/glibc-functions/mkostemps.texi: Likewise.
21163
21164 2011-04-27  Eric Blake  <eblake@redhat.com>
21165
21166         fchdir: avoid extra chdir and fix test
21167         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21168         getcwd-lgpl.
21169         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21170         have to be canonical.
21171         (canonicalize_file_name): Drop unused macro.
21172         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21173
21174         filenamecat-lgpl: fix licence
21175         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21176         when it was first created.
21177
21178         linkat, renameat: add missing dependency
21179         * modules/linkat (Depends-on): Require getcwd-lgpl.
21180         * modules/renameat (Depends-on): Likewise.
21181
21182         tests: reduce dependencies
21183         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21184         * tests/test-renameat.c (main): Likewise.
21185         * modules/linkat-tests (Depends-on): Relax dependency.
21186         * modules/renameat-tests (Depends-on): Likewise.
21187         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21188         dependency explicit.
21189
21190         save-cwd: reduce default dependency
21191         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21192         * lib/save-cwd.c: Update comments.
21193         * NEWS: Document the semantic change.
21194
21195         getcwd: enhance tests
21196         * tests/test-getcwd-lgpl.c: New file, taken from...
21197         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21198         repeat long path stress tests from m4 probe.
21199         * modules/getcwd-lgpl-tests: New module.
21200         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21201         * m4/getcwd-abort-bug.m4: Update comment.
21202         * m4/getcwd-path-max.m4: Likewise.
21203
21204         getcwd-lgpl: new module
21205         * modules/getcwd-lgpl: New module.
21206         * lib/getcwd-lgpl.c: New file.
21207         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21208         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21209         * modules/getcwd (configure.ac): Set C witness.
21210         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21211
21212         getcwd: tweak comments
21213         * m4/getcwd-abort-bug.m4: Fix comments.
21214         * m4/getcwd-path-max.m4: Likewise.
21215         * m4/getcwd.m4: Likewise.
21216
21217 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21218         and Eric Blake  <eblake@redhat.com>
21219
21220         mkstemp: replace if system version uses wrong permissions
21221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21222         read/write mode bits set in file created by mkstemp.
21223         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21224
21225 2011-04-27  Eric Blake  <eblake@redhat.com>
21226
21227         passfd: avoid compiler warning
21228         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21229         Reported by Laine Stump.
21230
21231 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21232
21233         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21234         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21235
21236 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21237         and Eric Blake  <eblake@redhat.com>
21238
21239         mkstemp: mention clean-temp module
21240         * lib/mkstemp.c: Add comment.
21241         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21242
21243 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21244
21245         inttypes: also provide default values for 32-bit tests
21246         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21247         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21248
21249 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21250
21251         strtoumax: remove dependency on strtoimax
21252         This is like the strtoull change of yesterday.
21253         * modules/strtoumax (Files): Add lib/strtoimax.c.
21254         (Depends-on): Remove strtoimax and add verify.
21255
21256         inttypes-incomplete: new module
21257         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21258         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21259         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21260         of gl_INTTYPES_H.
21261         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21262         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21263         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21264         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21265         * modules/strtoumax, modules/xstrtol (Depends-on):
21266         Depend on inttypes-incomplete, not inttypes.
21267         * modules/inttypes-incomplete: New module, containing the contents
21268         of the old modules/inttypes module, except that the Files: section
21269         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21270         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21271         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21272         (Depends-on): Depend only on inttypes-incomplete.
21273         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21274
21275         inttypes: omit now-redundant strtoimax and strtoumax work
21276         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21277         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21278
21279         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21280         This supports apps that need pointers to strtoimax and strtoumax,
21281         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21282         nonexistent functions.  See
21283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21284         et seq.
21285         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21286         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21287         a macro.
21288         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21289
21290 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21291
21292         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21293
21294 2011-04-25  Bruno Haible  <bruno@clisp.org>
21295
21296         strtol, strtoul: Mark modules as obsolete.
21297         * modules/strtol (Status, Notice): New sections.
21298         * modules/strtoul (Status, Notice): New sections.
21299
21300 2011-04-25  Bruno Haible  <bruno@clisp.org>
21301
21302         strtod: Remove check for strtod, unless supporting old platforms.
21303         * modules/strtod-obsolete: New file.
21304         * m4/strtod-obsolete.m4: New file.
21305         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21306         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21307         * modules/strtod (Depends-on): Add strtod-obsolete.
21308         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21309
21310 2011-04-25  Bruno Haible  <bruno@clisp.org>
21311
21312         strcase: Make module obsolete.
21313         * modules/strcase (Status, Notice): New sections.
21314
21315 2011-04-25  Bruno Haible  <bruno@clisp.org>
21316
21317         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21318         * modules/dup2-obsolete: New file.
21319         * m4/dup2-obsolete.m4: New file.
21320         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21321         gl_FUNC_DUP2_OBSOLETE is not also defined.
21322         * modules/dup2 (Depends-on): Add dup2-obsolete.
21323         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21324
21325 2011-04-25  Bruno Haible  <bruno@clisp.org>
21326
21327         strnlen: Avoid memchr related link error on old obsolete platforms.
21328         * modules/memchr-obsolete: New file.
21329         * m4/memchr-obsolete.m4: New file.
21330         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21331         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21332         * modules/memchr (Depends-on): Add memchr-obsolete.
21333         * modules/strnlen (Depends-on): Likewise.
21334         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21335
21336 2011-04-25  Jim Meyering  <meyering@redhat.com>
21337
21338         maint.mk: makefile_at_at_check extend and clean up
21339         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21340         in addition to */Makefile.am.
21341         Exempt legitimate uses of @VAR@ notation, e.g.,
21342         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21343         Remove obsolete coreutils-specific comment.
21344         Prompted by discussion here:
21345         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21346
21347 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21348
21349         strtoul: remove dependency on strtol
21350         This is so that 'configure' need not check for strtol merely because
21351         the application needs strtoul.
21352         * modules/strtoul (Files): Add lib/strtol.c.
21353         (Depends-on): Remove strtol.
21354
21355         strtoull: remove dependency on strtoul
21356         This is like the strtoll change.
21357         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21358         (Depends-on): Remove strtoul.
21359
21360         strtoll: remove dependency on strtol
21361         This is so that 'configure' need not check for strtol merely because
21362         the application needs strtoll.
21363         * modules/strtoll (Files): Add lib/strtol.c.
21364         (Depends-on): Remove strtol.
21365
21366 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21367
21368         inttypes: Move some configure check to module 'imaxdiv'.
21369         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21370         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21371         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21372
21373 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21374
21375         inttypes: Move some configure check to module 'imaxabs'.
21376         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21377         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21378         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21379
21380 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21381
21382         inttypes: Remove configure tests that are not needed since 2009-12-31.
21383         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21384         gl_cv_header_working_inttypes_h.
21385
21386 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21387
21388         * modules/strnlen (Depends-on): Remove memchr.
21389         The strnlen implementation doesn't need the memchr module's fixes; see
21390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21391
21392         strtol: remove dependency on wchar
21393         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21394         * modules/strtol (Depends-on): Remove wchar.
21395
21396 2011-04-21  Eric Blake  <eblake@redhat.com>
21397
21398         passfd: fix test regression on Linux
21399         * modules/passfd-tests (configure.ac): Correct socketpair check.
21400
21401         passfd: speed up configure and drop unused code
21402         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21403         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21404         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21405         Instead of probing at configure for unix_scm_rights_bsd44_way,
21406         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21407         check to a struct member probe.
21408         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21409         (sendfd, recvfd): Update preprocessor checks.
21410         * modules/passfd (Files): Reflect rename, and drop unused file.
21411         (Depends-on): Drop unused dependency.
21412
21413         passfd: allow compilation on mingw
21414         * modules/sys_socket (Depends-on): Add sys_uio.
21415         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21416         iovec and a minimal struct msghdr.
21417         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21418         * tests/test-sys_socket.c (main): Enhance test.
21419         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21420         guaranteed to provide what we need.
21421         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21422         * modules/passfd-tests (Depends-on): Add sys_wait.
21423         * tests/test-passfd.c (main): Skip test on mingw, for now.
21424         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21425         partial 'struct msghdr' implementation.
21426
21427         sys_uio: new module
21428         * modules/sys_uio: New module.
21429         * modules/sys_uio-tests: Likewise.
21430         * lib/sys_uio.in.h: New file.
21431         * m4/sys_uio_h.m4: Likewise.
21432         * tests/test-sys_uio.c: Likewise.
21433         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21434         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21435
21436 2011-04-20  Jim Meyering  <meyering@redhat.com>
21437
21438         useless-if-before-free: avoid false-positive
21439         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21440         disjunct so that it too requires a terminating ";".  Without that,
21441         this script would identify as useless one statement from gcc that
21442         was not:
21443           if (aligned_ptr)
21444             free (((void **) aligned_ptr) [-1]);
21445
21446 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21447
21448         doc: update users.txt.
21449         * users.txt: Add barcode.
21450
21451 2011-04-19  Bruno Haible  <bruno@clisp.org>
21452
21453         ioctl: Remove link dependency on native Windows.
21454         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21455         (gl_close_fn, gl_ioctl_fn): New types.
21456         (struct fd_hook): Renamed from struct close_hook. Change type of
21457         private_close_fn field. Add private_ioctl_fn field.
21458         (close_hook_fn): Add parameter for primary close method.
21459         (execute_close_hooks, execute_all_close_hooks): Likewise.
21460         (ioctl_hook_fn): New type.
21461         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21462         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21463         argument.
21464         (unregister_fd_hook): Renamed from unregister_close_hook.
21465         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21466         Don't include <unistd.h>.
21467         (close): Remove undef.
21468         (anchor): Update.
21469         (execute_close_hooks): Add argument for primary close method.
21470         (execute_all_close_hooks): Likewise.
21471         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21472         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21473         argument. Allow each argument to be NULL.
21474         (unregister_fd_hook): Renamed from unregister_close_hook.
21475         * lib/close.c (rpl_close): Pass 'close' function pointer to
21476         execute_all_close_hooks.
21477         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21478         (primary_ioctl): New function.
21479         (ioctl): Don't call ioctlsocket here. Instead, call
21480         execute_all_ioctl_hooks.
21481         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21482         close method.
21483         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21484         (fd_sockets_hook): Renamed from close_sockets_hook.
21485         (gl_sockets_startup, gl_sockets_cleanup): Update.
21486         * modules/fd-hook: Renamed from modules/close-hook. Update.
21487         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21488         * modules/sockets (Depends-on): Likewise.
21489         * modules/ioctl (Depends-on): Add fd-hook.
21490         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21491         GNULIB_SOCKET.
21492
21493 2011-04-19  Bruno Haible  <bruno@clisp.org>
21494
21495         Move the support of O_NONBLOCK in open() to the 'open' module.
21496         * modules/nonblocking (Depends-on): Remove 'open'.
21497         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21498         gl_cv_have_open_O_NONBLOCK.
21499         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21500         O_NONBLOCK support.
21501         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21502
21503 2011-04-17  Bruno Haible  <bruno@clisp.org>
21504
21505         pipe2: Simplify code.
21506         * lib/pipe2.c (pipe2): Reduce code duplication.
21507
21508 2011-04-17  Bruno Haible  <bruno@clisp.org>
21509
21510         nonblocking: Add comment.
21511         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21512
21513 2011-04-17  Bruno Haible  <bruno@clisp.org>
21514
21515         nonblocking: Add tests for sockets.
21516         * tests/test-nonblocking-socket.sh: New file.
21517         * tests/test-nonblocking-socket-main.c: New file.
21518         * tests/test-nonblocking-socket-child.c: New file.
21519         * tests/test-nonblocking-socket.h: New file.
21520         * tests/socket-server.h: New file.
21521         * tests/socket-client.h: New file.
21522         * modules/nonblocking-socket-tests: New file.
21523         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21524
21525 2011-04-17  Bruno Haible  <bruno@clisp.org>
21526
21527         nonblocking: Add tests for pipes.
21528         * tests/test-nonblocking-pipe.sh: New file.
21529         * tests/test-nonblocking-pipe-main.c: New file.
21530         * tests/test-nonblocking-pipe-child.c: New file.
21531         * tests/test-nonblocking-pipe.h: New file.
21532         * tests/test-nonblocking-writer.h: New file.
21533         * tests/test-nonblocking-reader.h: New file.
21534         * tests/test-nonblocking-misc.h: New file.
21535         * modules/nonblocking-pipe-tests: New file.
21536         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21537
21538 2011-04-16  Bruno Haible  <bruno@clisp.org>
21539
21540         gettext: Clarify the needed programmer actions.
21541         * modules/gettext (Notice): New field.
21542         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21543
21544 2011-04-16  Bruno Haible  <bruno@clisp.org>
21545
21546         strchrnul: Tweak last commit.
21547         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21548         bug.
21549         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21550         as in _GL_FUNCDECL_SYS.
21551         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21552         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21553
21554 2011-04-15  Eric Blake  <eblake@redhat.com>
21555
21556         strchrnul: work around cygwin bug
21557         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21558         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21560         * modules/string (Makefile.am): Substitute it.
21561         * lib/string.in.h (strchrnul): Use it.
21562
21563 2011-04-15  Bruno Haible  <bruno@clisp.org>
21564
21565         Don't require lib/stdio-write.c when only module 'stdio' is used.
21566         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21567         invocation.
21568         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21569
21570 2011-04-14  Bruno Haible  <bruno@clisp.org>
21571
21572         Support non-blocking pipe I/O in read() on native Windows.
21573         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21574         (read): New declaration.
21575         * lib/read.c: New file.
21576         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21577         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21578         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21579         vscanf): New declarations.
21580         * lib/stdio-read.c: New file.
21581         * m4/read.m4: New file.
21582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21583         REPLACE_READ.
21584         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21585         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21586         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21587         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21588         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21589         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21590         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21591         * modules/read: New file.
21592         * modules/nonblocking (Files): Add lib/stdio-read.c.
21593         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21594         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21595         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21596         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21597         * modules/pread (Depends-on): Add read.
21598         * modules/safe-read (Depends-on): Likewise.
21599         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21600         gets, scanf, vfscanf, vscanf): Verify signatures.
21601         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21602         problem with non-blocking pipes.
21603         * doc/posix-functions/fgetc.texi: Likewise.
21604         * doc/posix-functions/fgets.texi: Likewise.
21605         * doc/posix-functions/fread.texi: Likewise.
21606         * doc/posix-functions/fscanf.texi: Likewise.
21607         * doc/posix-functions/getc.texi: Likewise.
21608         * doc/posix-functions/getchar.texi: Likewise.
21609         * doc/posix-functions/gets.texi: Likewise.
21610         * doc/posix-functions/scanf.texi: Likewise.
21611         * doc/posix-functions/vfscanf.texi: Likewise.
21612         * doc/posix-functions/vscanf.texi: Likewise.
21613
21614 2011-04-14  Bruno Haible  <bruno@clisp.org>
21615
21616         Support non-blocking pipe I/O in write() on native Windows.
21617         * lib/write.c (rpl_write): Split a write request that failed merely
21618         because the byte count was larger than the pipe buffer's size.
21619         * doc/posix-functions/write.texi: Mention the problem with large byte
21620         counts.
21621
21622 2011-04-14  Bruno Haible  <bruno@clisp.org>
21623
21624         wchar: Ensure that wchar_t gets defined on uClibc.
21625         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21626         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21627
21628 2011-04-13  Bruno Haible  <bruno@clisp.org>
21629
21630         safe-write, full-read: Avoid unnecessary compilation units.
21631         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21632         (Depends-on): Remove safe-read. Add ssize_t.
21633         * modules/full-read (Files): Add lib/full-write.c.
21634         (Depends-on): Add full-write.
21635
21636 2011-04-13  Bruno Haible  <bruno@clisp.org>
21637
21638         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21639         * modules/pwrite (Depends-on): Add 'write'.
21640
21641 2011-04-13  Bruno Haible  <bruno@clisp.org>
21642
21643         Support non-blocking pipe I/O in write() on native Windows.
21644         * lib/unistd.in.h (write): Enable replacement also if
21645         GNULIB_UNISTD_H_NONBLOCKING is 1.
21646         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21647         (rpl_write): When failing to write on a non-blocking pipe, change
21648         errno from ENOSPC to EAGAIN.
21649         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21650         putchar, puts, vfprintf, vprintf): Enable replacement also if
21651         GNULIB_STDIO_H_NONBLOCKING is 1.
21652         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21653         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21654         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21655         CALL_WITH_SIGPIPE_EMULATION.
21656         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21657         * m4/nonblocking.m4: New file.
21658         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21659         for non-blocking I/O support.
21660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21661         GNULIB_UNISTD_H_NONBLOCKING.
21662         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21663         required for non-blocking I/O support.
21664         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21665         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21666         lib/stdio-write.c, m4/asm-underscore.m4.
21667         (Depends-on): Add stdio, unistd.
21668         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21669         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21670         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21671         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21672         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21673         problem with non-blocking pipes.
21674         * doc/posix-functions/fputc.texi: Likewise.
21675         * doc/posix-functions/fputs.texi: Likewise.
21676         * doc/posix-functions/fwrite.texi: Likewise.
21677         * doc/posix-functions/printf.texi: Likewise.
21678         * doc/posix-functions/putc.texi: Likewise.
21679         * doc/posix-functions/putchar.texi: Likewise.
21680         * doc/posix-functions/puts.texi: Likewise.
21681         * doc/posix-functions/vfprintf.texi: Likewise.
21682         * doc/posix-functions/vprintf.texi: Likewise.
21683         * doc/posix-functions/write.texi: Likewise.
21684
21685 2011-04-10  Jim Meyering  <meyering@redhat.com>
21686
21687         maint.mk: prohibit doubled words
21688         Detect them also when they're separated by a newline.
21689         There are 3 ways to customize it:
21690           - disable the test on a per file basis, as usual with rules using
21691             $(VC_LIST_EXCEPT)
21692           - replace the default doubled-word-selecting regexp (affects all files)
21693           - ignore a particular file-vs-doubled-word match
21694         I nearly used that last one to ignore the "is is" match in
21695         coreutils' NEWS file, since the text was "ls -is is ..."
21696         To do that, I would have added this line to cfg.mk:
21697           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21698         but it would have ignored any "is is" match in NEWS.
21699         Low probability, but still...
21700         Instead, I changed the text, slightly:
21701           -  ls -is is now consistent with ls -lis in ignoring values returned
21702           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21703         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21704         (prohibit_doubled_word_): Define.
21705         (sc_prohibit_doubled_word): New rule.
21706         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21707
21708 2011-04-10  Jim Meyering  <meyering@redhat.com>
21709
21710         maint: fix doubled-word typo in comment
21711         * m4/gethostname.m4: s/is is/it is/
21712         * m4/getdomainname.m4: Likewise.
21713
21714 2011-04-10  Jim Meyering  <meyering@redhat.com>
21715
21716         maint: remove doubled word: s/it it/it/
21717         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21718
21719 2011-04-10  Jim Meyering  <meyering@redhat.com>
21720
21721         maint.mk: remove useless semicolon and backslash
21722         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21723         semicolon and backslash.
21724
21725 2011-04-10  Bruno Haible  <bruno@clisp.org>
21726
21727         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21728         * modules/stdint-tests (Depends-on): Add wchar.
21729
21730 2011-04-10  Jim Meyering  <meyering@redhat.com>
21731
21732         maint: remove doubled words in comments, e.g., s/a a/a/
21733         * lib/strptime.c (day_of_the_week): s/the the/the/
21734         * tests/test-chown.h (test_chown): s/a a/a/
21735
21736         test-chown.h: correct a cast
21737         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21738         when the destination is a stat.st_gid.
21739
21740 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21741
21742         getaddrinfo: Fix test for sa_len member.
21743         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21744         include <sys/types.h> before <sys/socket.h>.
21745
21746 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21747
21748         maint: change "can not" to "cannot"
21749         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21750         boundaries.
21751
21752 2011-04-09  Jim Meyering  <meyering@redhat.com>
21753
21754         maint: change "a a" to "a"
21755         * tests/test-lchown.h (test_lchown): s/a a/a/
21756
21757         maint.mk: prohibit \<the the\>
21758         * top/maint.mk (sc_prohibit_the_the): New rule.
21759
21760         maint: fix "the the" in comment
21761         * lib/count-one-bits.h: s/the the/the/
21762
21763         maint: change "can not" to "cannot"
21764         But do not change the occurrences in maintain.texi or in
21765         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21766         * doc/gnulib-tool.texi: s/can not/cannot/
21767         * doc/posix-functions/accept.texi (accept): Likewise.
21768         * doc/posix-functions/socket.texi (socket): Likewise.
21769         * lib/mbrtowc.c: Likewise.
21770
21771         maint.mk: prohibit use of "can not"
21772         * top/maint.mk (sc_prohibit_can_not): New rule.
21773         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21774
21775 2011-04-09  Bruno Haible  <bruno@clisp.org>
21776
21777         careadlinkat: Guard against misuse of careadlinkatcwd.
21778         * lib/careadlinkat.c: Include <stdlib.h>.
21779         (careadlinkatcwd): Check that the fd argument is as expected.
21780
21781 2011-04-09  Bruno Haible  <bruno@clisp.org>
21782
21783         careadlinkat: Use common coding style.
21784         * lib/careadlinkat.c: Move gnulib includes after system includes.
21785
21786 2011-04-09  Bruno Haible  <bruno@clisp.org>
21787
21788         careadlinkat: Clarify specification.
21789         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21790         (careadlinkatcwd): Add comment.
21791         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21792
21793 2011-04-09  Bruno Haible  <bruno@clisp.org>
21794
21795         areadlinkat: Avoid link error on many platforms.
21796         * modules/areadlinkat (Depends-on): Add areadlink.
21797
21798 2011-04-09  Bruno Haible  <bruno@clisp.org>
21799
21800         allocator, careadlinkat: Fix double-inclusion guard.
21801         * lib/allocator.h: Fix double-inclusion guard.
21802         * lib/careadlinkat.h: Likewise.
21803
21804 2011-04-09  Bruno Haible  <bruno@clisp.org>
21805
21806         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21807         * lib/relocwrapper.c: Update dependencies hierarchy.
21808         * build-aux/install-reloc: Update list of files to be compiled.
21809         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21810         lib/allocator.[hc].
21811
21812 2011-04-08  Eric Blake  <eblake@redhat.com>
21813
21814         strftime: silence gnulib-tool warning
21815         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21816
21817 2011-04-08  Bruno Haible  <bruno@clisp.org>
21818
21819         verify: Fix syntax error with GCC 4.6 in C++ mode.
21820         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21821         (HAVE_STATIC_ASSERT): New macro.
21822         (verify_true, verify): Use 'static_assert' if it is supported and
21823         '_Static_assert' is not supported.
21824
21825 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21826
21827         allocator: New module.
21828         * modules/allocator, lib/allocator.c: New files.
21829         * lib/allocator.h (stdlib_allocator): New decl.
21830         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21831         Remove.  Do not include <stdlib.h>.
21832         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21833         * modules/careadlinkat (Files): Remove lib/allocator.h.
21834         (Depends-on): Add allocator.
21835
21836         stdlib: let modules use system malloc, realloc
21837         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21838         if !_GL_USE_STDLIB_ALLOC.
21839         (malloc, realloc): Limit this change to a smaller scope.
21840
21841         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21842         (malloc, realloc): Don't #undef; no longer needed.
21843         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21844         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21845         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21846         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21847         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21848         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21849         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21850         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21851
21852         careadlinkat: rename members to avoid problem
21853         * lib/allocator.h (struct allocator): Rename members from
21854         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21855         and realloc are #define'd.  Reported by Eric Blake in
21856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21857         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21858
21859 2011-04-08  Eric Blake  <eblake@redhat.com>
21860
21861         nonblocking: reduce dependency
21862         * tests/test-nonblocking.c: Only test sockets when in use.
21863         * modules/nonblocking-tests (Depends-on): Drop socket.
21864         (Makefile.am): Link even if sockets are not present.
21865         * modules/pipe2-tests (Makefile.am): Likewise.
21866         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21867
21868         pipe2: fix O_NONBLOCK support on mingw
21869         * modules/pipe2 (Depends-on): Add nonblocking.
21870         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21871         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21872         * tests/test-nonblocking.c (main): Likewise.
21873         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21874
21875         fcntl-h: fix O_ACCMODE on cygwin
21876         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21877         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21878
21879         pipe-filter: drop O_NONBLOCK workarounds
21880         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21881         * modules/pipe-filter-ii (Depends-on): Likewise.
21882         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21883
21884         nonblocking: provide O_NONBLOCK for mingw
21885         * modules/nonblocking (Depends-on): Add open.
21886         (configure.ac): Set new witness macro.
21887         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21888         * modules/fcntl-h (Makefile.am): Substitute it.
21889         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21890         nonblocking module is in use.
21891         * lib/nonblocking.c: Adjust portability test.
21892         * lib/open.c (open): Don't let native open see gnulib flag.
21893         * tests/test-fcntl-h.c (main): Enhance test.
21894         * tests/test-open.h (test_open): Likewise.
21895         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21896
21897         careadlinkat: fix compilation error on mingw
21898         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21899         within struct allocator.
21900
21901 2011-04-06  Eric Blake  <eblake@redhat.com>
21902
21903         binary-io: relicense under LGPLv2+
21904         * modules/binary-io (License): Relax to LGPLv2+.
21905         Requested for libvirt, and required by pipe2.
21906
21907 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21908
21909         verify: use _Static_assert if available
21910         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21911         (verify_true, verify): Use it if available.  This generates better
21912         diagnostics with GCC 4.6.0 and later.
21913
21914 2011-04-05  Bruno Haible  <bruno@clisp.org>
21915
21916         Remove leftover generated .h files after config.status changed.
21917
21918         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21919         GL_GENERATE_ALLOCA_H.
21920         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21921         GL_GENERATE_ALLOCA_H evaluates to false.
21922
21923         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21924         GL_GENERATE_ARGZ_H.
21925         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21926         evaluates to false.
21927
21928         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21929         GL_GENERATE_BYTESWAP_H.
21930         * modules/byteswap (Makefile.am): Remove byteswap.h if
21931         GL_GENERATE_BYTESWAP_H evaluates to false.
21932
21933         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21934         GL_GENERATE_ERRNO_H.
21935         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21936         evaluates to false.
21937
21938         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21939         GL_GENERATE_FLOAT_H.
21940         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21941         evaluates to false.
21942
21943         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21944         GL_GENERATE_FNMATCH_H.
21945         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21946         GL_GENERATE_FNMATCH_H evaluates to false.
21947
21948         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21949         GL_GENERATE_GLOB_H.
21950         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21951         evaluates to false.
21952
21953         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21954         automake conditional GL_GENERATE_ICONV_H.
21955         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21956         evaluates to false.
21957
21958         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21959         GL_GENERATE_NETINET_IN_H.
21960         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21961         GL_GENERATE_NETINET_IN_H evaluates to false.
21962
21963         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21964         conditional GL_GENERATE_PTHREAD_H.
21965         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21966         * modules/pthread (Makefile.am): Remove pthread.h if
21967         GL_GENERATE_PTHREAD_H evaluates to false.
21968
21969         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21970         GL_GENERATE_SCHED_H.
21971         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21972         evaluates to false.
21973
21974         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21975         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21976         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21977         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21978
21979         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21980         GL_GENERATE_STDARG_H.
21981         * modules/stdarg (Makefile.am): Remove stdarg.h if
21982         GL_GENERATE_STDARG_H evaluates to false.
21983
21984         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21985         GL_GENERATE_STDBOOL_H.
21986         * modules/stdbool (Makefile.am): Remove stdbool.h if
21987         GL_GENERATE_STDBOOL_H evaluates to false.
21988
21989         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21990         conditional GL_GENERATE_STDDEF_H.
21991         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21992         * modules/stddef (Makefile.am): Remove stddef.h if
21993         GL_GENERATE_STDDEF_H evaluates to false.
21994
21995         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21996         GL_GENERATE_STDINT_H.
21997         * modules/stdint (Makefile.am): Remove stdint.h if
21998         GL_GENERATE_STDINT_H evaluates to false.
21999
22000         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22001         GL_GENERATE_SYSEXITS_H.
22002         * modules/sysexits (Makefile.am): Remove sysexits.h if
22003         GL_GENERATE_SYSEXITS_H evaluates to false.
22004
22005         Reported by Karl Berry and Ralf Wildenhues.
22006
22007 2011-04-05  Bruno Haible  <bruno@clisp.org>
22008
22009         Ensure to rebuild generated .h files when config.status has changed.
22010         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22011         config.status.
22012         * modules/ctype (Makefile.am): Likewise.
22013         * modules/dirent (Makefile.am): Likewise.
22014         * modules/errno (Makefile.am): Likewise.
22015         * modules/fcntl-h (Makefile.am): Likewise.
22016         * modules/float (Makefile.am): Likewise.
22017         * modules/getopt-posix (Makefile.am): Likewise.
22018         * modules/glob (Makefile.am): Likewise.
22019         * modules/iconv-h (Makefile.am): Likewise.
22020         * modules/inttypes (Makefile.am): Likewise.
22021         * modules/langinfo (Makefile.am): Likewise.
22022         * modules/locale (Makefile.am): Likewise.
22023         * modules/math (Makefile.am): Likewise.
22024         * modules/netdb (Makefile.am): Likewise.
22025         * modules/netinet_in (Makefile.am): Likewise.
22026         * modules/poll-h (Makefile.am): Likewise.
22027         * modules/pthread (Makefile.am): Likewise.
22028         * modules/pty (Makefile.am): Likewise.
22029         * modules/sched (Makefile.am): Likewise.
22030         * modules/search (Makefile.am): Likewise.
22031         * modules/selinux-h (Makefile.am): Likewise.
22032         * modules/signal (Makefile.am): Likewise.
22033         * modules/spawn (Makefile.am): Likewise.
22034         * modules/stdarg (Makefile.am): Likewise.
22035         * modules/stdbool (Makefile.am): Likewise.
22036         * modules/stddef (Makefile.am): Likewise.
22037         * modules/stdint (Makefile.am): Likewise.
22038         * modules/stdio (Makefile.am): Likewise.
22039         * modules/stdlib (Makefile.am): Likewise.
22040         * modules/string (Makefile.am): Likewise.
22041         * modules/strings (Makefile.am): Likewise.
22042         * modules/sys_file (Makefile.am): Likewise.
22043         * modules/sys_ioctl (Makefile.am): Likewise.
22044         * modules/sys_select (Makefile.am): Likewise.
22045         * modules/sys_socket (Makefile.am): Likewise.
22046         * modules/sys_stat (Makefile.am): Likewise.
22047         * modules/sys_time (Makefile.am): Likewise.
22048         * modules/sys_times (Makefile.am): Likewise.
22049         * modules/sys_utsname (Makefile.am): Likewise.
22050         * modules/sys_wait (Makefile.am): Likewise.
22051         * modules/sysexits (Makefile.am): Likewise.
22052         * modules/termios (Makefile.am): Likewise.
22053         * modules/time (Makefile.am): Likewise.
22054         * modules/unistd (Makefile.am): Likewise.
22055         * modules/wchar (Makefile.am): Likewise.
22056         * modules/wctype-h (Makefile.am): Likewise.
22057         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22058
22059 2011-04-05  Bruno Haible  <bruno@clisp.org>
22060
22061         pipe2: Relicense under LGPLv2+.
22062         * modules/pipe2 (License): Change to LGPLv2+.
22063         Requested by Eric Blake, for libvirt.
22064
22065 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22066
22067         bootstrap: compute gnulib_extra_files after updating build_aux
22068         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22069         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22070
22071 2011-04-05  Eric Blake  <eblake@redhat.com>
22072
22073         bootstrap: preserve git whitelist item sorting
22074         * build-aux/bootstrap (sort_patterns): New function.
22075         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22076
22077 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22078
22079         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22080         sc_space_tab check.
22081
22082 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22083
22084         areadlink, areadlinkat: rewrite in terms of careadlinkat
22085         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22086         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22087         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22088         (malloc, realloc): Remove #undefs.
22089         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22090         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22091         readlink, ssize_t, stdint, unistd.
22092         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22093         areadlink, stdint.
22094
22095         careadlinkat: new module
22096         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22097         * modules/careadlinkat: New files, written by me with
22098         a review and feedback from Ben Pfaff in
22099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22100
22101 2011-04-01  Bruno Haible  <bruno@clisp.org>
22102
22103         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22104         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22105         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22106         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22107         Reported by Bruce Korb <bruce.korb@gmail.com>.
22108
22109 2011-04-01  Bruno Haible  <bruno@clisp.org>
22110
22111         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22112         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22113         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22114         * modules/wcpcpy (Depends-on): Add extensions.
22115         * modules/wcpncpy (Depends-on): Likewise.
22116         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22117         systems.
22118         * doc/posix-functions/wcpncpy.texi: Likewise.
22119         * doc/posix-functions/wcwidth.texi: Likewise.
22120
22121 2011-03-31  Eric Blake  <eblake@redhat.com>
22122
22123         nonblocking: fix mingw test failures
22124         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22125         non-blocking flag on regular file.
22126         (get_nonblocking_flag): Set errno on invalid fd.
22127         * tests/test-nonblocking.c (main): Avoid test failure on
22128         directories if fchdir is not active.
22129         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22130
22131 2011-03-31  Bruno Haible  <bruno@clisp.org>
22132
22133         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22134         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22135         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22136         Reported by Simon Josefsson <simon@josefsson.org>.
22137
22138 2011-03-31  Bruno Haible  <bruno@clisp.org>
22139         and Eric Blake  <eblake@redhat.com>
22140
22141         nonblocking: new module
22142         * modules/nonblocking: New module.
22143         * modules/nonblocking-tests: Likewise.
22144         * lib/nonblocking.h: New file.
22145         * lib/nonblocking.c: Likewise.
22146         * tests/test-nonblocking.c: New test.
22147         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22148
22149 2011-03-30  Bruno Haible  <bruno@clisp.org>
22150
22151         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22152         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22153         instead of 'printf' format for GCC >= 4.4.
22154         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22155         (fprintf, printf, vfprintf, vprintf): Declare with
22156         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22157         the system's vfprintf() function.
22158         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22159
22160 2011-03-30  Eric Blake  <eblake@redhat.com>
22161
22162         passfd: fix scoping bug
22163         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22164         before sendmsg/recvmsg.
22165
22166         passfd: standardize coding conventions
22167         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22168         can be learned at compile time.
22169         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22170         ifdefs.
22171         (sendfd, recvfd): Follow gnulib code conventions.
22172
22173         passfd: fix incorrect sendmsg arguments
22174         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22175         incorrect msg_controllen value.
22176         * modules/passfd-tests (Depends-on): Check for alarm.
22177         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22178         Reported by Bastien ROUCARIES.
22179
22180 2011-03-30  Bruno Haible  <bruno@clisp.org>
22181
22182         c-strcasestr: Relicense under LGPLv2+.
22183         * modules/c-strcasestr (License): Change to LGPLv2+.
22184         Requested by Eric Blake, for libvirt.
22185
22186 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22187
22188         * users.txt: Add libidn2.  Fix libtasn1 link.
22189
22190 2011-03-30  Jim Meyering  <meyering@redhat.com>
22191
22192         tests: readlink* ("",... fails with EINVAL on newer kernels
22193         readlink and readlinkat have typically failed with ENOENT for
22194         the invalid, empty file name,  "".  However, with the advent
22195         of linux-2.6.39, they fail with EINVAL.
22196         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22197         when operating on the empty file name.
22198         * tests/test-readlink.h (test_readlink): Likewise.
22199
22200 2011-03-29  Bruno Haible  <bruno@clisp.org>
22201
22202         Relicense some modules under LGPLv2+, for libidn2.
22203         * modules/array-mergesort (License): Change to LGPLv2+.
22204         * modules/c-strcaseeq (License): Likewise.
22205         * modules/striconveh (License): Likewise.
22206         * modules/striconveha (License): Likewise.
22207         * modules/uniconv/base (License): Likewise.
22208         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22209         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22210         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22211         * modules/unictype/base (License): Likewise.
22212         * modules/unictype/bidiclass-of (License): Likewise.
22213         * modules/unictype/category-M (License): Likewise.
22214         * modules/unictype/category-none (License): Likewise.
22215         * modules/unictype/category-of (License): Likewise.
22216         * modules/unictype/category-test (License): Likewise.
22217         * modules/unictype/category-test-withtable (License): Likewise.
22218         * modules/unictype/combining-class (License): Likewise.
22219         * modules/unictype/joiningtype-of (License): Likewise.
22220         * modules/unictype/scripts (License): Likewise.
22221         * modules/uninorm/base (License): Likewise.
22222         * modules/uninorm/canonical-decomposition (License): Likewise.
22223         * modules/uninorm/composition (License): Likewise.
22224         * modules/uninorm/decompose-internal (License): Likewise.
22225         * modules/uninorm/decomposition-table (License): Likewise.
22226         * modules/uninorm/nfc (License): Likewise.
22227         * modules/uninorm/nfd (License): Likewise.
22228         * modules/uninorm/u32-normalize (License): Likewise.
22229         * modules/unistr/base (License): Likewise.
22230         * modules/unistr/u32-cpy (License): Likewise.
22231         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22232         * modules/unistr/u32-to-u8 (License): Likewise.
22233         * modules/unistr/u32-uctomb (License): Likewise.
22234         * modules/unistr/u8-check (License): Likewise.
22235         * modules/unistr/u8-mblen (License): Likewise.
22236         * modules/unistr/u8-mbtouc (License): Likewise.
22237         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22238         * modules/unistr/u8-mbtoucr (License): Likewise.
22239         * modules/unistr/u8-prev (License): Likewise.
22240         * modules/unistr/u8-strlen (License): Likewise.
22241         * modules/unistr/u8-to-u32 (License): Likewise.
22242         * modules/unistr/u8-uctomb (License): Likewise.
22243         * modules/unitypes (License): Likewise.
22244         Requested by Simon Josefsson.
22245
22246 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22247
22248         lib-symbol-visibility: Add a notice.
22249         * modules/lib-symbol-visibility (Notice): New field.
22250
22251 2011-03-29  Bruno Haible  <bruno@clisp.org>
22252
22253         getaddrinfo: Doc fix.
22254         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22255         section "fixed in Gnulib".
22256
22257 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22258
22259         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22260         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22261
22262 2011-03-26  Bruno Haible  <bruno@clisp.org>
22263
22264         unictype/property-byname: Reduce the number of load-time relocations.
22265         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22266         (UC_PROPERTY_INDEX_*): New enumeration values.
22267         (uc_property_byname): Convert an index from the lookup table to an
22268         uc_property_t.
22269         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22270         values.
22271
22272 2011-03-26  Bruno Haible  <bruno@clisp.org>
22273
22274         unictype/property-byname: Allow omitted word separators and aliases.
22275         * lib/unictype/pr_byname.gperf: Add property names without word
22276         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22277         for 'space'.
22278
22279 2011-03-26  Bruno Haible  <bruno@clisp.org>
22280
22281         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22282         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22283         also hyphens to space.
22284         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22285         without spaces.
22286         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22287
22288 2011-03-26  Bruno Haible  <bruno@clisp.org>
22289
22290         unictype/joiningtype-byname: Recognize long names as well.
22291         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22292         a long name.
22293         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22294         unictype/joiningtype_byname.h.
22295         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22296         * lib/unictype/joiningtype_byname.gperf: New file.
22297         * modules/unictype/joiningtype-byname (Files): Add
22298         lib/unictype/joiningtype_byname.gperf.
22299         (Depends-on): Add gperf.
22300         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22301         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22302         long names.
22303
22304         Tests for module 'unictype/joiningtype-longname'.
22305         * modules/unictype/joiningtype-longname-tests: New file.
22306         * tests/unictype/test-joiningtype_longname.c: New file.
22307
22308         New module 'unictype/joiningtype-longname'.
22309         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22310         * lib/unictype/joiningtype_longname.c: New file.
22311         * modules/unictype/joiningtype-longname: New file.
22312         * modules/unictype/joiningtype-all (Depends-on): Add
22313         unictype/joiningtype-longname.
22314
22315 2011-03-26  Bruno Haible  <bruno@clisp.org>
22316
22317         unictype/bidiclass-byname: Recognize long names as well.
22318         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22319         name.
22320         * lib/unictype/bidi_byname.c: Include <string.h>,
22321         unictype/bidi_byname.h.
22322         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22323         * lib/unictype/bidi_byname.gperf: New file.
22324         * modules/unictype/bidiclass-byname (Files): Add
22325         lib/unictype/bidi_byname.gperf.
22326         (Depends-on): Add gperf.
22327         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22328         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22329         long names.
22330
22331         Tests for module 'unictype/bidiclass-longname'.
22332         * modules/unictype/bidiclass-longname-tests: New file.
22333         * tests/unictype/test-bidi_longname.c: New file.
22334
22335         New module 'unictype/bidiclass-longname'.
22336         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22337         * lib/unictype/bidi_longname.c: New file.
22338         * modules/unictype/bidiclass-longname: New file.
22339         * modules/unictype/bidiclass-all (Depends-on): Add
22340         unictype/bidiclass-longname.
22341
22342 2011-03-26  Bruno Haible  <bruno@clisp.org>
22343
22344         unictype/bidi*: Rename modules.
22345         * modules/unictype/bidiclass-all: Renamed from
22346         modules/unictype/bidicategory-all.
22347         * modules/unictype/bidiclass-name: Renamed from
22348         modules/unictype/bidiclass-name.
22349         (Description): Update.
22350         * modules/unictype/bidiclass-name-tests: Renamed from
22351         modules/unictype/bidicategory-name-tests.
22352         * modules/unictype/bidiclass-byname: Renamed from
22353         modules/unictype/bidicategory-byname.
22354         (Description): Update.
22355         * modules/unictype/bidiclass-byname-tests: Renamed from
22356         modules/unictype/bidicategory-byname-tests.
22357         * modules/unictype/bidiclass-of: Renamed from
22358         modules/unictype/bidicategory-of.
22359         (Description): Update.
22360         * modules/unictype/bidiclass-of-tests: Renamed from
22361         modules/unictype/bidicategory-of-tests.
22362         * modules/unictype/bidiclass-test: Renamed from
22363         modules/unictype/bidicategory-test.
22364         (Description): Update.
22365         * modules/unictype/bidiclass-test-tests: Renamed from
22366         modules/unictype/bidicategory-test-tests.
22367         * modules/unictype/bidicategory-all: New file, a simple redirection.
22368         * modules/unictype/bidicategory-name: Likewise.
22369         * modules/unictype/bidicategory-byname: Likewise.
22370         * modules/unictype/bidicategory-of: Likewise.
22371         * modules/unictype/bidicategory-test: Likewise.
22372         * modules/unictype/property-bidi-* (Dependencies): Update.
22373         * lib/unictype/bidi_*.c: Update comment.
22374
22375 2011-03-26  Bruno Haible  <bruno@clisp.org>
22376
22377         unictype/bidi*: Rename functions, part 2.
22378         * modules/unictype/bidicategory-name (configure.ac): Update required
22379         libunistring version.
22380         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22381
22382 2011-03-25  Bruno Haible  <bruno@clisp.org>
22383
22384         New module 'unictype/combining-class-all'.
22385         * modules/unictype/combining-class-all: New file.
22386
22387         Tests for module 'unictype/combining-class-byname'.
22388         * modules/unictype/combining-class-byname-tests: New file.
22389         * tests/unictype/test-combiningclass_byname.c: New file.
22390
22391         New module 'unictype/combining-class-byname'.
22392         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22393         * lib/unictype/combiningclass_byname.c: New file.
22394         * lib/unictype/combiningclass_byname.gperf: New file.
22395         * modules/unictype/combining-class-byname: New file.
22396
22397         Tests for module 'unictype/combining-class-longname'.
22398         * modules/unictype/combining-class-longname-tests: New file.
22399         * tests/unictype/test-combiningclass_longname.c: New file.
22400
22401         New module 'unictype/combining-class-longname'.
22402         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22403         * lib/unictype/combiningclass_longname.c: New file.
22404         * modules/unictype/combining-class-longname: New file.
22405
22406         Tests for module 'unictype/combining-class-name'.
22407         * modules/unictype/combining-class-name-tests: New file.
22408         * tests/unictype/test-combiningclass_name.c: New file.
22409
22410         New module 'unictype/combining-class-name'.
22411         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22412         * lib/unictype/combiningclass_name.c: New file.
22413         * modules/unictype/combining-class-name: New file.
22414
22415 2011-03-25  Bruno Haible  <bruno@clisp.org>
22416
22417         unictype/combining-class: Rename source files.
22418         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22419         of unictype/combining.h.
22420         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22421         Update.
22422         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22423         * modules/unictype/combining-class (Description): Fix.
22424         (Files, Makefile.am): Update.
22425         * tests/unictype/test-combiningclass.c: Renamed from
22426         tests/unictype/test-combining.c.
22427         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22428
22429 2011-03-25  Bruno Haible  <bruno@clisp.org>
22430
22431         unictype: Update list of canonical combining classes.
22432         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22433
22434 2011-03-25  Bruno Haible  <bruno@clisp.org>
22435
22436         unictype/category-byname: Recognize long names as well.
22437         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22438         a long name.
22439         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22440         unictype/categ_byname.h.
22441         (UC_CATEGORY_INDEX_*): New enumeration values.
22442         (uc_general_category_byname): Use uc_general_category_lookup and
22443         convert from index to value.
22444         * lib/unictype/categ_byname.gperf: New file.
22445         * modules/unictype/category-byname (Files): Add
22446         lib/unictype/categ_byname.gperf.
22447         (Depends-on): Add gperf.
22448         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22449         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22450         long names.
22451
22452         Tests for module 'unictype/category-longname'.
22453         * modules/unictype/category-longname-tests: New file.
22454         * tests/unictype/test-categ_longname.c: New file.
22455
22456         New module 'unictype/category-longname'.
22457         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22458         * lib/unictype/categ_longname.c: New file.
22459         * modules/unictype/category-longname: New file.
22460         * modules/unictype/category-all (Depends-on): Add it.
22461
22462 2011-03-25  Bruno Haible  <bruno@clisp.org>
22463
22464         Tests for module 'unictype/category-LC'.
22465         * modules/unictype/category-LC-tests: New file.
22466         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22467
22468         New module 'unictype/category-LC'.
22469         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22470         (UC_CATEGORY_LC): New declaration.
22471         (UC_CASED_LETTER): New macro.
22472         * lib/gen-uni-tables.c (is_category_LC): New function.
22473         (output_categories): Also handle category LC.
22474         (UC_CATEGORY_MASK_LC): New enumeration value.
22475         (general_category_byname): Also handle category LC.
22476         * lib/unictype/categ_LC.c: New file.
22477         * lib/unictype/categ_LC.h: New file, automatically generated.
22478         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22479         category LC.
22480         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22481         * modules/unictype/category-LC: New file.
22482         * modules/unictype/category-byname (Depends-on): Add
22483         unictype/category-LC.
22484         * modules/unictype/category-all (Depends-on): Likewise.
22485
22486 2011-03-25  Eric Blake  <eblake@redhat.com>
22487
22488         xmalloc: revert yesterday's regression
22489         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22490         realloc's underlying behavior (allowing allocation of zero-size
22491         objects, especially if malloc-gnu is also in use).
22492
22493 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22494
22495         maint.mk: add missing version to VC-tag
22496         * top/maint.mk: git tag was missing actual tag name; add it.
22497
22498         valgrind: do leak checking, and exit with code 1 on error (not 0)
22499         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22500         to VALGRIND.
22501
22502 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22503
22504         posix-modules: say what it does.
22505         * posix-modules: Add a line to the --help output saying what it does.
22506
22507 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22508
22509         xmalloc: Do not leak if underlying realloc is C99 compatible.
22510         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22511         This avoids a leak on C99-based systems.  See
22512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22513
22514 2011-03-24  Eric Blake  <eblake@redhat.com>
22515
22516         realloc: document portability problem
22517         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22518         passing 0 size to realloc.
22519
22520 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22521
22522         doc: update users.txt
22523         * users.txt: Add cvsps, tmpwatch
22524
22525 2011-03-23  Matt Rice  <ratmice@gmail.com>
22526
22527         doc: update users.txt
22528         * users.txt: Add gdb.
22529
22530 2011-03-23  Jim Meyering  <meyering@redhat.com>
22531
22532         doc: update users.txt
22533         Looking through matches up to the following URL (there are still
22534         several more pages), I found several projects that use gnulib:
22535         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22536         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22537         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22538
22539 2011-03-22  Bruno Haible  <bruno@clisp.org>
22540
22541         unictype/bidi*: Rename functions.
22542         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22543         uc_bidi_class, uc_is_bidi_class): New declarations.
22544         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22545         uc_bidi_category_byname.
22546         (uc_bidi_category_byname): New function.
22547         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22548         u_bidi_category_name.
22549         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22550         (uc_bidi_category_name): New function.
22551         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22552         uc_bidi_category.
22553         (uc_bidi_category): New function.
22554         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22555         uc_is_bidi_category. Invoke uc_bidi_class.
22556         (uc_is_bidi_category): New function.
22557         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22558         instead of uc_bidi_category_byname.
22559         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22560         instead of uc_bidi_category_name.
22561         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22562         uc_bidi_category.
22563         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22564         instead of uc_is_bidi_category.
22565
22566 2011-03-21  Bruno Haible  <bruno@clisp.org>
22567
22568         New module 'unictype/joininggroup-all'.
22569         * modules/unictype/joininggroup-all: New file.
22570
22571         Tests for module 'unictype/joininggroup-of'.
22572         * modules/unictype/joininggroup-of-tests: New file.
22573         * tests/unictype/test-joininggroup_of.c: New file.
22574         * tests/unictype/test-joininggroup_of.h: New file, automatically
22575         generated by gen-uni-tables.
22576
22577         New module 'unictype/joininggroup-of'.
22578         * modules/unictype/joininggroup-of: New file.
22579         * lib/unictype/joininggroup_of.c: New file.
22580         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22581         gen-uni-tables.
22582
22583         Tests for module 'unictype/joininggroup-byname'.
22584         * modules/unictype/joininggroup-byname-tests: New file.
22585         * tests/unictype/test-joininggroup_byname.c: New file.
22586
22587         New module 'unictype/joininggroup-byname'.
22588         * modules/unictype/joininggroup-byname: New file.
22589         * lib/unictype/joininggroup_byname.c: New file.
22590         * lib/unictype/joininggroup_byname.gperf: New file.
22591
22592         Tests for module 'unictype/joininggroup-name'.
22593         * modules/unictype/joininggroup-name-tests: New file.
22594         * tests/unictype/test-joininggroup_name.c: New file.
22595
22596         New module 'unictype/joininggroup-name'.
22597         * modules/unictype/joininggroup-name: New file.
22598         * lib/unictype/joininggroup_name.c: New file.
22599         * lib/unictype/joininggroup_name.h: New file.
22600
22601         New module 'unictype/joiningtype-all'.
22602         * modules/unictype/joiningtype-all: New file.
22603
22604         Tests for module 'unictype/joiningtype-of'.
22605         * modules/unictype/joiningtype-of-tests: New file.
22606         * tests/unictype/test-joiningtype_of.c: New file.
22607         * tests/unictype/test-joiningtype_of.h: New file, automatically
22608         generated by gen-uni-tables.
22609
22610         New module 'unictype/joiningtype-of'.
22611         * modules/unictype/joiningtype-of: New file.
22612         * lib/unictype/joiningtype_of.c: New file.
22613         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22614         gen-uni-tables.
22615
22616         Tests for module 'unictype/joiningtype-byname'.
22617         * modules/unictype/joiningtype-byname-tests: New file.
22618         * tests/unictype/test-joiningtype_byname.c: New file.
22619
22620         New module 'unictype/joiningtype-byname'.
22621         * modules/unictype/joiningtype-byname: New file.
22622         * lib/unictype/joiningtype_byname.c: New file.
22623
22624         Tests for module 'unictype/joiningtype-name'.
22625         * modules/unictype/joiningtype-name-tests: New file.
22626         * tests/unictype/test-joiningtype_name.c: New file.
22627
22628         New module 'unictype/joiningtype-name'.
22629         * modules/unictype/joiningtype-name: New file.
22630         * lib/unictype/joiningtype_name.c: New file.
22631
22632         unictype: Add support for Arabic shaping properties.
22633         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22634         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22635         declarations.
22636         (UC_JOINING_GROUP_*): New enumeration values.
22637         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22638         declarations.
22639         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22640         (unicode_joining_type): New variable.
22641         (UC_JOINING_GROUP_*): New enumeration values.
22642         (unicode_joining_group): New variable.
22643         (fill_arabicshaping, joining_type_as_c_identifier,
22644         output_joining_type_test, output_joining_type,
22645         joining_group_as_c_identifier, output_joining_group_test,
22646         output_joining_group): New functions.
22647         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22648         fill_arabicshaping and output_joining_type_test, output_joining_type,
22649         output_joining_group_test, output_joining_group.
22650         Reported by Simon Josefsson.
22651
22652 2011-03-21  Jim Meyering  <meyering@redhat.com>
22653
22654         strftime: fix a bug in yesterday's change
22655         * lib/strftime.c (add): Accommodate width's initial value of -1.
22656         Otherwise, nstrftime would copy uninitialized data into
22657         the result buffer.
22658
22659 2011-03-21  Jim Meyering  <meyering@redhat.com>
22660
22661         tests: add strftime-tests module
22662         * tests/test-strftime.c: New file.
22663         * modules/strftime-tests: New module.
22664
22665 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22666
22667         strftime: don't assume a byte count fits in 'int'
22668         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22669         found this problem by static analysis, using gcc -Wstrict-overflow
22670         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22671         on an integer overflow having undefined behavior, but it turns out
22672         that the argument is a size, which might not fit in 'int' anyway,
22673
22674 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22675
22676         stdio: don't require ignore_value around fwrite
22677
22678         This patch works around libc bug 11959
22679         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22680         Without this patch, applications must often write
22681         ignore_value (fwrite (...)) even though the ignore_value is
22682         not helpful here.  It's common to write many objects, using
22683         fwrite/printf/etc., and then use ferror to detect output error.
22684
22685         I considered making this patch optional, but decided against it,
22686         because libc is obviously being inconsistent here: there is no
22687         reason libc should insist that user code must inspect fwrite
22688         return's value without also insisting that it inspect printf's,
22689         putchar's, etc.  If user code wants to have a strict style where
22690         all these functions' values are checked (so that ferror need not
22691         be checked), we could add support for that style in a new gnulib
22692         module, but in the meantime it's better to be consistent and to
22693         support common usage.
22694
22695         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22696         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22697         that we are compiling in checking mode, and if not C++, and
22698         if not already wrapping fwrite for some other reason.
22699         (fwrite): #define to rpl_fwrite if the latter is defined.
22700
22701 2011-03-20  Bruno Haible  <bruno@clisp.org>
22702
22703         verror: Fix compilation error introduced on 2011-02-13.
22704         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22705         instead of __attribute__.
22706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22707
22708 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22709             Bruno Haible  <bruno@clisp.org>
22710
22711         socklen: do not depend on sys_socket
22712         While trying to modify Emacs to use gnulib's socklen module,
22713         I discovered a circular dependency: socklen depends on sys_socket
22714         and vice versa.  Emacs can use socklen, but it does not need
22715         sys_socket because it has its own substitute for sys/socket.h.
22716         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22717         gl_TYPE_SOCKLEN_T.
22718         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22719         gl_PREREQ_SYS_H_SOCKET.
22720         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22721         gl_PREREQ_SYS_H_SOCKET.
22722         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22723         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22724         * modules/socklen (Depends-on): Do not depend on sys_socket.
22725         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22726
22727 2011-03-20  Jim Meyering  <meyering@redhat.com>
22728
22729         maint.mk: sort file names *after* new transformation
22730         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22731         prefix would have led to an unwarranted failure in GNU parted.
22732         Sort after that transformation.
22733
22734 2011-03-19  Jim Meyering  <meyering@redhat.com>
22735
22736         maint.mk: fix po-file syntax-check rule
22737         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22738         Patch by Bruno Haible.
22739
22740 2011-03-19  Bruno Haible  <bruno@clisp.org>
22741
22742         socklen: Update comment.
22743         * m4/socklen.m4: Update comment about platforms.
22744
22745 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22746             Bruno Haible  <bruno@clisp.org>
22747
22748         inet_ntop, inet_pton: Simplify.
22749         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22750         documented to provide socklen_t and we already depend on sys_socket.
22751         * modules/inet_pton (Depends-on): Likewise.
22752         * lib/arpa_inet.in.h: Adjust comment.
22753
22754 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22755             Bruno Haible  <bruno@clisp.org>
22756
22757         netdb: Simplify.
22758         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22759         documented to provide socklen_t and we already depend on sys_socket.
22760         * lib/netdb.in.h: Adjust comment.
22761
22762 2011-03-19  Bruno Haible  <bruno@clisp.org>
22763
22764         sys_socket, netdb: Document problem with socklen_t.
22765         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22766         platforms.
22767         * doc/posix-headers/netdb.texi: Likewise.
22768
22769 2011-03-18  Eric Blake  <eblake@redhat.com>
22770
22771         maint.mk: let po check work in VPATH build
22772         * top/maint.mk (po_file): Allow cfg.mk override.
22773         (sc_po_check): Allow VPATH use.
22774         Reported by Jiri Denemark.
22775
22776 2011-03-16  Jim Meyering  <meyering@redhat.com>
22777
22778         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22779         Before, you would have had to create one .x-sc_ file per rule in order
22780         to exempt offending files.  Now, you may instead use a Make variable --
22781         usually defined in cfg.mk -- whose name identifies the affected rule.
22782         * top/maint.mk (_sc_excl): Define.
22783         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22784         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22785
22786 2011-03-13  Bruno Haible  <bruno@clisp.org>
22787
22788         ignore-value tests: Avoid warnings.
22789         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22790         empty for gcc < 3.4.
22791
22792 2011-03-13  Bruno Haible  <bruno@clisp.org>
22793
22794         passfd: Fix link error on Solaris.
22795         * modules/passfd (Description): Correct.
22796         (Depends-on): Add socketlib.
22797         (Link): New section.
22798         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22799
22800 2011-03-13  Bruno Haible  <bruno@clisp.org>
22801
22802         passfd: Fix link error on AIX 5.2.
22803         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22804
22805 2011-03-13  Bruno Haible  <bruno@clisp.org>
22806
22807         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22808         * lib/sys_socket.in.h: Include <stddef.h>.
22809         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22810         CMSG_FIRSTHDR. Remove unused variable.
22811
22812 2011-03-13  Bruno Haible  <bruno@clisp.org>
22813
22814         passfd: Fix compilation error on OpenBSD.
22815         * lib/passfd.c: Include <sys/uio.h>.
22816
22817 2011-03-13  Bruno Haible  <bruno@clisp.org>
22818
22819         passfd test: Fix warnings.
22820         * tests/test-passfd.c: Include <sys/wait.h>.
22821         (main): Fix typo.
22822
22823 2011-03-13  Bruno Haible  <bruno@clisp.org>
22824
22825         passfd module, part 4, tweaks.
22826         * tests/test-passfd.c: Reorder includes.
22827         (main): Fix perror and printf calls.
22828
22829 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22830
22831         passfd module, part 4.
22832         * modules/passfd-tests: New file.
22833         * tests/test-passfd.c: New file.
22834
22835 2011-03-13  Jim Meyering  <meyering@redhat.com>
22836
22837         Makefile: rely on GNU make; derive syntax-check rule names
22838         Rather than requiring that each sc_ rule be listed as a dependent
22839         of "check", use features of GNU make to derive the list.
22840         * Makefile (syntax-check-rules): Define.
22841         (check): Depend on the new variable, not the hard-coded list.
22842
22843 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22844             Bruno Haible  <bruno@clisp.org>
22845
22846         passfd module, part 3.
22847         * lib/passfd.h (recvfd): Add a flags argument.
22848         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22849         (recvfd): Add a flags argument.
22850         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22851         exists.
22852         * modules/passfd (Depends-on): Add cloexec.
22853         Suggested by Eric Blake.
22854
22855 2011-03-13  Bruno Haible  <bruno@clisp.org>
22856
22857         passfd module, part 2, tweaks.
22858         * modules/passfd (Files): Reorder.
22859         (Depends-on): Remove errno.
22860         (Include): Remove <sys/socket.h>, <sys/un.h>.
22861         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22862         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22863         specification header. Include <sys/socket.h> always. Don't include
22864         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22865         (sendfd): Clarify that it sets errno when it fails.
22866         (recvfd): Fix specification.
22867
22868 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22869
22870         passfd module, part 2.
22871         * modules/passfd: New file.
22872         * lib/passfd.h: New file.
22873         * lib/passfd.c: New file.
22874
22875 2011-03-12  Bruno Haible  <bruno@clisp.org>
22876
22877         wcswidth, mbswidth: Avoid integer overflow.
22878         * lib/wcswidth.c: Include <limits.h>.
22879         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22880         * lib/mbswidth.c: Include <limits.h>.
22881         (mbsnwidth): Avoid 'int' overflow.
22882         Reported by Jim Meyering.
22883
22884 2011-03-12  Bruno Haible  <bruno@clisp.org>
22885
22886         futimens, utimensat: Avoid endless recursion on Solaris 10.
22887         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22888         Solaris.
22889         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22890         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22891
22892 2011-03-11  Jim Meyering  <meyering@redhat.com>
22893
22894         maint.mk: relax a regexp to accommodate other formatting styles
22895         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22896         between "ngettext" and the following "(".
22897
22898 2011-03-11  Pádraig Brady <P@draigBrady.com>
22899
22900         maint.mk: suppress a false positive warning
22901         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22902         diagnostics are marked with ngettext.
22903
22904 2011-03-10  Eric Blake  <eblake@redhat.com>
22905
22906         wchar: add explicit dependencies, for Tru64
22907         * modules/mbmemcasecoll (Depends-on): Add wchar.
22908         * modules/mbtowc (Depends-on): Likewise.
22909         * modules/vasnprintf (Depends-on): Likewise.
22910         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22911         * modules/wctomb (Depends-on): Likewise.
22912         Reported by Peter O'Gorman.
22913
22914 2011-03-08  Bruno Haible  <bruno@clisp.org>
22915
22916         passfd module, part 1, tweaks.
22917         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22918         Improve indentation. Improve AC_MSG_CHECKING messages.
22919         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22920         gl_SOCKET_FAMILIES.
22921
22922 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22923
22924         passfd module, part 1.
22925         * m4/afunix.m4: New file.
22926         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22927         sockets.
22928
22929 2011-03-08  Bruno Haible  <bruno@clisp.org>
22930
22931         regex-quote: New API.
22932         * lib/regex-quote.h: Include <stdbool.h>.
22933         (struct regex_quote_spec): New type.
22934         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22935         New declarations.
22936         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22937         'const struct regex_quote_spec *' argument.
22938         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22939         (pcre_special): New constant.
22940         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22941         New functions.
22942         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22943         'const struct regex_quote_spec *' argument.
22944         * modules/regex-quote (Depends-on): Add stdbool.
22945         * tests/test-regex-quote.c (check): Update for new API. Add test for
22946         anchored results.
22947         * NEWS: Mention the API change.
22948         Reported by Reuben Thomas and Eric Blake.
22949
22950 2011-03-06  Bruno Haible  <bruno@clisp.org>
22951
22952         regex-quote: Fix creation of POSIX extended regular expressions.
22953         * lib/regex-quote.c (ere_special): Add grouping and alternation
22954         operators.
22955
22956 2011-03-05  Bruno Haible  <bruno@clisp.org>
22957
22958         doc: Improve doc regarding autopoint vs. gnulib.
22959         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22960         disable autopoint while running autoreconf.
22961         Suggested by Ralf Wildenhues.
22962
22963 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22964
22965         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22966         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22967
22968 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22969
22970         parse-duration: remove xalloc.h dependency
22971         * lib/parse-duration.c (parse_period): handle NULL return from
22972         strdup instead of calling xstrdup().
22973         * modules/parse-duration: remove "xalloc" dependency
22974
22975 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22976
22977         bootstrap: honor m4_base when running aclocal
22978         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22979
22980 2011-03-02  Jim Meyering  <meyering@redhat.com>
22981
22982         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22983         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22984         on request from Matt Booth.
22985
22986 2011-03-01  Eric Blake  <eblake@redhat.com>
22987
22988         test-link: work on Hurd
22989         * tests/test-link.h (test_link): Hurd rejects linking directories
22990         with EISDIR instead of the POSIX-mandated EPERM.
22991
22992 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22993
22994         stdio: simplify by moving files to printf-posix, sigpipe
22995         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22996         since this symbol is needed only if printf is replaced.
22997         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22998         Require gl_ASM_SYMBOL_PREFIX.
22999         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23000         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23001         (Depends-on): Add 'raise'.
23002         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23003         * modules/stdio (Files): Remove lib/stdio-write.c,
23004         m4/asm-underscore.m4.
23005         (Depends-on): Remove 'raise'.
23006
23007         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23008         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23009         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23010         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23011
23012 2011-02-28  Bruno Haible  <bruno@clisp.org>
23013
23014         localcharset: Assume ANSI C behaviour of free().
23015         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23016         calling free().
23017         Suggested by Simon Josefsson <simon@josefsson.org>.
23018
23019 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23020             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23021             Bruno Haible  <bruno@clisp.org>  (tiny change)
23022
23023         On Cygwin, use /proc file system instead of win32 API.
23024         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23025         Win32 file names.
23026         (DllMain): Simplify by removing Cygwin specific code.
23027         (find_shared_library_fullname): Use Linux specific implementation also
23028         for Cygwin.
23029         (get_shared_library_fullname): Update accordingly.
23030         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23031         Win32 file names.
23032         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23033         Cygwin specific code.
23034
23035 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23036             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23037
23038         Fix OpenMP flag detection for various Fortran compilers.
23039         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23040         OpenMP-conditional compilation construct, to force compile
23041         failure with missing OpenMP flag.
23042         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23043
23044 2011-02-25  Eric Blake  <eblake@redhat.com>
23045
23046         strstr: expand test coverage
23047         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23048         compilation.
23049         * tests/test-memmem.c (main): Duplicate tests.
23050         * tests/test-strcasestr.c (main): Likewise.
23051         * tests/test-c-strcasestr.c (main): Likewise.
23052
23053 2011-02-25  Jim Meyering  <meyering@redhat.com>
23054
23055         maint.mk: detect missing-NL-at-EOF, too
23056         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23057         it also detects when a file lacks a newline at EOF.
23058         (require_exactly_one_NL_at_EOF_): Renamed from
23059         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23060         since people may well have .x-sc_... file names tied to the
23061         existing name.  Suggested by Eric Blake.
23062
23063 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23064
23065         dirname: move m4/dos.m4 functionality into lib/dosname.h
23066
23067         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23068         extracts symbols from it, puts them into config.h; but it's much
23069         easier to use the symbols directly.  filename.h already does this,
23070         but it disagrees with dos.m4 in some respects.  This patch
23071         introduces a different include file dosname.h that packages up
23072         dos.m4, and then later we can work on merging filename.h and
23073         dosname.h.  Applications that need only the easy-to-configure
23074         symbols should consider including dosname.h rather than dirname.h.
23075         * NEWS: Mention incompatible changes.
23076         * m4/dos.m4: Remove.
23077         * lib/dosname.h, modules/dosname: New files.
23078         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23079         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23080         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23081         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23082         Include dosname.h, not dirname.h.
23083         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23084         Include dosname.h, for definitions of symbols like ISSLASH
23085         that used to be in config.h.
23086         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23087         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23088         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23089         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23090         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23091         * modules/rmdir (Files): Likewise.
23092         * modules/stat (Files): Likewise.
23093         * modules/unlink (Files): Likewise.
23094         * modules/dirname-lgpl (Depends-on): Add dosname.
23095         * modules/lstat (Depends-on): Likewise.
23096         * modules/openat (Depends-on): Likewise.
23097         * modules/rmdir (Depends-on): Likewise.
23098         * modules/savewd (Depends-on): Likewise.
23099         * modules/stat (Depends-on): Likewise.
23100         * modules/unlink (Depends-on): Likewise.
23101         * modules/openat (Depends-on): Remove dirname-lgpl.
23102         * modules/savewd (Depends-on): Likewise.
23103         * tests/test-dirname.c: Do not use removed symbols like
23104         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23105         the remaining symbols, e.g., ISSLASH ('\\').
23106
23107 2011-02-25  Eric Blake  <eblake@redhat.com>
23108
23109         strstr: revert patches that introduced bug and pessimization
23110         * lib/str-two-way.h: Add another reference.
23111         (two_way_short_needle, two_way_long_needle): Revert changes from
23112         2011-02-24; they pessimize search speed.
23113         (critical_factorization): Partially revert changes from
23114         2010-06-22; they violate the requirement that the left half of the
23115         needle be smaller than the period of the needle.
23116
23117 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23118
23119         filenamecat: remove unnecessary dependency on dirname-lgpl
23120         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23121         is no direct dependency, just an indirect one via filenamecat-lgpl.
23122
23123         remove: remove unnecessary use of m4/dos.m4
23124         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23125         * modules/remove (FILES): Remove m4/dos.m4.
23126
23127         * lib/openat-proc.c: Don't include dirname.h; not needed.
23128
23129         backupfile: remove unnecessary use of m4/dos.m4
23130         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23131         of its symbols are used by the backupfile code.  backupfile.c does
23132         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23133         for the rare case of programs that want all their backup file
23134         names to live within 8+3 limits, and dos.m4 doesn't address that.
23135         * modules/backupfile (Files): Remove m4/dos.m4.
23136
23137 2011-02-24  Jim Meyering  <meyering@redhat.com>
23138
23139         strstr: fix a bug whereby strstr would mistakenly return NULL
23140         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23141         in period calculation.
23142         (two_way_long_needle): Likewise.
23143         The original problem was reported by Mike Stump in
23144         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23145         Ralf Wildenhues provided the short needle and haystack.
23146         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23147         Add a more involved test to trigger the bug in two_way_long_needle.
23148
23149 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23150
23151         gnulib-tool: remove use of bold display in help screen
23152         * gnulib-tool (func_usage): Do not use bold display anymore in the
23153         help screen.  That was just meant to be a temporary emphasis for a
23154         backward-incompatible change.
23155
23156 2011-02-23  Bruno Haible  <bruno@clisp.org>
23157
23158         Fix misindentation of preprocessor directives.
23159         * lib/argp-namefrob.h: Reindent preprocessor directives.
23160         * lib/getopt_int.h (struct _getopt_data): Likewise.
23161         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23162         * lib/vasnprintf.c (decode_long_double): Likewise.
23163         * tests/test-argmatch.c: Insert blank lines, for clarity.
23164         * tests/test-exclude.c: Likewise.
23165
23166 2011-02-22  Bruno Haible  <bruno@clisp.org>
23167
23168         ioctl: Fix for MacOS X in 64-bit mode.
23169         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23170         value.
23171         Suggested by Eric Blake.
23172         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23173
23174 2011-02-22  Jim Meyering  <meyering@redhat.com>
23175
23176         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23177         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23178         in lib/.
23179
23180 2011-02-22  Eric Blake  <eblake@redhat.com>
23181
23182         maint: avoid any CDPATH issue
23183         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23184
23185         maint: adjust cpp indentation for my modules, as well
23186         * Makefile (sc_cpp_indent_check): Add my name.
23187         * lib/fbufmode.c: Filter through cppi.
23188         * lib/fpurge.c: Likewise.
23189         * lib/freadable.c: Likewise.
23190         * lib/freading.c: Likewise.
23191         * lib/fwritable.c: Likewise.
23192         * lib/fwriting.c: Likewise.
23193         * lib/sigaction.c: Likewise.
23194
23195 2011-02-22  Jim Meyering  <meyering@redhat.com>
23196
23197         maint: adjust cpp indentation to reflect nesting depth
23198         I.e., in a block of code that begins with an unnested "#if",
23199         put one space between the "#" in column 1 and following token.
23200         For example,
23201         -#include <sys/vfs.h>
23202         +# include <sys/vfs.h>
23203         Do this only in .c files that are part of a module I maintain.
23204         * lib/linkat.c: Filter through cppi.
23205         * lib/nanosleep.c: Likewise.
23206         * lib/openat.c: Likewise.
23207         * lib/openat-die.c: Likewise.
23208         * lib/dup3.c: Likewise.
23209         * lib/fchownat.c: Likewise.
23210         * lib/flock.c: Likewise.
23211         * lib/fsync.c: Likewise.
23212         * lib/fts.c: Likewise.
23213         * lib/getpass.c: Likewise.
23214         * lib/gettimeofday.c: Likewise.
23215         * lib/userspec.c: Likewise.
23216         * Makefile (sc_cpp_indent_check): New rule, to check this.
23217
23218 2011-02-22  Bruno Haible  <bruno@clisp.org>
23219
23220         New module 'wctomb'.
23221         * lib/stdlib.in.h (wctomb): New declaration.
23222         * lib/wctomb.c: New file.
23223         * lib/wctomb-impl.h: New file.
23224         * m4/wctomb.m4: New file.
23225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23226         REPLACE_WCTOMB.
23227         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23228         REPLACE_WCTOMB.
23229         * modules/wctomb: New file.
23230         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23231         * doc/posix-functions/wctomb.texi: Mention the new module.
23232         * modules/wctob (Depends-on): Add wctomb.
23233
23234 2011-02-22  Bruno Haible  <bruno@clisp.org>
23235
23236         New module 'mbtowc'.
23237         * lib/stdlib.in.h (mbtowc): New declaration.
23238         * lib/mbtowc.c: New file.
23239         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23240         * m4/mbtowc.m4: New file.
23241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23242         REPLACE_MBTOWC.
23243         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23244         REPLACE_MBTOWC.
23245         * modules/mbtowc: New file.
23246         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23247         * doc/posix-functions/mbtowc.texi: Mention the new module.
23248         * modules/btowc (Depends-on): Add mbtowc.
23249
23250 2011-02-22  Bruno Haible  <bruno@clisp.org>
23251
23252         wcrtomb: Add more tests for native Windows platforms.
23253         * tests/test-wcrtomb-w32-1.sh: New file.
23254         * tests/test-wcrtomb-w32-2.sh: New file.
23255         * tests/test-wcrtomb-w32-3.sh: New file.
23256         * tests/test-wcrtomb-w32-4.sh: New file.
23257         * tests/test-wcrtomb-w32-5.sh: New file.
23258         * tests/test-wcrtomb-w32.c: New file.
23259         * modules/wcrtomb-tests (Files): Add them.
23260         (Makefile.am): Arrange to run these tests.
23261         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23262         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23263
23264 2011-02-20  Bruno Haible  <bruno@clisp.org>
23265
23266         wcrtomb: Enhance test.
23267         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23268
23269 2011-02-20  Bruno Haible  <bruno@clisp.org>
23270
23271         mbrtowc: Tiny optimization.
23272         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23273
23274 2011-02-20  Jim Meyering  <meyering@redhat.com>
23275
23276         test-exclude.c: remove unmatched #endif
23277         * tests/test-exclude.c: Remove stray #endif, left over from
23278         the change of a week ago.
23279
23280 2011-02-19  Jim Meyering  <meyering@redhat.com>
23281
23282         git-version-gen: skip "-dirty" check when appropriate
23283         * build-aux/git-version-gen: Don't run any git commands when the
23284         version string comes from .tarball-version.  Prior to this, we
23285         would run git update-index --refresh even from a just-unpacked
23286         tarball directory, and that could affect a .git/ directory in a
23287         parent of the build directory.  Reported by Mike Frysinger.
23288
23289 2011-02-19  Bruno Haible  <bruno@clisp.org>
23290
23291         unictype/property-byname: Reduce the size of the 'data' segment.
23292         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23293
23294 2011-02-19  Bruno Haible  <bruno@clisp.org>
23295
23296         unictype/scripts: Reduce the size of the 'data' segment.
23297         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23298         '%pic'.
23299         * lib/unictype/scripts_byname.gperf: Regenerated.
23300
23301 2011-02-19  Bruno Haible  <bruno@clisp.org>
23302
23303         stdint: Update documentation.
23304         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23305
23306 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23307
23308         stdint: omit redundant check for wchar.h
23309         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23310         always tests whether wchar.h exists, so remove the now-redundant test.
23311
23312 2011-02-18  Bruno Haible  <bruno@clisp.org>
23313
23314         stdint: Cut dependency to module 'wchar'.
23315         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23316         include the necessary prerequisites.
23317         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23318         * modules/stdint (Depends-on): Remove wchar.
23319         (Makefile.am): Substitute HAVE_WCHAR_H.
23320         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23321
23322 2011-02-18  Eric Blake  <eblake@redhat.com>
23323
23324         longlong: skip, rather than fail, on cross-compilation
23325         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23326         when cross-compiling; regression from 2011-02-16.
23327
23328 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23329
23330         * NEWS: Mention 2011-02-08 change to stdlib.
23331
23332 2011-02-17  Bruno Haible  <bruno@clisp.org>
23333
23334         getloadavg: Add comments about platforms.
23335         * m4/getloadavg.m4: Add comment.
23336         * lib/getloadavg.c: Likewise.
23337
23338 2011-02-17  Bruno Haible  <bruno@clisp.org>
23339
23340         getloadavg: Fix link error on Solaris 2.6.
23341         * modules/getloadavg (Link): New section.
23342         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23343         linking test-getloadavg.
23344         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23345         getloadavg.
23346
23347 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23348
23349         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23350         It was 'int', but this doesn't match the IRIX 6.5 manual.
23351         Suggested by Bruno Haible in
23352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23353
23354 2011-02-17  Bruno Haible  <bruno@clisp.org>
23355
23356         havelib: Fix comments.
23357         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23358         change.
23359
23360 2011-02-17  Bruno Haible  <bruno@clisp.org>
23361
23362         havelib: Update config.rpath.
23363         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23364
23365 2011-02-17  Bruno Haible  <bruno@clisp.org>
23366
23367         getloadavg test: Add some plausibility checks.
23368         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23369         is improbable.
23370
23371 2011-02-16  Eric Blake  <eblake@redhat.com>
23372
23373         maintainer-makefile: make syntax-check a no-op from tarballs
23374         * top/maint.mk (no-vc-detected): New rule.
23375         (local-checks-available): Use it to avoid hanging if someone tries
23376         'make syntax-check' from a tarball.  Also append to any non-syntax
23377         checks already defined in cfg.mk.
23378
23379 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23380
23381         longlong: tune, particularly for common case of c99
23382
23383         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23384         or running anything if c99, or if unsigned long long int does not
23385         work.  In either case, we know the answer without further tests.
23386         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23387         it at most once, and use its results for both long long int and
23388         unsigned long long int.  This is more likely to be efficient in
23389         the common case where the program wants to check for both long
23390         long int and unsigned long long int.
23391         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23392         since the answer is already known.
23393
23394 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23395
23396         getloadavg: set errno
23397         * lib/getloadavg.c: Set errno when returning -1.  If no other
23398         error number looks appropriate, set it to ENOSYS if the getloadavg
23399         looks like it can't possibly ever work, ENOTSUP otherwise.
23400         Suggested by Bruno Haible in
23401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23402
23403         getloadavg: trim unused parts and speed up 'configure'
23404         * NEWS: Document this.
23405         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23406         always compiled if getloadavg is absent.
23407         Move test code to ...
23408         * tests/test-getloadavg.c: New file, containing previous
23409         contents of test from lib/getloadavg.c.  It also contains
23410         suggestions by Bruno Haible in
23411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23412         * modules/getloadavg-tests: New file.
23413         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23414         Do tests in the same order as they're needed for getloadavg.c.
23415         Omit setgid-related tests that generate symbols KMEM_GROUP,
23416         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23417         Do only the tests that are needed to see whether the system has
23418         getloadavg, moving the other tests into ...
23419         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23420         NLIST_NAME_UNION; nobody should be using it.  Do not define
23421         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23422         relevant, as the user of this module shouldn't care how getloadavg
23423         is implemented.
23424
23425         getloadavg: omit unused var
23426         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23427
23428 2011-02-15  Jim Meyering  <meyering@redhat.com>
23429
23430         doc: update users.txt
23431         * users.txt: Update iwhd's URL.
23432
23433 2011-02-13  Bruno Haible  <bruno@clisp.org>
23434
23435         Consistent macro naming for macros that use GCC __attribute__.
23436         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23437         _ATTRIBUTE_NONNULL_.
23438         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23439         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23440         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23441         ATTRIBUTE_DEPRECATED.
23442         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23443         ATTRIBUTE_NORETURN.
23444         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23445         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23446         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23447         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23448         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23449         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23450         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23451         ATTRIBUTE_SENTINEL.
23452         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23453         ATTRIBUTE_RETURN_CHECK.
23454         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23455         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23456         ATTRIBUTE_NORETURN.
23457         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23458         Reported by Paul Eggert.
23459
23460 2011-02-13  Bruno Haible  <bruno@clisp.org>
23461
23462         Don't interfere with a program's definition of __attribute__.
23463         * lib/argp.h (__attribute__): Remove definition.
23464         (_GL_ATTRIBUTE_FORMAT): New macro.
23465         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23466         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23467         (_GL_ATTRIBUTE_FORMAT): New macro.
23468         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23469         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23470         GCC 3 or newer.
23471         * lib/error.h (__attribute__): Remove definition.
23472         (_GL_ATTRIBUTE_FORMAT): New macro.
23473         (error, error_at_line): Use it.
23474         * lib/hash.h (__attribute__): Remove definition.
23475         (ATTRIBUTE_WUR): Update definition. Define always.
23476         * lib/openat.h (__attribute__): Remove definition.
23477         (ATTRIBUTE_NORETURN): Update definition. Define always.
23478         * lib/sigpipe-die.h (__attribute__): Remove definition.
23479         (ATTRIBUTE_NORETURN): Update definition. Define always.
23480         * lib/vasnprintf.h (__attribute__): Remove definition.
23481         (_GL_ATTRIBUTE_FORMAT): New macro.
23482         (asnprintf, vasnprintf): Use it.
23483         * lib/xalloc.h (__attribute__): Remove definition.
23484         (ATTRIBUTE_NORETURN): Update definition. Define always.
23485         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23486         * lib/xmemdup0.h (__attribute__): Remove definition.
23487         (ATTRIBUTE_NORETURN): Update definition. Define always.
23488         * lib/xprintf.h (__attribute__): Remove definition.
23489         (_GL_ATTRIBUTE_FORMAT): New macro.
23490         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23491         * lib/xstrtol.h (__attribute__): Remove definition.
23492         (ATTRIBUTE_NORETURN): Update definition. Define always.
23493         * lib/xvasprintf.h (__attribute__): Remove definition.
23494         (_GL_ATTRIBUTE_FORMAT): New macro.
23495         (xasprintf, xvasprintf): Use it.
23496         * tests/test-argmatch.c (__attribute__): Remove definition.
23497         (ATTRIBUTE_NORETURN): Update definition. Define always.
23498         * tests/test-exclude.c (__attribute__): Remove definition.
23499         (ATTRIBUTE_NORETURN): Update definition. Define always.
23500         Reported by Paul Eggert.
23501
23502 2011-02-13  Bruno Haible  <bruno@clisp.org>
23503
23504         mbrtowc: Add more tests for native Windows platforms.
23505         * tests/test-mbrtowc-w32-1.sh: New file.
23506         * tests/test-mbrtowc-w32-2.sh: New file.
23507         * tests/test-mbrtowc-w32-3.sh: New file.
23508         * tests/test-mbrtowc-w32-4.sh: New file.
23509         * tests/test-mbrtowc-w32-5.sh: New file.
23510         * tests/test-mbrtowc-w32.c: New file.
23511         * modules/mbrtowc-tests (Files): Add them.
23512         (Makefile.am): Arrange to run these tests.
23513         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23514         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23515
23516 2011-02-13  Bruno Haible  <bruno@clisp.org>
23517
23518         mbrtowc: Work around native Windows bug.
23519         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23520         guess when no suitable locale for testing was found.
23521         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23522
23523 2011-02-13  Bruno Haible  <bruno@clisp.org>
23524
23525         mbsinit: Work around mingw bug.
23526         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23527         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23528         Windows.
23529         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23530
23531 2011-02-13  Bruno Haible  <bruno@clisp.org>
23532
23533         mbsinit: Don't crash for a NULL argument.
23534         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23535         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23536
23537 2011-02-13  Bruno Haible  <bruno@clisp.org>
23538
23539         Don't interfere with a program's definition of __attribute__.
23540         * lib/stdio.in.h (__attribute__): Remove definition.
23541         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23542         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23543         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23544         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23545         * lib/string.in.h (__attribute__): Remove definition.
23546         Reported by Paul Eggert.
23547
23548 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23549
23550         stdlib: don't get in the way of non-GCC __attribute__
23551         See thread starting at
23552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23553         Revert previous stdlib change, installing the following instead:
23554         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23555         to get in the way of a non-GCC compiler that supports __attribute__.
23556         (_GL_ATTRIBUTE_RETURN): New macro.
23557         (_Exit): Use it instead of __attribute__.
23558
23559 2011-02-12  Bruno Haible  <bruno@clisp.org>
23560
23561         quotearg test: Avoid test failure on mingw.
23562         * tests/test-quotearg.sh: Convert the locale identifier from native
23563         Windows syntax to Unix syntax.
23564
23565 2011-02-12  Bruno Haible  <bruno@clisp.org>
23566
23567         setlocale: Prefer gnulib's override over libintl's override.
23568         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23569         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23570         GNULIB_defined_setlocale is set.
23571
23572 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23573
23574         stdlib: support non-GCC __attribute__
23575
23576         Fix a serious and tricky problem encountered when attempting to
23577         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23578         5.5, but it crashed due to memory corruption on Solaris 10 with
23579         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23580         bits that are otherwise zero.  This tagging is optional inside
23581         Emacs but is preferred and is used when __attribute__ ((__aligned
23582         (8))) works, as it does with both recent-enough GCC and with Sun C
23583         5.11.  However, Sun C 5.11 is not GCC and does not #define
23584         __GNUC__ and __GNUC_MINOR__.
23585
23586         When I added the getloadavg module to Emacs, it brought in
23587         stdlib.in.h, which contained this fragment:
23588
23589            #ifndef __attribute__
23590            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23591            #  define __attribute__(Spec)   /* empty */
23592            # endif
23593            #endif
23594
23595         When files that include <stdlib.h> were compiled with Sun C 5.11,
23596         the above code disabled __attribute__ ((__aligned (8))), which
23597         caused variables to not be properly aligned, which eventually led
23598         to the pointer corruption mentioned above.  (This was a bit hard
23599         to diagnose, unfortunately.)
23600
23601         Several "#define __attribute__(X) /* empty */" code snippets need
23602         to be eradicated from Gnulib to work with non-GCC compilers that
23603         support __attribute__.  The Autoconf way to do this is to test for
23604         each kind of attribute that we want support for, and selectively
23605         enable that in source code.
23606
23607         Fix this problem just for stdlib.h, by adding a test for the
23608         __noreturn__ attribute, and change stdlib.in.h to use that test
23609         when needed.  This technique can be easily generalized to the
23610         other *.in.h files and attributes, and a similar technique can be
23611         used for *.h and *.c files.  This patch is enough to solve the
23612         problem for Emacs + getloadavg, and I thought I'd publish it for
23613         feedback before undertaking further, similar fixes in other
23614         modules.
23615
23616         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23617         because it's not needed for stdlib.h.  It merely substitutes the
23618         value directly into stdlib.h.  We may well need to #define it, or
23619         similar symbols, for other modules, but it's nice to also have an
23620         option to not #define it for applications like Emacs that do not
23621         need it.
23622
23623         * lib/stdlib.in.h (__attribute__): Do not #define.
23624         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23625         be defined only if the _Exit module is also used.
23626         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23628         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23629         platforms.
23630         * modules/_Exit (Files): Add m4/attribute.m4.
23631         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23632         * m4/attribute.m4: New file.
23633
23634 2011-02-12  Bruno Haible  <bruno@clisp.org>
23635
23636         wcsrtombs: Work around bug on native Windows.
23637         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23638         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23639         instead of len.
23640         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23641
23642 2011-02-12  Bruno Haible  <bruno@clisp.org>
23643
23644         mbsrtowcs: Work around bug on native Windows.
23645         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23646         against mingw bug.
23647         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23648
23649 2011-02-12  Bruno Haible  <bruno@clisp.org>
23650
23651         Avoid setlocale bugs in tests.
23652         * modules/btowc (Dependencies): Add setlocale.
23653         * modules/c-strcase (Dependencies): Likewise.
23654         * modules/mbmemcasecmp (Dependencies): Likewise.
23655         * modules/mbmemcasecoll (Dependencies): Likewise.
23656         * modules/mbrtowc (Dependencies): Likewise.
23657         * modules/mbscasecmp (Dependencies): Likewise.
23658         * modules/mbscasestr (Dependencies): Likewise.
23659         * modules/mbschr (Dependencies): Likewise.
23660         * modules/mbscspn (Dependencies): Likewise.
23661         * modules/mbsinit (Dependencies): Likewise.
23662         * modules/mbsncasecmp (Dependencies): Likewise.
23663         * modules/mbsnrtowcs (Dependencies): Likewise.
23664         * modules/mbspbrk (Dependencies): Likewise.
23665         * modules/mbspcasecmp (Dependencies): Likewise.
23666         * modules/mbsrchr (Dependencies): Likewise.
23667         * modules/mbsrtowcs (Dependencies): Likewise.
23668         * modules/mbsspn (Dependencies): Likewise.
23669         * modules/mbsstr (Dependencies): Likewise.
23670         * modules/nl_langinfo (Dependencies): Likewise.
23671         * modules/quotearg (Dependencies): Likewise.
23672         * modules/unicase/locale-language (Dependencies): Likewise.
23673         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23674         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23675         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23676         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23677         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23678         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23679         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23680         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23681         * modules/vasnprintf-posix (Dependencies): Likewise.
23682         * modules/wcrtomb (Dependencies): Likewise.
23683         * modules/wcsnrtombs (Dependencies): Likewise.
23684         * modules/wcsrtombs (Dependencies): Likewise.
23685
23686 2011-02-12  Bruno Haible  <bruno@clisp.org>
23687
23688         setlocale: Workaround native Windows bug.
23689         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23690         succeeds but sets LC_CTYPE to "C", report a failure.
23691         * tests/test-setlocale2.sh: New file.
23692         * tests/test-setlocale2.c: New file.
23693         * modules/setlocale-tests (Files): Add the new files.
23694         (Makefile.am): Enable test-setlocale2.sh test.
23695         * doc/posix-functions/setlocale.texi: Mention workaround.
23696
23697 2011-02-11  Bruno Haible  <bruno@clisp.org>
23698
23699         Tests for module 'setlocale'.
23700         * modules/setlocale-tests: New file.
23701         * tests/test-setlocale1.sh: New file.
23702         * tests/test-setlocale1.c: New file.
23703
23704         New module 'setlocale'.
23705         * lib/locale.in.h (setlocale): New declaration.
23706         * lib/setlocale.c: New file, based on
23707         gettext/gettext-runtime/intl/setlocale.c.
23708         * m4/setlocale.m4: New file.
23709         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23710         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23711         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23712         REPLACE_SETLOCALE.
23713         * modules/setlocale: New file.
23714         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23715         * doc/posix-functions/setlocale.texi: Mention the new module.
23716
23717 2011-02-11  Bruno Haible  <bruno@clisp.org>
23718
23719         Prepare for locale dependent tests on mingw.
23720         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23721         because it has the wrong locale encoding.
23722         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23723         French_France.1252 instead of "fr".
23724         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23725         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23726         because it has the wrong locale encoding.
23727         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23728         native Windows, try Turkish_Turkey.65001.
23729         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23730         Chinese_China.54936.
23731
23732         Prepare for locale dependent tests on mingw.
23733         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23734         differently.
23735         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23736         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23737         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23738         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23739
23740 2011-02-11  Eric Blake  <eblake@redhat.com>
23741
23742         strptime: avoid compiler warnings
23743         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23744         compiler warnings about dead code.
23745         Reported by Daniel P. Berrange.
23746
23747 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23748
23749         doc: update users.txt
23750         * users.txt: Add rcs.
23751
23752 2011-02-10  John W. Eaton  <jwe@gnu.org>
23753
23754         doc: update users.txt
23755         * users.txt: Add octave.
23756
23757 2011-02-10  Jim Meyering  <meyering@redhat.com>
23758
23759         doc: update users.txt
23760         * users.txt: Add iwhd.
23761
23762 2011-02-09  Bruno Haible  <bruno@clisp.org>
23763
23764         gnulib-tool: Make copyright notice adjustment more robust.
23765         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23766         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23767         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23768         License".
23769         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23770
23771 2011-02-06  Bruno Haible  <bruno@clisp.org>
23772
23773         New module 'towctrans'.
23774         * modules/towctrans: New file.
23775         * lib/wctype.in.h (towctrans): New declaration.
23776         * lib/towctrans.c: New file.
23777         * lib/towctrans-impl.h: New file.
23778         * m4/towctrans.m4: New file.
23779         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23780         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23781         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23782         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23783         * doc/posix-functions/towctrans.texi: Mention the new module.
23784
23785 2011-02-06  Bruno Haible  <bruno@clisp.org>
23786
23787         New module 'wctrans'.
23788         * modules/wctrans: New file.
23789         * lib/wctype.in.h (wctrans): New declaration.
23790         * lib/wctrans.c: New file.
23791         * lib/wctrans-impl.h: New file.
23792         * m4/wctrans.m4: New file.
23793         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23794         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23795         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23796         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23797         * doc/posix-functions/wctrans.texi: Mention the new module.
23798
23799 2011-02-06  Bruno Haible  <bruno@clisp.org>
23800
23801         New module 'iswctype'.
23802         * modules/iswctype: New file.
23803         * lib/wctype.in.h (iswctype): New declaration.
23804         * lib/iswctype.c: New file.
23805         * lib/iswctype-impl.h: New file.
23806         * m4/iswctype.m4: New file.
23807         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23808         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23809         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23810         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23811         * doc/posix-functions/iswctype.texi: Mention the new module and the
23812         HP-UX 11.00 problem.
23813
23814 2011-02-06  Bruno Haible  <bruno@clisp.org>
23815
23816         New module 'wctype'.
23817         * modules/wctype: Change to represent the wctype() substitute.
23818         * lib/wctype.in.h (wctype): New declaration.
23819         * lib/wctype.c: New file.
23820         * lib/wctype-impl.h: New file.
23821         * m4/wctype.m4: New file.
23822         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23823         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23824         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23825         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23826         * doc/posix-functions/wctype.texi: Mention the new module and the
23827         HP-UX 11.00 problem.
23828
23829 2011-02-06  Bruno Haible  <bruno@clisp.org>
23830
23831         wctype-h: Ensure wctype_t and wctrans_t are defined.
23832         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23833         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23834         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23835         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23836         HAVE_WCTRANS_T.
23837         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23838
23839 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23840
23841         flock: fix license typo
23842
23843         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23844         omitted.
23845
23846 2011-02-08  Bruno Haible  <bruno@clisp.org>
23847
23848         Split large sed scripts, for HP-UX sed.
23849         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23850         to avoid HP-UX limit of 99 commands, in the near future.
23851         * modules/stdlib (Makefile.am): Likewise.
23852         * modules/unistd (Makefile.am): Likewise.
23853         * modules/wchar (Makefile.am): Likewise.
23854         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23855         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23856         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23857
23858 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23859             Bruno Haible  <bruno@clisp.org>
23860
23861         stdlib: improve random_r modularization
23862         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23863         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23864         you also need the random_r module to get this material right.
23865         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23866         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23867         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23868
23869 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23870
23871         stdlib: don't depend on stdint
23872         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23873         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23874         be independent of whether stdint.h is needed.
23875         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23876         here, instead of ...
23877         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23878         struct random_data should be using the random_r module, not just
23879         the stdlib module (which wouldn't make sense: what package needs
23880         just struct random_data without also needing random_r?).
23881         * modules/stdlib (Depends-on): Remove stdint.
23882
23883         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23884         See the thread rooted at
23885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23886         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23887         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23888         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23889         __VMS)); previously it was always included (via fcntl--.h).
23890         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23891         hand; this is good enough for load averages.  Also, do not use
23892         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23893         flags directly if available and don't bother otherwise.  (Packages
23894         that need the extra reliability should use the modules that define
23895         these flags on older platforms that lack them.)
23896         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23897         fcntl-safer.
23898
23899 2011-02-08  Jim Meyering  <meyering@redhat.com>
23900
23901         di-set.h, ino-map.h: add multiple-inclusion guard
23902         Technically, the guard is required only for ino-map.h, due to its
23903         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23904         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23905         * lib/ino-map.h: Likewise.
23906
23907 2011-02-06  Bruno Haible  <bruno@clisp.org>
23908
23909         iswblank: Ensure declaration on glibc systems.
23910         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23911         * modules/iswblank (Dependencies): Add 'extensions'.
23912         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23913
23914 2011-02-06  Bruno Haible  <bruno@clisp.org>
23915
23916         New module 'iswblank'.
23917         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23918         * modules/iswblank: New file.
23919         * modules/wctype-h (Files): Remove lib/iswblank.c.
23920         (Makefile.am): Substitute GNULIB_ISWBLANK.
23921         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23922         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23923         (gl_WCTYPE_H_DEFAULTS): New macro.
23924         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23925         * modules/iswblank-tests: New file.
23926         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23927         * tests/test-wctype-h.c (main): Remove iswblank tests.
23928         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23929         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23930         of 'wctype-h'.
23931         * NEWS: Mention the change.
23932         * modules/mbchar (Depends-on): Add iswblank.
23933
23934 2011-02-08  Bruno Haible  <bruno@clisp.org>
23935
23936         di-set tests: Refactor.
23937         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23938         unnecessary includes.
23939         (ASSERT): Remove macro.
23940         (main): Make C90 compliant by avoiding variable declaration after
23941         statement.
23942         * modules/di-set-tests (Files): Add tests/macros.h.
23943
23944 2011-02-08  Bruno Haible  <bruno@clisp.org>
23945
23946         ino-map tests: Refactor.
23947         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23948         unnecessary includes.
23949         (ASSERT): Remove macro.
23950         (main): Make C90 compliant by avoiding variable declaration after
23951         statement.
23952         * modules/ino-map-tests (Files): Add tests/macros.h.
23953
23954 2011-02-08  Jim Meyering  <meyering@redhat.com>
23955
23956         di-set: add "const" to a cast
23957         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23958         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23959
23960 2011-02-06  Bruno Haible  <bruno@clisp.org>
23961
23962         Rename module 'wctype' to 'wctype-h'.
23963         * modules/wctype-h: Renamed from modules/wctype.
23964         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23965         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23966         (Files, Depends-on, Makefile.am): Update.
23967         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23968         (Files, Makefile.am): Update.
23969         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23970         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23971         * doc/posix-headers/wctype.texi: Update.
23972         * doc/posix-functions/iswalnum.texi: Update.
23973         * doc/posix-functions/iswalpha.texi: Update.
23974         * doc/posix-functions/iswblank.texi: Update.
23975         * doc/posix-functions/iswcntrl.texi: Update.
23976         * doc/posix-functions/iswdigit.texi: Update.
23977         * doc/posix-functions/iswgraph.texi: Update.
23978         * doc/posix-functions/iswlower.texi: Update.
23979         * doc/posix-functions/iswprint.texi: Update.
23980         * doc/posix-functions/iswpunct.texi: Update.
23981         * doc/posix-functions/iswspace.texi: Update.
23982         * doc/posix-functions/iswupper.texi: Update.
23983         * doc/posix-functions/iswxdigit.texi: Update.
23984         * doc/posix-functions/towlower.texi: Update.
23985         * doc/posix-functions/towupper.texi: Update.
23986         * NEWS: Mention the change.
23987         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23988         * modules/mbchar (Dependencies): Likewise.
23989         * modules/mbswidth (Dependencies): Likewise.
23990         * modules/quotearg (Dependencies): Likewise.
23991         * modules/regex (Dependencies): Likewise.
23992         * modules/wcscasecmp (Dependencies): Likewise.
23993         * modules/wcsncasecmp (Dependencies): Likewise.
23994         * modules/wcwidth (Dependencies): Likewise.
23995
23996 2011-02-06  Bruno Haible  <bruno@clisp.org>
23997
23998         New module 'wcswidth'.
23999         * modules/wcswidth: New file.
24000         * lib/wchar.in.h (wcswidth): New declaration.
24001         * lib/wcswidth.c: New file.
24002         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24003         * m4/wcswidth.m4: New file.
24004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24006         REPLACE_WCSWIDTH.
24007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24008         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24009         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24010         * doc/posix-functions/wcswidth.texi: Mention the new module.
24011
24012 2011-02-06  Bruno Haible  <bruno@clisp.org>
24013
24014         New module 'wcstok'.
24015         * modules/wcstok: New file.
24016         * lib/wchar.in.h (wcstok): New declaration.
24017         * lib/wcstok.c: New file.
24018         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24019         * m4/wcstok.m4: New file.
24020         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24021         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24022         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24023         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24024         * doc/posix-functions/wcstok.texi: Mention the new module.
24025
24026 2011-02-06  Bruno Haible  <bruno@clisp.org>
24027
24028         New module 'wcsstr'.
24029         * modules/wcsstr: New file.
24030         * lib/wchar.in.h (wcsstr): New declaration.
24031         * lib/wcsstr.c: New file.
24032         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24033         * m4/wcsstr.m4: New file.
24034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24036         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24037         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24038         * doc/posix-functions/wcsstr.texi: Mention the new module.
24039
24040 2011-02-06  Bruno Haible  <bruno@clisp.org>
24041
24042         New module 'wcspbrk'.
24043         * modules/wcspbrk: New file.
24044         * lib/wchar.in.h (wcspbrk): New declaration.
24045         * lib/wcspbrk.c: New file.
24046         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24047         * m4/wcspbrk.m4: New file.
24048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24050         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24051         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24052         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24053
24054 2011-02-06  Bruno Haible  <bruno@clisp.org>
24055
24056         New module 'wcsspn'.
24057         * modules/wcsspn: New file.
24058         * lib/wchar.in.h (wcsspn): New declaration.
24059         * lib/wcsspn.c: New file.
24060         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24061         * m4/wcsspn.m4: New file.
24062         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24063         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24064         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24065         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24066         * doc/posix-functions/wcsspn.texi: Mention the new module.
24067
24068 2011-02-06  Bruno Haible  <bruno@clisp.org>
24069
24070         New module 'wcscspn'.
24071         * modules/wcscspn: New file.
24072         * lib/wchar.in.h (wcscspn): New declaration.
24073         * lib/wcscspn.c: New file.
24074         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24075         * m4/wcscspn.m4: New file.
24076         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24077         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24078         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24079         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24080         * doc/posix-functions/wcscspn.texi: Mention the new module.
24081
24082 2011-02-06  Bruno Haible  <bruno@clisp.org>
24083
24084         New module 'wcsrchr'.
24085         * modules/wcsrchr: New file.
24086         * lib/wchar.in.h (wcsrchr): New declaration.
24087         * lib/wcsrchr.c: New file.
24088         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24089         * m4/wcsrchr.m4: New file.
24090         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24091         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24092         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24093         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24094         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24095
24096 2011-02-06  Bruno Haible  <bruno@clisp.org>
24097
24098         New module 'wcschr'.
24099         * modules/wcschr: New file.
24100         * lib/wchar.in.h (wcschr): New declaration.
24101         * lib/wcschr.c: New file.
24102         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24103         * m4/wcschr.m4: New file.
24104         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24105         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24106         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24107         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24108         * doc/posix-functions/wcschr.texi: Mention the new module.
24109
24110 2011-02-06  Bruno Haible  <bruno@clisp.org>
24111
24112         New module 'wcsdup'.
24113         * modules/wcsdup: New file.
24114         * lib/wchar.in.h (wcsdup): New declaration.
24115         * lib/wcsdup.c: New file.
24116         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24117         * m4/wcsdup.m4: New file.
24118         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24119         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24120         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24121         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24122         * doc/posix-functions/wcsdup.texi: Mention the new module.
24123
24124 2011-02-06  Bruno Haible  <bruno@clisp.org>
24125
24126         New module 'wcsxfrm'.
24127         * modules/wcsxfrm: New file.
24128         * lib/wchar.in.h (wcsxfrm): New declaration.
24129         * lib/wcsxfrm.c: New file.
24130         * lib/wcsxfrm-impl.h: New file.
24131         * m4/wcsxfrm.m4: New file.
24132         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24133         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24134         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24135         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24136         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24137
24138 2011-02-06  Bruno Haible  <bruno@clisp.org>
24139
24140         New module 'wcscoll'.
24141         * modules/wcscoll: New file.
24142         * lib/wchar.in.h (wcscoll): New declaration.
24143         * lib/wcscoll.c: New file.
24144         * lib/wcscoll-impl.h: New file.
24145         * m4/wcscoll.m4: New file.
24146         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24147         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24148         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24149         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24150         * doc/posix-functions/wcscoll.texi: Mention the new module.
24151
24152 2011-02-06  Bruno Haible  <bruno@clisp.org>
24153
24154         New module 'wcsncasecmp'.
24155         * modules/wcsncasecmp: New file.
24156         * lib/wchar.in.h (wcsncasecmp): New declaration.
24157         * lib/wcsncasecmp.c: New file.
24158         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24159         * m4/wcsncasecmp.m4: New file.
24160         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24161         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24162         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24163         HAVE_WCSNCASECMP.
24164         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24165         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24166
24167 2011-02-06  Bruno Haible  <bruno@clisp.org>
24168
24169         New module 'wcscasecmp'.
24170         * modules/wcscasecmp: New file.
24171         * lib/wchar.in.h (wcscasecmp): New declaration.
24172         * lib/wcscasecmp.c: New file.
24173         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24174         * m4/wcscasecmp.m4: New file.
24175         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24176         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24177         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24178         HAVE_WCSCASECMP.
24179         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24180         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24181
24182 2011-02-05  Bruno Haible  <bruno@clisp.org>
24183
24184         New module 'wcsncmp'.
24185         * modules/wcsncmp: New file.
24186         * lib/wchar.in.h (wcsncmp): New declaration.
24187         * lib/wcsncmp.c: New file.
24188         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24189         * m4/wcsncmp.m4: New file.
24190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24193         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24194         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24195
24196 2011-02-05  Bruno Haible  <bruno@clisp.org>
24197
24198         New module 'wcscmp'.
24199         * modules/wcscmp: New file.
24200         * lib/wchar.in.h (wcscmp): New declaration.
24201         * lib/wcscmp.c: New file.
24202         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24203         * m4/wcscmp.m4: New file.
24204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24206         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24207         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24208         * doc/posix-functions/wcscmp.texi: Mention the new module.
24209
24210 2011-02-05  Bruno Haible  <bruno@clisp.org>
24211
24212         New module 'wcsncat'.
24213         * modules/wcsncat: New file.
24214         * lib/wchar.in.h (wcsncat): New declaration.
24215         * lib/wcsncat.c: New file.
24216         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24217         * m4/wcsncat.m4: New file.
24218         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24219         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24221         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24222         * doc/posix-functions/wcsncat.texi: Mention the new module.
24223
24224 2011-02-05  Bruno Haible  <bruno@clisp.org>
24225
24226         New module 'wcscat'.
24227         * modules/wcscat: New file.
24228         * lib/wchar.in.h (wcscat): New declaration.
24229         * lib/wcscat.c: New file.
24230         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24231         * m4/wcscat.m4: New file.
24232         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24233         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24234         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24235         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24236         * doc/posix-functions/wcscat.texi: Mention the new module.
24237
24238 2011-02-05  Bruno Haible  <bruno@clisp.org>
24239
24240         New module 'wcpncpy'.
24241         * modules/wcpncpy: New file.
24242         * lib/wchar.in.h (wcpncpy): New declaration.
24243         * lib/wcpncpy.c: New file.
24244         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24245         * m4/wcpncpy.m4: New file.
24246         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24247         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24248         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24249         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24250         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24251
24252 2011-02-05  Bruno Haible  <bruno@clisp.org>
24253
24254         New module 'wcsncpy'.
24255         * modules/wcsncpy: New file.
24256         * lib/wchar.in.h (wcsncpy): New declaration.
24257         * lib/wcsncpy.c: New file.
24258         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24259         * m4/wcsncpy.m4: New file.
24260         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24261         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24262         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24263         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24264         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24265
24266 2011-02-05  Bruno Haible  <bruno@clisp.org>
24267
24268         New module 'wcpcpy'.
24269         * modules/wcpcpy: New file.
24270         * lib/wchar.in.h (wcpcpy): New declaration.
24271         * lib/wcpcpy.c: New file.
24272         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24273         * m4/wcpcpy.m4: New file.
24274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24276         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24277         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24278         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24279
24280 2011-02-05  Bruno Haible  <bruno@clisp.org>
24281
24282         New module 'wcscpy'.
24283         * modules/wcscpy: New file.
24284         * lib/wchar.in.h (wcscpy): New declaration.
24285         * lib/wcscpy.c: New file.
24286         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24287         * m4/wcscpy.m4: New file.
24288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24291         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24292         * doc/posix-functions/wcscpy.texi: Mention the new module.
24293
24294 2011-02-05  Bruno Haible  <bruno@clisp.org>
24295
24296         New module 'wcsnlen'.
24297         * modules/wcsnlen: New file.
24298         * lib/wchar.in.h (wcsnlen): New declaration.
24299         * lib/wcsnlen.c: New file.
24300         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24301         * m4/wcsnlen.m4: New file.
24302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24304         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24305         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24306         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24307
24308 2011-02-05  Bruno Haible  <bruno@clisp.org>
24309
24310         New module 'wcslen'.
24311         * modules/wcslen: New file.
24312         * lib/wchar.in.h (wcslen): New declaration.
24313         * lib/wcslen.c: New file.
24314         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24315         * m4/wcslen.m4: New file.
24316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24319         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24320         * doc/posix-functions/wcslen.texi: Mention the new module.
24321
24322 2011-02-05  Bruno Haible  <bruno@clisp.org>
24323
24324         New module 'wmemset'.
24325         * modules/wmemset: New file.
24326         * lib/wchar.in.h (wmemset): New declaration.
24327         * lib/wmemset.c: New file.
24328         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24329         * m4/wmemset.m4: New file.
24330         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24331         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24332         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24333         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24334         * doc/posix-functions/wmemset.texi: Mention the new module.
24335
24336 2011-02-05  Bruno Haible  <bruno@clisp.org>
24337
24338         New module 'wmemmove'.
24339         * modules/wmemmove: New file.
24340         * lib/wchar.in.h (wmemmove): New declaration.
24341         * lib/wmemmove.c: New file.
24342         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24343         * m4/wmemmove.m4: New file.
24344         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24345         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24346         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24347         HAVE_WMEMMOVE.
24348         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24349         * doc/posix-functions/wmemmove.texi: Mention the new module.
24350
24351 2011-02-05  Bruno Haible  <bruno@clisp.org>
24352
24353         New module 'wmemcpy'.
24354         * modules/wmemcpy: New file.
24355         * lib/wchar.in.h (wmemcpy): New declaration.
24356         * lib/wmemcpy.c: New file.
24357         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24358         * m4/wmemcpy.m4: New file.
24359         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24360         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24361         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24362         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24363         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24364
24365 2011-02-05  Bruno Haible  <bruno@clisp.org>
24366
24367         New module 'wmemcmp'.
24368         * modules/wmemcmp: New file.
24369         * lib/wchar.in.h (wmemcmp): New declaration.
24370         * lib/wmemcmp.c: New file.
24371         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24372         * m4/wmemcmp.m4: New file.
24373         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24374         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24375         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24376         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24377         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24378
24379 2011-02-07  Jim Meyering  <meyering@redhat.com>
24380
24381         di-set, ino-map: new modules, from coreutils
24382         * lib/di-set.c: New file.
24383         * lib/di-set.h: Likewise.
24384         * lib/ino-map.c: Likewise.
24385         * lib/ino-map.h: Likewise.
24386         * modules/di-set: Likewise.
24387         * modules/di-set-tests: Likewise.
24388         * modules/ino-map: Likewise.
24389         * modules/ino-map-tests: Likewise.
24390         * tests/test-di-set.c: Likewise.
24391         * tests/test-ino-map.c: Likewise.
24392
24393 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24394
24395         getloadavg: merge minor changes from Emacs
24396
24397         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24398         (getloadavg): Use memset, not bzero.
24399
24400         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24401         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24402         clash (bug#86).
24403
24404 2010-11-14  Bruno Haible  <bruno@clisp.org>
24405
24406         Allow multiple gnulib generated replacements to coexist.
24407         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24408         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24409         * lib/langinfo.in.h (nl_item): Likewise.
24410         * lib/math.in.h (_NaN, NAN): Likewise.
24411         * lib/netdb.in.h (struct addrinfo): Likewise.
24412         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24413         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24414         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24415         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24416         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24417         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24418         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24419         pthread_mutexattr_init, pthread_mutexattr_settype,
24420         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24421         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24422         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24423         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24424         * lib/sched.in.h (struct sched_param): Likewise.
24425         * lib/se-selinux.in.h (security_class_t, security_context_t,
24426         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24427         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24428         lsetfilecon, fsetfilecon, security_check_context,
24429         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24430         Likewise.
24431         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24432         Likewise.
24433         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24434         _gl_function_taking_int_returning_void_t, union sigval,
24435         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24436         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24437         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24438         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24439         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24440         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24441         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24442         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24443         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24444         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24445         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24446         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24447         socklen_t, rpl_fd_isset): Likewise.
24448         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24449         * lib/sys_time.in.h (struct timeval): Likewise.
24450         * lib/sys_times.in.h (struct tms): Likewise.
24451         * lib/sys_utsname.in.h (struct utsname):
24452         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24453         * lib/unistd.in.h (getpagesize): Likewise.
24454         * lib/wchar.in.h (mbstate_t): Likewise.
24455         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24456         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24457         towlower, towupper): Likewise.
24458         Reported by Sam Steingold <sds@gnu.org>.
24459
24460 2011-02-05  Eric Blake  <eblake@redhat.com>
24461
24462         unsetenv: work around Haiku issues
24463         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24464         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24465
24466 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24467
24468         libposix: avoid calling error() within libposix
24469         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24470         is defined.
24471
24472 2011-02-05  Eric Blake  <eblake@redhat.com>
24473
24474         strerror_r-posix: port to cygwin
24475         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24476         implementation.
24477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24478         * tests/test-strerror_r.c (main): Fix test.
24479         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24480         issue.
24481
24482 2011-02-05  Bruno Haible  <bruno@clisp.org>
24483
24484         New module 'wmemchr'.
24485         * modules/wmemchr: New file.
24486         * lib/wchar.in.h (wmemchr): New declaration.
24487         * lib/wmemchr.c: New file.
24488         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24489         * m4/wmemchr.m4: New file.
24490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24492         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24493         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24494         * doc/posix-functions/wmemchr.texi: Mention the new module.
24495
24496 2011-02-04  Eric Blake  <eblake@redhat.com>
24497
24498         fdopendir: detect FreeBSD bug
24499         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24500         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24501
24502 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24503
24504         stdbool: do not define HAVE_STDBOOL_H
24505         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24506         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24507         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24508         imported from the latest Autoconf git.  It was motivated by Emacs,
24509         which uses gnulib but does not need HAVE_STDBOOL_H.
24510
24511 2011-02-04  Bruno Haible  <bruno@clisp.org>
24512
24513         wcsnrtombs: Prepare for new module wwcsnrtombs.
24514         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24515         * lib/wcsnrtombs.c: Include it.
24516         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24517
24518         wcsrtombs: Prepare for new module wwcsrtombs.
24519         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24520         * lib/wcsrtombs.c: Include it.
24521         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24522
24523         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24524         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24525         * lib/mbsnrtowcs.c: Include it.
24526         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24527
24528         mbsrtowcs: Prepare for new module mbsrtowwcs.
24529         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24530         * lib/mbsrtowcs.c: Include it.
24531         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24532
24533 2011-02-04  Bruno Haible  <bruno@clisp.org>
24534
24535         vasnprintf: Reduce use of malloc for small format strings.
24536         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24537         (arguments): Add room for the first 7 arguments.
24538         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24539         (char_directives, u8_directives, u16_directives, u32_directives): Add
24540         room for the first 7 directives.
24541         * lib/printf-parse.c: Include <string.h>.
24542         (PRINTF_PARSE): Change memory handling code so that it uses the first
24543         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24544         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24545         Reported by Pádraig Brady <P@draigbrady.com>.
24546
24547 2011-01-31  Eric Blake  <eblake@redhat.com>
24548
24549         dup2: work around Haiku bug
24550         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24551         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24552         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24553         * tests/test-dup2.c (main): Enhance test.
24554
24555 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24556
24557         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24558         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24559         declared by eglibc 2.11.2.
24560         * lib/stdio.in.h: Likewise.
24561
24562 2011-01-31  Eric Blake  <eblake@redhat.com>
24563
24564         ignore-value: add missing test dependency
24565         * tests/test-ignore-value.c: Revert previous change; stdio.h
24566         provides off_t.
24567         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24568
24569 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24570
24571         mktime: clarify long_int width checking
24572         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24573         the top level, to make it clearer that the assumption about
24574         long_int width is being checked.  See
24575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24576
24577 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24578
24579         ignore-value: Fix self-test.
24580         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24581
24582 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24583
24584         TYPE_MAXIMUM: avoid theoretically undefined behavior
24585         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24586         negative number, which the C Standard says has undefined behavior.
24587         In practice this is not a problem, but might as well do it by the book.
24588         Reported by Rich Felker and Eric Blake; see
24589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24590         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24591         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24593         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24594         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24595         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24596
24597         mktime: #undef mktime before #defining it
24598         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24599
24600         mktime: systematically normalize tm_isdst comparisons
24601         * lib/mktime.c (isdst_differ): New function.
24602         (__mktime_internal): Use it systematically for all isdst comparisons.
24603         This completes the fix for libc BZ #6723, and removes the need for
24604         normalizing tm_isdst.  See
24605         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24606         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24607
24608         mktime: fix some integer overflow issues and sidestep the rest
24609
24610         This was prompted by a bug report by Benjamin Lindner for MinGW
24611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24612         His bug is due to signed integer overflow (0 - INT_MIN), and I
24613         I scanned through mktime.c looking for other integer overflow
24614         problems, fixing all the bugs I found.
24615
24616         Although the C Standard says the resulting code is still not safe
24617         in the presence of integer overflow, in practice it should be good
24618         enough for all real-world two's-complement implementations, except
24619         for debugging environments that deliberately trap on integer
24620         overflow (e.g., gcc -ftrapv).
24621
24622         * lib/mktime.c (WRAPV): New macro.
24623         (SHR): Also check that long_int and time_t shift right in the
24624         usual way, before using the fast-but-unportable method.
24625         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24626         used.  The code already assumed two's complement, so there's
24627         no need to test for alternatives.  All uses removed.
24628         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24629         the C standard.  Problem reported by Rich Felker in
24630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24631         (twos_complement_arithmetic): Also check long_int and time_t.
24632         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24633         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24634         (__mktime_internal): Avoid integer overflow with unary subtraction
24635         in two instances where -1 - X is an adequate replacement for -X,
24636         since the calculations are approximate.
24637
24638 2011-01-29  Eric Blake  <eblake@redhat.com>
24639
24640         mktime: avoid infinite loop
24641         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24642         type; behavior is still undefined but portable to all known targets.
24643         Reported by Rich Felker.
24644
24645 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24646
24647         rename, unlink, same-inode: Relicense.
24648         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24649         * modules/unlink (License): Likewise.
24650         * modules/same-inode (License): Likewise.
24651
24652 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24653
24654         mktime: avoid problems on NetBSD 5 / i386
24655         * lib/mktime.c (long_int): New type.  This works around a problem
24656         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24657         but time_t is 64 bits, and where I expect the existing code is
24658         wrong in some cases.
24659         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24660         (ydhms_diff): Bring back the compile-time check for wide-enough
24661         year and yday.
24662
24663         mktime: fix misspelling in comment
24664         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24665         This merges all recent glibc changes of importance.
24666
24667 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24668
24669         move-if-change: cope with concurrent mv of identical file.
24670         * build-aux/move-if-change (CMPPROG): Accept environment
24671         variable as an override for `cmp'.
24672         (usage): Document CMPPROG.
24673         Adjust comparison to drop stdout.  Cope with failure of mv if
24674         the target file exists and is identical to the source, for
24675         parallel builds.
24676         Report from H.J. Lu against binutils in PR binutils/12283.
24677
24678 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24679
24680         * users.txt: Mention sharutils.
24681
24682 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24683
24684         * users.txt: Mention OATH Toolkit.
24685
24686 2011-01-27  Bruno Haible  <bruno@clisp.org>
24687
24688         Prepare for supporting FreeBSD 10.
24689         * build-aux/config.libpath: Remove handling of freebsd1*.
24690
24691 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24692
24693         Prepare for supporting FreeBSD 10.
24694         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24695         match FreeBSD 10.0.
24696
24697 2011-01-27  Bruno Haible  <bruno@clisp.org>
24698
24699         vma-iter, get-rusage-as: Add OpenBSD support.
24700         * modules/vma-iter (configure.ac): Test for mquery.
24701         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24702         * lib/vma-iter.c: Include <sys/mman.h>.
24703         (vma_iterate): Add an implementation based on mquery().
24704         * lib/resource-ext.h (get_rusage_as): Update comments.
24705         * lib/get-rusage-as.c: Likewise.
24706         * lib/get-rusage-data.c: Likewise.
24707
24708 2011-01-26  Karl Berry  <karl@gnu.org>
24709
24710         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24711         variables to make it easier to override the makeinfo program used.
24712
24713 2011-01-26  Eric Blake  <eblake@redhat.com>
24714
24715         fcntl: work around Haiku F_DUPFD bugs
24716         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24717         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24718         cloexec bit on duplication.
24719         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24720
24721 2011-01-26  Bruno Haible  <bruno@clisp.org>
24722
24723         Enable memory leak tests on AIX.
24724         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24725         * tests/test-fprintf-posix3.c (main): Likewise.
24726
24727 2011-01-26  Bruno Haible  <bruno@clisp.org>
24728
24729         Tests for module 'get-rusage-data'.
24730         * modules/get-rusage-data-tests: New file.
24731         * tests/test-get-rusage-data.c: New file.
24732
24733         New module 'get-rusage-data'.
24734         * lib/resource-ext.h (get_rusage_data): New declaration.
24735         * lib/get-rusage-data.c: New file.
24736         * modules/get-rusage-data: New file.
24737
24738 2011-01-25  Bruno Haible  <bruno@clisp.org>
24739
24740         get-rusage-as: Allow for easier testing.
24741         * lib/resource-ext.h (get_rusage_as): Add comment.
24742         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24743         (main): New function for interactive testing.
24744
24745 2011-01-25  Bruno Haible  <bruno@clisp.org>
24746
24747         vma-iter: Treat Haiku like BeOS.
24748         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24749         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24750
24751 2011-01-25  Eric Blake  <eblake@redhat.com>
24752
24753         c-stack: fix regression on cygwin when libsigsegv is present
24754         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24755
24756 2011-01-24  Bruno Haible  <bruno@clisp.org>
24757
24758         vma-iter: Avoid empty intervals.
24759         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24760         on an empty interval.
24761
24762 2011-01-24  Jim Meyering  <meyering@redhat.com>
24763
24764         u64: remove unnecessary #include
24765         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24766
24767 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24768
24769         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24770         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24771
24772 2011-01-23  Bruno Haible  <bruno@clisp.org>
24773
24774         New module 'vma-iter'.
24775         * lib/vma-iter.h: New file.
24776         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24777         * modules/vma-iter: New file.
24778         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24779         for get_rusage_as_via_iterator.
24780         (vma_iterate_callback): New function.
24781         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24782         * modules/get-rusage-as (Depends-on): Add vma-iter.
24783
24784 2011-01-23  Bruno Haible  <bruno@clisp.org>
24785
24786         uninorm: Tweak includes.
24787         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24788         Reported by Jim Meyering.
24789
24790 2011-01-23  Bruno Haible  <bruno@clisp.org>
24791
24792         get-rusage-as: Improve on NetBSD.
24793         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24794         /proc, like on FreeBSD.
24795
24796 2011-01-23  Jim Meyering  <meyering@redhat.com>
24797
24798         xreadlink.h: remove unnecessary #include
24799         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24800
24801         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24802         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24803
24804 2011-01-23  Bruno Haible  <bruno@clisp.org>
24805
24806         get-rusage-as: Fix bug.
24807         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24808         original limit when aborting the first loop.
24809
24810 2011-01-23  Bruno Haible  <bruno@clisp.org>
24811
24812         wctype: Ensure valid C syntax.
24813         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24814         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24815
24816 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24817
24818         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24819         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24820         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24821         as they are needed only for configure's test case.
24822         This removes two unnecessary symbols from config.h.
24823
24824         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24825         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24826         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24827         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24828         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24829         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24830         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24831         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24832         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24833         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24834         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24835         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24836         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24837         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24838         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24839         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24840         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24841         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24842
24843 2011-01-21  Eric Blake  <eblake@redhat.com>
24844
24845         maintainer-makefile: work with older git for submodule check
24846         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24847         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24848         Reported by Matthias Bolte.
24849
24850         bootstrap: minor portability fixes
24851         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24852         (usage): Omit leading capital and trailing . on help phrases, per
24853         GNU Coding Standards.
24854         (check_versions, top level): Prefix messages with script name.
24855
24856 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24857
24858         bootstrap: support --no-git option
24859         * build-aux/bootstrap: Add --no-git option, to be used when
24860         --gnulib-srcdir points to the exact desired checkout.
24861
24862 2011-01-21  Eric Blake  <eblake@redhat.com>
24863
24864         strerror_r-posix: work with glibc 2.13
24865         * lib/strerror_r.c (strerror_r): Fix return type.
24866
24867 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24868             Bruno Haible  <bruno@clisp.org>
24869
24870         uN_strstr: New unit tests.
24871         * modules/unistr/u8-strstr-tests: New file.
24872         * modules/unistr/u16-strstr-tests: New file.
24873         * modules/unistr/u32-strstr-tests: New file.
24874         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24875         * tests/unistr/test-u8-strstr.c: New file.
24876         * tests/unistr/test-u16-strstr.c: New file.
24877         * tests/unistr/test-u32-strstr.c: New file.
24878
24879 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24880             Bruno Haible  <bruno@clisp.org>
24881
24882         Make uN_strstr functions O(n) worst-case.
24883         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24884         16-bit and 32-bit unit cases, use the unibyte algorithm from
24885         lib/mbsstr.c.
24886         * lib/unistr/u8-strstr.c: Include <string.h>.
24887         (UNIT_IS_UINT8_T): New macro.
24888         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24889         (U_STRLEN, U_STRNLEN): New macros.
24890         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24891         (U_STRLEN, U_STRNLEN): New macros.
24892         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24893         (configure.ac): Update required libunistring version.
24894         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24895         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24896         malloca.
24897         (configure.ac): Update required libunistring version.
24898         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24899         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24900         malloca.
24901         (configure.ac): Update required libunistring version.
24902
24903 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24904             Bruno Haible  <bruno@clisp.org>
24905
24906         Prepare for faster uN_strstr functions.
24907         * lib/str-kmp.h: Support definable UNITs.
24908         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24909         needle_len argument.
24910         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24911         * lib/mbscasestr.c (mbscasestr): Likewise.
24912
24913 2011-01-21  Pádraig Brady <P@draigBrady.com>
24914
24915         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24916         * tests/test-malloca.c (main): Unset the environment variable
24917         to greatly speed up the test.
24918         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24919         * modules/malloca-tests: Depend on unsetenv.
24920
24921 2011-01-21  Pádraig Brady <P@draigBrady.com>
24922
24923         ignore-value: remove stdint dependency
24924         * lib/ignore-value.h: Remove <stdint.h>
24925         * modules/ignore-value: Remove stdint dependency.
24926
24927 2011-01-21  Jim Meyering  <meyering@redhat.com>
24928
24929         maint.mk: adjust variable name to be consistent with other gl_ vars
24930         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24931         to be lower case.
24932
24933 2011-01-20  Jim Meyering  <meyering@redhat.com>
24934
24935         maint.mk: make "check" depend on public-submodule-commit by default
24936         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24937
24938 2011-01-20  Bruno Haible  <bruno@clisp.org>
24939
24940         mbfile, mbiter: Complete change from 2008-12-21.
24941         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24942         * m4/mbiter.m4 (gl_MBITER): Likewise.
24943
24944 2011-01-20  Jim Meyering  <meyering@redhat.com>
24945
24946         init.sh: insert space between each function name and "()"
24947         * tests/init.sh: Make it a little easier to see that a function's
24948         name is "warn_", and not "warn" when looking at the first part of
24949         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24950
24951 2011-01-20  Jim Meyering  <meyering@redhat.com>
24952
24953         mountlist: clean up code formatting
24954         * lib/mountlist.c (read_file_system_list): Split a long line,
24955         correct bracing style, use NULL in place of "(struct statfs *)0",
24956         don't parenthesize return value, add spaces around "=" and after
24957         ";-in-for-stmt".
24958
24959 2011-01-14  Markus Duft <mduft@gentoo.org>
24960
24961         mountlist: add support for Interix
24962         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24963         Apply statvfs to all entries of /dev/fs.
24964         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24965         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24966
24967 2011-01-20  Jim Meyering  <meyering@redhat.com>
24968
24969         maint.mk: improve the public-submodule-commit rule
24970         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24971         to suppress printing of its commands... unless V=1.
24972         Add git submodule's --quiet option to suppress printing of e.g.,
24973         "Entering gnulib" output.
24974         "cd" into $(srcdir) before running git submodule.
24975
24976 2011-01-20  Bruno Haible  <bruno@clisp.org>
24977
24978         include_next: Fix bug introduced on 2011-01-18.
24979         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24980         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24981         ac_cv_header_... variable if the second argument is not 'check'.
24982         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24983         gl_NEXT_HEADERS_INTERNAL.
24984
24985 2011-01-20  Bruno Haible  <bruno@clisp.org>
24986
24987         Allow the user to avoid the GNULIB_TEST_* macros.
24988         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24989         Suggested by Paul Eggert.
24990
24991 2011-01-14  Jim Meyering  <meyering@redhat.com>
24992
24993         bootstrap: avoid failure when there is no .gitmodules file
24994         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24995         has been assigned to, even when its value is the empty string.
24996         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24997         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24998         Reported by John W. Eaton <jwe@gnu.org>.
24999
25000 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25001
25002         assume <ctype.h>, ..., <time.h> exist
25003         For years gnulib has been assuming the existence of the headers
25004         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25005         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25006         them, since they don't appear to be needed.
25007         * README (Portability guidelines): Document this.
25008         * lib/flock.c: Assume <fcntl.h> exists.
25009         * lib/regex_internal.h: Assume <locale.h> exists.
25010         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25011         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25012         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25013         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25014         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25015         * m4/regex.m4 (gl_REGEX): Likewise.
25016         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25017         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25018         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25019         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25020         * tests/test-argp.c: Likewise.
25021         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25022
25023         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25024         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25025         AA_APPLE_UNIVERSAL_BUILD.  See
25026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25027         * NEWS: Document this.
25028
25029 2011-01-19  Eric Blake  <eblake@redhat.com>
25030
25031         c-stack: assume stack overflow if SA_SIGINFO unsupported
25032         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25033         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25034         sigaction will work.
25035         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25036         behavior match Linux.
25037         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25038
25039         stdbool-tests: accommodate Haiku
25040         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25041
25042         binary-io: fix O_TEXT on Haiku
25043         * modules/binary-io (Depends-on): Add fcntl-h.
25044         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25045         than blindly undefining O_TEXT.
25046         Reported by Scott McCreary.
25047
25048 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25049
25050         include_next: do not check for standard headers like stddef.h
25051
25052         I found this problem when modifying Emacs to use gnulib.
25053         I noticed that it added HAVE_STDDEF_H to config.h, even though
25054         gnulib always assumes <stddef.h> exists as per README and this
25055         symbol is unnecessary.
25056         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25057         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25058         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25059         faster for headers like stddef.h that are known to exist.
25060         (gl_CHECK_NEXT_HEADERS): Use it.
25061         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25062         rather than gl_CHECK_NEXT_HEADERS.
25063         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25064         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25065
25066 2011-01-18  Eric Blake  <eblake@redhat.com>
25067
25068         ansi-c++-opt: skip C++ dependency style if C++ is unused
25069         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25070         tests when we know C++ compilation is not desired.
25071         Reported by Scott McCreary.
25072
25073 2011-01-18  Bruno Haible  <bruno@clisp.org>
25074
25075         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25076         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25077         (main): Perform test also when getrlimit and setrlimit don't exist or
25078         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25079         limiting the address space size using setrlimit, compare the address
25080         space size before and after the the test.
25081         * tests/test-dprintf-posix2.c: Likewise.
25082         * tests/test-fprintf-posix3.sh: Update skip messages.
25083         * tests/test-dprintf-posix2.sh: Likewise.
25084         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25085         * modules/dprintf-posix-tests (Depends-on): Likewise.
25086         Reported by Bruce Korb <bkorb@gnu.org> and
25087         Gary V. Vaughan <gary@gnu.org>.
25088
25089 2011-01-18  Bruno Haible  <bruno@clisp.org>
25090
25091         get-rusage-as: Improvement for Cygwin.
25092         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25093         areas that are merely reserved.
25094
25095 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25096
25097         strftime: remove dependencies on multibyte modules
25098
25099         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25100         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25101         only if __osf__ is defined, and I suspect OSF doesn't need these
25102         other modules.  If my guess is wrong, we'll need to come up with a
25103         variant of strftime that doesn't need the multibyte modules.
25104
25105         I discovered this problem when attempting modify Emacs to use the
25106         strftime module.  With the previous gnulib, this caused Emacs to
25107         need 31 new files, ranging from lib/config.charset to
25108         m4/wint_t.m4.  This was overkill and I expect would be offputting
25109         to the Emacs maintainers.  After this change, only 6 new files are
25110         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25111         stdbool.m4, and tm_gmtoff.m4.
25112
25113         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25114         Suggested by Bruno Haible in
25115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25116         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25117         and do not check for wchar.h.
25118         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25119         (Depends-on): Remove mbrlen, mbsinit, wchar.
25120
25121 2011-01-18  Bruno Haible  <bruno@clisp.org>
25122
25123         Tests for module 'get-rusage-as'.
25124         * modules/get-rusage-as-tests: New file.
25125         * tests/test-get-rusage-as.c: New file.
25126
25127         New module 'get-rusage-as'.
25128         * modules/get-rusage-as: New file.
25129         * lib/resource-ext.h: New file.
25130         * lib/get-rusage-as.c: New file.
25131
25132 2011-01-17  Eric Blake  <eblake@redhat.com>
25133
25134         sigaction: relax license from LGPLv3+ to LGPLv2+
25135         * modules/sigaction (License): Relax to LGPLv2+.
25136
25137 2011-01-14  Bruno Haible  <bruno@clisp.org>
25138
25139         filemode: Make function declarations usable in C++ mode.
25140         * lib/filemode.h: Enclose function declarations in extern "C" block.
25141         Reported by John W. Eaton <jwe@gnu.org>.
25142
25143 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25144
25145         save-cwd: no longer include "xgetcwd.h"
25146         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25147         This avoids a compilation failure in projects that use save-cwd
25148         without also using the xgetcwd module.
25149
25150 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25151
25152         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25153         This is so that a program like Emacs, which needs only dtoastr,
25154         does not have to bother with distributing and compiling ftoastr
25155         and ldtoastr.
25156         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25157         * modules/dtoastr, modules/ldtoastr: New files.
25158         * modules/ftoastr: Now works just for 'float'.
25159         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25160         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25161         dtoastr.c, ldtoastr.c.
25162
25163 2011-01-11  Jim Meyering  <meyering@redhat.com>
25164
25165         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25166         There is no need to work around the lack of the fchdir function,
25167         since gnulib can now provide a replacement when required.
25168         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25169         * modules/save-cwd (Depends-on): Add fchdir.
25170
25171 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         openat, save-cwd: avoid xmalloc
25174
25175         This removes a direct (but undocumented) dependency of openat on
25176         xalloc, along with an indirect dependency via save-cwd.  It also
25177         removes a dependency of save-cwd on xgetcwd, and thereby
25178         indirectly on xalloc.  This change causes the openat substitute
25179         to fall back on save_cwd when memory is tight, and for save_cwd to
25180         fail instead of dying when memory is tight, but that's good enough.
25181         Problem and initial idea for fix reported by Bastien Roucaries in
25182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25183
25184         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25185         xalloc.h (for xmalloc).
25186         (openat_proc_name): Use malloc, not xmalloc.
25187         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25188         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25189
25190         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25191         This avoids heap allocation for file names whose lengths are in
25192         the range 512..1023, with the upper bound increasing to at most
25193         4031 depending on the platform's PATH_MAX.  (We do not want
25194         pathmax.h here as it might supply a non-constant PATH_MAX.)
25195         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25196         Perhaps they should be moved to malloca.h?
25197         (OPENAT_BUFFER_SIZE): Use them.
25198
25199 2011-01-10  Bruno Haible  <bruno@clisp.org>
25200
25201         doc: Update users.txt.
25202         * users.txt: Add recutils.
25203
25204 2011-01-09  Karl Berry  <karl@gnu.org>
25205
25206         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25207
25208         * doc/configmake.texi: New file.
25209         * doc/gnulib.texi: Include it.
25210         * modules/configmake: Move documentation from here.
25211
25212 2011-01-09  Bruno Haible  <bruno@clisp.org>
25213
25214         Update to Unicode 6.0.0.
25215         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25216         (get_lbp): Update for Unicode 6.0.0.
25217         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25218         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25219         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25220         U+11001, U+11038..U+11046. Remove U+06DE.
25221         (uc_width): Fix bounds of planes.
25222         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25223         lib/uniwidth/width.c.
25224         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25225         trailing whitespace removed.
25226         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25227         without comments, but with the original copyright notice.
25228         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25229         * lib/unicase/ignorable.h: Likewise.
25230         * lib/unicase/tocasefold.h: Likewise.
25231         * lib/unicase/tolower.h: Likewise.
25232         * lib/unicase/totitle.h: Likewise.
25233         * lib/unicase/toupper.h: Likewise.
25234         * lib/unictype/bidi_of.h: Likewise.
25235         * lib/unictype/blocks.h: Likewise.
25236         * lib/unictype/categ_C.h: Likewise.
25237         * lib/unictype/categ_Cn.h: Likewise.
25238         * lib/unictype/categ_L.h: Likewise.
25239         * lib/unictype/categ_Ll.h: Likewise.
25240         * lib/unictype/categ_Lm.h: Likewise.
25241         * lib/unictype/categ_Lo.h: Likewise.
25242         * lib/unictype/categ_Lu.h: Likewise.
25243         * lib/unictype/categ_M.h: Likewise.
25244         * lib/unictype/categ_Mc.h: Likewise.
25245         * lib/unictype/categ_Me.h: Likewise.
25246         * lib/unictype/categ_Mn.h: Likewise.
25247         * lib/unictype/categ_N.h: Likewise.
25248         * lib/unictype/categ_Nd.h: Likewise.
25249         * lib/unictype/categ_No.h: Likewise.
25250         * lib/unictype/categ_P.h: Likewise.
25251         * lib/unictype/categ_Po.h: Likewise.
25252         * lib/unictype/categ_S.h: Likewise.
25253         * lib/unictype/categ_Sc.h: Likewise.
25254         * lib/unictype/categ_Sk.h: Likewise.
25255         * lib/unictype/categ_Sm.h: Likewise.
25256         * lib/unictype/categ_So.h: Likewise.
25257         * lib/unictype/categ_of.h: Likewise.
25258         * lib/unictype/combining.h: Likewise.
25259         * lib/unictype/ctype_alnum.h: Likewise.
25260         * lib/unictype/ctype_alpha.h: Likewise.
25261         * lib/unictype/ctype_graph.h: Likewise.
25262         * lib/unictype/ctype_lower.h: Likewise.
25263         * lib/unictype/ctype_print.h: Likewise.
25264         * lib/unictype/ctype_punct.h: Likewise.
25265         * lib/unictype/ctype_upper.h: Likewise.
25266         * lib/unictype/decdigit.h: Likewise.
25267         * lib/unictype/digit.h: Likewise.
25268         * lib/unictype/numeric.h: Likewise.
25269         * lib/unictype/pr_alphabetic.h: Likewise.
25270         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25271         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25272         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25273         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25274         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25275         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25276         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25277         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25278         * lib/unictype/pr_case_ignorable.h: Likewise.
25279         * lib/unictype/pr_cased.h: Likewise.
25280         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25281         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25282         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25283         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25284         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25285         * lib/unictype/pr_combining.h: Likewise.
25286         * lib/unictype/pr_composite.h: Likewise.
25287         * lib/unictype/pr_currency_symbol.h: Likewise.
25288         * lib/unictype/pr_decimal_digit.h: Likewise.
25289         * lib/unictype/pr_deprecated.h: Likewise.
25290         * lib/unictype/pr_format_control.h: Likewise.
25291         * lib/unictype/pr_grapheme_base.h: Likewise.
25292         * lib/unictype/pr_grapheme_extend.h: Likewise.
25293         * lib/unictype/pr_grapheme_link.h: Likewise.
25294         * lib/unictype/pr_id_continue.h: Likewise.
25295         * lib/unictype/pr_id_start.h: Likewise.
25296         * lib/unictype/pr_ideographic.h: Likewise.
25297         * lib/unictype/pr_lowercase.h: Likewise.
25298         * lib/unictype/pr_math.h: Likewise.
25299         * lib/unictype/pr_numeric.h: Likewise.
25300         * lib/unictype/pr_other_alphabetic.h: Likewise.
25301         * lib/unictype/pr_other_id_continue.h: Likewise.
25302         * lib/unictype/pr_other_math.h: Likewise.
25303         * lib/unictype/pr_punctuation.h: Likewise.
25304         * lib/unictype/pr_sentence_terminal.h: Likewise.
25305         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25306         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25307         * lib/unictype/pr_unified_ideograph.h: Likewise.
25308         * lib/unictype/pr_uppercase.h: Likewise.
25309         * lib/unictype/pr_xid_continue.h: Likewise.
25310         * lib/unictype/pr_xid_start.h: Likewise.
25311         * lib/unictype/scripts.h: Likewise.
25312         * lib/unictype/scripts_byname.gperf: Likewise.
25313         * lib/unictype/sy_java_ident.h: Likewise.
25314         * lib/unigbrk/gbrkprop.h: Likewise.
25315         * lib/unilbrk/lbrkprop1.h: Likewise.
25316         * lib/unilbrk/lbrkprop2.h: Likewise.
25317         * lib/uninorm/decomposition-table2.h: Likewise.
25318         * lib/uniwbrk/wbrkprop.h: Likewise.
25319         * tests/unicase/test-cased.c: Likewise.
25320         * tests/unicase/test-ignorable.c: Likewise.
25321         * tests/unicase/test-uc_tolower.c: Likewise.
25322         * tests/unicase/test-uc_totitle.c: Likewise.
25323         * tests/unicase/test-uc_toupper.c: Likewise.
25324         * tests/unictype/test-categ_C.c: Likewise.
25325         * tests/unictype/test-categ_Cn.c: Likewise.
25326         * tests/unictype/test-categ_L.c: Likewise.
25327         * tests/unictype/test-categ_Ll.c: Likewise.
25328         * tests/unictype/test-categ_Lm.c: Likewise.
25329         * tests/unictype/test-categ_Lo.c: Likewise.
25330         * tests/unictype/test-categ_Lu.c: Likewise.
25331         * tests/unictype/test-categ_M.c: Likewise.
25332         * tests/unictype/test-categ_Mc.c: Likewise.
25333         * tests/unictype/test-categ_Me.c: Likewise.
25334         * tests/unictype/test-categ_Mn.c: Likewise.
25335         * tests/unictype/test-categ_N.c: Likewise.
25336         * tests/unictype/test-categ_Nd.c: Likewise.
25337         * tests/unictype/test-categ_No.c: Likewise.
25338         * tests/unictype/test-categ_P.c: Likewise.
25339         * tests/unictype/test-categ_Po.c: Likewise.
25340         * tests/unictype/test-categ_S.c: Likewise.
25341         * tests/unictype/test-categ_Sc.c: Likewise.
25342         * tests/unictype/test-categ_Sk.c: Likewise.
25343         * tests/unictype/test-categ_Sm.c: Likewise.
25344         * tests/unictype/test-categ_So.c: Likewise.
25345         * tests/unictype/test-ctype_alnum.c: Likewise.
25346         * tests/unictype/test-ctype_alpha.c: Likewise.
25347         * tests/unictype/test-ctype_graph.c: Likewise.
25348         * tests/unictype/test-ctype_lower.c: Likewise.
25349         * tests/unictype/test-ctype_print.c: Likewise.
25350         * tests/unictype/test-ctype_punct.c: Likewise.
25351         * tests/unictype/test-ctype_upper.c: Likewise.
25352         * tests/unictype/test-decdigit.h: Likewise.
25353         * tests/unictype/test-digit.h: Likewise.
25354         * tests/unictype/test-numeric.h: Likewise.
25355         * tests/unictype/test-pr_alphabetic.c: Likewise.
25356         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25357         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25358         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25359         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25360         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25361         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25362         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25363         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25364         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25365         * tests/unictype/test-pr_cased.c: Likewise.
25366         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25367         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25368         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25369         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25370         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25371         * tests/unictype/test-pr_combining.c: Likewise.
25372         * tests/unictype/test-pr_composite.c: Likewise.
25373         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25374         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25375         * tests/unictype/test-pr_deprecated.c: Likewise.
25376         * tests/unictype/test-pr_format_control.c: Likewise.
25377         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25378         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25379         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25380         * tests/unictype/test-pr_id_continue.c: Likewise.
25381         * tests/unictype/test-pr_id_start.c: Likewise.
25382         * tests/unictype/test-pr_ideographic.c: Likewise.
25383         * tests/unictype/test-pr_lowercase.c: Likewise.
25384         * tests/unictype/test-pr_math.c: Likewise.
25385         * tests/unictype/test-pr_numeric.c: Likewise.
25386         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25387         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25388         * tests/unictype/test-pr_other_math.c: Likewise.
25389         * tests/unictype/test-pr_punctuation.c: Likewise.
25390         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25391         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25392         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25393         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25394         * tests/unictype/test-pr_uppercase.c: Likewise.
25395         * tests/unictype/test-pr_xid_continue.c: Likewise.
25396         * tests/unictype/test-pr_xid_start.c: Likewise.
25397         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25398         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25399         changes.
25400         * lib/unictype/categ_Cc.h: Likewise.
25401         * lib/unictype/categ_Cf.h: Likewise.
25402         * lib/unictype/categ_Co.h: Likewise.
25403         * lib/unictype/categ_Cs.h: Likewise.
25404         * lib/unictype/categ_Lt.h: Likewise.
25405         * lib/unictype/categ_Nl.h: Likewise.
25406         * lib/unictype/categ_Pc.h: Likewise.
25407         * lib/unictype/categ_Pd.h: Likewise.
25408         * lib/unictype/categ_Pe.h: Likewise.
25409         * lib/unictype/categ_Pf.h: Likewise.
25410         * lib/unictype/categ_Pi.h: Likewise.
25411         * lib/unictype/categ_Ps.h: Likewise.
25412         * lib/unictype/categ_Z.h: Likewise.
25413         * lib/unictype/categ_Zl.h: Likewise.
25414         * lib/unictype/categ_Zp.h: Likewise.
25415         * lib/unictype/categ_Zs.h: Likewise.
25416         * lib/unictype/ctype_blank.h: Likewise.
25417         * lib/unictype/ctype_cntrl.h: Likewise.
25418         * lib/unictype/ctype_digit.h: Likewise.
25419         * lib/unictype/ctype_space.h: Likewise.
25420         * lib/unictype/ctype_xdigit.h: Likewise.
25421         * lib/unictype/mirror.h: Likewise.
25422         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25423         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25424         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25425         * lib/unictype/pr_bidi_control.h: Likewise.
25426         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25427         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25428         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25429         * lib/unictype/pr_bidi_pdf.h: Likewise.
25430         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25431         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25432         * lib/unictype/pr_dash.h: Likewise.
25433         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25434         * lib/unictype/pr_diacritic.h: Likewise.
25435         * lib/unictype/pr_extender.h: Likewise.
25436         * lib/unictype/pr_hex_digit.h: Likewise.
25437         * lib/unictype/pr_hyphen.h: Likewise.
25438         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25439         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25440         * lib/unictype/pr_ignorable_control.h: Likewise.
25441         * lib/unictype/pr_iso_control.h: Likewise.
25442         * lib/unictype/pr_join_control.h: Likewise.
25443         * lib/unictype/pr_left_of_pair.h: Likewise.
25444         * lib/unictype/pr_line_separator.h: Likewise.
25445         * lib/unictype/pr_logical_order_exception.h: Likewise.
25446         * lib/unictype/pr_non_break.h: Likewise.
25447         * lib/unictype/pr_not_a_character.h: Likewise.
25448         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25449         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25450         * lib/unictype/pr_other_id_start.h: Likewise.
25451         * lib/unictype/pr_other_lowercase.h: Likewise.
25452         * lib/unictype/pr_other_uppercase.h: Likewise.
25453         * lib/unictype/pr_paired_punctuation.h: Likewise.
25454         * lib/unictype/pr_paragraph_separator.h: Likewise.
25455         * lib/unictype/pr_pattern_syntax.h: Likewise.
25456         * lib/unictype/pr_pattern_white_space.h: Likewise.
25457         * lib/unictype/pr_private_use.h: Likewise.
25458         * lib/unictype/pr_quotation_mark.h: Likewise.
25459         * lib/unictype/pr_radical.h: Likewise.
25460         * lib/unictype/pr_soft_dotted.h: Likewise.
25461         * lib/unictype/pr_space.h: Likewise.
25462         * lib/unictype/pr_titlecase.h: Likewise.
25463         * lib/unictype/pr_variation_selector.h: Likewise.
25464         * lib/unictype/pr_white_space.h: Likewise.
25465         * lib/unictype/pr_zero_width.h: Likewise.
25466         * lib/unictype/sy_c_ident.h: Likewise.
25467         * lib/unictype/sy_c_whitespace.h: Likewise.
25468         * lib/unictype/sy_java_whitespace.h: Likewise.
25469         * lib/uninorm/composition-table.gperf: Likewise.
25470         * lib/uninorm/decomposition-table1.h: Likewise.
25471         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25472         LB8.
25473         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25474         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25475         * modules/unictype/*: Bump version number of expected libunistring
25476         version.
25477
25478 2011-01-09  Bruno Haible  <bruno@clisp.org>
25479
25480         Update to Unicode 5.2.0.
25481         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25482         trailing whitespace removed.
25483
25484 2011-01-09  Bruno Haible  <bruno@clisp.org>
25485
25486         New Unicode character properties, from Unicode 5.2.0.
25487         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25488         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25489         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25490         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25491         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25492         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25493         uc_is_property_cased, uc_is_property_case_ignorable,
25494         uc_is_property_changes_when_lowercased,
25495         uc_is_property_changes_when_uppercased,
25496         uc_is_property_changes_when_titlecased,
25497         uc_is_property_changes_when_casefolded,
25498         uc_is_property_changes_when_casemapped): New declarations.
25499         * lib/unictype/pr_byname.gperf: Add the new properties.
25500         * modules/unictype/property-byname (Depends-on): Depend on the new
25501         properties modules.
25502         * modules/unictype/property-all (Depends-on): Likewise.
25503         * MODULES.html.sh (Unicode string functions): Add
25504         unictype/property-case-ignorable, unictype/property-cased,
25505         unictype/property-changes-when-casefolded,
25506         unictype/property-changes-when-casemapped,
25507         unictype/property-changes-when-lowercased,
25508         unictype/property-changes-when-titlecased,
25509         unictype/property-changes-when-uppercased.
25510
25511         New module 'unictype/property-changes-when-casemapped'.
25512         * modules/unictype/property-changes-when-casemapped: New file.
25513         * lib/unictype/pr_changes_when_casemapped.c: New file.
25514         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25515         generated by gen-uni-tables.
25516         * modules/unictype/property-changes-when-casemapped-tests: New file.
25517         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25518         automatically generated by gen-uni-tables.
25519
25520         New module 'unictype/property-changes-when-casefolded'.
25521         * modules/unictype/property-changes-when-casefolded: New file.
25522         * lib/unictype/pr_changes_when_casefolded.c: New file.
25523         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25524         generated by gen-uni-tables.
25525         * modules/unictype/property-changes-when-casefolded-tests: New file.
25526         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25527         automatically generated by gen-uni-tables.
25528
25529         New module 'unictype/property-changes-when-titlecased'.
25530         * modules/unictype/property-changes-when-titlecased: New file.
25531         * lib/unictype/pr_changes_when_titlecased.c: New file.
25532         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25533         generated by gen-uni-tables.
25534         * modules/unictype/property-changes-when-titlecased-tests: New file.
25535         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25536         automatically generated by gen-uni-tables.
25537
25538         New module 'unictype/property-changes-when-uppercased'.
25539         * modules/unictype/property-changes-when-uppercased: New file.
25540         * lib/unictype/pr_changes_when_uppercased.c: New file.
25541         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25542         generated by gen-uni-tables.
25543         * modules/unictype/property-changes-when-uppercased-tests: New file.
25544         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25545         automatically generated by gen-uni-tables.
25546
25547         New module 'unictype/property-changes-when-lowercased'.
25548         * modules/unictype/property-changes-when-lowercased: New file.
25549         * lib/unictype/pr_changes_when_lowercased.c: New file.
25550         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25551         generated by gen-uni-tables.
25552         * modules/unictype/property-changes-when-lowercased-tests: New file.
25553         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25554         automatically generated by gen-uni-tables.
25555
25556         New module 'unictype/property-case-ignorable'.
25557         * modules/unictype/property-case-ignorable: New file.
25558         * lib/unictype/pr_case_ignorable.c: New file.
25559         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25560         by gen-uni-tables.
25561         * modules/unictype/property-case-ignorable-tests: New file.
25562         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25563         generated by gen-uni-tables.
25564
25565         New module 'unictype/property-cased'.
25566         * modules/unictype/property-cased: New file.
25567         * lib/unictype/pr_cased.c: New file.
25568         * lib/unictype/pr_cased.h: New file, automatically generated by
25569         gen-uni-tables.
25570         * modules/unictype/property-cased-tests: New file.
25571         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25572         gen-uni-tables.
25573
25574 2011-01-09  Bruno Haible  <bruno@clisp.org>
25575
25576         Update to Unicode 5.2.0.
25577         * lib/gen-uni-tables.c (output_predicate, output_category,
25578         output_combclass, output_bidi_category, output_decimal_digit_test,
25579         output_decimal_digit, output_digit_test, output_digit,
25580         output_numeric_test, output_numeric, output_mirror, output_scripts,
25581         output_scripts_byname, output_blocks, output_ident_category): Fix
25582         comment header.
25583         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25584         get_wbp.
25585         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25586         items.
25587         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25588         Changes_When_Lowercased, Changes_When_Uppercased,
25589         Changes_When_Titlecased, Changes_When_Casefolded,
25590         Changes_When_Casemapped.
25591         (is_property_alphabetic, is_property_default_ignorable_code_point):
25592         Update for Unicode 5.2.0.
25593         (is_property_cased, is_property_case_ignorable,
25594         is_property_changes_when_lowercased,
25595         is_property_changes_when_uppercased,
25596         is_property_changes_when_titlecased,
25597         is_property_changes_when_casefolded,
25598         is_property_changes_when_casemapped): New functions.
25599         (output_properties): Output also the properties cased, case_ignorable,
25600         changes_when_lowercased, changes_when_uppercased,
25601         changes_when_titlecased, changes_when_casefolded,
25602         changes_when_casemapped.
25603         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25604         Unicode TR#11 revision 17 -> 19.
25605         (LBP_CP): New enumeration value.
25606         (LBP_*): Adjust values accordingly.
25607         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25608         TR#14 revision 22 -> 24.
25609         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25610         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25611         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25612         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25613         is_WBP_MIDLETTER.
25614         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25615         the code1 and code2 of each composition rule.
25616         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25617         * lib/unicase/ignorable.h: Likewise.
25618         * lib/unicase/tocasefold.h: Likewise.
25619         * lib/unicase/tolower.h: Likewise.
25620         * lib/unicase/totitle.h: Likewise.
25621         * lib/unicase/toupper.h: Likewise.
25622         * lib/unictype/bidi_of.h: Likewise.
25623         * lib/unictype/blocks.h: Likewise.
25624         * lib/unictype/categ_C.h: Likewise.
25625         * lib/unictype/categ_Cf.h: Likewise.
25626         * lib/unictype/categ_Cn.h: Likewise.
25627         * lib/unictype/categ_L.h: Likewise.
25628         * lib/unictype/categ_Ll.h: Likewise.
25629         * lib/unictype/categ_Lm.h: Likewise.
25630         * lib/unictype/categ_Lo.h: Likewise.
25631         * lib/unictype/categ_Lu.h: Likewise.
25632         * lib/unictype/categ_M.h: Likewise.
25633         * lib/unictype/categ_Mc.h: Likewise.
25634         * lib/unictype/categ_Mn.h: Likewise.
25635         * lib/unictype/categ_N.h: Likewise.
25636         * lib/unictype/categ_Nd.h: Likewise.
25637         * lib/unictype/categ_Nl.h: Likewise.
25638         * lib/unictype/categ_No.h: Likewise.
25639         * lib/unictype/categ_P.h: Likewise.
25640         * lib/unictype/categ_Pd.h: Likewise.
25641         * lib/unictype/categ_Po.h: Likewise.
25642         * lib/unictype/categ_S.h: Likewise.
25643         * lib/unictype/categ_Sc.h: Likewise.
25644         * lib/unictype/categ_So.h: Likewise.
25645         * lib/unictype/categ_of.h: Likewise.
25646         * lib/unictype/combining.h: Likewise.
25647         * lib/unictype/ctype_alnum.h: Likewise.
25648         * lib/unictype/ctype_alpha.h: Likewise.
25649         * lib/unictype/ctype_graph.h: Likewise.
25650         * lib/unictype/ctype_lower.h: Likewise.
25651         * lib/unictype/ctype_print.h: Likewise.
25652         * lib/unictype/ctype_punct.h: Likewise.
25653         * lib/unictype/ctype_upper.h: Likewise.
25654         * lib/unictype/decdigit.h: Likewise.
25655         * lib/unictype/digit.h: Likewise.
25656         * lib/unictype/numeric.h: Likewise.
25657         * lib/unictype/pr_alphabetic.h: Likewise.
25658         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25659         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25660         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25661         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25662         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25663         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25664         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25665         * lib/unictype/pr_combining.h: Likewise.
25666         * lib/unictype/pr_composite.h: Likewise.
25667         * lib/unictype/pr_currency_symbol.h: Likewise.
25668         * lib/unictype/pr_dash.h: Likewise.
25669         * lib/unictype/pr_decimal_digit.h: Likewise.
25670         * lib/unictype/pr_deprecated.h: Likewise.
25671         * lib/unictype/pr_diacritic.h: Likewise.
25672         * lib/unictype/pr_extender.h: Likewise.
25673         * lib/unictype/pr_grapheme_base.h: Likewise.
25674         * lib/unictype/pr_grapheme_extend.h: Likewise.
25675         * lib/unictype/pr_grapheme_link.h: Likewise.
25676         * lib/unictype/pr_id_continue.h: Likewise.
25677         * lib/unictype/pr_id_start.h: Likewise.
25678         * lib/unictype/pr_ideographic.h: Likewise.
25679         * lib/unictype/pr_ignorable_control.h: Likewise.
25680         * lib/unictype/pr_logical_order_exception.h: Likewise.
25681         * lib/unictype/pr_lowercase.h: Likewise.
25682         * lib/unictype/pr_numeric.h: Likewise.
25683         * lib/unictype/pr_other_alphabetic.h: Likewise.
25684         * lib/unictype/pr_punctuation.h: Likewise.
25685         * lib/unictype/pr_sentence_terminal.h: Likewise.
25686         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25687         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25688         * lib/unictype/pr_unified_ideograph.h: Likewise.
25689         * lib/unictype/pr_uppercase.h: Likewise.
25690         * lib/unictype/pr_xid_continue.h: Likewise.
25691         * lib/unictype/pr_xid_start.h: Likewise.
25692         * lib/unictype/pr_zero_width.h: Likewise.
25693         * lib/unictype/scripts.h: Likewise.
25694         * lib/unictype/scripts_byname.gperf: Likewise.
25695         * lib/unictype/sy_java_ident.h: Likewise.
25696         * lib/unigbrk/gbrkprop.h: Likewise.
25697         * lib/unilbrk/lbrkprop1.h: Likewise.
25698         * lib/unilbrk/lbrkprop2.h: Likewise.
25699         * lib/unilbrk/lbrktables.h: Likewise.
25700         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25701         LBP_CP. Implement rule LB30.
25702         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25703         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25704         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25705         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25706         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25707         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25708         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25709         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25710         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25711         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25712         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25713         bits instead of 16 bits in the code1 and code2 of each composition
25714         rule.
25715         (uc_composition): Update for Unicode 5.2.0.
25716         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25717         * lib/uninorm/decomposition-table2.h: Likewise.
25718         * lib/uniwbrk/wbrkprop.h: Likewise.
25719         * tests/unicase/test-cased.c: Likewise.
25720         * tests/unicase/test-ignorable.c: Likewise.
25721         * tests/unicase/test-uc_tolower.c: Likewise.
25722         * tests/unicase/test-uc_totitle.c: Likewise.
25723         * tests/unicase/test-uc_toupper.c: Likewise.
25724         * tests/unictype/test-categ_C.c: Likewise.
25725         * tests/unictype/test-categ_Cf.c: Likewise.
25726         * tests/unictype/test-categ_Cn.c: Likewise.
25727         * tests/unictype/test-categ_L.c: Likewise.
25728         * tests/unictype/test-categ_Ll.c: Likewise.
25729         * tests/unictype/test-categ_Lm.c: Likewise.
25730         * tests/unictype/test-categ_Lo.c: Likewise.
25731         * tests/unictype/test-categ_Lu.c: Likewise.
25732         * tests/unictype/test-categ_M.c: Likewise.
25733         * tests/unictype/test-categ_Mc.c: Likewise.
25734         * tests/unictype/test-categ_Mn.c: Likewise.
25735         * tests/unictype/test-categ_N.c: Likewise.
25736         * tests/unictype/test-categ_Nd.c: Likewise.
25737         * tests/unictype/test-categ_Nl.c: Likewise.
25738         * tests/unictype/test-categ_No.c: Likewise.
25739         * tests/unictype/test-categ_P.c: Likewise.
25740         * tests/unictype/test-categ_Pd.c: Likewise.
25741         * tests/unictype/test-categ_Po.c: Likewise.
25742         * tests/unictype/test-categ_S.c: Likewise.
25743         * tests/unictype/test-categ_Sc.c: Likewise.
25744         * tests/unictype/test-categ_So.c: Likewise.
25745         * tests/unictype/test-ctype_alnum.c: Likewise.
25746         * tests/unictype/test-ctype_alpha.c: Likewise.
25747         * tests/unictype/test-ctype_graph.c: Likewise.
25748         * tests/unictype/test-ctype_lower.c: Likewise.
25749         * tests/unictype/test-ctype_print.c: Likewise.
25750         * tests/unictype/test-ctype_punct.c: Likewise.
25751         * tests/unictype/test-ctype_upper.c: Likewise.
25752         * tests/unictype/test-decdigit.h: Likewise.
25753         * tests/unictype/test-digit.h: Likewise.
25754         * tests/unictype/test-numeric.h: Likewise.
25755         * tests/unictype/test-pr_alphabetic.c: Likewise.
25756         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25757         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25758         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25759         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25760         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25761         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25762         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25763         * tests/unictype/test-pr_combining.c: Likewise.
25764         * tests/unictype/test-pr_composite.c: Likewise.
25765         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25766         * tests/unictype/test-pr_dash.c: Likewise.
25767         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25768         * tests/unictype/test-pr_deprecated.c: Likewise.
25769         * tests/unictype/test-pr_diacritic.c: Likewise.
25770         * tests/unictype/test-pr_extender.c: Likewise.
25771         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25772         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25773         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25774         * tests/unictype/test-pr_id_continue.c: Likewise.
25775         * tests/unictype/test-pr_id_start.c: Likewise.
25776         * tests/unictype/test-pr_ideographic.c: Likewise.
25777         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25778         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25779         * tests/unictype/test-pr_lowercase.c: Likewise.
25780         * tests/unictype/test-pr_numeric.c: Likewise.
25781         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25782         * tests/unictype/test-pr_punctuation.c: Likewise.
25783         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25784         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25785         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25786         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25787         * tests/unictype/test-pr_uppercase.c: Likewise.
25788         * tests/unictype/test-pr_xid_continue.c: Likewise.
25789         * tests/unictype/test-pr_xid_start.c: Likewise.
25790         * tests/unictype/test-pr_zero_width.c: Likewise.
25791         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25792         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25793         changed behaviour: line breaking is now disallowed between a letter
25794         or '=' and '('.
25795         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25796         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25797         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25798         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25799         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25800         lib/uniwidth/width.c.
25801         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25802         without comments, but with the original copyright notice.
25803         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25804         changes.
25805         * lib/unictype/categ_Cc.h: Likewise.
25806         * lib/unictype/categ_Co.h: Likewise.
25807         * lib/unictype/categ_Cs.h: Likewise.
25808         * lib/unictype/categ_Lt.h: Likewise.
25809         * lib/unictype/categ_Me.h: Likewise.
25810         * lib/unictype/categ_Pc.h: Likewise.
25811         * lib/unictype/categ_Pe.h: Likewise.
25812         * lib/unictype/categ_Pf.h: Likewise.
25813         * lib/unictype/categ_Pi.h: Likewise.
25814         * lib/unictype/categ_Ps.h: Likewise.
25815         * lib/unictype/categ_Sk.h: Likewise.
25816         * lib/unictype/categ_Sm.h: Likewise.
25817         * lib/unictype/categ_Z.h: Likewise.
25818         * lib/unictype/categ_Zl.h: Likewise.
25819         * lib/unictype/categ_Zp.h: Likewise.
25820         * lib/unictype/categ_Zs.h: Likewise.
25821         * lib/unictype/ctype_blank.h: Likewise.
25822         * lib/unictype/ctype_cntrl.h: Likewise.
25823         * lib/unictype/ctype_digit.h: Likewise.
25824         * lib/unictype/ctype_space.h: Likewise.
25825         * lib/unictype/ctype_xdigit.h: Likewise.
25826         * lib/unictype/mirror.h: Likewise.
25827         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25828         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25829         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25830         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25831         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25832         * lib/unictype/pr_bidi_control.h: Likewise.
25833         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25834         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25835         * lib/unictype/pr_bidi_pdf.h: Likewise.
25836         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25837         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25838         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25839         * lib/unictype/pr_format_control.h: Likewise.
25840         * lib/unictype/pr_hex_digit.h: Likewise.
25841         * lib/unictype/pr_hyphen.h: Likewise.
25842         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25843         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25844         * lib/unictype/pr_iso_control.h: Likewise.
25845         * lib/unictype/pr_join_control.h: Likewise.
25846         * lib/unictype/pr_left_of_pair.h: Likewise.
25847         * lib/unictype/pr_line_separator.h: Likewise.
25848         * lib/unictype/pr_math.h: Likewise.
25849         * lib/unictype/pr_non_break.h: Likewise.
25850         * lib/unictype/pr_not_a_character.h: Likewise.
25851         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25852         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25853         * lib/unictype/pr_other_id_continue.h: Likewise.
25854         * lib/unictype/pr_other_id_start.h: Likewise.
25855         * lib/unictype/pr_other_lowercase.h: Likewise.
25856         * lib/unictype/pr_other_math.h: Likewise.
25857         * lib/unictype/pr_other_uppercase.h: Likewise.
25858         * lib/unictype/pr_paired_punctuation.h: Likewise.
25859         * lib/unictype/pr_paragraph_separator.h: Likewise.
25860         * lib/unictype/pr_pattern_syntax.h: Likewise.
25861         * lib/unictype/pr_pattern_white_space.h: Likewise.
25862         * lib/unictype/pr_private_use.h: Likewise.
25863         * lib/unictype/pr_quotation_mark.h: Likewise.
25864         * lib/unictype/pr_radical.h: Likewise.
25865         * lib/unictype/pr_soft_dotted.h: Likewise.
25866         * lib/unictype/pr_space.h: Likewise.
25867         * lib/unictype/pr_titlecase.h: Likewise.
25868         * lib/unictype/pr_variation_selector.h: Likewise.
25869         * lib/unictype/pr_white_space.h: Likewise.
25870         * lib/unictype/sy_c_ident.h: Likewise.
25871         * lib/unictype/sy_c_whitespace.h: Likewise.
25872         * lib/unictype/sy_java_whitespace.h: Likewise.
25873         * modules/uni*/*: Bump version number of expected libunistring version.
25874         Reported by Simon Josefsson.
25875
25876 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25877
25878         useless-if-before-free: fix typo in --help and make the internal,
25879         automatic version date update process work once again.
25880         --help output contained a NUL character instead of the
25881         backslash-zero that was intended.  Also, the "must lie within
25882         the first 8 lines" line is on line 9, and hence not getting
25883         automatically updated.
25884         * build-aux/useless-if-before-free: Fix the former by adding a
25885         backslash, and the latter by condensing the three lines of what-it-does
25886         to a single line, leaving one line of slack for the future.
25887
25888 2011-01-09  Bruno Haible  <bruno@clisp.org>
25889
25890         uniwidth/width: Fix width of U+1D173..U+1D17A.
25891         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25892         symbolic_width, output_width_property_test): New functions.
25893         (main): Invoke output_nonspacing_property, output_width_property_test.
25894         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25895         U+1D173..U+1D17A.
25896         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25897         1.
25898         * modules/uniwidth/*: Bump version number of expected libunistring
25899         version.
25900         * modules/unilbrk/*: Likewise.
25901
25902 2011-01-08  Bruno Haible  <bruno@clisp.org>
25903
25904         uninorm tests: Preserve copyright of Unicode data file.
25905         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25906         Mention modifications.
25907
25908 2011-01-08  Bruno Haible  <bruno@clisp.org>
25909
25910         gen-uni-tables: Prepare for Unicode 5.2.0.
25911         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25912         (debug_output_lbp, output_lbp): Update.
25913
25914 2011-01-08  Bruno Haible  <bruno@clisp.org>
25915
25916         unilbrk: Clarify gen-uni-tables.c code.
25917         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25918         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25919         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25920
25921 2011-01-07  Bruno Haible  <bruno@clisp.org>
25922
25923         strtod: Restore errno when successfully parsing Infinity or NaN.
25924         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25925         restore the original errno.
25926
25927 2011-01-07  Bruno Haible  <bruno@clisp.org>
25928
25929         remove test: Avoid failure on HP-UX 11.
25930         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25931
25932 2011-01-07  Bruno Haible  <bruno@clisp.org>
25933
25934         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25935         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25936         error code.
25937
25938 2011-01-07  Pádraig Brady <P@draigBrady.com>
25939
25940         ignore-value: fixup comments, and add Eric Blake
25941         as an author since he rewrote the macros.
25942         * lib/ignore-value.h (ignore_value):  State that
25943         we now support aggregates.  Also specify exactly
25944         when the GCC warn_unused_result feature was added.
25945
25946 2011-01-06  Eric Blake  <eblake@redhat.com>
25947
25948         ignore-value: support aggregate types
25949         * lib/ignore-value.h (ignore_value): Provide separate gcc
25950         definition.
25951         * modules/ignore-value-tests: New test module.
25952         * tests/test-ignore-value.c: New test.
25953
25954         maint.mk: improve sc_prohibit_strcmp regex
25955         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25956         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25957         definition of STRNEQ.
25958
25959         signal: work around Haiku issue with SIGBUS
25960         * lib/siglist.h: Add comment.
25961         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25962         strsignal's favoring of SIGSEGV.
25963         * tests/test-signal.c (main): Avoid test failure.
25964         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25965         Reported by Scott McCreary.
25966
25967         maint.mk: add pre-release check to ensure submodule commits are public
25968         * top/maint.mk (public-submodule-commit): New rule.
25969         (submodule-checks): New variable.
25970         (alpha beta stable): Depend on the variable.
25971
25972 2011-01-05  Pádraig Brady <P@draigBrady.com>
25973         and Jim Meyering  <meyering@redhat.com>
25974
25975         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25976         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25977         (ATTRIBUTE_DEPRECATED): Define.
25978         (_ignore_case): New function.
25979         (ignore_value): New macro, to replace the old function.
25980         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25981         * modules/ignore-value (Depends-on): Add stdint.
25982
25983 2011-01-04  Eric Blake  <eblake@redhat.com>
25984
25985         doc: regenerate INSTALL
25986         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25987         @firstparagraphindent support, now that autoconf dropped it.
25988         (INSTALL_PRELUDE): Reinstate old macro.
25989         * doc/install.texi: Resync from autoconf.
25990         * doc/INSTALL: Reflect recent autoconf update.
25991         * doc/INSTALL.ISO: Likewise.
25992         * doc/INSTALL.UTF-8: Likewise.
25993         Reported by Karl Berry.
25994
25995 2011-01-04  Bruce Korb  <address@hidden>
25996
25997         git-version-gen: avoid a sub-shell
25998         * build-aux/git-version-gen: Redirect stderr in `...` via
25999         "exec 2>...", rather than via an added sub-shell.
26000
26001 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26002
26003         git-version-gen: use (...) rather than sh -c '...'
26004         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26005         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26006
26007 2011-01-03  Jim Meyering  <meyering@redhat.com>
26008
26009         git-version-gen: convert leading TABs to spaces
26010         * build-aux/git-version-gen: Expand leading TABs.
26011
26012         git-version-gen: handle failed "git rev-list"
26013         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26014         from git and proceeding as if it had succeeded but printed no SHA1
26015         checksums, suppress the diagnostic and handle the failure.
26016         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26017
26018         git-version-gen: include command name in one more diagnostic
26019         * build-aux/git-version-gen: When the required .tarball-version file
26020         was missing or unreadable, you might see the diagnostic from "cat",
26021         but no trace of the name of the invoking script.  Now, you still see
26022         the diagnostic from cat, but also get one from "git-version-gen: ".
26023         Inspired by a patch from Bruce Korb.
26024
26025         update-copyright: adjust test to match changed code
26026         * tests/test-update-copyright.sh: Change test's expected output
26027         to match new actual output.
26028
26029 2011-01-02  Bruno Haible  <bruno@clisp.org>
26030
26031         getlogin_r: Avoid test failure on HP-UX 11.
26032         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26033         ERANGE when the second argument is zero.
26034         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26035         portability problem.
26036
26037 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26038
26039         * build-aux/update-copyright: doc Simon's changes
26040
26041 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26042
26043         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26044         environment variable.
26045
26046 2011-01-02  Bruno Haible  <bruno@clisp.org>
26047
26048         unigbrk: Avoid gcc warnings.
26049         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26050         unused variable.
26051         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26052         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26053         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26054         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26055         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26056         Change type of first argument to 'const char *'.
26057         (main): Remove unused variable.
26058         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26059         type of first argument to 'const char *'.
26060         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26061         Likewise.
26062         (main): Change type of variable 's'.
26063         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26064         to 'int'.
26065
26066 2011-01-02  Bruno Haible  <bruno@clisp.org>
26067
26068         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26069         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26070         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26071         bug.
26072         * lib/pwrite.c: Undo 2010-12-31 patch.
26073         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26074
26075 2011-01-02  Bruno Haible  <bruno@clisp.org>
26076
26077         pread: Fix test whether it works.
26078         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26079
26080 2011-01-02  Bruno Haible  <bruno@clisp.org>
26081
26082         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26083         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26084         ends in "6". Don't require a specific month name. Try also the locale
26085         names found on HP-UX 11 and Solaris 7.
26086
26087 2011-01-02  Bruno Haible  <bruno@clisp.org>
26088
26089         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26090         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26091         C linkage.
26092         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26093
26094 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26095
26096         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26097         for consistency, since the "cluster" term is not used elsewhere.
26098         * lib/unigbrk.in.h: Update name.
26099         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26100         * lib/unigbrk/u16-grapheme-next.c: Update name.
26101         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26102         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26103         * lib/unigbrk/u32-grapheme-next.c: Update name.
26104         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26105         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26106         * lib/unigbrk/u8-grapheme-next.c: Update name.
26107         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26108         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26109         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26110         Suggested by Bruno Haible.
26111
26112 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26113
26114         Remove module 'u8-grapheme-len' as too redundant with
26115         'u8-grapheme-next'.
26116         * modules/unigbrk/u8-grapheme-len: Delete file.
26117         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26118         * lib/unigbrk.in.h: Remove prototype for deleted function.
26119         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26120         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26121
26122         Remove module 'u16-grapheme-len' as too redundant with
26123         'u16-grapheme-next'.
26124         * modules/unigbrk/u16-grapheme-len: Delete file.
26125         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26126         * lib/unigbrk.in.h: Remove prototype for deleted function.
26127         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26128         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26129
26130         Remove module 'u32-grapheme-len' as too redundant with
26131         'u32-grapheme-next'.
26132         * modules/unigbrk/u32-grapheme-len: Delete file.
26133         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26134         * lib/unigbrk.in.h: Remove prototype for deleted function.
26135         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26136         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26137
26138         Suggested by Bruno Haible.
26139
26140 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26141
26142         * unigbrk.in.h: Fix typo: "ben" => "been".
26143         Reported by Bruno Haible.
26144
26145 2011-01-01  Jim Meyering  <meyering@redhat.com>
26146
26147         maint: update almost all copyright ranges to include 2011
26148         Run the new "make update-copyright" rule.
26149
26150 2011-01-01  Jim Meyering  <meyering@redhat.com>
26151
26152         maint: update-copyright: exempt doc/INSTALL*
26153         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26154         since they are generated.  Suggested by Bruno Haible.
26155
26156 2011-01-01  Jim Meyering  <meyering@redhat.com>
26157
26158         maint: refine the update-copyright rule
26159         * Makefile (update-copyright): Also exclude any file that includes
26160         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26161         code that merely generates the comment.
26162
26163 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26164
26165         New module 'u8-grapheme-len'.
26166         * modules/unigbrk/u8-grapheme-len: New file.
26167         * modules/unigbrk/u8-grapheme-len-tests: New file.
26168         * lib/unigbrk.in.h: Add prototype for new function.
26169         * lib/unigbrk/u8-grapheme-len.c: New file.
26170         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26171
26172         New module 'u16-grapheme-len'.
26173         * modules/unigbrk/u16-grapheme-len: New file.
26174         * modules/unigbrk/u16-grapheme-len-tests: New file.
26175         * lib/unigbrk.in.h: Add prototype for new function.
26176         * lib/unigbrk/u16-grapheme-len.c: New file.
26177         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26178
26179         New module 'u32-grapheme-len'.
26180         * modules/unigbrk/u32-grapheme-len: New file.
26181         * modules/unigbrk/u32-grapheme-len-tests: New file.
26182         * lib/unigbrk.in.h: Add prototype for new function.
26183         * lib/unigbrk/u32-grapheme-len.c: New file.
26184         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26185
26186         New module 'u8-grapheme-next'.
26187         * modules/unigbrk/u8-grapheme-next: New file.
26188         * modules/unigbrk/u8-grapheme-next-tests: New file.
26189         * lib/unigbrk.in.h: Add prototype for new function.
26190         * lib/unigbrk/u8-grapheme-next.c: New file.
26191         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26192
26193         New module 'u16-grapheme-next'.
26194         * modules/unigbrk/u16-grapheme-next: New file.
26195         * modules/unigbrk/u16-grapheme-next-tests: New file.
26196         * lib/unigbrk.in.h: Add prototype for new function.
26197         * lib/unigbrk/u16-grapheme-next.c: New file.
26198         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26199
26200         New module 'u32-grapheme-next'.
26201         * modules/unigbrk/u32-grapheme-next: New file.
26202         * modules/unigbrk/u32-grapheme-next-tests: New file.
26203         * lib/unigbrk.in.h: Add prototype for new function.
26204         * lib/unigbrk/u32-grapheme-next.c: New file.
26205         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26206
26207         New module 'u8-grapheme-prev'.
26208         * modules/unigbrk/u8-grapheme-prev: New file.
26209         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26210         * lib/unigbrk.in.h: Add prototype for new function.
26211         * lib/unigbrk/u8-grapheme-prev.c: New file.
26212         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26213
26214         New module 'u16-grapheme-prev'.
26215         * modules/unigbrk/u16-grapheme-prev: New file.
26216         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26217         * lib/unigbrk.in.h: Add prototype for new function.
26218         * lib/unigbrk/u16-grapheme-prev.c: New file.
26219         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26220
26221         New module 'u32-grapheme-prev'.
26222         * modules/unigbrk/u32-grapheme-prev: New file.
26223         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26224         * lib/unigbrk.in.h: Add prototype for new function.
26225         * lib/unigbrk/u32-grapheme-prev.c: New file.
26226         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26227
26228         New module 'u8-grapheme-breaks'.
26229         * modules/unigbrk/u8-grapheme-breaks: New file.
26230         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26231         * lib/unigbrk.in.h: Add prototype for new function.
26232         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26233         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26234
26235         New module 'u16-grapheme-breaks'.
26236         * modules/unigbrk/u16-grapheme-breaks: New file.
26237         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26238         * lib/unigbrk.in.h: Add prototype for new function.
26239         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26240         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26241
26242         New module 'u32-grapheme-breaks'.
26243         * modules/unigbrk/u32-grapheme-breaks: New file.
26244         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26245         * lib/unigbrk.in.h: Add prototype for new function.
26246         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26247         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26248
26249         New module 'ulc-grapheme-breaks'.
26250         * modules/unigbrk/ulc-grapheme-breaks: New file.
26251         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26252         * m4/locale-ar.m4: New file.
26253         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26254         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26255         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26256
26257 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26258
26259         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26260         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26261         modified how this file was generated before I initially submitted
26262         the module, but failed to regenerate it.  This meant that several
26263         of the level2 entries were wrong.
26264         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26265         Remove the division-by-2 that is folded into the table now that
26266         gbrkprop.h has been regenerated properly.  Now -1 entries are
26267         handled correctly.
26268
26269         New module 'unigbrk/uc-gbrk-prop-tests'.
26270         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26271         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26272         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26273         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26274
26275 2011-01-01  Bruno Haible  <bruno@clisp.org>
26276
26277         Avoid use of hexadecimal escapes.
26278         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26279         instead of hexadecimal escapes.
26280
26281 2011-01-01  Jim Meyering  <meyering@redhat.com>
26282
26283         maint: new rule to update copyright year ranges
26284         * Makefile (update-copyright): New rule.
26285
26286         maint: indent with TABs in Makefile
26287         * Makefile: Expand leading sequences of spaces to TABs
26288
26289         version-etc: update the copyright year it reports
26290         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26291
26292 2010-12-31  Bruno Haible  <bruno@clisp.org>
26293
26294         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26295         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26296         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26297         zero.
26298
26299 2010-12-31  Bruno Haible  <bruno@clisp.org>
26300
26301         pwrite: Work around HP-UX 11.11 bug.
26302         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26303         works and set REPLACE_PWRITE if not.
26304         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26305         function.
26306         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26307
26308 2010-12-31  Bruno Haible  <bruno@clisp.org>
26309
26310         pread: Work around HP-UX 11 bugs.
26311         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26312         and set REPLACE_PREAD if not.
26313         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26314
26315 2010-12-31  Eric Blake  <eblake@redhat.com>
26316
26317         nl_langinfo: fix YESEXPR on Irix 6.5
26318         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26319         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26320         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26321         it.
26322
26323 2010-12-31  Bruno Haible  <bruno@clisp.org>
26324
26325         iconv: Document HP-UX 11 bug.
26326         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26327
26328 2010-12-31  Bruno Haible  <bruno@clisp.org>
26329
26330         ldexpl: Fix link error on HP-UX 11.
26331         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26332         LDEXPL_LIBM, using $ISNANL_LIBM.
26333
26334 2010-12-31  Eric Blake  <eblake@redhat.com>
26335
26336         ftello: avoid compilation failure with SunStudio c89
26337         * lib/ftello.c (ftello): Use lseek, not llseek.
26338
26339         tests: avoid failing coreutils tests on cygwin
26340         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26341         (create_exe_shims_): Return 0 when skipping.
26342
26343 2010-12-31  Bruno Haible  <bruno@clisp.org>
26344
26345         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26346         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26347
26348 2010-12-31  Bruno Haible  <bruno@clisp.org>
26349
26350         waitpid: Fix link error in C++ mode.
26351         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26352
26353 2010-12-31  Bruno Haible  <bruno@clisp.org>
26354
26355         isnan: Use GCC built-ins when possible.
26356         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26357         __builtin_isnan.
26358         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26359         (isnan): Define using GCC built-ins for GCC >= 4.0.
26360
26361 2010-12-31  Bruno Haible  <bruno@clisp.org>
26362
26363         isnand: Fix mistake.
26364         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26365         __builtin_isnand.
26366
26367 2010-12-31  Bruno Haible  <bruno@clisp.org>
26368
26369         open: Avoid C++ error on HP-UX 11.
26370         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26371
26372 2010-12-31  Bruno Haible  <bruno@clisp.org>
26373
26374         time_r: Add missing declarations on HP-UX 11.
26375         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26376         instead of HAVE_LOCALTIME_R.
26377         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26378         HAVE_LOCALTIME_R always.
26379         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26380         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26381         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26382         HAVE_LOCALTIME_R.
26383         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26384         * doc/posix-functions/localtime_r.texi: Likewise.
26385
26386 2010-12-29  Eric Blake  <eblake@redhat.com>
26387
26388         mountlist: tweak previous commit
26389         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26390         Reported by Paul Eggert.
26391
26392         mountlist: fix local drive detection on cygwin
26393         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26394         that works for cygwin.
26395
26396 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26397
26398         ftoastr, snprintf: ftoastr + snprintf module
26399         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26400         since the snprintf module now should be good enough here.
26401         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26402         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26403         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26404         GNULIB_SNPRINTF only for the test directory, and the latter
26405         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26406         seems to suffice by itself.
26407
26408 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26409
26410         alloca: one step towards thread-safety
26411         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26412         need for a static variable.  All callers changed.  This does not
26413         make the alloca replacement thread-safe, but it's one step.
26414
26415         tests: minor indenting change
26416         * tests/init.sh: Sync from coreutils housekeeping patch
26417         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26418         to keep lines within 80 columns.
26419
26420 2010-12-28  Jim Meyering  <meyering@redhat.com>
26421
26422         regex: don't infloop on persistent failing calloc
26423         * lib/regexec.c (build_trtable): Return failure indication upon
26424         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26425         In glibc, this was fixed for version 2.13:
26426         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26427
26428 2010-12-28  Bruno Haible  <bruno@clisp.org>
26429             Paul Eggert <eggert@cs.ucla.edu>
26430
26431         linkat: Make implementation robust against system behaviour variations.
26432         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26433         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26434         way, and to -2 if it needs a generic runtime test.
26435         * lib/linkat.c (solaris_optimized_link_immediate,
26436         solaris_optimized_link_follow): New functions.
26437         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26438         (check_same_link): Use it.
26439
26440 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26441
26442         New module 'unigbrk/base'.
26443         * modules/unigbrk/base: New file.
26444         * lib/unigbrk.in.h: New file.
26445
26446         New module 'unigbrk/uc-gbrk-prop'.
26447         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26448         * modules/unigbrk/uc-gbrk-prop: New file.
26449         * lib/unigbrk/gbrkprop.h: New file.
26450         * lib/unigbrk/uc-gbrk-prop.c: New file.
26451
26452         New module 'unigbrk/uc-is-grapheme-break'.
26453         * modules/unigbrk/uc-is-grapheme-break: New file.
26454         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26455         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26456         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26457         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26458         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26459
26460         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26461
26462 2010-12-27  Bruno Haible  <bruno@clisp.org>
26463
26464         linkat test: Avoid failure on Solaris 11 2010-11.
26465         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26466
26467 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26468
26469         utimens: work around glibc rounding bug on more platforms
26470         * lib/utimens.c (fdutimens): Work around rounding bug even if
26471         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26472         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26473
26474 2010-12-27  Bruno Haible  <bruno@clisp.org>
26475
26476         select tests: Improve comments.
26477         * tests/test-select.c (do_select): Add comments.
26478
26479 2010-12-27  Bruno Haible  <bruno@clisp.org>
26480
26481         select tests: Safer way of handling timeout.
26482         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26483         at every invocation.
26484
26485 2010-12-27  Bruno Haible  <bruno@clisp.org>
26486
26487         select tests: Use 'bool' where appropriate.
26488         * tests/test-select.c (connect_to_socket): Change argument type to
26489         'bool'.
26490
26491 2010-12-27  Bruno Haible  <bruno@clisp.org>
26492
26493         select tests: Use existing modules.
26494         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26495         (configure.ac): Don't test for unistd.h.
26496         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26497         declared in <unistd.h>.
26498
26499 2010-12-27  Bruno Haible  <bruno@clisp.org>
26500
26501         mbrtowc: Work around a Solaris 7 bug.
26502         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26503         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26504         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26505         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26506         MBRTOWC_NULL_ARG1_BUG.
26507         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26508         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26509         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26510         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26511
26512 2010-12-27  Jim Meyering  <meyering@redhat.com>
26513
26514         read-file.c: tweak syntax
26515         * lib/read-file.c (fread_file): Remove space after "*" in function
26516         definitions.
26517
26518 2010-12-27  Bruno Haible  <bruno@clisp.org>
26519
26520         times test: Avoid gcc warnings on OSF/1.
26521         * tests/test-times.c (main): Cast printf arguments from clock_t to
26522         'long int'.
26523
26524 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26525
26526         utimens: work around glibc rounding bug on older Linux kernels
26527         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26528         on Linux with a glibc whose utimes might not work, then work
26529         around a longstanding glibc bug involving rounding rather than
26530         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26531         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26532
26533 2010-12-26  Bruno Haible  <bruno@clisp.org>
26534
26535         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26536         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26537         _GL_CXXALIAS_SYS.
26538         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26539
26540 2010-12-26  Bruno Haible  <bruno@clisp.org>
26541
26542         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26543         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26544         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26545         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26546         looking for the declaration.
26547         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26548         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26549         problem.
26550         * doc/posix-functions/inet_pton.texi: Likewise.
26551
26552 2010-12-26  Bruno Haible  <bruno@clisp.org>
26553
26554         arpa_inet: Use the common idioms with C++ support.
26555         * lib/arpa_inet.in.h: Include c++defs.h.
26556         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26557         support.
26558         * modules/arpa_inet (Depends-on): Add c++defs.
26559         (Makefile.am): Substitute the contents of c++defs.h.
26560         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26561         * modules/arpa_inet-c++-tests: New file.
26562         * tests/test-arpa_inet-c++.cc: New file.
26563
26564 2010-12-25  Bruno Haible  <bruno@clisp.org>
26565
26566         Fix more C++ link errors on Solaris 8.
26567         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26568         $(LIB_EACCESS).
26569         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26570         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26571         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26572         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26573         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26574
26575 2010-12-25  Bruno Haible  <bruno@clisp.org>
26576
26577         printf-posix: Fix link error when a non-GCC compiler is used.
26578         * lib/stdio.in.h (printf): When not using GCC, override printf
26579         correctly.
26580         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26581
26582 2010-12-25  Bruno Haible  <bruno@clisp.org>
26583
26584         strerror_r-posix: Update doc.
26585         * doc/posix-functions/strerror_r.texi: Update doc about the return
26586         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26587
26588 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26589
26590         utimens: simplify the logic of the previous change
26591         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26592         This should not affect whether the test succeeds or fails.
26593
26594         utimens: configure better on hosts with NFS clock skew
26595         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26596         uses the clock of the local host.  It might use the clock of the
26597         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26598         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26599
26600 2010-12-25  Bruno Haible  <bruno@clisp.org>
26601
26602         ptsname test: Avoid failure on Solaris.
26603         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26604         open a pseudo-terminal; don't use BSD-style ptys.
26605         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26606
26607 2010-12-25  Bruno Haible  <bruno@clisp.org>
26608
26609         ptsname: Avoid ERANGE failure on some systems.
26610         * lib/ptsname.c (buffer): Increase size.
26611
26612 2010-12-25  Bruno Haible  <bruno@clisp.org>
26613
26614         rename, renameat: Avoid test failures at NFS mounted locations.
26615         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26616         so that subsequent mkdir calls succeed.
26617
26618 2010-12-25  Bruno Haible  <bruno@clisp.org>
26619
26620         iswblank: Fix C++ link error on Solaris 8.
26621         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26622         _GL_FUNCDECL_SYS.
26623
26624 2010-12-25  Bruno Haible  <bruno@clisp.org>
26625
26626         unistd: Fix C++ link error on Solaris 8.
26627         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26628
26629 2010-12-25  Bruno Haible  <bruno@clisp.org>
26630
26631         readlink doc: Mention an old glibc bug.
26632         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26633
26634 2010-12-25  Bruno Haible  <bruno@clisp.org>
26635
26636         fcntl-h: Fix for use of C++ on glibc systems.
26637         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26638         also on glibc systems in C++ mode.
26639         Reported by Gary V. Vaughan <gary@gnu.org>.
26640
26641 2010-12-25  Bruno Haible  <bruno@clisp.org>
26642
26643         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26644         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26645
26646 2010-12-25  Bruno Haible  <bruno@clisp.org>
26647
26648         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26649         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26650         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26651         test whether truncl works according to ISO C 99 with IEC 60559.
26652         * m4/truncl-ieee.m4: New file.
26653         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26654         m4/signbit.m4.
26655         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26656
26657 2010-12-25  Bruno Haible  <bruno@clisp.org>
26658
26659         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26660         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26661         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26662         test whether ceill works according to ISO C 99 with IEC 60559.
26663         * m4/ceill-ieee.m4: New file.
26664         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26665         m4/signbit.m4.
26666         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26667
26668 2010-12-25  Bruno Haible  <bruno@clisp.org>
26669
26670         Ensure all prerequisites of <wchar.h> are included.
26671         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26672         before <wchar.h>.
26673         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26674         gl_MBRLEN_NUL_RETVAL): Likewise.
26675         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26676         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26677         AC_FUNC_MBRTOWC): Likewise.
26678         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26679         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26680         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26681         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26682         Likewise.
26683         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26684         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26685         (gl_WCHAR_H): Improve comments.
26686         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26687
26688 2010-12-25  Bruno Haible  <bruno@clisp.org>
26689
26690         strtok_r: Fix C syntax error in autoconf macro.
26691         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26692         characters in test program.
26693
26694 2010-12-24  Bruno Haible  <bruno@clisp.org>
26695
26696         ceil, trunc, round: Fix gcc warnings.
26697         * lib/ceil.c (MIN): Undefine before redefining.
26698         * lib/trunc.c (MIN): Likewise.
26699         * lib/round.c (MIN): Likewise.
26700         Include <math.h> first.
26701
26702 2010-12-24  Bruno Haible  <bruno@clisp.org>
26703
26704         select tests: Avoid failures on OSF/1 5.1.
26705         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26706         failure of closing the last socket; it may fail with ECONNRESET.
26707
26708 2010-12-24  Eric Blake  <eblake@redhat.com>
26709
26710         stdint: avoid HP-UX 10.20 preprocessor bug
26711         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26712         than #if.
26713         * tests/test-floor2.c (main): Likewise.
26714         Reported by Peter O'Gorman.
26715
26716         pipe: make obsoletion transition easier
26717         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26718         * modules/pipe (Files): Include revived file.
26719         (Include): Drop reference, to mirror getdate's behavior.
26720
26721 2010-12-24  Bruno Haible  <bruno@clisp.org>
26722
26723         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26724         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26725         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26726         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26727
26728 2010-12-24  Bruno Haible  <bruno@clisp.org>
26729
26730         gethostname: Ensure declaration on NonStop Kernel.
26731         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26732         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26733
26734 2010-12-24  Bruno Haible  <bruno@clisp.org>
26735
26736         sys_select: Ensure all necessary types on NonStop Kernel.
26737         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26738         include <sys/time.h>.
26739         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26740         NonStop Kernel.
26741         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26742
26743 2010-12-24  Bruno Haible  <bruno@clisp.org>
26744
26745         sys_select: Remove unneeded include.
26746         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26747         have <sys/select.h>.
26748
26749 2010-12-24  Bruno Haible  <bruno@clisp.org>
26750
26751         gethostname: Provide a fallback for HOST_NAME_MAX.
26752         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26753         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26754         instead.
26755         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26756
26757 2010-12-24  Bruno Haible  <bruno@clisp.org>
26758
26759         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26760         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26761         (SA_RESTART): Likewise.
26762         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26763
26764 2010-12-24  Bruno Haible  <bruno@clisp.org>
26765
26766         signal: Define NSIG.
26767         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26768         * tests/test-signal.c (nsig): New variable.
26769         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26770
26771 2010-12-24  Bruno Haible  <bruno@clisp.org>
26772
26773         rename, renameat: Avoid test failures on OSF/1 5.1.
26774         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26775         alternative error codes.
26776         * tests/test-renameat.c (main): Likewise.
26777
26778 2010-12-24  Bruno Haible  <bruno@clisp.org>
26779
26780         *printf: Detect large precisions bug on Solaris 10/SPARC.
26781         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26782         by Paul Eggert.
26783         * tests/test-snprintf-posix.h (test_function): Add this test code here
26784         too.
26785         * tests/test-sprintf-posix.h (test_function): Likewise.
26786         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26787         * tests/test-vasprintf-posix.c (test_function): Likewise.
26788         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26789         around by gnulib.
26790         * doc/posix-functions/printf.texi: Likewise.
26791         * doc/posix-functions/snprintf.texi: Likewise.
26792         * doc/posix-functions/sprintf.texi: Likewise.
26793         * doc/posix-functions/vfprintf.texi: Likewise.
26794         * doc/posix-functions/vprintf.texi: Likewise.
26795         * doc/posix-functions/vsnprintf.texi: Likewise.
26796         * doc/posix-functions/vsprintf.texi: Likewise.
26797         * doc/posix-functions/dprintf.texi: Undo last commit.
26798         * doc/posix-functions/vdprintf.texi: Likewise.
26799
26800 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26801
26802         tests: port test-fdutimensat.c to Solaris 8
26803         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26804         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26805         On Solaris 8, it fails with errno == ENOSYS, because there is no
26806         futimens (so it can't use the fd), and there is no lutimens (so it
26807         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26808
26809         vsnprintf: make more consistent with snprintf; doc fixes
26810
26811         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26812         the byte count return problem was promoted from the snprintf-posix
26813         to the snprintf module.
26814         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26815         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26816         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26817         * tests/test-snprintf.c (main): Check the byte count returned.
26818         * tests/test-vsnprintf.c (main): Likewise.
26819
26820 2010-12-23  Eric Blake  <eblake@redhat.com>
26821
26822         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26823         * modules/sigpipe (License): Relax license.
26824
26825 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26826
26827         doc: document Solaris printf bug with large float precisions
26828         * doc/posix-functions/dprintf.texi (dprintf):
26829         * doc/posix-functions/fprintf.texi (fprintf):
26830         * doc/posix-functions/printf.texi (printf):
26831         * doc/posix-functions/snprintf.texi (snprintf):
26832         * doc/posix-functions/sprintf.texi (sprintf):
26833         * doc/posix-functions/vdprintf.texi (vdprintf):
26834         * doc/posix-functions/vfprintf.texi (vfprintf):
26835         * doc/posix-functions/vprintf.texi (vprintf):
26836         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26837         * doc/posix-functions/vsprintf.texi (vsprintf):
26838         Mention that these functions mishandle large floating point
26839         precisions on Solaris 10.  The same bug is also present in Solaris
26840         8, and I assume earlier.  This causes "cd gnulib-tests; make
26841         check" to fail on Solaris 8 (and I assume, later) when building
26842         the latest coreutils, in test-vasprintf-posix's call to
26843         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26844         the wide flavors (e.g., wprintf) so this patch just updates the
26845         documentation for the narrow ones.
26846
26847         test-posixtm.c: add two tests
26848         * tests/test-posixtm.c: Add two tests, to highlight the
26849         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26850         around this bug; this is merely to document it.
26851
26852 2010-12-22  Bruno Haible  <bruno@clisp.org>
26853
26854         getlogin_r: Work around portability problem on OSF/1.
26855         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26856         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26857         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26858         test for a truncated result.
26859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26860         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26861         * modules/getlogin_r (Depends-on): Add memchr.
26862         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26863
26864 2010-12-22  Bruno Haible  <bruno@clisp.org>
26865
26866         ptsname: Avoid test failure on OSF/1 5.1.
26867         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26868         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26869         (same_slave): New function.
26870         (main): Use it to compare ptsname's result with the expected file name.
26871
26872 2010-12-22  Bruno Haible  <bruno@clisp.org>
26873
26874         Port extended stdio modules to HP NonStop Kernel.
26875         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26876         macros.
26877         * lib/fbufmode.c: Update comments.
26878         * lib/fflush.c: Likewise.
26879         * lib/fpurge.c: Likewise.
26880         * lib/freadable.c: Likewise.
26881         * lib/freadahead.c: Likewise.
26882         * lib/freading.c: Likewise.
26883         * lib/freadptr.c: Likewise.
26884         * lib/freadseek.c: Likewise.
26885         * lib/fseeko.c: Likewise.
26886         * lib/fseterr.c: Likewise.
26887         * lib/fwritable.c: Likewise.
26888         * lib/fwriting.c: Likewise.
26889         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26890
26891 2010-12-22  Bruno Haible  <bruno@clisp.org>
26892
26893         ttyname_r: Work around bug on OSF/1 5.1.
26894         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26895         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26896         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26897         present.
26898         * lib/ttyname_r.c (ttyname_r): Update comments.
26899
26900 2010-12-22  Bruno Haible  <bruno@clisp.org>
26901
26902         round: Implement result sign according to IEEE 754.
26903         * lib/round.c (MIN, MINUS_ZERO): New macros.
26904         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26905         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26906         * tests/test-round-ieee.c (main): Likewise.
26907         * tests/test-roundl-ieee.c (main): Likewise.
26908
26909         trunc: Implement result sign according to IEEE 754.
26910         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26911         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26912         * tests/test-trunc2.c: Include minus-zero.h.
26913         (MINUS_ZERO): New macro.
26914         (trunc_reference): Keep in sync with lib/trunc.c.
26915         * tests/test-truncf2.c: Include minus-zero.h.
26916         (MINUS_ZERO): New macro.
26917         (truncf_reference): Keep in sync with lib/trunc.c.
26918         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26919         * tests/test-trunc-ieee.c (main): Likewise.
26920         * tests/test-truncl-ieee.c (main): Likewise.
26921
26922         ceil: Implement result sign according to IEEE 754.
26923         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26924         (FUNC): Return -0.0 for -1 < x < 0.
26925         * tests/test-ceil2.c: Include minus-zero.h.
26926         (MINUS_ZERO): New macro.
26927         (ceil_reference): Keep in sync with lib/ceil.c.
26928         * tests/test-ceilf2.c: Include minus-zero.h.
26929         (MINUS_ZERO): New macro.
26930         (ceilf_reference): Keep in sync with lib/ceil.c.
26931         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26932         * tests/test-ceil-ieee.c (main): Likewise.
26933         * tests/test-ceill-ieee.c (main): Likewise.
26934
26935         floor: Implement result sign according to IEEE 754.
26936         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26937         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26938         * tests/test-floorf2.c (floorf_reference): Likewise.
26939         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26940         * tests/test-floor-ieee.c (main): Likewise.
26941         * tests/test-floorl-ieee.c (main): Likewise.
26942
26943 2010-12-22  Bruno Haible  <bruno@clisp.org>
26944
26945         getaddrinfo: Update doc.
26946         * doc/posix-functions/gai_strerror.texi: Return type is also different
26947         on AIX and HP-UX.
26948
26949 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26950
26951         getaddrinfo, inet_ntop: Update doc for Solaris.
26952         * doc/posix-functions/gai_strerror.texi: Return type is also an
26953         issue on Solaris 9 and earlier.
26954         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26955         on Solaris 10 and earlier.
26956
26957 2010-12-21  Bruno Haible  <bruno@clisp.org>
26958
26959         New module 'roundl-ieee'.
26960         * modules/roundl-ieee: New file.
26961         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26962         test whether roundl works according to ISO C 99 with IEC 60559.
26963         * m4/roundl-ieee.m4: New file.
26964         * modules/roundl-ieee-tests: New file.
26965         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26966         * tests/test-roundl.c (main): Remove signbit tests.
26967         * modules/roundl-tests (Depends-on): Remove signbit.
26968         * doc/posix-functions/roundl.texi: Mention the new module.
26969
26970 2010-12-21  Bruno Haible  <bruno@clisp.org>
26971
26972         New module 'truncl-ieee'.
26973         * modules/truncl-ieee: New file.
26974         * modules/truncl-ieee-tests: New file.
26975         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26976         * tests/test-truncl.c (main): Remove signbit tests.
26977         * modules/truncl-tests (Depends-on): Remove signbit.
26978         * doc/posix-functions/truncl.texi: Mention the new module.
26979
26980 2010-12-21  Bruno Haible  <bruno@clisp.org>
26981
26982         New module 'ceill-ieee'.
26983         * modules/ceill-ieee: New file.
26984         * modules/ceill-ieee-tests: New file.
26985         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26986         * tests/test-ceill.c (main): Remove signbit tests.
26987         * modules/ceill-tests (Depends-on): Remove signbit.
26988         * doc/posix-functions/ceill.texi: Mention the new module.
26989
26990 2010-12-21  Bruno Haible  <bruno@clisp.org>
26991
26992         New module 'floorl-ieee'.
26993         * modules/floorl-ieee: New file.
26994         * modules/floorl-ieee-tests: New file.
26995         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26996         * tests/test-floorl.c (main): Remove signbit tests.
26997         * modules/floorl-tests (Depends-on): Remove signbit.
26998         * doc/posix-functions/floorl.texi: Mention the new module.
26999
27000 2010-12-21  Bruno Haible  <bruno@clisp.org>
27001
27002         New module 'round-ieee'.
27003         * modules/round-ieee: New file.
27004         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27005         whether round works according to ISO C 99 with IEC 60559.
27006         * m4/round-ieee.m4: New file.
27007         * modules/round-ieee-tests: New file.
27008         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27009         * tests/test-round1.c (main): Remove signbit tests.
27010         * modules/round-tests (Depends-on): Remove 'signbit'.
27011         * doc/posix-functions/round.texi: Mention the new module.
27012
27013 2010-12-21  Bruno Haible  <bruno@clisp.org>
27014
27015         New module 'trunc-ieee'.
27016         * modules/trunc-ieee: New file.
27017         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27018         whether trunc works according to ISO C 99 with IEC 60559.
27019         * m4/trunc-ieee.m4: New file.
27020         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27022         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27023         * modules/trunc-ieee-tests: New file.
27024         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27025         * tests/test-trunc1.c (main): Remove signbit tests.
27026         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27027         * doc/posix-functions/trunc.texi: Mention the new module.
27028
27029 2010-12-21  Bruno Haible  <bruno@clisp.org>
27030
27031         New module 'ceil-ieee'.
27032         * modules/ceil-ieee: New file.
27033         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27034         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27035         ISO C 99 with IEC 60559.
27036         * m4/ceil-ieee.m4: New file.
27037         * modules/ceil (Files): Add lib/ceil.c.
27038         (Depends-on): Add 'float'.
27039         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27040         * lib/math.in.h (ceil): New declaration.
27041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27042         REPLACE_CEIL.
27043         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27044         * modules/ceil-ieee-tests: New file.
27045         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27046         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27047         * doc/posix-functions/ceil.texi: Mention the new module.
27048
27049 2010-12-21  Bruno Haible  <bruno@clisp.org>
27050
27051         New module 'floor-ieee'.
27052         * modules/floor-ieee: New file.
27053         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27054         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27055         ISO C 99 with IEC 60559.
27056         * m4/floor-ieee.m4: New file.
27057         * modules/floor (Files): Add lib/floor.c.
27058         (Depends-on): Add 'float'.
27059         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27060         * lib/math.in.h (floor): New declaration.
27061         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27062         REPLACE_FLOOR.
27063         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27064         * modules/floor-ieee-tests: New file.
27065         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27066         * tests/test-math-c++.cc: Check the signature of 'floor'.
27067         * doc/posix-functions/floor.texi: Mention the new module.
27068
27069 2010-12-21  Bruno Haible  <bruno@clisp.org>
27070
27071         New module 'roundf-ieee'.
27072         * modules/roundf-ieee: New file.
27073         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27074         test whether roundf works according to ISO C 99 with IEC 60559.
27075         * m4/roundf-ieee.m4: New file.
27076         * modules/roundf-ieee-tests: New file.
27077         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27078         * tests/test-roundf1.c (main): Remove signbit tests.
27079         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27080         * doc/posix-functions/roundf.texi: Mention the new module.
27081
27082 2010-12-21  Bruno Haible  <bruno@clisp.org>
27083
27084         New module 'truncf-ieee'.
27085         * modules/truncf-ieee: New file.
27086         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27087         test whether truncf works according to ISO C 99 with IEC 60559.
27088         * m4/truncf-ieee.m4: New file.
27089         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27091         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27092         * modules/truncf-ieee-tests: New file.
27093         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27094         * tests/test-truncf1.c (main): Remove signbit tests.
27095         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27096         * doc/posix-functions/truncf.texi: Mention the new module.
27097
27098 2010-12-21  Bruno Haible  <bruno@clisp.org>
27099
27100         New module 'ceilf-ieee'.
27101         * modules/ceilf-ieee: New file.
27102         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27103         test whether ceilf works according to ISO C 99 with IEC 60559.
27104         * m4/ceilf-ieee.m4: New file.
27105         * modules/ceilf-ieee-tests: New file.
27106         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27107         * tests/test-ceilf1.c (main): Remove signbit tests.
27108         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27109         * doc/posix-functions/ceilf.texi: Mention the new module.
27110
27111 2010-12-21  Bruno Haible  <bruno@clisp.org>
27112
27113         New module 'floorf-ieee'.
27114         * modules/floorf-ieee: New file.
27115         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27116         test whether floorf works according to ISO C 99 with IEC 60559.
27117         * m4/floorf-ieee.m4: New file.
27118         * modules/floorf-ieee-tests: New file.
27119         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27120         * tests/test-floorf1.c (main): Remove signbit tests.
27121         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27122         * doc/posix-functions/floorf.texi: Mention the new module.
27123
27124 2010-12-21  Bruno Haible  <bruno@clisp.org>
27125
27126         Support for minus zero in autoconf macros.
27127         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27128         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27129         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27130         * tests/minus-zero.h: Update comments.
27131
27132 2010-12-21  Bruno Haible  <bruno@clisp.org>
27133
27134         Tests for module 'ceil'.
27135         * modules/ceil-tests: New file.
27136         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27137         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27138
27139 2010-12-21  Bruno Haible  <bruno@clisp.org>
27140
27141         Tests for module 'floor'.
27142         * modules/floor-tests: New file.
27143         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27144         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27145
27146 2010-12-21  Bruno Haible  <bruno@clisp.org>
27147
27148         math: Fix indentation.
27149         * lib/math.in.h (floorf): Fix indentation.
27150
27151 2010-12-21  Bruno Haible  <bruno@clisp.org>
27152
27153         Fix cross-compilation guesses on Solaris.
27154         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27155         not match "solaris2.10".
27156         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27157         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27158         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27159
27160 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27161
27162         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27163         This fixes a problem observed with the latest coreutils snapshot
27164         that caused a test to fail on Solaris 8.  src/csplit.c's call
27165         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27166         earlier, instead of returning the number of bytes that would have
27167         been generated; this causes csplit to incorrectly report memory
27168         exhaustion.
27169         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27170         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27171         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27172         comments to match.
27173         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27174         Fix typo in matching older versions of Solaris: "solaris2.10"
27175         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27176         only for guessing while cross-compiling.
27177         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27178
27179 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27180
27181         ftoastr: fix comment again
27182         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27183         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27184         Also, simplify example a bit by using flags = 0.
27185
27186 2010-12-20  Bruno Haible  <bruno@clisp.org>
27187
27188         round*, trunc*: Update documentation regarding glibc.
27189         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27190         * doc/posix-functions/round.texi: Likewise.
27191         * doc/posix-functions/roundl.texi: Likewise.
27192         * doc/posix-functions/truncf.texi: Likewise.
27193         * doc/posix-functions/trunc.texi: Likewise.
27194         * doc/posix-functions/truncl.texi: Likewise.
27195
27196 2010-12-20  Bruno Haible  <bruno@clisp.org>
27197
27198         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27199         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27200         * doc/posix-functions/round.texi: Likewise.
27201         * doc/posix-functions/roundl.texi: Likewise.
27202
27203 2010-12-20  Bruno Haible  <bruno@clisp.org>
27204
27205         ttyname_r: Add missing declaration on HP-UX 11.
27206         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27207         HAVE_TTYNAME_R.
27208         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27209         declared. Set HAVE_TTYNAME_R always.
27210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27211         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27212         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27213         HAVE_TTYNAME_R.
27214         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27215
27216 2010-12-20  Bruno Haible  <bruno@clisp.org>
27217
27218         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27219         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27220         * doc/posix-functions/getlogin_r.texi: Likewise.
27221         * tests/test-getlogin.c: Include <errno.h>.
27222         (main): Avoid test failure on HP-UX 11.11.
27223         * tests/test-getlogin_r.c (main): Likewise.
27224
27225 2010-12-20  Bruno Haible  <bruno@clisp.org>
27226
27227         getlogin_r: Add missing declaration on HP-UX 11.
27228         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27229         declared also when it exists as a function.
27230         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27231
27232 2010-12-20  Bruno Haible  <bruno@clisp.org>
27233
27234         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27235         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27236         through wcrtomb.
27237
27238 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27239
27240         ftoastr: fix comment
27241         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27242         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27243
27244 2010-12-19  Bruno Haible  <bruno@clisp.org>
27245
27246         isnan: Ensure it is a macro.
27247         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27248         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27249         Solaris.
27250
27251 2010-12-19  Bruno Haible  <bruno@clisp.org>
27252
27253         ldexpl test: Fix link error on OSF/1 5.1.
27254         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27255
27256 2010-12-19  Bruno Haible  <bruno@clisp.org>
27257
27258         wctype: Make it work in C++ mode on OSF/1 5.1.
27259         * lib/wctype.in.h (iswblank): Declare but not define here.
27260         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27261         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27262         * modules/wctype (Files): Add lib/iswblank.c.
27263
27264 2010-12-19  Bruno Haible  <bruno@clisp.org>
27265
27266         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27267         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27268         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27269
27270 2010-12-19  Bruno Haible  <bruno@clisp.org>
27271
27272         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27273         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27274         _POSIX_PII_SOCKET.
27275         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27276         * doc/posix-functions/recvfrom.texi: Likewise.
27277         * doc/posix-functions/send.texi: Likewise.
27278         * doc/posix-functions/sendto.texi: Likewise.
27279
27280 2010-12-19  Bruno Haible  <bruno@clisp.org>
27281
27282         tcgetsid: Add missing declaration on OSF/1 5.1.
27283         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27284         HAVE_TCGETSID.
27285         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27286         Don't set HAVE_TCGETSID.
27287         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27288         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27289         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27290         HAVE_TCGETSID.
27291         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27292
27293 2010-12-19  Bruno Haible  <bruno@clisp.org>
27294
27295         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27296         * lib/stdio.in.h: During the include_next statement, let recursive
27297         includes of this file include only the system header file.
27298
27299 2010-12-19  Bruno Haible  <bruno@clisp.org>
27300
27301         iconv_open: Fix regression from 2010-12-04.
27302         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27303         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27304
27305 2010-12-19  Bruno Haible  <bruno@clisp.org>
27306
27307         stdbool test: Avoid a gcc warning.
27308         * tests/test-stdbool.c (main): Fail if e1 is false.
27309         Reported by Jim Meyering.
27310
27311 2010-12-19  Jim Meyering  <meyering@redhat.com>
27312
27313         setenv: restore to working order
27314         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27315         mistakenly removed.
27316         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27317         HAVE_SETENV.
27318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27319         HAVE_SETENV.
27320
27321 2010-12-19  Bruno Haible  <bruno@clisp.org>
27322
27323         Document some different function declarations on OSF/1 5.1.
27324         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27325         * doc/posix-functions/inet_ntop.texi: Likewise.
27326         * doc/posix-functions/gethostname.texi: Likewise.
27327         * lib/unistd.in.h (gethostname): Update comment.
27328
27329 2010-12-19  Bruno Haible  <bruno@clisp.org>
27330
27331         doc: Mention vasprintf-posix module.
27332         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27333         the 'vasprintf-posix' module.
27334         * doc/glibc-functions/vasprintf.texi: Likewise.
27335
27336 2010-12-19  Bruno Haible  <bruno@clisp.org>
27337
27338         unsetenv: Add missing declaration on OSF/1 5.1.
27339         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27340         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27341         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27343         not HAVE_UNSETENV.
27344         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27345         HAVE_UNSETENV.
27346         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27347
27348 2010-12-19  Bruno Haible  <bruno@clisp.org>
27349
27350         setenv: Add missing declaration on OSF/1 5.1.
27351         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27352         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27353         declared. Don't set HAVE_SETENV.
27354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27355         not HAVE_SETENV.
27356         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27357         HAVE_SETENV.
27358         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27359
27360 2010-12-19  Bruno Haible  <bruno@clisp.org>
27361
27362         nl_langinfo tests: Avoid gcc warning.
27363         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27364
27365 2010-12-19  Bruno Haible  <bruno@clisp.org>
27366
27367         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27368         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27369         _GL_CXXALIAS_SYS.
27370
27371 2010-12-19  Bruno Haible  <bruno@clisp.org>
27372
27373         stdbool: Relax test.
27374         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27375         address to 'bool' work in static initializer, for compilers other than
27376         GCC.
27377
27378 2010-12-19  Bruno Haible  <bruno@clisp.org>
27379
27380         ftello: Add missing declaration on OSF/1 5.1.
27381         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27382         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27384         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27385         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27386
27387 2010-12-19  Bruno Haible  <bruno@clisp.org>
27388
27389         fseeko: Add missing declaration on OSF/1 5.1.
27390         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27391         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27393         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27394         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27395
27396 2010-12-19  Bruno Haible  <bruno@clisp.org>
27397
27398         fchdir: Add missing declaration on OSF/1 5.1.
27399         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27402         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27403         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27404
27405 2010-12-19  Bruno Haible  <bruno@clisp.org>
27406
27407         relocatable-prog-wrapper: Separate from relocatable-prog.
27408         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27409         uninstall-relocwrapper rule here.
27410         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27411         Reported by Ian Beckwith <ianb@erislabs.net>.
27412
27413 2010-12-19  Bruno Haible  <bruno@clisp.org>
27414
27415         unistr/u8-mbsnlen: Add missing dependency.
27416         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27417         Reported by Ian Beckwith <ianb@erislabs.net>.
27418
27419 2010-12-19  Bruno Haible  <bruno@clisp.org>
27420
27421         iconv: Make it possible again to use this module without 'iconv-h'.
27422         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27423         if it is not defined.
27424         Reported by Ian Beckwith <ianb@erislabs.net>.
27425
27426 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27427
27428         acl: port to Solaris 8 when copying from tmpfs to ufs
27429         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27430         error number.  Problem observed on Solaris 8 with latest
27431         coreutils, with "mv A B", where A is on a tmpfs file system and B
27432         is on a ufs file system.  This caused coreutils' mv/part-symlink
27433         test to fail.
27434
27435         tests: set fail=0 at start
27436         * tests/init.sh (setup_): Move fail=0 initialization here ...
27437         (mktempd_): ... from here, so that tests can rely on fail being
27438         set to 0 initially.  This fixes a problem in coreutils; see:
27439         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27440
27441 2010-12-18  Bruno Haible  <bruno@clisp.org>
27442
27443         memmem-simple: Stylistic changes.
27444         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27445         Fix preprocessor directive indentation.
27446
27447 2010-12-15  Pádraig Brady <P@draigBrady.com>
27448
27449         memmem, memmem-simple: reorganize and expand empty needle check
27450         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27451         functional checks to memmem-simple so that one has a fully functional
27452         memmem by using just this module.
27453         Restrict the performance only check to the memmem module.
27454         Also expand the empty needle check to ensure the correct
27455         pointer is returned, not just a non NULL pointer.
27456         * doc/glibc-functions/memmem.texi: Rearrange the portability
27457         documentation to correlate with the rearranged checks.
27458         Clarify exactly how the memmem and memmem-simple modules
27459         relate to each other.
27460
27461 2010-12-15  Pádraig Brady <P@draigBrady.com>
27462             Bruno Haible  <bruno@clisp.org>
27463
27464         Improve cross-compilation guesses for uClibc.
27465         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27466         that uClibc does not have the glibc bug.
27467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27468         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27469
27470 2010-12-14  Eric Blake  <eblake@redhat.com>
27471
27472         configmake: provide fallbacks for oldest supported autotools
27473         * m4/configmake.m4: New file.
27474         * modules/configmake (Files): Ship it.
27475         (configure.ac): Use it to guarantee fallbacks.
27476
27477 2010-12-13  Pádraig Brady <P@draigBrady.com>
27478
27479         read-file: Improve handling of large files
27480         * lib/read-file.c (fread_file): Minimize realloc()s
27481         for regular files, and better manage sizes around SIZE_MAX.
27482
27483 2010-12-13  Eric Blake  <eblake@redhat.com>
27484
27485         cloexec, fcntl: relax license
27486         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27487         consent from all contributors.
27488         * modules/fcntl (License): Likewise.
27489
27490 2010-12-10  Bruno Haible  <bruno@clisp.org>
27491
27492         Tests for module 'pipe-posix'.
27493         * modules/pipe-posix-tests: New file.
27494         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27495
27496 2010-12-10  Bruno Haible  <bruno@clisp.org>
27497
27498         pipe-posix: Make it work in C++ mode.
27499         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27500         (pipe): Use common idiom, not a macro definition.
27501         * lib/pipe.c: New file.
27502         * m4/pipe.m4: New file.
27503         * modules/pipe-posix (Description): Enhance.
27504         (Files): Add lib/pipe.c, m4/pipe.m4.
27505         (configure.ac): Invoke gl_FUNC_PIPE.
27506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27507         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27508         * tests/test-unistd-c++.cc: Check the signature of pipe.
27509
27510 2010-12-10  Bruno Haible  <bruno@clisp.org>
27511
27512         Rename module 'pipe' to 'spawn-pipe'.
27513         * modules/spawn-pipe: New file, renamed from modules/pipe.
27514         (Files, configure.ac, Makefile.am): Update.
27515         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27516         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27517         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27518         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27519         "spawn-pipe.h" instead of "pipe.h".
27520         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27521         to gl_SPAWN_PIPE.
27522         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27523         (Files, Makefile.am): Update.
27524         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27525         Update.
27526         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27527         Include "spawn-pipe.h" instead of "pipe.h".
27528         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27529         * lib/javacomp.c: Likewise.
27530         * lib/javaversion.c: Likewise.
27531         * lib/pipe-filter-gi.c: Likewise.
27532         * lib/pipe-filter-ii.c: Likewise.
27533         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27534         * modules/javacomp (Depends-on): Likewise.
27535         * modules/javaversion (Depends-on): Likewise.
27536         * modules/pipe-filter-gi (Depends-on): Likewise.
27537         * modules/pipe-filter-ii (Depends-on): Likewise.
27538         * MODULES.html.sh (Executing programs): Update.
27539         * NEWS: Mention the change.
27540
27541 2010-12-10  Eric Blake  <eblake@redhat.com>
27542
27543         pipe-posix: new module
27544         * modules/pipe-posix: New file.
27545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27546         (gl_UNISTD_H): Check for declaration.
27547         * modules/unistd (Makefile.am): Substitute it.
27548         * lib/unistd.in.h (pipe): Provide it for mingw.
27549         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27550         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27551
27552 2010-12-07  Bruno Haible  <bruno@clisp.org>
27553
27554         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27555         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27556         u8_strcmp_gnu.
27557         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27558
27559 2010-12-06  Bruno Haible  <bruno@clisp.org>
27560
27561         Update internal documentation.
27562         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27563
27564 2010-12-04  Bruno Haible  <bruno@clisp.org>
27565
27566         Put more information about failed tests into the test return codes.
27567         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27568         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27569         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27570         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27571         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27572         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27573         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27574         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27575         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27577         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27578         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27579         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27580         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27581         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27582         returns a bit mask.
27583         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27584         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27585         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27586         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27587         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27588         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27589         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27591         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27592         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27593         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27594         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27595         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27597         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27598         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27599         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27600         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27601         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27602         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27603         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27604         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27605         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27606         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27607         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27608         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27609         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27610         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27611         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27612         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27613         gl_PRINTF_PRECISION): Likewise.
27614         * m4/regex.m4 (gl_REGEX): Likewise.
27615         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27616         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27617         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27618         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27619         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27621         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27622         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27623         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27624         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27625         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27626         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27627         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27628         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27629         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27630         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27631         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27632         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27634         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27635         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27636         enumerated value.
27637         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27638
27639 2010-12-04  Bruno Haible  <bruno@clisp.org>
27640
27641         Update for Solaris 11 2010-11.
27642         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27643         Express, released in November 2010.
27644
27645 2010-12-04  Bruno Haible  <bruno@clisp.org>
27646
27647         nproc: Relax license.
27648         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27649         and Paul Eggert.
27650         Requested by Ludovic Courtès <ludo@gnu.org>.
27651
27652 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27653
27654         utimecmp: fine-grained src to nearby coarse-grained dest
27655
27656         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27657         and the source is on a file system with higher-resolution time
27658         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27659         not work, and the time stamps are close together, the algorithm to
27660         determine the exact resolution from the read-back mtime was buggy:
27661         it had a "!=" where it should have had an "==".  This bug has been
27662         in the code ever since it was introduced to gnulib.
27663         Problem reported by Dan Jacobson in
27664         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27665
27666 2010-11-30  Bruno Haible  <bruno@clisp.org>
27667
27668         strerror_r-posix: Fix autoconf test.
27669         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27670
27671 2010-11-28  Bruno Haible  <bruno@clisp.org>
27672             Paul Eggert  <eggert@cs.ucla.edu>
27673
27674         Tests for module 'getdomainname'.
27675         * modules/getdomainname-tests: New file.
27676         * tests/test-getdomainname.c: New file, based on
27677         tests/test-gethostname.c.
27678
27679 2010-11-28  Bruno Haible  <bruno@clisp.org>
27680             Paul Eggert  <eggert@cs.ucla.edu>
27681
27682         getdomainname: Use the system function when possible.
27683         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27684         (getdomainname): Replace if needed. Provide the declaration if it is
27685         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27686         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27687         (getdomainname): When the system has getdomainname, call the system
27688         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27689         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27690         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27691         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27692         the function if its second argument is of type 'int' or if it is found
27693         in libnsl.
27694         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27695         <sys/systeminfo.h> and sysinfo().
27696         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27698         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27699         HAVE_GETDOMAINNAME.
27700         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27701         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27702         * doc/glibc-functions/getdomainname.texi: Document the problems with
27703         the getdomainname declaration.
27704
27705 2010-11-28  Bruno Haible  <bruno@clisp.org>
27706
27707         sys_socket: Ensure ss_family field on AIX.
27708         * lib/sys_socket.in.h (ss_family): New macro definition.
27709         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27710         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27711         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27712         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27713         * modules/sys_socket (Makefile.am): Substitute
27714         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27715         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27716
27717 2010-11-27  Bruno Haible  <bruno@clisp.org>
27718
27719         readline: Improve configure output.
27720         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27721         "checking for readline..." result understandable.
27722
27723 2010-11-27  Bruno Haible  <bruno@clisp.org>
27724
27725         *printf-posix: Detect a bug on Solaris 10/x86.
27726         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27727         for floating-point output.
27728         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27729         directive.
27730         * tests/test-snprintf-posix.h (test_function): Likewise.
27731         * tests/test-sprintf-posix.h (test_function): Likewise.
27732         * tests/test-vasprintf-posix.c (test_function): Likewise.
27733         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27734         * doc/posix-functions/printf.texi: Likewise.
27735         * doc/posix-functions/snprintf.texi: Likewise.
27736         * doc/posix-functions/sprintf.texi: Likewise.
27737         * doc/posix-functions/vfprintf.texi: Likewise.
27738         * doc/posix-functions/vprintf.texi: Likewise.
27739         * doc/posix-functions/vsnprintf.texi: Likewise.
27740         * doc/posix-functions/vsprintf.texi: Likewise.
27741         * doc/glibc-functions/obstack_printf.texi: Likewise.
27742         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27743
27744 2010-11-27  Bruno Haible  <bruno@clisp.org>
27745
27746         Fix link error when module libunistring-optional is in use.
27747         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27748         * modules/striconveha-tests (Makefile.am): Likewise.
27749
27750 2010-11-27  Bruno Haible  <bruno@clisp.org>
27751
27752         regex: Mention link dependencies.
27753         * modules/regex (Link): New section.
27754         * modules/rpmatch (Link): Likewise.
27755         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27756
27757 2010-11-27  Bruno Haible  <bruno@clisp.org>
27758
27759         ftoastr: Fix compilation error on Solaris.
27760         * lib/ftoastr.c: Include <config.h>.
27761
27762 2010-11-27  Bruno Haible  <bruno@clisp.org>
27763
27764         getloadavg: Update documentation.
27765         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27766
27767 2010-11-27  Bruno Haible  <bruno@clisp.org>
27768
27769         sys_socket: Fix test whether the functions are declared.
27770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27771         not <sys/select.h>.
27772
27773 2010-11-27  Bruno Haible  <bruno@clisp.org>
27774
27775         getpass: Make sure to get system declaration on some platforms.
27776         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27777         gl_USE_SYSTEM_EXTENSIONS.
27778         * modules/getpass (Depends-on): Add extensions.
27779
27780 2010-11-26  Bruno Haible  <bruno@clisp.org>
27781
27782         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27783         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27784         'iconv' module is present.
27785         (ICONV_CONST): New macro.
27786         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27787         ICONV_CONST.
27788         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27789         set ICONV_CONST.
27790         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27791         here.
27792         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27793         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27794         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27795         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27796         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27797         present.
27798
27799 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27800
27801         ftoastr: comment fix
27802         * lib/ftoastr.c: "little" -> "little or no" in comment
27803
27804 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27805
27806         stdint: port to GCC 4.3 + OSX + Octave
27807         On this platform, stdint.h is buggy and defines int64_t to long
27808         long int.  The replacement defined it to long int, causing
27809         problems with C++ style name mangling.  Instead, trust the system
27810         definition if INT64_MAX is defined, and likewise for the unsigned
27811         variant.   Problem reported by Jarno Rajahalme in
27812         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27813         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27814         and don't mess with int64_t and INT64_MAX in this case.
27815         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27816
27817 2010-11-24  Bruno Haible  <bruno@clisp.org>
27818
27819         doc: Corrections regarding MacOS X 10.4 and 10.5.
27820         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27821         MacOS X.
27822         Reported by Simon Josefsson.
27823
27824 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27825
27826         Uninstall ".bin" files installed by relocwrapper.
27827         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27828         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27829         unless it is already there.
27830
27831 2010-11-21  Bruno Haible  <bruno@clisp.org>
27832
27833         Update for NetBSD 5.0.
27834         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27835         NetBSD; the test fails on NetBSD 5.0.
27836         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27837         about NetBSD.
27838
27839 2010-11-21  Bruno Haible  <bruno@clisp.org>
27840
27841         Update for HP-UX 11.23 and HP-UX 11.31.
27842         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27843         HP-UX.
27844
27845 2010-11-21  Bruno Haible  <bruno@clisp.org>
27846
27847         Update for MacOS X 10.5.
27848         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27849         MacOS X; the test fails on MacOS X 10.5.8.
27850         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27851         about MacOS X.
27852
27853 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27854
27855         bootstrap: add bootstrap_sync option.
27856         See discussion at
27857         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27858         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27859         * build-aux/bootstrap: Accept --bootstrap-sync to update
27860         bootstrap if it is not identical to the local gnulib's
27861         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27862         enable this by default.  Accept --no-bootstrap-sync to disable
27863         it.
27864
27865 2010-11-20  Bruno Haible  <bruno@clisp.org>
27866
27867         Ensure that <features.h> is included before __GLIBC__ is tested.
27868         * lib/printf-parse.h: Include <features.h>.
27869         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27870         Reported by Mike Frysinger <vapier@gentoo.org>.
27871
27872         Ensure that <features.h> is included before __GLIBC__ is tested.
27873         * lib/wchar.in.h: Include <features.h>.
27874         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27875         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27876         Reported by Mike Frysinger <vapier@gentoo.org>.
27877
27878         Ensure that <features.h> is included before __GLIBC__ is tested.
27879         * lib/arpa_inet.in.h: Include <features.h>.
27880         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27881         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27882         Reported by Mike Frysinger <vapier@gentoo.org>.
27883
27884         Ensure that <features.h> is included before __GLIBC__ is tested.
27885         * build-aux/link-warning.h: Include <features.h>.
27886         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27887         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27888         Reported by Mike Frysinger <vapier@gentoo.org>.
27889
27890         Ensure that <features.h> is included before __GLIBC__ is tested.
27891         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27892         Reported by Mike Frysinger <vapier@gentoo.org>.
27893
27894 2010-11-20  Bruno Haible  <bruno@clisp.org>
27895
27896         memmem: Fix autoconf test.
27897         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27898
27899 2010-11-20  Bruno Haible  <bruno@clisp.org>
27900
27901         Port to uClibc.
27902         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27903         * lib/fcntl.in.h: Likewise.
27904         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27905         * lib/mbrtowc.c (mbrtowc): Likewise.
27906         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27907         * lib/strerror_r.c: Likewise.
27908         * lib/unistr/u8-strnlen.c: Likewise.
27909         * lib/vasnprintf.c (decimal_point_char): Likewise.
27910         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27911         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27912         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27913         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27914         * tests/test-sigaction.c (handler, main): Likewise.
27915         * lib/freading.h: Treat uClibc like a non-glibc platform.
27916         * lib/freading.c: Likewise.
27917         * lib/gettext.h: Likewise.
27918         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27919         Likewise.
27920         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27921         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27922         * lib/propername.c (proper_name_utf8): Likewise.
27923         * lib/spawn.in.h: Likewise.
27924         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27925         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27926         mem_cd_iconveh_internal): Likewise.
27927         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27928         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27929         strstr, strcasestr): Likewise.
27930         * lib/unicodeio.c (unicode_to_mb): Likewise.
27931         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27932         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27933         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27934         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27935         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27936         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27937         * lib/unistr/u8-stpncpy.c: Likewise.
27938         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27939         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27940         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27941         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27942         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27944         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27946         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27947         Likewise.
27948         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27949         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27950         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27951         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27952         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27953         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27954         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27955         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27956         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27957         * tests/test-striconveha.c (main): Likewise.
27958         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27959         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27960         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27961         * doc/posix-functions/getline.texi: Likewise.
27962         Reported by Mike Frysinger <vapier@gentoo.org>.
27963
27964 2010-11-20  Bruno Haible  <bruno@clisp.org>
27965
27966         nproc: Fix condition.
27967         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27968         HAVE_PTHREAD_AFFINITY_NP.
27969
27970 2010-11-20  Bruno Haible  <bruno@clisp.org>
27971
27972         Fix a comment.
27973         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27974
27975 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27976
27977         ftoastr: don't assume snprintf
27978         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27979         Implement a subset of snprintf here, by using sprintf safely.
27980         * modules/ftoastr (Depends-on): Remove snprintf.
27981
27982 2010-11-19  Jim Meyering  <meyering@redhat.com>
27983
27984         test-rename.h: fix compilation failure
27985         * tests/test-rename.h (test_rename): Add omitted "}".
27986
27987 2010-11-17  Jim Meyering  <meyering@redhat.com>
27988
27989         maint.mk: add a URL discussing the no-@acronym policy
27990         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27991
27992 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27993
27994         ftoastr: depend on snprintf, improve comments
27995         * lib/ftoastr.c: Also mention Loitsch's draft.
27996         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27997         needed in the current implementation, but it might simplify
27998         speeding up the code later.
27999         * modules/ftoastr: Depend on snprintf; this improves portability.
28000         Suggested by Bruno Haible in the same email.
28001
28002         ftoastr: port to hosts lacking strtof and strtold
28003         Problem reported by Bruno Haible in
28004         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28005         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28006         environment and strtold (and presumably strtof) are not available.
28007         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28008         (configure.ac): Require gl_C99_STRTOLD.
28009
28010 2010-11-18  Bruno Haible  <bruno@clisp.org>
28011
28012         c-strtold: Avoid link error on AIX 7.
28013         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28014         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28015         (gl_C_STRTOLD): Test whether strtold_l exists.
28016         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28017
28018 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28019
28020         intprops: new macro INT_BITS_STRLEN_BOUND
28021         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28022         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28023         not exposed.  Also, it uses a slightly tighter bound than before;
28024         though this makes no practical difference, we might as well be as
28025         tight as we easily can.
28026
28027         ftoastr: new module, for lossless conversion of floats to short strings
28028         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28029         * modules/ftoastr: New files.
28030
28031 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28032
28033         bootstrap: port to Solaris sed
28034         * build-aux/bootstrap (get_version): Port to Solaris sed.
28035         See Ralf Wildenhues's note in
28036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28037
28038 2010-11-14  Jim Meyering  <meyering@redhat.com>
28039
28040         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28041         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28042         and move definition closer to sole use.
28043
28044 2010-11-13  Jim Meyering  <meyering@redhat.com>
28045
28046         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28047         Now we require at least autoconf-2.59, which means the work-around
28048         is no longer needed.
28049         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28050         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28051         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28052         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28053         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28054
28055 2010-11-13  Bruno Haible  <bruno@clisp.org>
28056
28057         rename, renameat: Avoid test failures at NFS mounted locations.
28058         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28059         functions.
28060         (test_rename): Use assert_nonexistent.
28061         * tests/test-rename.c: Include <dirent.h>.
28062         * tests/test-renameat.c: Likewise.
28063         Reported by Gary V. Vaughan <gary@gnu.org>.
28064
28065         rename, renameat: Document Linux bug with NFS
28066         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28067         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28068         * doc/posix-functions/renameat.texi: Likewise.
28069         Suggested by Eric Blake.
28070
28071 2010-11-13  Bruno Haible  <bruno@clisp.org>
28072
28073         rename test: Add comments.
28074         * tests/test-rename.h (test_rename): Add structure and comments.
28075
28076 2010-11-13  Eric Blake  <eblake@redhat.com>
28077
28078         maintainer-makefile: cover a few more files
28079         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28080         scripts generated within C files, for libvirt.
28081
28082 2010-11-13  Bruno Haible  <bruno@clisp.org>
28083
28084         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28085         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28086         character, return the number of bytes that belong together, not always
28087         1.
28088         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28089         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28090         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28091         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28092         number of bytes of an invalid character.
28093         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28094         (main): Invoke it.
28095         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28096         results.
28097         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28098         malformed byte sequences.
28099         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28100         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28101         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28102         Reported by Ben Pfaff and Paolo Bonzini.
28103
28104 2010-11-13  Bruno Haible  <bruno@clisp.org>
28105
28106         openat: Work around glibc bug with fchownat() and empty file names.
28107         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28108         (gl_FUNC_FCHOWNAT): Invoke it.
28109         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28110         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28111         Reported by Gary V. Vaughan <gary@gnu.org>.
28112
28113 2010-11-13  Bruno Haible  <bruno@clisp.org>
28114
28115         openat: Ensure autoconf macro ordering.
28116         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28117         gl_USE_SYSTEM_EXTENSIONS.
28118         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28119
28120 2010-11-13  Bruno Haible  <bruno@clisp.org>
28121
28122         Update comments.
28123         * lib/unistr/u8-check.c: Update file name in comments.
28124         * lib/unistr/u8-mblen.c: Likewise.
28125         * lib/unistr/u8-prev.c: Likewise.
28126         * lib/unistr/u8-strmblen.c: Likewise.
28127         * lib/unistr/u8-strmbtouc.c: Likewise.
28128
28129 2010-11-13  Jim Meyering  <meyering@redhat.com>
28130
28131         tests: avoid test failure on Solaris 10 due to lack of PATH export
28132         * tests/test-update-copyright.sh: Don't forget to export PATH.
28133
28134         init.sh: ensure that IFS is defined, just in case...
28135         * tests/init.sh (setup_): Ensure that IFS is defined,
28136         so that saving and restoring it works as expected.  This
28137         appears to be useful at least for an old version of dash
28138         from a long time ago (RH 6).  See here for details:
28139         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28140
28141         maint.mk: tighten "test a == b" check
28142         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28143         test to files that contain something like #!/bin/sh.
28144         Without this, coreutils would get two false positives in
28145         the comments of C source files.
28146
28147 2010-11-12  Eric Blake  <eblake@redhat.com>
28148
28149         bootstrap: fix typo in previous attempt
28150         * build-aux/bootstrap (buildreq): Correct the grouping.
28151         Reported by Paul Eggert.
28152
28153         maintainer-makefile: prohibit test x == x
28154         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28155         Based on a report by Matthias Bolte.
28156
28157         bootstrap: allow FreeBSD gzip
28158         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28159         which has no '.' and goes to stderr.
28160         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28161         Reported by Matthias Bolte.
28162
28163         maintainer-makefile: check for i18n setup
28164         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28165         will likely work.
28166
28167 2010-11-12  Bruno Haible  <bruno@clisp.org>
28168
28169         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28170         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28171         * lib/nanosleep.c (nanosleep): Likewise.
28172
28173 2010-11-11  Bruno Haible  <bruno@clisp.org>
28174
28175         fcntl-h: Fix for use of C++ on glibc systems.
28176         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28177         also on glibc systems in C++ mode.
28178         Reported by Gary V. Vaughan <gary@gnu.org>.
28179
28180 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28181
28182         mknod: avoid false failure with dash
28183         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28184
28185 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28186
28187         unlink: Fix "is it should" typo in diagnostic.
28188         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28189         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28190
28191 2010-11-11  Bruno Haible  <bruno@clisp.org>
28192
28193         Tests for module 'strerror_r-posix'.
28194         * modules/strerror_r-posix-tests: New file.
28195         * tests/test-strerror_r.c: New file.
28196         * tests/test-string-c++.cc: Check the signature of strerror_r.
28197
28198         New module 'strerror_r-posix'.
28199         * lib/string.in.h (strerror_r): New declaration.
28200         * lib/strerror_r.c: New file.
28201         * m4/strerror_r.m4: New file.
28202         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28203         of strerror_r.
28204         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28205         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28206         * modules/strerror_r-posix: New file.
28207         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28208         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28209         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28210         portability problems.
28211
28212 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28213
28214         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28215         line is also considered for output. Quoted function name in shell
28216         command, so temporary files for functions like MyClass::operator()
28217         are removed correctly without errors.
28218
28219 2010-11-09  Bruno Haible  <bruno@clisp.org>
28220
28221         * doc/posix-functions/strerror.texi: List more failing platforms.
28222
28223         * doc/posix-functions/strerror.texi: Add a comment.
28224
28225 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28226
28227         fdopendir: fix bug on MacOS X when low on file descriptors
28228
28229         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28230         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28231         All callers changed.
28232         (fdopendir): Invoke save_cwd at the top level, not after using
28233         multiple dup() calls to use up file descriptors.  Then retry
28234         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28235         less than the maximum number of open file descriptors, because
28236         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28237         on Mac OS X 10.6.4 for tar 1.24
28238         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28239         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28240         and for tar 1.25
28241         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28242
28243 2010-11-07  Bruno Haible  <bruno@clisp.org>
28244
28245         vasnprintf: Support I flag on glibc systems.
28246         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28247         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28248         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28249         snprintf function.
28250         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28251         glibc systems.
28252         * tests/test-vasnprintf-posix3.c: New file.
28253         * modules/vasnprintf-posix-tests (Files): Add it.
28254         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28255
28256 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28257
28258         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28259         * MODULES.html.sh: For compiler warnings, use name
28260         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28261
28262 2010-11-05  Eric Blake  <eblake@redhat.com>
28263
28264         ceil, floor: avoid spurious failure with icc
28265         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28266         [denormals-as-zero] when optimizing without -mieee-fp option.
28267         * tests/test-floorf2.c (floorf_reference): Likewise.
28268         * tests/test-ceilf1.c (dummy): New function.
28269         (main): Use it to outsmart icc's optimization.
28270         * tests/test-floorf1.c (dummy, main): Likewise.
28271
28272         tests: require working signbit
28273         * modules/ceilf-tests (Depends-on): Add signbit.
28274         * modules/ceill-tests (Depends-on): Likewise.
28275         * modules/floorf-tests (Depends-on): Likewise.
28276         * modules/floorl-tests (Depends-on): Likewise.
28277         * modules/round-tests (Depends-on): Likewise.
28278         * modules/roundf-tests (Depends-on): Likewise.
28279         * modules/roundl-tests (Depends-on): Likewise.
28280         * modules/trunc-tests (Depends-on): Likewise.
28281         * modules/truncf-tests (Depends-on): Likewise.
28282         * modules/truncl-tests (Depends-on): Likewise.
28283
28284         strtod: work around icc bug
28285         * lib/strtod.c (minus_zero): Define to working value.
28286         (strtod): Use it to avoid icc bug.
28287
28288         copysign: enhance tests
28289         * modules/copysign-tests (Files): Add minus-zero.h.
28290         * tests/test-copysign.c (main): Also test zeros.
28291
28292 2010-11-04  Eric Blake  <eblake@redhat.com>
28293
28294         ceil, floor, round, trunc: enhance tests of -0
28295         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28296         * tests/test-ceill.c (main): Likewise.
28297         * tests/test-floorf1.c (main): Likewise.
28298         * tests/test-floorl.c (main): Likewise.
28299         * tests/test-round1.c (main): Likewise.
28300         * tests/test-roundf1.c (main): Likewise.
28301         * tests/test-roundl.c (main): Likewise.
28302         * tests/test-trunc1.c (main): Likewise.
28303         * tests/test-truncf1.c (main): Likewise.
28304         * tests/test-truncl.c (main): Likewise.
28305
28306 2010-11-04  Eric Blake  <eblake@redhat.com>
28307
28308         frexp, tests: work around ICC bug with -zero
28309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28310         works with more compilers.
28311         * tests/minus-zero.h: New file.
28312         * modules/ceilf-tests (Files): Include it.
28313         * modules/ceill-tests (Files): Likewise.
28314         * modules/floorf-tests (Files): Likewise.
28315         * modules/floorl-tests (Files): Likewise.
28316         * modules/frexp-nolibm-tests (Files): Likewise.
28317         * modules/frexp-tests (Files): Likewise.
28318         * modules/frexpl-nolibm-tests (Files): Likewise.
28319         * modules/frexpl-tests (Files): Likewise.
28320         * modules/isnan-tests (Files): Likewise.
28321         * modules/isnand-nolibm-tests (Files): Likewise.
28322         * modules/isnand-tests (Files): Likewise.
28323         * modules/isnanf-nolibm-tests (Files): Likewise.
28324         * modules/isnanf-tests (Files): Likewise.
28325         * modules/isnanl-nolibm-tests (Files): Likewise.
28326         * modules/isnanl-tests (Files): Likewise.
28327         * modules/round-tests (Files): Likewise.
28328         * modules/roundf-tests (Files): Likewise.
28329         * modules/roundl-tests (Files): Likewise.
28330         * modules/ldexpl-tests (Files): Likewise.
28331         * modules/signbit-tests (Files): Likewise.
28332         * modules/snprintf-posix-tests (Files): Likewise.
28333         * modules/sprintf-posix-tests (Files): Likewise.
28334         * modules/strtod-tests (Files): Likewise.
28335         * modules/trunc-tests (Files): Likewise.
28336         * modules/truncf-tests (Files): Likewise.
28337         * modules/truncl-tests (Files): Likewise.
28338         * modules/vsnprintf-posix-tests (Files): Likewise.
28339         * modules/vsprintf-posix-tests (Files): Likewise.
28340         * modules/vasnprintf-posix-tests (Files): Likewise.
28341         * modules/vasprintf-posix-tests (Files): Likewise.
28342         * tests/test-ceilf1.c (main): Use it.
28343         * tests/test-ceill.c (main): Likewise.
28344         * tests/test-floorf1.c (main): Likewise.
28345         * tests/test-floorl.c (main): Likewise.
28346         * tests/test-frexp.c (main): Likewise.
28347         * tests/test-frexpl.c (main): Likewise.
28348         * tests/test-isnan.c (main): Likewise.
28349         * tests/test-isnand.h (main): Likewise.
28350         * tests/test-isnanf.h (main): Likewise.
28351         * tests/test-isnanl.h (main): Likewise.
28352         * tests/test-ldexpl.c (main): Likewise.
28353         * tests/test-round.c (main): Likewise.
28354         * tests/test-roundf.c (main): Likewise.
28355         * tests/test-roundl.c (main): Likewise.
28356         * tests/test-signbit.c (test_signbitf, test_signbitd)
28357         (test_signbitl): Likewise.
28358         * tests/test-snprintf-posix.h (test_function): Likewise.
28359         * tests/test-sprintf-posix.h (test_function): Likewise.
28360         * tests/test-strtod.c (main): Likewise.
28361         * tests/test-trunc1.c (main): Likewise.
28362         * tests/test-truncf1.c (main): Likewise.
28363         * tests/test-truncl.c (main): Likewise.
28364
28365         isnanl: work around icc bug
28366         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28367
28368 2010-11-03  Eric Blake  <eblake@redhat.com>
28369
28370         tests: fix compiler warnings
28371         * tests/test-getopt.h (test_getopt): Fix condition.
28372         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28373         * tests/test-pipe2.c (main): Likewise.
28374         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28375
28376         utimens: fix broken m4 test
28377         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28378
28379 2010-10-28  Bruno Haible  <bruno@clisp.org>
28380
28381         posix_spawn*, getdtablesize: Relax license.
28382         * modules/posix_spawn (License): Change to LGPLv2+.
28383         * modules/posix_spawnp (License): Likewise.
28384         * modules/posix_spawn-internal (License): Likewise.
28385         * modules/posix_spawnattr_init (License): Likewise.
28386         * modules/posix_spawnattr_getflags (License): Likewise.
28387         * modules/posix_spawnattr_setflags (License): Likewise.
28388         * modules/posix_spawnattr_getpgroup (License): Likewise.
28389         * modules/posix_spawnattr_setpgroup (License): Likewise.
28390         * modules/posix_spawnattr_getschedparam (License): Likewise.
28391         * modules/posix_spawnattr_setschedparam (License): Likewise.
28392         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28393         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28394         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28395         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28396         * modules/posix_spawnattr_getsigmask (License): Likewise.
28397         * modules/posix_spawnattr_setsigmask (License): Likewise.
28398         * modules/posix_spawnattr_destroy (License): Likewise.
28399         * modules/posix_spawn_file_actions_init (License): Likewise.
28400         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28401         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28402         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28403         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28404         * modules/getdtablesize (License): Likewise.
28405         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28406
28407 2010-10-26  Bruno Haible  <bruno@clisp.org>
28408
28409         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28410         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28411         Cygwin and mingw.
28412         Suggested by Eric Blake.
28413
28414 2010-10-26  Bruno Haible  <bruno@clisp.org>
28415
28416         stdio: Work around compilation error due to renameat() on Solaris 10.
28417         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28418         * lib/renameat.c: Don't include <unistd.h> here.
28419         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28420         Reported by Paul Eggert and Eric Blake.
28421
28422 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28423
28424         renameat: port to Solaris 10, which declares renameat in unistd.h
28425
28426         * lib/renameat.c: Include unistd.h before stdio.h, because
28427         Solaris 10 declares renameat in unistd.h.  Problem encountered
28428         when building GNU tar 1.24 on Solaris 10.
28429
28430 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28431
28432         fdopendir: fix C89 compilation
28433         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28434         compilers.
28435
28436 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28437
28438         inttostr: simplify by removing unnecessary redundancy
28439         * lib/anytostr.c: Don't include verify.h.
28440         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28441         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28442         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28443         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28444         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28445         Likewise.
28446         * modules/inttostr (Depends-on): Remove 'verify'.
28447
28448 2010-10-23  Bruno Haible  <bruno@clisp.org>
28449
28450         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28451         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28452         Reported by Eric Blake.
28453
28454 2010-10-23  Bruno Haible  <bruno@clisp.org>
28455
28456         Tests: Fix LOCALE_JA on MirBSD 10.
28457         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28458         to an UTF-8 locale.
28459         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28460         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28461         Reported by Eric Blake.
28462
28463 2010-10-21  Bruno Haible  <bruno@clisp.org>
28464
28465         nl_langinfo test: Avoid test failure on NetBSD 5.
28466         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28467         Reported by Eric Blake.
28468
28469 2010-10-21  Eric Blake  <eblake@redhat.com>
28470
28471         c-stack: work around libsigsegv 2.8 bug
28472         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28473         overflow on at least PowerPC64.
28474
28475 2010-10-17  Bruno Haible  <bruno@clisp.org>
28476
28477         userspec: Drop redundant file.
28478         * modules/userspec (Files): Remove lib/inttostr.h.
28479
28480 2010-10-17  Bruno Haible  <bruno@clisp.org>
28481
28482         nl_langinfo tests: Silence some warnings.
28483         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28484         Reported by Jim Meyering.
28485
28486 2010-10-17  Bruno Haible  <bruno@clisp.org>
28487
28488         Make use of GCC's attribute __alloc_size__.
28489         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28490         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28491         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28492         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28493         __alloc_size__.
28494         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28495         Suggested by Jim Meyering.
28496
28497 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28498
28499         bootstrap: anchor .gitignore entries.
28500         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28501         with...
28502         (insert_vc_ignore): ... this new function, which prepends `/' to
28503         all .gitignore entries before passing them to
28504         insert_sorted_if_absent.
28505
28506 2010-10-16  Bruno Haible  <bruno@clisp.org>
28507
28508         nextafter: Fix configure check.
28509         * modules/nextafter (configure.ac): Correct expected prototype.
28510
28511 2010-10-16  Bruno Haible  <bruno@clisp.org>
28512
28513         termios: Update documentation.
28514         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28515
28516 2010-10-16  Bruno Haible  <bruno@clisp.org>
28517
28518         tests: Make them compile with TinyCC.
28519         * tests/test-strstr.c (main): Remove parentheses around array
28520         initializer.
28521
28522 2010-10-15  Eric Blake  <eblake@redhat.com>
28523
28524         ignore-value: make header idempotent
28525         * lib/ignore-value.h: Add double-inclusion guards.
28526         Reported by Stefan Berger.
28527
28528 2010-10-15  Jim Meyering  <meyering@redhat.com>
28529
28530         GNUmakefile: handle "stable" target, not "major"
28531         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28532         lists in maint.mk and announce-gen.  Without this, "make stable"
28533         would fail to ensure that $(VERSION) is up to date.
28534
28535 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28536
28537         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28538         & co.
28539
28540 2010-10-14  Bruno Haible  <bruno@clisp.org>
28541
28542         vasnprintf: Don't set errno to 0.
28543         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28544         block that sets it to 0.
28545         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28546
28547 2010-10-14  Bruno Haible  <bruno@clisp.org>
28548
28549         socketlib: Fix.
28550         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28551         gl_PREREQ_SYS_H_WINSOCK2.
28552         Reported by Ian Beckwith <ianb@erislabs.net>.
28553
28554 2010-10-13  Jim Meyering  <meyering@redhat.com>
28555
28556         test-select-stdin.c: avoid warn_unused_result warnings
28557         * tests/test-select-stdin.c: Include "macros.h".
28558         ASSERT that read and fflush succeed.
28559
28560 2010-10-13  Jim Meyering  <meyering@redhat.com>
28561
28562         git-version-gen: do require git-VC'd files in cwd
28563         * build-aux/git-version-gen: Reject a git version string
28564         if there are no commits associated with the current directory.
28565         This avoids an unlikely false-positive (unrelated dir whose parent
28566         repository also contains a tag matching v*), as pointed out
28567         by Giuseppe Scrivano in
28568         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28569
28570 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28571
28572         argv-iter: omit nonconforming declaration
28573         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28574         enum arg_iter_err declaration, which doesn't conform to C99.
28575         Solaris 10 cc warns about this.
28576
28577 2010-10-13  Eric Blake  <eblake@redhat.com>
28578
28579         termios: fix compilation on mingw
28580         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28581         (gl_TERMIOS_H): Adjust it on mingw.
28582         * modules/termios (Makefile.am): Substitute new key.
28583         * lib/termios.in.h (includes): Make include_next conditional.
28584         * doc/posix-headers/termios.texi (termios.h): Update
28585         documentation.
28586         Reported by Daniel P. Berrange.
28587
28588 2010-10-13  Jim Meyering  <meyering@redhat.com>
28589
28590         git-version-gen: don't require that .git/ be in the current dir
28591         * build-aux/git-version-gen: Adjust this script so that it works
28592         when run from any working directory beneath the top-level .git/-
28593         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28594         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28595
28596         test-select: avoid warn_unused_result warnings
28597         * tests/test-select.c: Include "macros.h".
28598         ASSERT that each call to read, write, and pipe succeeds.
28599         While not technically required, also check each "close".
28600         * modules/select-tests (Files): Add tests/macros.h.
28601
28602         test-symlinkat: remove declaration of unused local
28603         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28604
28605         test-inttostr: avoid shadowing warnings
28606         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28607         and use malloc rather than the stack for the same reason as
28608         mentioned in the comment justifying the other allocation.
28609
28610 2010-10-11  Bruno Haible  <bruno@clisp.org>
28611
28612         stdlib: Allow multiple gnulib generated replacements to coexist.
28613         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28614         Reported by Sam Steingold <sds@gnu.org>.
28615
28616 2010-10-11  Jim Meyering  <meyering@redhat.com>
28617
28618         fix a documentation typo
28619         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28620
28621 2010-10-11  Eric Blake  <eblake@redhat.com>
28622
28623         futimens: work around Solaris 11 bug
28624         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28625         * tests/test-futimens.h (test_futimens): Enhance, rather than
28626         weaken test.
28627         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28628
28629 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28630
28631         Indentation.
28632         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28633         higher-level operators more to the left.
28634
28635 2010-10-11  Jim Meyering  <meyering@redhat.com>
28636
28637         test-futimens: avoid unwarranted test failure on Solaris 5.11
28638         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28639         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28640         because it tries to dereference the NULL name argument.
28641
28642 2010-10-11  Bruno Haible  <bruno@clisp.org>
28643
28644         Indentation.
28645         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28646         indentation.
28647
28648 2010-10-11  Jim Meyering  <meyering@redhat.com>
28649
28650         spawn.in.h: make indentation consistent with parentheses
28651         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28652         Make indentation consistent with parentheses.
28653
28654 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28655
28656         Fix mismatched parens in previous commit
28657         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28658         parens.
28659
28660 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28661
28662         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28663
28664         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28665         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28666         * lib/malloca.c: Include "verify.h".
28667         (verify1): Remove, replacing with a verify call.
28668         * lib/relocwrapper.c (verify1): Likewise.
28669         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28670         Likewise.
28671         * modules/malloca (Depends-on): Add 'verify'.
28672         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28673         * modules/vasnprintf (Depends-on): Add 'verify'.
28674         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28675         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28676         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28677         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28678         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28679         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28680         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28681
28682         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28683
28684         Formerly the style was sometimes 2*X - 1, because the C standard
28685         was wrongly thought to disallow ?: in integral constant expressions.
28686         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28687         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28688         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28689         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28690         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28691         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28692         verify that time_t cannot be floating.
28693
28694 2010-10-08  Eric Blake  <eblake@redhat.com>
28695
28696         time: enforce recent POSIX ruling that time_t is integral
28697         * lib/time.in.h (__time_t_must_be_integral): Detect any
28698         problematic systems, allowing the rest of gnulib to assume POSIX.
28699
28700 2010-10-08  Jim Meyering  <meyering@redhat.com>
28701
28702         fdopendir: fix a bug on systems lacking openat and /proc support
28703         OpenBSD 4.7 is one such system.  The most noticeable effect was
28704         failure of any application making nontrivial use of fts: rm, du,
28705         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28706           ./rm: traversal failed: `a': Bad file descriptor
28707         Debugging that, you see that even though FD 6 was closed just
28708         prior to the opendir call in fd_clone_opendir, its resulting
28709         dir->dd_fd was 8, rather than the expected value of 6:
28710
28711         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28712         93                close (fd);
28713         (gdb) n
28714         94                dir = fd_clone_opendir (dupfd);
28715         (gdb) n
28716         95                saved_errno = errno;
28717         (gdb) p dir->dd_fd
28718         $11 = 8
28719
28720         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28721         The problem is that on OpenBSD, fd_clone_opendir has to resort
28722         to using the old-style save/restore CWD mechanism, due to its
28723         lack of openat/proc support, and *that* would steal the FD (6)
28724         that opendir was supposed to use.
28725
28726         The fix is to squirrel away the desired FD so that save_cwd uses a
28727         different one, and then free the dest FD right before calling opendir.
28728         That guarantees opendir will use the required file descriptor.
28729
28730         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28731
28732 2010-10-08  Bruno Haible  <bruno@clisp.org>
28733
28734         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28735         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28736
28737 2010-10-08  Bruno Haible  <bruno@clisp.org>
28738
28739         nanosleep: Make replacement POSIX compliant.
28740         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28741         is out of range.
28742         Reported by Jim Meyering.
28743
28744 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28745
28746         bootstrap: add hook for altering gnulib.mk, for Bison
28747         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28748         the Bison bootstrapping process can rewrite file names and variables
28749         in this file before later parts of 'bootstrap' use the file.
28750         Bison wants to include lib/gnulib.mk from the top-level makefile,
28751         so it needs the file names in this file to be relative to the top
28752         level, not relative to lib; plus it needs variable names to be
28753         rewritten.
28754         (slurp): Use the new function.
28755
28756         bootstrap: reformat for readability
28757         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28758
28759 2010-10-08  Eric Blake  <eblake@redhat.com>
28760
28761         docs: update cygwin progress
28762         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28763         1.7.7.
28764         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28765         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28766         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28767         * doc/posix-functions/carg.texi (carg): Likewise.
28768         * doc/posix-functions/cargf.texi (cargf): Likewise.
28769         * doc/posix-functions/casin.texi (casin): Likewise.
28770         * doc/posix-functions/casinf.texi (casinf): Likewise.
28771         * doc/posix-functions/casinh.texi (casinh): Likewise.
28772         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28773         * doc/posix-functions/catan.texi (catan): Likewise.
28774         * doc/posix-functions/catanf.texi (catanf): Likewise.
28775         * doc/posix-functions/catanh.texi (catanh): Likewise.
28776         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28777         * doc/posix-functions/ccos.texi (ccos): Likewise.
28778         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28779         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28780         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28781         * doc/posix-functions/cexp.texi (cexp): Likewise.
28782         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28783         * doc/posix-functions/cimag.texi (cimag): Likewise.
28784         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28785         * doc/posix-functions/clog.texi (clog): Likewise.
28786         * doc/posix-functions/clogf.texi (clogf): Likewise.
28787         * doc/posix-functions/conj.texi (conj): Likewise.
28788         * doc/posix-functions/conjf.texi (conjf): Likewise.
28789         * doc/posix-functions/cpow.texi (cpow): Likewise.
28790         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28791         * doc/posix-functions/cproj.texi (cproj): Likewise.
28792         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28793         * doc/posix-functions/creal.texi (creal): Likewise.
28794         * doc/posix-functions/crealf.texi (crealf): Likewise.
28795         * doc/posix-functions/csin.texi (csin): Likewise.
28796         * doc/posix-functions/csinf.texi (csinf): Likewise.
28797         * doc/posix-functions/csinh.texi (csinh): Likewise.
28798         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28799         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28800         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28801         * doc/posix-functions/ctan.texi (ctan): Likewise.
28802         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28803         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28804         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28805         * doc/posix-headers/complex.texi (complex.h): Likewise.
28806
28807 2010-10-07  Jim Meyering  <meyering@redhat.com>
28808
28809         parse-datetime: avoid compilation failure on OpenBSD 4.7
28810         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28811         This works around a compilation failure on OpenBSD 4.7:
28812         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28813
28814 2010-10-07  Eric Blake  <eblake@redhat.com>
28815
28816         docs: update cygwin progress
28817         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28818         1.7.6.
28819         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28820         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28821         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28822         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28823         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28824         Likewise.
28825         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28826         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28827         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28828         Likewise.
28829         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28830         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28831         Likewise.
28832         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28833         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28834         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28835         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28836         Likewise.
28837         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28838         Likewise.
28839         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28840
28841         docs: update parse-datetime history
28842         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28843         documentation of this function's history and alternatives.
28844
28845         cygwin: use more robust version check
28846         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28847         exclude an eventual cygwin 1.9.1.
28848         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28849         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28850         (gl_FUNC_STRCASESTR): Likewise.
28851         Reported by Bruno Haible.
28852
28853 2010-10-06  Bruno Haible  <bruno@clisp.org>
28854
28855         string, sys_select: Avoid #including large headers unless necessary.
28856         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28857         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28858         OSF/1, BeOS, Haiku.
28859         Reported by Jim Meyering.
28860
28861 2010-10-05  Eric Blake  <eblake@redhat.com>
28862
28863         memmem, strstr, strcasestr: fix bug with long periodic needle
28864         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28865         periodic needle having false positive.
28866         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28867         and cygwin 1.7.7.
28868         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28869         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28870         (gl_FUNC_STRCASESTR): Likewise.
28871         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28872         * tests/test-memmem.c (main): Expose the bug.
28873         * tests/test-strcasestr.c (main): Likewise.
28874         * tests/test-strstr.c (main): Likewise.
28875         * tests/test-c-strcasestr.c (main): Likewise.
28876         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28877         * doc/posix-functions/strstr.texi (strstr): Likewise.
28878         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28879         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28880
28881 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28882
28883         parse-datetime: do some more renaming
28884         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28885         parse_datetime, not get_date.  Mention the renaming.
28886         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28887         in comments.
28888         * m4/bison.m4: Likewise.
28889
28890 2010-10-05  Eric Blake  <eblake@redhat.com>
28891
28892         parse-datetime: better name than get_date
28893         * NEWS: Reword the deprecation notice.
28894         * modules/get_date: Rename to modules/parse-datetime.
28895         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28896         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28897         * lib/get_date.y: Rename to lib/parse-datetime.y.
28898         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28899         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28900         * doc/getdate.texi: Provide fallback wrapper.
28901         * lib/getdate.h: Move guts, and wrap...
28902         * lib/parse-datetime.h: ...new file.
28903         * lib/parse-datetime.y (get_date): Rename...
28904         (parse_datetime): ...to this.
28905         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28906         (gl_PARSE_DATETIME): ...to this.
28907         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28908         documentation.
28909         * modules/getdate (Files): Provide fallback docs and header.
28910         (Notice, Depends-on): Update references.
28911         * tests/test-parse-datetime.c: Likewise.
28912         * DEPENDENCIES: Likewise.
28913         * MODULES.html.sh (Date and time <time.h>): Likewise.
28914         * doc/parse-datetime.texi (Date input formats)
28915         (Authors of parse_datetime): Likewise.
28916         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28917         (Include): Likewise.
28918         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28919         * gnulib-tool: Likewise.
28920         * m4/bison.m4 (gl_BISON): Likewise.
28921         Suggested by Bruno Haible.
28922
28923 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28924
28925         more ports to Solaris tr, which needs [] around ranges
28926         * gnulib-tool: Solaris tr needs [] around ranges.
28927         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28928         * tests/test-pipe-filter-gi1.c (main): Likewise.
28929         * tests/test-pipe-filter-ii1.c (main): Likewise.
28930
28931 2010-10-05  Eric Blake  <eblake@redhat.com>
28932
28933         bootstrap: fix Solaris regression
28934         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28935         around ranges.
28936         Reported by Pádraig Brady.
28937
28938         bootstrap: work with pkg-config
28939         * build-aux/bootstrap (check_versions): Also transliterate - in
28940         prerequisite name.
28941         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28942         prerequisites that were already found, to avoid confusion.
28943         Reported by Justin Clift.
28944
28945         faccessat: remove unused wrappers
28946         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28947         presence of these wrappers dragged in -lgen on Solaris.
28948         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28949
28950 2010-10-05  Jim Meyering  <meyering@redhat.com>
28951
28952         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28953         * Makefile (sc_pragma_columns): New syntax-check rule.
28954
28955 2010-10-04  Bruno Haible  <bruno@clisp.org>
28956
28957         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28958         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28959         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28960         Reported by Bruce Korb and Eric Blake.
28961
28962 2010-10-04  Bruno Haible  <bruno@clisp.org>
28963
28964         threadlib: Make option --with-libpth-prefix work.
28965         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28966         use $LIBPTH, not just -lpth.
28967
28968 2010-10-04  Bruno Haible  <bruno@clisp.org>
28969
28970         Avoid line length limitation from HP NonStop system header files.
28971         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28972         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28973         * lib/ctype.in.h: Likewise.
28974         * lib/dirent.in.h: Likewise.
28975         * lib/errno.in.h: Likewise.
28976         * lib/fcntl.in.h: Likewise.
28977         * lib/float.in.h: Likewise.
28978         * lib/getopt.in.h: Likewise.
28979         * lib/iconv.in.h: Likewise.
28980         * lib/inttypes.in.h: Likewise.
28981         * lib/langinfo.in.h: Likewise.
28982         * lib/locale.in.h: Likewise.
28983         * lib/math.in.h: Likewise.
28984         * lib/netdb.in.h: Likewise.
28985         * lib/netinet_in.in.h: Likewise.
28986         * lib/poll.in.h: Likewise.
28987         * lib/pthread.in.h: Likewise.
28988         * lib/pty.in.h: Likewise.
28989         * lib/sched.in.h: Likewise.
28990         * lib/se-selinux.in.h: Likewise.
28991         * lib/search.in.h: Likewise.
28992         * lib/signal.in.h: Likewise.
28993         * lib/spawn.in.h: Likewise.
28994         * lib/stdarg.in.h: Likewise.
28995         * lib/stddef.in.h: Likewise.
28996         * lib/stdint.in.h: Likewise.
28997         * lib/stdio.in.h: Likewise.
28998         * lib/stdlib.in.h: Likewise.
28999         * lib/string.in.h: Likewise.
29000         * lib/strings.in.h: Likewise.
29001         * lib/sys_file.in.h: Likewise.
29002         * lib/sys_ioctl.in.h: Likewise.
29003         * lib/sys_select.in.h: Likewise.
29004         * lib/sys_socket.in.h: Likewise.
29005         * lib/sys_stat.in.h: Likewise.
29006         * lib/sys_time.in.h: Likewise.
29007         * lib/sys_times.in.h: Likewise.
29008         * lib/sys_utsname.in.h: Likewise.
29009         * lib/sys_wait.in.h: Likewise.
29010         * lib/sysexits.in.h: Likewise.
29011         * lib/termios.in.h: Likewise.
29012         * lib/time.in.h: Likewise.
29013         * lib/unistd.in.h: Likewise.
29014         * lib/wchar.in.h: Likewise.
29015         * lib/wctype.in.h: Likewise.
29016         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29017         * modules/ctype (Makefile.am): Likewise.
29018         * modules/dirent (Makefile.am): Likewise.
29019         * modules/errno (Makefile.am): Likewise.
29020         * modules/fcntl-h (Makefile.am): Likewise.
29021         * modules/float (Makefile.am): Likewise.
29022         * modules/getopt-posix (Makefile.am): Likewise.
29023         * modules/iconv-h (Makefile.am): Likewise.
29024         * modules/inttypes (Makefile.am): Likewise.
29025         * modules/langinfo (Makefile.am): Likewise.
29026         * modules/locale (Makefile.am): Likewise.
29027         * modules/math (Makefile.am): Likewise.
29028         * modules/netdb (Makefile.am): Likewise.
29029         * modules/netinet_in (Makefile.am): Likewise.
29030         * modules/poll-h (Makefile.am): Likewise.
29031         * modules/pthread (Makefile.am): Likewise.
29032         * modules/pty (Makefile.am): Likewise.
29033         * modules/sched (Makefile.am): Likewise.
29034         * modules/search (Makefile.am): Likewise.
29035         * modules/selinux-h (Makefile.am): Likewise.
29036         * modules/signal (Makefile.am): Likewise.
29037         * modules/spawn (Makefile.am): Likewise.
29038         * modules/stdarg (Makefile.am): Likewise.
29039         * modules/stddef (Makefile.am): Likewise.
29040         * modules/stdint (Makefile.am): Likewise.
29041         * modules/stdio (Makefile.am): Likewise.
29042         * modules/stdlib (Makefile.am): Likewise.
29043         * modules/string (Makefile.am): Likewise.
29044         * modules/strings (Makefile.am): Likewise.
29045         * modules/sys_file (Makefile.am): Likewise.
29046         * modules/sys_ioctl (Makefile.am): Likewise.
29047         * modules/sys_select (Makefile.am): Likewise.
29048         * modules/sys_socket (Makefile.am): Likewise.
29049         * modules/sys_stat (Makefile.am): Likewise.
29050         * modules/sys_time (Makefile.am): Likewise.
29051         * modules/sys_times (Makefile.am): Likewise.
29052         * modules/sys_utsname (Makefile.am): Likewise.
29053         * modules/sys_wait (Makefile.am): Likewise.
29054         * modules/sysexits (Makefile.am): Likewise.
29055         * modules/termios (Makefile.am): Likewise.
29056         * modules/time (Makefile.am): Likewise.
29057         * modules/unistd (Makefile.am): Likewise.
29058         * modules/wchar (Makefile.am): Likewise.
29059         * modules/wctype (Makefile.am): Likewise.
29060
29061 2010-10-04  Bruno Haible  <bruno@clisp.org>
29062
29063         read-file tests: Avoid a test failure on NonStop Kernel.
29064         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29065         a regular file.
29066         Reported by Joachim Schmitz <schmitz@hp.com>.
29067
29068 2010-10-03  Bruno Haible  <bruno@clisp.org>
29069
29070         gnulib-tool: Fixes for --create-testdir with --libtool.
29071         * gnulib-tool (func_get_automake_snippet): Don't augment
29072         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29073         an executable.
29074         (func_create_testdir): Handle module 'alloca' like func_import.
29075         Reported by Bruce Korb <bruce.korb@gmail.com>.
29076
29077 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29078
29079         Avoid some lines longer than 80 characters.
29080         * lib/stdint.in.h: Break long comment lines.
29081         * lib/math.in.h: Likewise.
29082         (_GL_NUM_UINT_WORDS): New macro, for readability.
29083         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29084         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29085         * lib/stdlib.in.h: Likewise.
29086         * lib/spawn.in.h: Likewise.
29087         * lib/sys_socket.in.h: Update an URL.
29088         * lib/sys_stat.in.h: Break long line.
29089
29090 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29091
29092         Improve pmccabe2html.
29093         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29094         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29095         when the sources change. Remove the line in the HTML about "Used
29096         ranges" (which implied that there might be other unused ranges),
29097         rename "Resume" to "Summary" (easier to understand for more users).
29098         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29099         styles, and some unnecessary blank lines.
29100
29101 2010-10-03  Bruno Haible  <bruno@clisp.org>
29102             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29103
29104         acl: Add support for ACLs on NonStop Kernel.
29105         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29106         Check whether the function aclsort() exists.
29107         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29108         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29109         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29110         (acl_nontrivial [HAVE_ACLSORT]: New function.
29111         (file_has_acl): Implement for NonStop Kernel.
29112         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29113         (qset_acl): Implement for NonStop Kernel.
29114         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29115         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29116         (main): Implement for NonStop Kernel.
29117         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29118         Kernel. Handle this flavor.
29119         * tests/test-set-mode-acl.sh: Likewise.
29120         * tests/test-copy-acl.sh: Likewise.
29121         * tests/test-copy-file.sh: Likewise.
29122
29123 2010-10-03  Bruno Haible  <bruno@clisp.org>
29124
29125         Info about ACLs on NonStop Kernel.
29126         * doc/acl-resources.txt: Add info about NonStop Kernel.
29127         References by Joachim Schmitz <schmitz@hp.com>.
29128
29129 2010-10-02  Bruno Haible  <bruno@clisp.org>
29130
29131         Define missing EDQUOT on NonStop Kernel.
29132         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29133         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29134         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29135         missing.
29136         * doc/posix-headers/errno.texi: Mention the NSK bug.
29137         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29138         Reported by Joachim Schmitz <schmitz@hp.com>.
29139
29140 2010-10-02  Bruno Haible  <bruno@clisp.org>
29141
29142         Update doc for POSIX:2008.
29143         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29144         Update URL of POSIX specification.
29145
29146 2010-10-02  Bruno Haible  <bruno@clisp.org>
29147
29148         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29149         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29150         from gnulib, not from Automake.
29151
29152 2010-10-02  Bruno Haible  <bruno@clisp.org>
29153
29154         New module 'system-posix'.
29155         * modules/system-posix: New file.
29156         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29157         module is present.
29158         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29159         GNULIB_SYSTEM_POSIX.
29160         * modules/stdlib (Depends-on): Remove sys_wait.
29161         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29162         * doc/posix-functions/system.texi: Mention the new module.
29163         * doc/posix-headers/stdlib.texi: Likewise.
29164         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29165         define test_sys_wait_macros to a no-op.
29166         Reported by Sam Steingold <sds@gnu.org>.
29167
29168 2010-09-30  Bruno Haible  <bruno@clisp.org>
29169
29170         More renaming from 'getdate' to 'get_date'.
29171         * doc/get_date.texi: Renamed from doc/getdate.texi.
29172         * modules/get_date (Files): Update.
29173         * MODULES.html.sh (Date and time <time.h>): Update.
29174         * DEPENDENCIES: Update.
29175         * gnulib-tool: Update comment.
29176         * m4/bison.m4 (gl_BISON): Likewise.
29177         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29178
29179 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29180
29181         bootstrap: support ACLOCAL_FLAGS during aclocal
29182         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29183         can add additional -I dir for third-party .m4 files.
29184
29185 2010-09-30  Eric Blake  <eblake@redhat.com>
29186
29187         bootstrap: use glibtoolize on MacOS
29188         * build-aux/bootstrap (check_versions): Convert libtool into
29189         libtoolize.
29190         (tool search): Move libtool check earlier, and look for
29191         glibtoolize for MacOS.
29192         (gnulib_tool_options): Auto-add --libtool when appropriate.
29193         Reported by Justin Clift.
29194
29195         poll: fix typo that broke test on MacOS
29196         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29197         Reported by Justin Clift.
29198
29199         getdate: rename to get_date
29200         Note: getdate.h is not renamed, to minimize client impact.
29201         * modules/getdate: Mark obsolete.  Move old contents...
29202         * modules/get_date: ...to new module name.
29203         * modules/getdate-tests: Move...
29204         * modules/get_date-tests: ...here.
29205         * m4/getdate.m4: Move...
29206         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29207         * lib/getdate.y: Move...
29208         * lib/get_date.y: ...here.
29209         * tests/test-getdate.c: Move...
29210         * tests/test-get_date.c: ...here.
29211         * doc/posix-functions/getdate.texi (getdate): Update name.
29212         * NEWS: Mention the change.
29213
29214 2010-09-29  Bruno Haible  <bruno@clisp.org>
29215
29216         Separate the module 'waitpid' from the module 'sys_wait'.
29217         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29218         present.
29219         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29220         gl_MODULE_INDICATOR_FOR_TESTS.
29221         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29222         * modules/sys_wait (Depends-on): Remove waitpid.
29223         (Makefile.am): Substitute GNULIB_WAITPID.
29224         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29225         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29226         signature only if the 'waitpid' module is present.
29227         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29228         * NEWS: Mention the change.
29229         * modules/grantpt (Depends-on): Add waitpid.
29230         * modules/wait-process (Depends-on): Likewise.
29231
29232 2010-09-29  Bruno Haible  <bruno@clisp.org>
29233
29234         More tests for module 'sys_wait'.
29235         * modules/sys_wait-c++-tests: New file.
29236         * tests/test-sys_wait-c++.cc: New file.
29237         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29238         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29239
29240 2010-09-29  Bruno Haible  <bruno@clisp.org>
29241
29242         New module 'waitpid'.
29243         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29244         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29245         Don't include <process.h>.
29246         (waitpid): Declare only, using modern idiom.
29247         * m4/waitpid.m4: New file.
29248         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29249         * modules/waitpid: New file.
29250         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29251         (Makefile.am): Update.
29252         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29253
29254 2010-09-28  Bruno Haible  <bruno@clisp.org>
29255
29256         poll: Assume ANSI C.
29257         * lib/poll.c (poll): Use an ANSI C declaration.
29258
29259 2010-09-28  Bruno Haible  <bruno@clisp.org>
29260
29261         poll-h: Create poll.h on all platforms.
29262         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29263         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29264         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29265         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29266         (gl_REPLACE_POLL_H): Don't set POLL_H.
29267         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29268         * modules/poll-h (Depends-on): Add include_next.
29269         (Makefile.am): Create poll.h unconditionally. Substitute also
29270         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29271
29272 2010-09-28  Bruno Haible  <bruno@clisp.org>
29273
29274         Tests for module 'poll-h'.
29275         * modules/poll-h-c++-tests: New file.
29276         * tests/test-poll-h-c++.cc: New file.
29277
29278         Tests for module 'poll-h'.
29279         * modules/poll-h-tests: New file.
29280         * tests/test-poll-h.c: New file.
29281
29282 2010-09-28  Bruno Haible  <bruno@clisp.org>
29283
29284         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29285         * modules/poll-h (Depends-on): Add 'extensions'.
29286
29287 2010-09-28  Bruno Haible  <bruno@clisp.org>
29288
29289         New module 'poll-h'.
29290         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29291         (poll): Use modern idiom.
29292         * modules/poll-h: New file.
29293         * modules/poll (Files): Remove lib/poll.in.h.
29294         (Depends-on): Add poll-h.
29295         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29296         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29297         * m4/poll_h.m4: New file.
29298         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29299         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29300         and invoke gl_REPLACE_POLL_H.
29301         * lib/poll.c: Use common idiom.
29302         * tests/test-poll.c: Likewise.
29303         * doc/posix-headers/poll.texi: Mention the poll-h module.
29304         Suggested by Eric Blake.
29305
29306 2010-09-26  Bruno Haible  <bruno@clisp.org>
29307
29308         sys_wait: Implement WSTOPSIG.
29309         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29310         Reported by Simon Josefsson.
29311
29312 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29313
29314         stdlib, sys_wait: Avoid compilation error on mingw.
29315         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29316
29317 2010-09-26  Bruno Haible  <bruno@clisp.org>
29318
29319         stdlib tests: Avoid code duplication.
29320         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29321         * modules/sys_wait-tests (Files): Likewise.
29322         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29323         * tests/test-stdlib.c: Include test-sys_wait.h.
29324         (main): Invoke test_sys_wait_macros.
29325         * tests/test-sys_wait.c: Include test-sys_wait.h.
29326         (main): Invoke test_sys_wait_macros.
29327
29328 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29329
29330         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29331         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29332         sure Windows sockets are working before calling getaddrinfo.
29333         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29334         * doc/gnulib.texi (Windows sockets): Fix typo.
29335
29336 2010-09-25  Bruno Haible  <bruno@clisp.org>
29337
29338         Tests for module 'regex-quote'.
29339         * modules/regex-quote-tests: New file.
29340         * tests/test-regex-quote.c: New file.
29341
29342         New module 'regex-quote'.
29343         * lib/regex-quote.h: New file.
29344         * lib/regex-quote.c: New file.
29345         * modules/regex-quote: New file.
29346         Suggested by Reuben Thomas <rrt@sc3d.org>.
29347
29348 2010-09-24  Bruno Haible  <bruno@clisp.org>
29349
29350         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29351         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29352
29353 2010-09-23  Bruno Haible  <bruno@clisp.org>
29354
29355         setenv: Relax license.
29356         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29357         Blake.
29358         Requested by Eric Blake.
29359
29360 2010-09-22  Bruno Haible  <bruno@clisp.org>
29361
29362         termios: Relax license.
29363         * modules/termios (License): Change to LGPLv2+.
29364         Requested by Eric Blake.
29365
29366 2010-09-22  Bruno Haible  <bruno@clisp.org>
29367
29368         threadlib: Allow the package to change the default to 'no'.
29369         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29370         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29371         Reported by Paul Eggert.
29372
29373 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29374             Bruno Haible  <bruno@clisp.org>
29375
29376         Fix endless loop in mbmemcasecoll.
29377         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29378         byte.
29379         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29380
29381 2010-09-22  Bruno Haible  <bruno@clisp.org>
29382
29383         Tests for module 'memcoll'.
29384         * modules/memcoll-tests: New file.
29385         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29386
29387         memcoll, xmemcoll: Clarify size vs. length.
29388         * modules/memcoll.c (memcoll0): Clarify specification.
29389         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29390         passed to collate_error.
29391
29392 2010-09-22  Bruno Haible  <bruno@clisp.org>
29393
29394         Tests for module 'memcasecmp'.
29395         * modules/memcasecmp-tests: New file.
29396         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29397
29398 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29399
29400         * lib/pthread.in.h: Add split double-inclusion guard, and include
29401         system <pthread.h> if there is one.  Use @@-style as in other
29402         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29403         pthread.h doesn't.
29404         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29405         (pthread_mutexattr_settype, pthread_mutex_trylock):
29406         New static inline functions, if there's no system <pthread.h>.
29407         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29408         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29409         Approximate with mutexes if the system lacks spinlocks, as in
29410         MacOS.
29411         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29412         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29413         @@-style.  Check for spinlocks separately.
29414         (gl_PTHREAD_DEFAULTS): New macro.
29415         * modules/pthread: Redo to use a more typical style for in.h files.
29416
29417 2010-09-21  Eric Blake  <eblake@redhat.com>
29418
29419         net_if: enhance tests
29420         * tests/test-net_if.c (main): Move signature checks earlier.
29421         Print failures to stderr.
29422         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29423         Document the bug that we do not yet fix.
29424
29425 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29426
29427         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29428         about gnulib, not GSS.
29429
29430 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29431
29432         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29433         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29434         for Emacs.
29435         * build-aux/pmccabe2html: Make Makefile.am example code more
29436         cut-and-paste friendly.
29437
29438 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29439
29440         * tests/test-net_if.c: New file.
29441         * modules/net_if-tests: New file.
29442
29443 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29444
29445         pthread: add pthread_spin_destroy
29446         * lib/pthread.in.h (pthread_spin_destroy): New function.
29447
29448 2010-09-19  Bruno Haible  <bruno@clisp.org>
29449
29450         gnulib-tool: Fix --help output.
29451         * gnulib-tool (func_usage): Fix help message.
29452         Reported by Reuben Thomas <rrt@sc3d.org>.
29453
29454 2010-09-18  Jim Meyering  <meyering@redhat.com>
29455
29456         maint.mk: avoid unexpanded \n in two diagnostics
29457         * top/maint.mk (sc_prohibit_always_true_header_tests):
29458         Don't use a literal \n in a halt=... assignment.  It would not be
29459         expanded, and the two \n bytes would appear in the diagnostic output
29460         rather than the desired newline.  Use halt=$$(printf ... instead.
29461         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29462
29463 2010-09-18  Bruno Haible  <bruno@clisp.org>
29464
29465         netinet_in: Doc tweak.
29466         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29467         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29468
29469 2010-09-18  Jim Meyering  <meyering@redhat.com>
29470
29471         init.sh: correct an outdated comment
29472         * tests/init.sh (create_exe_shims_):  s/function/alias/
29473
29474         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29475         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29476         a file named "*.exe" is removed between the glob expansion and the
29477         processing of that oddly named file.
29478
29479 2010-09-17  Eric Blake  <eblake@redhat.com>
29480
29481         mirbsd: add some more support
29482         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29483         in BSD family.
29484         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29485         devices as OpenBSD.
29486         * m4/host-os.m4 (mirbsd): Add MirBSD.
29487
29488         tests: fix unportable assumption on sys/wait.h
29489         * tests/test-sys_wait.c (main): Relax test.
29490         * tests/test-stdlib.c (main): Likewise.
29491
29492         init.sh: accommodate directory with no .exes
29493         * tests/init.sh: Accomodate directory containing only scripts.
29494
29495         tests: avoid compiler warning
29496         * tests/test-stdlib.c (main): Use the variable.
29497
29498         fdutimens, fdutimensat: update signature, again
29499         * lib/utimens.h (gl_futimens): Delete, and move signature...
29500         (fdutimens): ...here.
29501         (fdutimensat): Rearrange signature.
29502         (lutimensat): Rename variable for clarity.
29503         * lib/fdutimensat.c (fdutimensat): Update signature.
29504         * lib/utimens.c (fdutimens): Likewise.
29505         (gl_futimens): Delete.
29506         (utimens, lutimens): Update callers.
29507         * lib/futimens.c (futimens): Likewise.
29508         * tests/test-fdutimensat.c: Likewise.
29509         * tests/test-utimens.c: Likewise.
29510         * tests/test-futimens.h: Update comment.
29511         * NEWS: Mention this.
29512         Suggested by Paul Eggert.
29513
29514 2010-09-17  Bruno Haible  <bruno@clisp.org>
29515
29516         Take over the maintenance of some older macros from Autoconf.
29517         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29518         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29519         GNU Autoconf.
29520         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29521         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29522
29523 2010-09-17  Eric Blake  <eblake@redhat.com>
29524
29525         fdutimensat: drop atflag validation
29526         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29527         with valid fd, to close a race scenario where futimens is
29528         unsupported and FILE was replaced by a symlink.
29529         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29530         accordingly.
29531         Suggested by Paul Eggert.
29532
29533 2010-09-16  Bruno Haible  <bruno@clisp.org>
29534
29535         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29536         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29537
29538 2010-09-16  Bruno Haible  <bruno@clisp.org>
29539
29540         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29541         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29542         login_tty exists.
29543         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29544
29545 2010-09-16  Bruno Haible  <bruno@clisp.org>
29546
29547         login_tty: Make the replacement code work on BSD systems.
29548         * lib/login_tty.c: Include <sys/ioctl.h>.
29549         (login_tty): Use ioctl TIOCSCTTY when available.
29550         * modules/login_tty (Depends-on): Add sys_ioctl.
29551         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29552
29553 2010-09-16  Bruno Haible  <bruno@clisp.org>
29554
29555         login_tty: Stricter unit test.
29556         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29557         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29558         and tcgetsid() after login_tty.
29559         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29560
29561 2010-09-16  Bruno Haible  <bruno@clisp.org>
29562
29563         New module 'tcgetsid'.
29564         * lib/tcgetsid.c: New file.
29565         * m4/tcgetsid.m4: New file.
29566         * modules/tcgetsid: New file.
29567         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29568         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29569         GNULIB_TCGETSID, HAVE_TCGETSID.
29570         * lib/termios.in.h: Include <sys/types.h>.
29571         (tcgetsid): New declaration.
29572         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29573         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29574         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29575         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29576
29577 2010-09-16  Bruno Haible  <bruno@clisp.org>
29578
29579         Tests for module 'termios'.
29580         * modules/termios-c++-tests: New file.
29581         * modules/termios-tests: New file.
29582         * tests/test-termios-c++.cc: New file.
29583         * tests/test-termios.c: New file.
29584
29585         New module 'termios'.
29586         * modules/termios: New file.
29587         * lib/termios.in.h: New file.
29588         * m4/termios_h.m4: New file.
29589         * doc/posix-headers/termios.texi: Mention the new module.
29590
29591 2010-09-16  Eric Blake  <eblake@redhat.com>
29592
29593         fdutimensat: add an atflag parameter
29594         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29595         * lib/utimens.h (fdutimensat): Update prototype.
29596         * tests/test-fdutimensat.c: Adjust test to match.
29597         * NEWS: Document the change.
29598         Suggested by Paul Eggert.
29599
29600 2010-09-16  Bruno Haible  <bruno@clisp.org>
29601
29602         Fix typos in comments.
29603         * lib/striconveh.h: Fix typo in comment.
29604         * lib/login_tty.c (login_tty): Likewise.
29605
29606 2010-09-15  Bruno Haible  <bruno@clisp.org>
29607
29608         stdlib: clarify MirBSD WEXITSTATUS bug
29609         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29610         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29611
29612 2010-09-15  Eric Blake  <eblake@redhat.com>
29613
29614         stdlib: work around MirBSD WEXITSTATUS bug
29615         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29616         * modules/stdlib (Depends-on): Add sys_wait.
29617         * tests/test-sys_wait.c (main): Enhance test.
29618         * tests/test-stdlib.c (main): Likewise.
29619         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29620
29621         docs: mention MacOS issue with WEXITSTATUS(constant)
29622         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29623         issue.
29624         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29625
29626         strnlen: add tests
29627         * modules/strnlen-tests: New file.
29628         * tests/test-strnlen.c: Likewise.
29629
29630 2010-09-14  Bruno Haible  <bruno@clisp.org>
29631
29632         unistr/base: Avoid link errors when module 'libunistring' is also used.
29633         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29634         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29635         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29636         Declare also when HAVE_LIBUNISTRING is set.
29637         Reported by Pádraig Brady <P@draigbrady.com>.
29638
29639 2010-09-14  Eric Blake  <eblake@redhat.com>
29640
29641         test-rawmemchr: make more robust
29642         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29643         (Depends-on, configure.ac): Add needed prerequisites to use it.
29644         * modules/memchr-tests (Files, Depends-on, configure.ac):
29645         Likewise, to avoid implicit reliance on memchr module prereqs.
29646         * tests/test-memchr.c (main): Ensure proper masking.
29647         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29648         reads.
29649
29650         memchr: detect glibc Alpha bug
29651         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29652         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29653         Alpha.
29654         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29655         * tests/test-memchr.c (main): Enhance test.
29656         Reported by Nelson H. F. Beebe.
29657
29658 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29659
29660         fts, getcwd, glob: audit for dirfd returning -1
29661         * lib/fts.c (opendir): Remove #define; no longer used.
29662         (opendirat): New arg PDIR_FD.  All callers changed.
29663         (fts_build, _opendir2): Use new opendirat to avoid the need for
29664         dirfd, or for checking whether dirfd returns a negative value.
29665         Don't use opendir; always use openat followed by fdopendir.
29666         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29667         it.
29668         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29669         returns -1 here.
29670         * modules/fts (Depends-on): Remove dirfd.
29671         * modules/getcwd (Depends-on): Likewise.
29672
29673 2010-09-13  Eric Blake  <eblake@redhat.com>
29674
29675         float: fix broken MirBSD header
29676         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29677         * doc/posix-headers/float.texi (float.h): Document it.
29678
29679 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29680
29681         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29682         * lib/fts.c (opendirat): New arg extra_flags.
29683         (__opendir2): Use it to avoid following symlinks when opening
29684         a directory, if symlinks are not supposed to be followed.  See
29685         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29686
29687         fdopendir: preserve argument fd before returning
29688         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29689         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29690         (fdopendir): Use them, arranging for FD to be open to the same
29691         directory that it was when it started.  (It might be temporarily
29692         closed while fdopendir is running, so this not thread- or
29693         signal-safe.)  Be careful to do the right thing even when file
29694         descriptors are scarce and dup fails with errno == EMFILE.  See
29695         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29696
29697 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29698
29699         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29700         * NEWS: Document change.
29701         * m4/regex.m4: Disable test for regoff_t size.
29702
29703 2010-09-13  Jim Meyering  <meyering@redhat.com>
29704
29705         fts: don't operate on an invalid file descriptor after failed dup
29706         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29707         negative file descriptor.
29708
29709 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29710
29711         savedir: add streamsavedir, deprecate fdsavedir
29712         * NEWS: Mention deprecation of fdsavedir.
29713         * lib/savedir.c (streamsavedir): New extern function, whose name
29714         ends in "savedir" to be consistent with the others.  This differs
29715         from savedirstream in that it doesn't close its argument.  The
29716         next version of GNU tar will use this instead of fdsavedir, to
29717         avoid some race conditions and conserve file descriptors.
29718         (savedirstream): Reimplement as a wrapper around streamsavedir.
29719         (fdsavedir): Add a comment deprecating this function.  As far as
29720         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29721         * lib/savedir.h (streamsavedir): New decl.
29722         (fdsavedir): Add a comment deprecating this.
29723
29724 2010-09-10  Bruno Haible  <bruno@clisp.org>
29725
29726         langinfo: Fix last commit.
29727         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29728         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29730
29731 2010-09-10  Bruno Haible  <bruno@clisp.org>
29732
29733         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29734         * lib/progreloc.c (O_EXEC): Define fallback.
29735
29736 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29737
29738         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29739         * NEWS: Document recent changes to fcntl-h.
29740         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29741         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29742         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29743         Similarly for O_SEARCH; this last was already true, but not documented.
29744         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29745         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29746         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29747         Likewise.
29748         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29749         is zero, not whether it is defined.
29750         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29751         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29752         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29753
29754 2010-09-10  Bruno Haible  <bruno@clisp.org>
29755
29756         langinfo, nl_langinfo: Fix for IRIX 5.3.
29757         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29758         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29759         HAVE_LANGINFO_YESEXPR.
29760         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29761         HAVE_LANGINFO_YESEXPR.
29762         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29763         HAVE_LANGINFO_T_FMT_AMPM is 0.
29764         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29765         HAVE_LANGINFO_YESEXPR is 0.
29766         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29767         NOEXPR.
29768         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29769         * doc/posix-functions/nl_langinfo.texi: Likewise.
29770         Reported by Eric Blake.
29771
29772 2010-09-10  Bruno Haible  <bruno@clisp.org>
29773
29774         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29775         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29776         on FreeBSD 8.0 and OpenBSD 4.6.
29777         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29778         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29779         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29780         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29781         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29782         ac_includes_default.
29783         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29784
29785 2010-09-09  Eric Blake  <eblake@redhat.com>
29786
29787         strsignal: work around NetBSD bug
29788         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29789         * lib/string.in.h (includes): Likewise.
29790         * doc/posix-functions/strsignal.texi (strsignal): Document the
29791         bug.
29792         Reported by Nelson H. F. Beebe.
29793
29794         gnulib-tool: work with NetBSD /bin/sh
29795         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29796         (func_get_description, func_get_comment, func_get_status)
29797         (func_get_notice, func_get_applicability, func_get_filelist)
29798         (func_get_dependencies, func_get_autoconf_early_snippet)
29799         (func_get_autoconf_snippet, func_get_automake_snippet)
29800         (func_get_include_directive, func_get_link_directive)
29801         (func_get_license, func_get_maintainer, func_import): Avoid
29802         shell syntax errors from parsing syntax extensions.
29803
29804 2010-09-09  Bruno Haible  <bruno@clisp.org>
29805
29806         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29807         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29808         a reliable way to determine whether the 'alias' command works.
29809
29810 2010-09-08  Jim Meyering  <meyering@redhat.com>
29811
29812         init.sh: penalize a set-x-impaired shell; don't disqualify it
29813         * tests/init.sh: Too many shells corrupt application stderr when
29814         you set -x, so we can't afford to disqualify them, since at least
29815         on Irix-6.5, that would disqualify all bourne shells.
29816         Instead, use a two-pass approach.
29817         On the first pass, try to find a shell that meets the stricter
29818         condition that set -x does not corrupt stderr.
29819         If no shell meets the stricter condition, retest each candidate
29820         shell, but without that extra condition.  Finally, when
29821         VERBOSE=yes is requested and set -x might cause trouble, simply
29822         issue a warning and refrain from enabling debug output.
29823
29824 2010-09-08  Eric Blake  <eblake@redhat.com>
29825
29826         unsetenv: fix OpenBSD bug
29827         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29828         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29829         documentation.
29830         Reported by Jim Meyering.
29831
29832         strtod: work around IRIX 6.5 bug
29833         * lib/strtod.c (strtod): Reparse number on shorter string if
29834         exponent parse was invalid.
29835         * tests/test-strtod.c (main): Add check for "0x1p 2".
29836         Reported by Tom G. Christensen.
29837
29838         getopt: optimize previous patch
29839         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29840         empty variable.  Speed up awk script.
29841         Reported by Paolo Bonzini.
29842
29843 2010-09-08  Jim Meyering  <meyering@redhat.com>
29844
29845         test.sh: disqualify shells for which set -x corrupts stderr
29846         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29847         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29848         appear in stderr output.  For example, this command:
29849             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29850         prints "P=1" on those two systems:
29851
29852 2010-09-08  Bruno Haible  <bruno@clisp.org>
29853
29854         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29855         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29856         commands, because some shells ignore redirections when there is an
29857         error in the command lookup.
29858         Reported by Eric Blake.
29859
29860 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29861
29862         * lib/regex.h: Fix a mention of `regex_compile' (should be
29863         `re_compile_pattern').
29864         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29865         (re_set_registers): Correct name of parameter in comment.
29866
29867         * doc/regex.texi: Add documentation for missing syntax flags.
29868         Remove commented-out documentation of defunct syntax option
29869         RE_NO_EMPTY_ALTS.
29870         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29871         Add documentation of re_set_registers.
29872         Document trick to re-use a pattern buffer by setting fastmap manually.
29873         Update documentation of struct re_pattern_buffer per public members.
29874         Uncomment documentation of equivalence class operators and
29875         collating symbol operators, since they are now implemented,
29876         Explain leftmost-longest matching in relation to alternatives.
29877         Tidy documentation of substring matching.
29878         Remove POSIX documentation, which is done better in
29879         glibc, and refer the reader there. Keep BSD API documentation, as
29880         that is not readily available elsewhere.
29881
29882 2010-09-07  Eric Blake  <eblake@redhat.com>
29883
29884         getopt: handle POSIXLY_CORRECT set but not exported
29885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29886         export state of POSIXLY_CORRECT, due to bash set -o posix.
29887         Reported by Dustin J. Mitchell.
29888
29889 2010-09-05  Bruno Haible  <bruno@clisp.org>
29890
29891         gnulib-tool: Highlight the changed options.
29892         * gnulib-tool (func_usage): Display the --import, --add-import,
29893         --remove-import explanations in bold font.
29894
29895 2010-09-06  Karl Berry  <karl@gnu.org>
29896
29897         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29898
29899 2010-09-05  Bruno Haible  <bruno@clisp.org>
29900
29901         uniwidth/width: Update comment.
29902         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29903         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29904
29905 2010-09-05  Bruno Haible  <bruno@clisp.org>
29906
29907         isinf, isnan: Relax license.
29908         * modules/isinf (License): Change from GPL to LGPL, with consent from
29909         Ben Pfaff.
29910         * modules/isnan (License): Likewise.
29911         Requested by Ludovic Courtès.
29912
29913 2010-09-04  Bruno Haible  <bruno@clisp.org>
29914
29915         gnulib-tool: Help migration from --import to --add-import or --update.
29916         * gnulib-tool: Emit a verbose error message when --import is used
29917         without any module name.
29918
29919 2010-09-04  Bruno Haible  <bruno@clisp.org>
29920
29921         Update doc about gnulib-tool.
29922         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29923         'gnulib-tool --update' in more detail.
29924         Reported by Eric Blake.
29925
29926 2010-09-04  Bruno Haible  <bruno@clisp.org>
29927
29928         gnulib-tool: Change --import. New options --add/remove-import.
29929         * gnulib-tool: New options --add-import, --remove-import.
29930         (func_usage): Document them.
29931         (have_associative): Define always.
29932         (func_import): In import mode, don't merge the specified settings with
29933         the cached settings. Implement remove-import mode.
29934         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29935         Explain when to use them versus --import.
29936         (Simple update): Use --add-import instead of --import.
29937         * NEWS: Mention the change.
29938
29939 2010-09-04  Bruno Haible  <bruno@clisp.org>
29940
29941         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29942         separate gnulib.mk.
29943
29944 2010-09-04  Bruno Haible  <bruno@clisp.org>
29945
29946         gnulib-tool: Don't talk about CVS any more.
29947         * gnulib-tool (func_usage, func_import): Write "version control"
29948         instead of CVS.
29949
29950 2010-09-04  Jim Meyering  <meyering@redhat.com>
29951
29952         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29953         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29954         false positives (whose names may be ill-chosen) when searching
29955         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29956         would cause a false-positive.
29957
29958         avoid coreutils "make distcheck" failure
29959         Coreutils tests with an absolute build directory name that contains
29960         a space.  Not quoting this directory name caused a failure.
29961         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29962         * tests/test-vc-list-files-cvs.sh: Likewise.
29963
29964 2010-09-04  Bruno Haible  <bruno@clisp.org>
29965
29966         gnulib-tool: Avoid error when run in a package without Makefile.am.
29967         * gnulib-tool: When collecting the m4dirs in a package that does not
29968         have a Makefile.am, eliminate those directories that contain no
29969         gnulib-cache.m4. Fix expression that counts these directories.
29970
29971 2010-09-04  Bruno Haible  <bruno@clisp.org>
29972
29973         update-copyright test: Improve output when perl is missing or too old.
29974         * tests/test-update-copyright.sh: Move test of Perl version down after
29975         the test whether Perl exists. Provide an explanation relating Perl's
29976         error message to Automake's SKIP: message.
29977
29978 2010-09-04  Bruno Haible  <bruno@clisp.org>
29979
29980         Don't augment PATH in TESTS_ENVIRONMENT.
29981         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29982         set abs_aux_dir instead of augmenting PATH.
29983         * modules/vc-list-files-tests (Makefile.am): Likewise.
29984         * tests/test-update-copyright.sh: Augment PATH here.
29985         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29986         path_prepend_.
29987         * tests/test-vc-list-files-git.sh: Likewise.
29988
29989 2010-09-04  Jim Meyering  <meyering@redhat.com>
29990
29991         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29992         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29993
29994 2010-09-04  Bruno Haible  <bruno@clisp.org>
29995
29996         strdup: Fix compilation error in C++ mode.
29997         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29998         the macro.
29999
30000 2010-09-04  Bruno Haible  <bruno@clisp.org>
30001
30002         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30003         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30004         macro into a function.
30005         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30006
30007 2010-09-04  Bruno Haible  <bruno@clisp.org>
30008
30009         Set PATH_SEPARATOR the same way autoconf does.
30010         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30011         the value of PATH_SEPARATOR the same way autoconf-generated configure
30012         scripts do.
30013         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30014         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30015
30016 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30017
30018         Set PATH_SEPARATOR the same way autoconf does.
30019         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30020         the same way autoconf-generated configure scripts do.
30021         * posix-modules: Likewise.
30022
30023 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30024
30025         hash: fix safe_hasher const typo
30026         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30027         const; otherwise, there is a type error later.
30028
30029 2010-09-02  Jim Meyering  <meyering@redhat.com>
30030
30031         test-update-copyright.sh: require perl 5.8.0
30032         * tests/test-update-copyright.sh: Require 5.8.0,
30033         which Tom G. Christensen has confirmed is adequate,
30034         while 5.6.1 is not.
30035
30036 2010-09-02  Eric Blake  <eblake@redhat.com>
30037
30038         tests: init.sh improvements for re-exec'ing with zsh
30039         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30040         -vx through shell re-exec.
30041         Reported by Tom G. Christensen.
30042
30043         wctype: fix typo in previous commit
30044         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30045         Reported by Ludovic Courtès.
30046
30047 2010-09-02  Jim Meyering  <meyering@redhat.com>
30048
30049         test-update-copyright.sh: skip test if Perl is too old
30050         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30051         Reported by Tom G. Christensen.
30052
30053 2010-09-02  Bruno Haible  <bruno@clisp.org>
30054
30055         wctype: Avoid compilation error on IRIX 6.5.30.
30056         * lib/wctype.in.h (iswblank): Declare with a replacement if
30057         REPLACE_ISWBLANK is set.
30058         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30059         declared. Set REPLACE_ISWBLANK.
30060         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30061         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30062         * doc/posix-headers/wctype.texi: Likewise.
30063         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30064
30065 2010-09-01  Bruno Haible  <bruno@clisp.org>
30066
30067         New module 'socketlib'.
30068         * modules/socketlib: New file.
30069         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30070         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30071         * modules/sockets (Depends-on): Add socketlib.
30072         Suggested by Sam Steingold <sds@gnu.org>.
30073
30074 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30075
30076         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30077
30078         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30079         when one needs search access to a directory but not read access.
30080         On systems where it is available, it works in some cases where
30081         O_RDONLY does not, namely on directories that are searchable but
30082         not readable, and which need only to be searchable.  If O_SEARCH
30083         is not available, fall back to the traditional method of using
30084         O_RDONLY.
30085
30086         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30087         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30088         when opening a directory that needs only to be searchable.
30089         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30090         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30091         * lib/openat-proc.c (openat_proc_name): Likewise.
30092         * lib/openat.c (openat_needs_fchdir): Likewise.
30093         * lib/save-cwd.c (save_cwd): Likewise.
30094         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30095
30096 2010-08-28  Bruno Haible  <bruno@clisp.org>
30097
30098         New module 'host-cpu-c-abi'.
30099         * modules/host-cpu-c-abi: New file.
30100         * m4/host-cpu-c-abi.m4: New file, based on part of
30101         clisp/src/m4/general.m4.
30102         Requested by Sam Steingold <sds@gnu.org>.
30103
30104 2010-08-31  Eric Blake  <eblake@redhat.com>
30105         and Jim Meyering  <meyering@redhat.com>
30106
30107         hash: factor, and guard against misbehaving hasher function
30108         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30109         of table->hasher's return value.  Also protect against a hash value
30110         so large that adding it to table->bucket results in a NULL pointer.
30111         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30112         Use it in place of open-coded check-and-abort.
30113
30114 2010-08-30  Bruno Haible  <bruno@clisp.org>
30115
30116         hash: silence spurious clang warning
30117         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30118         Reported by Eric Blake.
30119
30120 2010-08-30  Eric Blake  <eblake@redhat.com>
30121
30122         strstr, memmem, strcasestr: avoid leaked shell message
30123         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30124         FreeBSD.
30125         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30126         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30127
30128         tests: silence clang warning
30129         * tests/test-malloca.c (do_allocation): Avoid dead store.
30130
30131 2010-08-29  Bruno Haible  <bruno@clisp.org>
30132
30133         gettext: Fix recent mistake.
30134         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30135
30136 2010-08-29  Bruno Haible  <bruno@clisp.org>
30137
30138         selinux-h: Offer a --without-selinux option.
30139         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30140         --without-selinux was specified, skip all tests and define
30141         HAVE_SELINUX_SELINUX_H to 0.
30142         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30143         set LIB_SELINUX to empty.
30144         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30145         gl_LIBSELINUX. If --without-selinux was specified, replace
30146         selinux/context.h.
30147         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30148
30149 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30150             Bruno Haible  <bruno@clisp.org>
30151
30152         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30153         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30154         of HAVE_REALLOC.
30155         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30156         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30157         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30158         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30159
30160 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30161             Bruno Haible  <bruno@clisp.org>
30162
30163         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30164         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30165         HAVE_CALLOC.
30166         * lib/xmalloc.c: Update accordingly.
30167         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30168         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30169         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30170
30171 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30172             Bruno Haible  <bruno@clisp.org>
30173
30174         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30175         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30176         HAVE_MALLOC.
30177         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30178         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30179         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30180
30181 2010-08-29  Bruno Haible  <bruno@clisp.org>
30182
30183         Update modules list.
30184         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30185         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30186         (String handling <string.h>): Add astrxfrm.
30187         (File system functions): Add readlinkat.
30188
30189 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30190
30191         Tests for module 'realloc-gnu'.
30192         * modules/realloc-gnu-tests: New file.
30193         * tests/test-realloc-gnu.c: New file.
30194
30195         Tests for module 'calloc-gnu'.
30196         * modules/calloc-gnu-tests: New file.
30197         * tests/test-calloc-gnu.c: New file.
30198
30199         Tests for module 'malloc-gnu'.
30200         * modules/malloc-gnu-tests: New file.
30201         * tests/test-malloc-gnu.c: New file.
30202
30203 2010-08-28  Bruno Haible  <bruno@clisp.org>
30204
30205         Rename module 'realloc' -> 'realloc-gnu'.
30206         * modules/realloc-gnu: New file, copied from modules/realloc.
30207         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30208         obsolete.
30209         * modules/mgetgroups (Depends-on): Update.
30210         * doc/posix-functions/realloc.texi: Update.
30211         * NEWS: Mention the change.
30212
30213         Rename module 'calloc' -> 'calloc-gnu'.
30214         * modules/calloc-gnu: New file, copied from modules/calloc.
30215         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30216         obsolete.
30217         * doc/posix-functions/calloc.texi: Update.
30218         * NEWS: Mention the change.
30219
30220         Rename module 'malloc' -> 'malloc-gnu'.
30221         * modules/malloc-gnu: New file, copied from modules/malloc.
30222         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30223         obsolete.
30224         * modules/argp (Depends-on): Update.
30225         * modules/regex (Depends-on): Update.
30226         * doc/posix-functions/malloc.texi: Update.
30227         * NEWS: Mention the change.
30228
30229 2010-08-28  Eric Blake  <eblake@redhat.com>
30230
30231         pread, pwrite: add missing dependency
30232         * modules/pread (Depends-on): Add extensions.
30233         * modules/pwrite (Depends-on): Likewise.
30234
30235 2010-08-28  Bruno Haible  <bruno@clisp.org>
30236
30237         unistr/u*-strchr: Fix tests dependencies.
30238         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30239         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30240         Reported by Ian Beckwith <ianb@erislabs.net>.
30241
30242 2010-08-28  Bruno Haible  <bruno@clisp.org>
30243
30244         read-file: Don't occupy too much unused memory.
30245         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30246
30247 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30248             Eric Blake  <eblake@redhat.com>
30249             Bruno Haible  <bruno@clisp.org>
30250
30251         read-file: Avoid memory reallocations with regular files.
30252         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30253         (fread_file): With regular files, use the remaining length as the
30254         initial buffer size.  Check against overflow.
30255         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30256         sys_stat.
30257
30258 2010-08-28  Bruno Haible  <bruno@clisp.org>
30259
30260         ftello: Relax license.
30261         * modules/ftello (License): Relax to LGPLv2+.
30262         Reported by Eric Blake.
30263
30264 2010-08-28  Bruno Haible  <bruno@clisp.org>
30265
30266         Avoid relocwrapper link errors due to gnulib replacement functions.
30267         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30268         function.
30269         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30270
30271 2010-08-28  Bruno Haible  <bruno@clisp.org>
30272
30273         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30274         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30275         defined.
30276         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30277         Suggested by Eric Blake.
30278
30279 2010-08-28  Bruno Haible  <bruno@clisp.org>
30280
30281         sys_socket, netdb: Ensure socklen_t gets defined.
30282         * modules/sys_socket (Depends-on): Add socklen.
30283         * modules/netdb (Depends-on): Likewise.
30284         * modules/getaddrinfo (Depends-on): Remove socklen.
30285         * modules/getsockopt (Depends-on): Likewise.
30286         * modules/setsockopt (Depends-on): Likewise.
30287         * tests/test-sys_socket.c: Check that socklen_t is defined.
30288         * tests/test-netdb.c: Likewise.
30289         * m4/socklen.m4: Update comments.
30290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30291
30292 2010-08-27  Eric Blake  <eblake@redhat.com>
30293
30294         login_tty: add missing dependency
30295         * modules/login_tty (Depends-on): Add pty.
30296
30297 2010-08-26  Eric Blake  <eblake@redhat.com>
30298
30299         lib-symbol-versions: fix m4 quoting
30300         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30301         format for AC_LINK_IFELSE.
30302
30303         glob: fix compile test
30304         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30305
30306         btowc: fix missing file
30307         * modules/btowc (Files): Also ship locale-fr.m4.
30308
30309         lseek: fix link test
30310         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30311         AC_LINK_IFELSE.
30312
30313         include_next: silence autoconf 2.68 warning
30314         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30315         AC_COMPILE_IFELSE as special.
30316         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30317         autoconf < 2.68.
30318
30319         acl: fix compilation test
30320         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30321         AC_COMPILE_IFELSE.
30322
30323 2010-08-26  Bruno Haible  <bruno@clisp.org>
30324
30325         Modernize AC_TRY_RUN invocations.
30326         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30327         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30328         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30329         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30330         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30331         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30333         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30334         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30335         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30336         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30337         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30338         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30339         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30341         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30342         gl_MBRLEN_NUL_RETVAL): Likewise.
30343         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30344         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30345         Likewise.
30346         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30347         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30348         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30349         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30350         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30351         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30352         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30353         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30354         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30355         Likewise.
30356         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30357         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30358         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30359         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30360         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30361         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30362         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30363         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30364         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30366
30367 2010-08-26  Bruno Haible  <bruno@clisp.org>
30368
30369         Modernize AC_TRY_LINK invocations.
30370         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30371         AC_TRY_LINK.
30372         * m4/argp.m4 (gl_ARGP): Likewise.
30373         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30374         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30375         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30376         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30377         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30378         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30379         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30380         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30381         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30382         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30383         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30384         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30385         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30386         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30387         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30388         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30389         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30390         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30391         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30392         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30393         Likewise.
30394         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30395         Likewise.
30396         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30397         Likewise.
30398         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30399         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30400         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30401         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30402         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30403         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30404         * m4/servent.m4 (gl_SERVENT): Likewise.
30405         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30406         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30407         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30408         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30409         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30410         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30411         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30412         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30413         * modules/tsearch-tests (configure.ac): Likewise.
30414
30415 2010-08-26  Bruno Haible  <bruno@clisp.org>
30416
30417         Modernize AC_TRY_COMPILE invocations.
30418         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30419         AC_TRY_COMPILE.
30420         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30421         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30422         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30423         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30424         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30425         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30426         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30427         * m4/lock.m4 (gl_LOCK): Likewise.
30428         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30429         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30430         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30431         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30432         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30433         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30434         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30435         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30436         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30437         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30438         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30439         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30440         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30441         extraneous semicolon.
30442
30443 2010-08-26  Jim Meyering  <meyering@redhat.com>
30444
30445         stat-time: relax license LGPL
30446         * modules/stat-time (License): Change from GPL to LGPL,
30447         with consent from all contributors, for use in libguile.
30448         Requested by Ludovic Courtès.
30449
30450 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30451
30452         poll: return immediately on POLLHUP.
30453         * lib/poll.c (poll): Always set timeout before wait_timeout is
30454         computed.
30455
30456 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30457
30458         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30459         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30460         rmdir ("dir/.//"), unlinkat.
30461
30462 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30463
30464         stdbool: avoid spurious failure with modern xlc
30465         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30466
30467 2010-08-24  Bruno Haible  <bruno@clisp.org>
30468
30469         getloadavg: simplify code
30470         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30471         gl_have_func. Update comments.
30472
30473 2010-08-24  Eric Blake  <eblake@redhat.com>
30474
30475         getloadavg: don't define SVR4 on cygwin
30476         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30477         only define SVR4 when -lkvm is required.
30478         Reported by Yaakov Selkowitz.
30479
30480 2010-08-24  Bruno Haible  <bruno@clisp.org>
30481
30482         priv-set: fix comment
30483         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30484
30485 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30486
30487         priv-set: fix comments
30488         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30489         to match code, as suggested by David Bartley in:
30490         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30491
30492 2010-08-23  Eric Blake  <eblake@redhat.com>
30493
30494         stdbool: avoid rejecting clang
30495         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30496         * tests/test-stdbool.c: Enable more tests if using the system
30497         <stdbool.h> instead of the gnulib replacement.
30498         (main): Move xlc bug test to a runtime test for all compilers.
30499         Reported by Anders Kaseorg.
30500
30501         argz: fix shell quoting issue
30502         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30503         Reported by Charles Wilson.
30504
30505 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30506             Erik Faye-Lund <kusmabite@gmail.com>
30507
30508         poll, select: handle ERROR_BROKEN_PIPE.
30509         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30510         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30511         * lib/select.c (win32_compute_revents): Do not mark a pipe
30512         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30513
30514 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30515
30516         fts: allow compilation with C++
30517         * lib/fts_.h: Specify extern "C" linkage with C++.
30518
30519 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30520
30521         Fix gnulib-tool sed script de-commentation for AIX sed.
30522         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30523         sed.
30524
30525 2010-08-17  Eric Blake  <eblake@redhat.com>
30526
30527         test-stddef: test for (some) offsetof bugs
30528         * tests/test-stddef.c: Enhance test to ensure correct type of
30529         offsetof.
30530         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30531         that we are not fixing at this time.
30532
30533 2010-08-15  Bruno Haible  <bruno@clisp.org>
30534
30535         stpncpy: Allow stpncpy to be defined as a macro.
30536         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30537         if it's already correctly declared.
30538         * lib/string.in.h (stpncpy): Undefine before redefining.
30539         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30540
30541 2010-08-14  Bruno Haible  <bruno@clisp.org>
30542
30543         Rename module 'memxfrm' to 'amemxfrm'.
30544         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30545         (amemxfrm): Renamed from memxfrm.
30546         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30547         (amemxfrm): Renamed from memxfrm.
30548         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30549         * NEWS: Mention the change.
30550         * MODULES.html.sh (String handling <string.h>): Update.
30551         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30552         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30553         * lib/unicase/u16-casexfrm.c: Likewise.
30554         * lib/unicase/u32-casexfrm.c: Likewise.
30555         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30556         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30557         * lib/uninorm/u16-normxfrm.c: Likewise.
30558         * lib/uninorm/u32-normxfrm.c: Likewise.
30559         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30560         memxfrm.
30561         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30562         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30563         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30564         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30565         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30566         Suggested by Paul Eggert.
30567
30568 2010-08-14  Bruno Haible  <bruno@clisp.org>
30569
30570         Tests for module 'astrxfrm'.
30571         * modules/astrxfrm-tests: New file.
30572         * tests/test-astrxfrm.c: New file.
30573
30574         New module 'astrxfrm'.
30575         * lib/astrxfrm.h: New file.
30576         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30577         * modules/astrxfrm: New file.
30578
30579 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30580
30581         regex: Tweak doc.
30582         * doc/regex.texi (Overview): Don't mention regex.c.
30583         (GNU Regular Expression Compiling): Likewise.
30584         (Match-end-of-line Operator): Mention 'not_eol'.
30585
30586 2010-08-14  Brian Gough  <bjg@gnu.org>
30587             Bruno Haible  <bruno@clisp.org>
30588
30589         git-merge-changelog: add doc relating to use with bzr and hg.
30590         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30591
30592 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30593
30594         pthread: fix pthread.h creation for srcdir != builddir
30595         * modules/pthread (Makefile.am): Fix the rule to work also in a
30596         non-srcdir build.
30597
30598 2010-08-13  Karl Berry  <karl@gnu.org>
30599
30600         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30601         * doc/posix-*/*: force line break before @url of POSIX
30602         specifications.
30603         Suggested by Werner Lemberg.
30604
30605 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30606
30607         strtod: fix const diagnostic
30608         * lib/strtod.c (strtod): Don't assign const char * to char *,
30609         as this elicits a warning from GCC when warnings are enabled.
30610
30611 2010-08-10  Pádraig Brady <P@draigbrady.com>
30612         and Eric Blake  <eblake@redhat.com>
30613
30614         copy-acl: ignore ENOTSUP on HP-UX
30615         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30616         so that it is available for HP-UX.
30617         * lib/copy-acl.c (qcopy_acl): Use it.
30618         Reported by Patrick M. Callahan.
30619
30620 2010-08-10  Eric Blake  <eblake@redhat.com>
30621
30622         open, chown: relax license
30623         * modules/open (License): Change to LGPLv2+, with consent by all
30624         authors, for use in augeas.
30625         * modules/chown (License): Likewise.
30626         * modules/lchown (Likewise): Likewise.
30627         Requested by Adam Stokes.
30628
30629 2010-08-09  Karl Berry  <karl@gnu.org>
30630
30631         * build-aux/ar-lib: new file, import from Automake.
30632         * config/srclist.txt: autocheck for updates.
30633
30634 2010-08-09  Eric Blake  <eblake@redhat.com>
30635
30636         readlinkat: adjust client modules
30637         * modules/areadlinkat (Depends-on): Use readlinkat, not
30638         symlinkat.
30639         * modules/areadlinkat-with-size (Depends-on): Likewise.
30640
30641         mknod: be more vocal about danger of running tests as root
30642         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30643         root, since that is just asking for problems.
30644         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30645
30646         readlinkat: split into its own module
30647         * modules/symlinkat: Split readlinkat...
30648         * modules/readlinkat: ...into separate module.
30649         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30650         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30651         * lib/symlinkat.c (readlinkat): Move...
30652         * lib/readlinkat.c: ...into new file.
30653         * modules/symlinkat-tests: Split readlinkat test...
30654         * modules/readlinkat-tests: ...into separate module.
30655         * tests/test-symlinkat.c: Split...
30656         * tests/test-readlinkat.c: ...into new file.
30657         * NEWS: Document the split.
30658         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30659         * lib/unistd.in.h (readlinkat): Likewise.
30660         Suggested by Bruno Haible.
30661
30662 2010-08-08  Bruno Haible  <bruno@clisp.org>
30663
30664         memxfrm: Speed up.
30665         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30666         that usually only one call to strxfrm is necessary for each string
30667         part.
30668         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30669
30670 2010-08-07  Karl Berry  <karl@gnu.org>
30671
30672         * doc/posix-headers/limits.texi,
30673         * doc/posix-functions/malloc.texi,
30674         * doc/posix-functions/strsignal.texi: missing @item.
30675         * doc/ld-version-script.texi: spurious leading i.
30676         * doc/regex.texi (Interval Operators): no commas inside @var.
30677
30678 2010-08-01  Bruno Haible  <bruno@clisp.org>
30679
30680         Integrate the regex documentation.
30681         * doc/gnulib.texi: Define 'cn' index.
30682         (Regular expressions): New a chapter that includes regex.texi and
30683         regexprops-generic.texi.
30684         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30685         syntax.
30686
30687         Whitespace cleanup.
30688         * doc/regex.texi: Remove trailing spaces.
30689
30690         Add regex documentation.
30691         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30692         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30693         Written by Kathy A. Hargreaves and Karl Berry.
30694
30695 2010-08-01  Bruno Haible  <bruno@clisp.org>
30696
30697         link: Update documentation.
30698         * doc/posix-functions/link.texi: Update regarding Solaris.
30699
30700 2010-07-31  Bruno Haible  <bruno@clisp.org>
30701
30702         Update modules list.
30703         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30704         (String handling <string.h>): Add memcmp2, memxfrm.
30705         (Container data structures): Add xlist, xsublist, xoset.
30706         (Core language properties): Add alignof, unused-parameter.
30707         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30708         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30709         (Unibyte characters <ctype.h>): New section.
30710         (String handling <string.h>): New section.
30711         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30712         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30713         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30714         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30715         tan, tanh, tanl, y0, y1, yn.
30716         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30717         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30718         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30719         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30720         unlockpt, vdprintf, vdprintf-posix.
30721         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30722         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30723         xconcat-filename.
30724         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30725         getdtablesize, pipe2, pipe2-safer.
30726         (Security): New section.
30727         (Networking functions): Add accept4.
30728         (Signal handling): Add sigpipe.
30729         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30730         mbmemcasecoll.
30731         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30732         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30733         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30734         pipe-filter-ii.
30735         (Misc): Add argp-version-etc, login_tty, parse-duration.
30736
30737 2010-07-31  Bruno Haible  <bruno@clisp.org>
30738
30739         Improve doc in MODULES.html.
30740         * modules/linkat (Description): Add the word "function".
30741         * modules/mkfifo (Description): Likewise.
30742         * modules/mknod (Description): Likewise.
30743         * modules/remove (Description): Likewise.
30744         * modules/renameat (Description): Likewise.
30745         * modules/stat (Description): Likewise.
30746         * modules/symlink (Description): Likewise.
30747         * modules/unlink (Description): Likewise.
30748
30749 2010-07-31  Bruno Haible  <bruno@clisp.org>
30750
30751         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30752         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30753         option --enable/disable-c++ instead of --enable/disable-cxx.
30754         * NEWS: Mention the change.
30755
30756 2010-07-31  Bruno Haible  <bruno@clisp.org>
30757
30758         readlink, areadlink: Relax test a bit.
30759         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30760         alternative to ENOTDIR.
30761         * tests/test-areadlink.h (test_areadlink): Likewise.
30762         Reported by Rainer Tammer.
30763
30764 2010-07-31  Bruno Haible  <bruno@clisp.org>
30765
30766         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30767         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30768         character, perform the search using U_STRCHR.
30769         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30770         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30771         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30772         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30773         Suggested by Paolo Bonzini.
30774
30775 2010-07-31  Bruno Haible  <bruno@clisp.org>
30776
30777         unistr/u*-strstr: Fix dependencies.
30778         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30779         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30780         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30781
30782 2010-07-31  Bruno Haible  <bruno@clisp.org>
30783
30784         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30785         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30786         the beginning of the loop.
30787         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30788         cases in 'switch' statement.
30789
30790         unistr/u8-strchr: Fix several bugs.
30791         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30792         the string. When not found, return NULL, not a pointer near the end.
30793
30794         More tests for unistr/u8-strchr.
30795         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30796         that the function does not read past the first occurrence of the byte
30797         being searched.
30798         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30799         * tests/unistr/test-u16-strchr.c (main): New function.
30800         * tests/unistr/test-u32-strchr.c (main): New function.
30801
30802 2010-07-31  Bruno Haible  <bruno@clisp.org>
30803
30804         posix-modules: Ignore backup files of documentation files.
30805         * posix-modules: grep only through files named *.texi.
30806
30807 2010-07-31  Bruno Haible  <bruno@clisp.org>
30808
30809         symlinkat: Fix documentation.
30810         * doc/posix-functions/readlinkat.texi: Fix module name.
30811
30812 2010-07-31  Bruno Haible  <bruno@clisp.org>
30813
30814         fchownat: Replace also when chown has the trailing slash bug.
30815         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30816         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30817         introduced on 2010-04-10.
30818         Reported by Rainer Tammer.
30819
30820 2010-07-31  Bruno Haible  <bruno@clisp.org>
30821
30822         linkat: Work around AIX 7.1 bug.
30823         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30824         whether linkat handles trailing slash correctly. If not, replace linkat
30825         and define LINKAT_TRAILING_SLASH_BUG.
30826         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30827         check whether (fd1,file1) points to a directory if file1 or file2 ends
30828         in a slash. Code taken from lib/link.c.
30829         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30830         Reported by Rainer Tammer.
30831
30832 2010-07-31  Bruno Haible  <bruno@clisp.org>
30833
30834         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30835         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30836         This disables an xlc optimization that was causing wrong test results.
30837         Reported by Rainer Tammer.
30838
30839 2010-07-31  Bruno Haible  <bruno@clisp.org>
30840
30841         iconv: Work around AIX 6.1..7.1 bug.
30842         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30843         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30844         cross-compiling, guess no on all versions of AIX.
30845         Reported by Rainer Tammer.
30846
30847 2010-07-31  Bruno Haible  <bruno@clisp.org>
30848
30849         readlink: Relax test a bit.
30850         * tests/test-readlink.h (test_readlink): Allow different errno value
30851         when readlink is called with a file name that ends in / and refers to
30852         a file.
30853         Suggested by Eric Blake.
30854         Reported by Rainer Tammer.
30855
30856 2010-07-31  Bruno Haible  <bruno@clisp.org>
30857
30858         copysign: Does not require -lm on glibc systems.
30859         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30860         gl_COMMON_DOUBLE_MATHFUNC.
30861         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30862
30863 2010-07-31  Bruno Haible  <bruno@clisp.org>
30864
30865         duplocale: Work around AIX 7.1 bug.
30866         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30867         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30868         * lib/duplocale.c (rpl_duplocale): Update comment.
30869         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30870         Reported by Rainer Tammer.
30871
30872 2010-07-30  Bruno Haible  <bruno@clisp.org>
30873
30874         dirfd: Avoid link error on AIX 7.1.
30875         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30876         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30877         exist, set REPLACE_DIRFD.
30878         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30879         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30880         * doc/posix-functions/dirfd.texi: Update.
30881         Reported by Rainer Tammer.
30882
30883 2010-07-30  Eric Blake  <eblake@redhat.com>
30884
30885         strtod: next round of AIX fixes
30886         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30887         exponent.
30888         * tests/test-strtod.c (main): Enhance tests.
30889         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30890         Reported by Rainer Tammer.
30891
30892         futimens: fix configure check
30893         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30894         Reported by Bruno Haible.
30895
30896 2010-07-30  Bruno Haible  <bruno@clisp.org>
30897
30898         getline: Update regarding AIX.
30899         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30900         Reported by Rainer Tammer.
30901
30902 2010-07-30  Bruno Haible  <bruno@clisp.org>
30903
30904         wcwidth: Drop replacement on AIX 7.
30905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30906         AIX 7.
30907         Reported by Rainer Tammer.
30908
30909 2010-07-30  Bruno Haible  <bruno@clisp.org>
30910
30911         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30912         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30913         a 'char *'.
30914         Reported by Rainer Tammer.
30915
30916 2010-07-30  Bruno Haible  <bruno@clisp.org>
30917
30918         unlink: Update regarding AIX.
30919         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30920         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30921         Reported by Rainer Tammer.
30922
30923 2010-07-30  Bruno Haible  <bruno@clisp.org>
30924
30925         symlink: Update regarding AIX.
30926         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30927         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30928         Reported by Rainer Tammer.
30929
30930 2010-07-30  Bruno Haible  <bruno@clisp.org>
30931
30932         strndup: Update regarding AIX.
30933         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30934         AIX 7.
30935         Reported by Rainer Tammer.
30936
30937 2010-07-30  Bruno Haible  <bruno@clisp.org>
30938
30939         stat: Update regarding AIX.
30940         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30941         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30942         Reported by Rainer Tammer.
30943
30944 2010-07-30  Bruno Haible  <bruno@clisp.org>
30945
30946         truncl: Fix autoconf test.
30947         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30948         whether truncl works.
30949         Reported by Rainer Tammer.
30950
30951 2010-07-30  Bruno Haible  <bruno@clisp.org>
30952
30953         round: Update regarding AIX.
30954         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30955         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30956         Reported by Rainer Tammer.
30957
30958 2010-07-30  Bruno Haible  <bruno@clisp.org>
30959
30960         rename: Update regarding AIX.
30961         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30962         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30963         Reported by Rainer Tammer.
30964
30965 2010-07-30  Bruno Haible  <bruno@clisp.org>
30966
30967         printf.m4: Update regarding AIX.
30968         * m4/printf.m4: Update comments regarding AIX.
30969         Reported by Rainer Tammer.
30970
30971 2010-07-30  Bruno Haible  <bruno@clisp.org>
30972
30973         iconv: Update regarding AIX.
30974         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30975         AIX 7.
30976         Reported by Rainer Tammer.
30977
30978 2010-07-30  Bruno Haible  <bruno@clisp.org>
30979
30980         getopt: Update regarding AIX.
30981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30982         no on AIX.
30983         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30984         Reported by Rainer Tammer.
30985
30986 2010-07-30  Bruno Haible  <bruno@clisp.org>
30987
30988         ldexpl; Update regarding AIX.
30989         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30990         on AIX 7.
30991         Reported by Rainer Tammer.
30992
30993 2010-07-30  Bruno Haible  <bruno@clisp.org>
30994
30995         frexpl: Update regarding AIX.
30996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30997         on AIX 7.
30998         Reported by Rainer Tammer.
30999
31000 2010-07-30  Bruno Haible  <bruno@clisp.org>
31001
31002         open, fopen: Update regarding AIX.
31003         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31004         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31005         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31006         * doc/posix-functions/fopen.texi: Likewise.
31007         Reported by Rainer Tammer.
31008
31009 2010-07-30  Bruno Haible  <bruno@clisp.org>
31010
31011         chown: Update doc regarding AIX.
31012         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31013         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31014         Reported by Rainer Tammer.
31015
31016 2010-07-30  Eric Blake  <eblake@redhat.com>
31017
31018         strtod: fix bug in replacement function on AIX
31019         * lib/strtod.c (strtod): Special case broken "0x" parse in
31020         underlying strtod.
31021         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31022         * doc/posix-functions/strtod.texi (strtod): Likewise.
31023         Reported by Rainer Tammer.
31024
31025 2010-07-30  Bruno Haible  <bruno@clisp.org>
31026
31027         mbrlen: Fix cross-compilation guess for AIX.
31028         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31029         guess. Leftover from 2008-12-22.
31030
31031 2010-07-30  Bruno Haible  <bruno@clisp.org>
31032
31033         mbrtowc: Fix cross-compilation guess for AIX.
31034         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31035         guess. Leftover from 2008-12-21.
31036
31037 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31038
31039         init.sh: work around trap limitation of some shells
31040         * tests/init.sh (setup_): Move exit trap outside of shell function.
31041
31042 2010-07-29  Eric Blake  <eblake@redhat.com>
31043
31044         strtod: aid debugging
31045         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31046         understanding why strtod is rejected.
31047
31048 2010-07-28  Bruno Haible  <bruno@clisp.org>
31049
31050         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31051         * lib/unistr/u8-chr.c: Include <string.h>.
31052         * tests/unistr/test-u8-chr.c: Likewise.
31053         * tests/unistr/test-u16-chr.c: Likewise.
31054         * tests/unistr/test-u32-chr.c: Likewise.
31055         * tests/unistr/test-u8-strchr.c: Likewise.
31056         * tests/unistr/test-u16-strchr.c: Likewise.
31057         * tests/unistr/test-u32-strchr.c: Likewise.
31058         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31059         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31060         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31061         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31062
31063 2010-07-28  Bruno Haible  <bruno@clisp.org>
31064
31065         Use spaces for indentation, not tabs.
31066         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31067
31068 2010-07-27  Bruno Haible  <bruno@clisp.org>
31069
31070         mbspcasecmp: Fix function specification.
31071         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31072         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31073         Reported by Eric Blake <eblake@redhat.com>.
31074
31075 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31076
31077         timespec: use cast and not conditional, as truncation isn't possible
31078         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31079         instead of a conditional.  Comment about the situation in more detail.
31080         This undoes most of the 2009-10-29 patch.
31081
31082 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31083
31084         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31085         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31086         * lib/unistr/u8-strchr.c: Likewise.
31087         * modules/unistr/u8-chr: Depend on memchr.
31088
31089         unistr/u*-strchr: add tests
31090         * modules/unistr/u8-strchr-tests: New file.
31091         * modules/unistr/u16-strchr-tests: New file.
31092         * modules/unistr/u32-strchr-tests: New file.
31093         * tests/unistr/test-strchr.h: New file.
31094         * tests/unistr/test-u8-strchr.c: New file.
31095         * tests/unistr/test-u16-strchr.c: New file.
31096         * tests/unistr/test-u32-strchr.c: New file.
31097
31098         unistr/u*-chr: test multibyte sequences more
31099         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31100         test vector.
31101         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31102         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31103         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31104
31105         unistr/u*-chr: test multibyte sequences
31106         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31107
31108         unistr/u*-chr: prepare for multibyte tests
31109         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31110         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31111         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31112         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31113         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31114         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31115
31116 2010-07-18  Bruno Haible  <bruno@clisp.org>
31117
31118         unistr/u8-strchr: Optimize non-ASCII argument case.
31119         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31120         because the first byte often matches anyway.
31121         Reported by Pádraig Brady <P@draigbrady.com>.
31122
31123 2010-07-15  Karl Berry  <karl@gnu.org>
31124
31125         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31126
31127 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31128
31129         getcwd: on Solaris, work better if ancestors are inaccessible
31130         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31131         buffer and size, try again with a large buffer.  This works better
31132         on Solaris, since its getcwd succeeds even if the path to the root
31133         is inaccessible, and this is helpful in common cases such as .zfs
31134         hidden directories.  Problem reported by J Chapman Flack in
31135         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31136         Use system getcwd if it's declared, not merely if it's partly
31137         working; use the partly-working test only to avoid needless effort
31138         if the system getcwd fails.
31139         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31140         comment that was already obsolete and is now even more obsolete.
31141         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31142         now might call strdup.
31143
31144 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31145
31146         pthread: Add enough so that coreutils/src/sort.c compiles.
31147         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31148         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31149         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31150         Include <sys/types.h>, in case it defines pthread_t.
31151         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31152         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31153         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31154         (pthread_rwlockattr_t, pthread_spinlock_t):
31155         New typedefs, if HAVE_PTHREAD_T is not defined.
31156         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31157         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31158         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31159         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31160         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31161         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31162         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31163         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31164         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31165         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31166         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31167         New macros.
31168         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31169         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31170         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31171         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31172         (pthread_spin_unlock): New dummy functions.
31173         (pthread_create): Return EAGAIN; don't set errno.
31174         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31175         require AC_C_INLINE.
31176         * modules/pthread (Depends-on): Add sched, time.
31177         (pthread.h): Use AM_V_GEN.
31178
31179 2010-07-13  Bruno Haible  <bruno@clisp.org>
31180
31181         striconveh: Don't malloc memory if the result buffer is sufficient.
31182         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31183         buffer if its size is sufficient.
31184         Reported by Ludovic Courtès <ludo@gnu.org>.
31185
31186 2010-07-13  Bruno Haible  <bruno@clisp.org>
31187
31188         strtod: Add safety check.
31189         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31190
31191 2010-07-12  Bruno Haible  <bruno@clisp.org>
31192
31193         Unify tests that set gl_cv_func_ldexpl_no_libm.
31194         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31195         gl_FUNC_LDEXPL.
31196         (gl_FUNC_LDEXPL): Invoke it.
31197         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31198
31199 2010-07-12  Bruno Haible  <bruno@clisp.org>
31200
31201         Unify tests that set gl_cv_func_ldexp_no_libm.
31202         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31203         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31204         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31205         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31206         * modules/strtod (Files): Add m4/ldexp.m4.
31207
31208 2010-07-12  Bruno Haible  <bruno@clisp.org>
31209
31210         Unify tests that set gl_cv_func_frexpl_no_libm.
31211         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31212         gl_FUNC_FREXPL_NO_LIBM.
31213         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31214         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31215
31216 2010-07-12  Bruno Haible  <bruno@clisp.org>
31217
31218         Unify tests that set gl_cv_func_frexp_no_libm.
31219         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31220         gl_FUNC_FREXP_NO_LIBM.
31221         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31222         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31223
31224 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31225
31226         memcoll: clarify sizes versus lengths, document better, and tweak perf
31227         * lib/memcoll.c (strcoll_loop, memcoll0):
31228         Improve quality of descriptive comments.  Name variables
31229         consistently as to whether they are lengths (which do not include
31230         terminating null) versus sizes (which do).
31231         * lib/xmemcoll.c (xmemcoll0): Likewise.
31232         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31233         returned when s1size == 0; this is easier to compile and saves
31234         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31235
31236 2010-07-12  Bruno Haible  <bruno@clisp.org>
31237
31238         Tests for module '_Exit'.
31239         * modules/_Exit-tests: New file.
31240         * tests/test-_Exit.sh: New file.
31241         * tests/test-_Exit.c: New file.
31242
31243         New module '_Exit'.
31244         * lib/stdlib.in.h (__attribute__): New macro.
31245         (_Exit): New declaration.
31246         * lib/_Exit.c: New file.
31247         * m4/_Exit.m4: New file.
31248         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31249         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31250         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31251         * modules/_Exit: New file.
31252         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31253         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31254
31255 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31256
31257         strtod: make it more-accurate typically, and don't require libm
31258         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31259         Include limits.h.  Don't include string.h.
31260         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31261         (locale_isspace): New function, so that no casts are needed to
31262         check whether *s is a space.
31263         (ldexp): Provide an unused dummy if not available.
31264         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31265         (strtod): Use them.  This implementation prefers to use the
31266         underlying strtod if available, falling back on our own code
31267         only to fix known bugs.  This is more likely to produce an
31268         accurate result.  Also, it avoids the use of libm functions.
31269         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31270         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31271         was absent, but it caused a test failure with coreutils.
31272         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31273         with libm.
31274         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31275         * modules/strtod-tests (Makefile.am): Likewise.
31276
31277 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31278             Bruno Haible  <bruno@clisp.org>
31279
31280         unistr/u8-strchr: Optimize ASCII argument case.
31281         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31282
31283 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31284
31285         (x)memcoll: minor tweaks
31286         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31287         is after the type that it qualifies.
31288         (memcoll0): Likewise.
31289         * lib/memcoll.h (memcoll0): Likewise.
31290         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31291         * lib/xmemcoll.h (xmemcoll0): Likewise.
31292         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31293         differs from memcoll in that the NUL byte is part of the argument.
31294         Omit the abort-checks, as performance is a real issue here.  Plus,
31295         the checks were wrong anyway (an off-by-one error).  Omit local
31296         variable 'diff', as it's a bit clearer that way.
31297         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31298         no longer needed.
31299
31300 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31301
31302         (x)memcoll: speedup when input is known to be NUL delimited
31303         * lib/memcoll.c: Include stdlib.
31304         (memcoll0): New function.
31305         (strcoll_loop): New function, refactored for use in both memcoll
31306         and memcoll0.
31307         * lib/memcoll.h (memcoll0): Add prototype.
31308         * lib/xmemcoll.c (xmemcoll0): New function.
31309         (collate_error): New function, refactored for use in both xmemcoll
31310         and xmemcoll0.
31311         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31312         * m4/memcoll.m4: add inline invocation.
31313
31314 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31315
31316         * build-aux/bootstrap: Remove any local translations
31317         from the translation project synchronization directory,
31318         so that local only translations are not distributed.
31319
31320 2010-07-04  Bruno Haible  <bruno@clisp.org>
31321
31322         fsusage: Clarify which code applies to which platforms.
31323         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31324         platform.
31325         * lib/fsusage.c (get_fs_usage): Likewise.
31326
31327 2010-07-04  Bruno Haible  <bruno@clisp.org>
31328
31329         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31330         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31331         Reported by Martin Lambers <marlam@marlam.de>.
31332
31333 2010-07-04  Jim Meyering  <meyering@redhat.com>
31334
31335         hash: once again explicitly disallow insertion of NULL
31336         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31337         inserting a NULL pointer cannot work with these functions.
31338         Add a comment with details.
31339         This reverts part of the 2010-07-01 commit, 5bef1a35
31340         "hash: extend module to deal with non-pointer keys".
31341
31342 2010-07-01  Bruno Haible  <bruno@clisp.org>
31343
31344         stdbool: Update doc.
31345         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31346         Info from Christian Weisgerber <naddy@mips.inka.de>.
31347
31348 2010-07-01  Jim Meyering  <meyering@redhat.com>
31349
31350         hash: extend module to deal with non-pointer keys
31351         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31352         but that allows insertion of non-pointer entries.
31353         Do not disallow an ENTRY value of NULL.
31354         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31355         * lib/hash.h (hash_insert0): Declare.
31356
31357 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31358
31359         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31360         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31361         not present (i.e. with autoconf 2.59 and when using gettextize, not
31362         gnulib), require AC_GNU_SOURCE instead.
31363
31364 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31365
31366         idpriv-drop: Fix tests.
31367         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31368         not to the test-idpriv-droptemp program.
31369
31370 2010-06-29  Bruno Haible  <bruno@clisp.org>
31371
31372         string: Fix syntax error with g++ 2.96.
31373         * lib/string.in.h (__pure__): Remove definition.
31374         (_GL_ATTRIBUTE_PURE): New macro.
31375         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31376         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31377         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31378
31379 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31380
31381         unitypes: Fix bug introduced on 2010-05-18.
31382         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31383
31384 2010-06-22  Eric Blake  <eblake@redhat.com>
31385
31386         memmem: slight optimization
31387         * lib/str-two-way.h (critical_factorization): Update comments.
31388         Reduce work during factorization phase.
31389         Reported by Carlos Bueno <carlos@bueno.org>.
31390
31391 2010-06-21  Bruno Haible  <bruno@clisp.org>
31392
31393         Fix HAVE_CALLOC_POSIX misnomer.
31394         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31395         !HAVE_CALLOC_POSIX.
31396         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31397         HAVE_CALLOC_POSIX.
31398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31399         instead of HAVE_CALLOC_POSIX.
31400         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31401         HAVE_CALLOC_POSIX.
31402
31403         Use modern idiom for calloc() replacement.
31404         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31405         AC_FUNC_CALLOC.
31406         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31407         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31408         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31409         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31410         (gl_REPLACE_CALLOC): New macro.
31411
31412 2010-06-21  Bruno Haible  <bruno@clisp.org>
31413
31414         Fix HAVE_REALLOC_POSIX misnomer.
31415         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31416         !HAVE_REALLOC_POSIX.
31417         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31418         HAVE_REALLOC_POSIX.
31419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31420         instead of HAVE_REALLOC_POSIX.
31421         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31422         HAVE_REALLOC_POSIX.
31423
31424         Use modern idiom for realloc() replacement.
31425         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31426         AC_FUNC_REALLOC.
31427         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31428         Autoconf's AC_FUNC_REALLOC.
31429         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31430         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31431         (gl_REPLACE_REALLOC): New macro.
31432         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31433
31434 2010-06-21  Bruno Haible  <bruno@clisp.org>
31435
31436         Fix HAVE_MALLOC_POSIX misnomer.
31437         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31438         !HAVE_MALLOC_POSIX.
31439         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31440         HAVE_MALLOC_POSIX.
31441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31442         instead of HAVE_MALLOC_POSIX.
31443         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31444         HAVE_MALLOC_POSIX.
31445
31446         Use modern idiom for malloc() replacement.
31447         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31448         AC_FUNC_MALLOC.
31449         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31450         Autoconf's AC_FUNC_MALLOC.
31451         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31452         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31453         (gl_REPLACE_MALLOC): New macro.
31454         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31455
31456 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31457
31458         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31459         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31460         This macro takes 3 arguments, not 4.
31461
31462 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31463
31464         ipv6: fix detection under mingw
31465         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31466         in6_addr.
31467
31468 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31469
31470         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31471         that strtod() works when cross-compiling to a glibc version known
31472         to work.
31473
31474 2010-06-15  Bruno Haible  <bruno@clisp.org>
31475
31476         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31477
31478 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31479
31480         select: Correct timeout.
31481         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31482
31483 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31484
31485         git-version-gen: init shell var to avoid env var influence
31486         * build-aux/git-version-gen (v): Init shell var to empty.
31487
31488 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31489
31490         priv-set: Don't assume that priv.h exists merely because getppriv does.
31491         See Jan Andersen's bug report about AIX 5L in
31492         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31493         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31494         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31495         * lib/priv-set.h: Likewise.
31496         * tests/test-priv-set.c: Likewise.
31497
31498 2010-06-13  Bruno Haible  <bruno@clisp.org>
31499
31500         relocatable: Make it easier to test whether to install wrappers.
31501         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31502         RELOCATABLE_VIA_WRAPPER.
31503
31504 2010-06-13  Bruno Haible  <bruno@clisp.org>
31505
31506         gnulib-tool: Display specified modules and dependencies differently.
31507         * gnulib-tool (func_show_module_list): New function.
31508         (func_import, func_create_testdir): Invoke it.
31509         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31510
31511 2010-06-13  Bruno Haible  <bruno@clisp.org>
31512
31513         gnulib-tool: Align code of func_import and func_create_testdir.
31514         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31515         specified_modules.
31516
31517 2010-06-12  Jim Meyering  <meyering@redhat.com>
31518
31519         test-inttostr: avoid spurious failure on Solaris 9
31520         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31521         to accept "%ju".  Reported by Bruno Haible.
31522
31523 2010-06-11  Jim Meyering  <meyering@redhat.com>
31524
31525         test-sys_socket: mark variables as used more readably
31526         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31527         as "used" explicitly via (void) statement casts.  This is more
31528         readable than using them in an artificial return expression.
31529         Suggestion from Bruno Haible.
31530
31531 2010-06-11  Bruno Haible  <bruno@clisp.org>
31532
31533         Avoid some more warnings from "gcc -Wwrite-strings".
31534         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31535         to 'const char *'.
31536         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31537         * tests/test-c-strcasestr.c (main): Likewise.
31538         * tests/test-mbscasestr1.c (main): Likewise.
31539         * tests/test-mbscasestr2.c (main): Likewise.
31540         * tests/test-memmem.c (main): Likewise.
31541         * tests/test-strstr.c (main): Likewise.
31542         * tests/test-strcasestr.c (main): Likewise.
31543
31544 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31545
31546         init.sh: change framework_failure_ to fail with status 99, not 1
31547         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31548         automake's parallel-tests rule that this is an unexpected failure,
31549         even if the test is listed in XFAIL_TESTS.
31550
31551 2010-06-11  Jim Meyering  <meyering@redhat.com>
31552
31553         test-inttostr: avoid warnings about 4-6KB literal strings
31554         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31555         Include "macros.h", for its definition of ASSERT.
31556         (CK): s/assert/ASSERT/
31557         * modules/inttostr-tests (Files): Add macros.h.
31558
31559         init.sh: don't use $ME_ or skip_ before they are defined
31560         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31561         their first uses.  Also hoist their companions: warn_, fail_,
31562         framework_failure_, $stderr_fileno.  Prompted by a patch from
31563         Stefano Lattarini.
31564
31565         test-sys_socket: avoid set-but-not-used warnings from gcc
31566         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31567         avoid warning about set-but-not-used variables.
31568
31569         test-xvasprintf: avoid 'const' discard warnings
31570         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31571         "const" when assigning from literal strings.
31572         (test_xasprintf): Add "void" in function argument list to placate
31573         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31574
31575         tests: avoid compilation warnings in argmatch and exclude tests...
31576         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31577         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31578         Since it always exits, declare with the "noreturn" attribute.
31579         * tests/test-argmatch.c: Likewise.
31580
31581         tests: avoid 'const' discard warnings in mbsstr tests
31582         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31583         * tests/test-mbsstr2.c (main): Likewise.
31584
31585         test-verify: avoid warning from gcc's -Wmissing-declarations
31586         * tests/test-verify.c (function): Declare to be static.
31587
31588         test-inttostr.c: include <string.h> for use of strcmp
31589         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31590
31591         test-linkat: avoid failed assertion on "other" architectures
31592         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31593         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31594         sparc: https://bugs.launchpad.net/bugs/591968
31595
31596 2010-06-11  Jim Meyering  <meyering@redhat.com>
31597
31598         printf.m4: avoid autoconf's "Expanded Before Required" warning
31599         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31600         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31601         autoconf warning.
31602
31603 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31604
31605         Replacement header templates are now named with ".in", not "_".
31606         * doc/gnulib-intro.texi: Correct.
31607
31608 2010-06-10  Jim Meyering  <meyering@redhat.com>
31609
31610         inttostr-tests: depend on snprintf, not snprintf-posix
31611         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31612         snprintf-posix, to avoid this aclocal failure:
31613           missing file gnulib-tests/vasnprintf.c
31614           configure.ac:45: error: expected source file, required through \
31615           AC_LIBSOURCES, not found
31616
31617 2010-06-10  Jim Meyering  <meyering@redhat.com>
31618
31619         inttostr: add a new function, inttostr, and tests
31620         The namesake function was not available.  The existence of the
31621         template file, inttostr.c makes its addition nontrivial.
31622         * lib/anytostr.c: Rename from inttostr.c.
31623         (anytostr): Rename from inttostr.
31624         * lib/inttostr.c: New file.
31625         * modules/inttostr (Files): Add anytostr.c.
31626         (Makefile.am): Set lib_SOURCES instead of ...
31627         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31628         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31629         * lib/offtostr.c: Likewise.
31630         * lib/uinttostr.c: Likewise.
31631         * lib/umaxtostr.c: Likewise.
31632         * modules/inttostr-tests: New file.
31633         * tests/test-inttostr.c: New file.  Test these functions.
31634
31635 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31636             Bruno Haible  <bruno@clisp.org>
31637
31638         Add "Extending Gnulib" chapter to manual.
31639         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31640         chapter.
31641         (Extending Gnulib): New chapter.
31642         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31643         chapter.
31644
31645 2010-06-09  Bruno Haible  <bruno@clisp.org>
31646
31647         Avoid relocwrapper link errors due to gnulib replacement functions.
31648         * lib/areadlink.c: Use the system's malloc, realloc functions.
31649         (areadlink): Set errno to ENOMEM explicitly.
31650         * modules/areadlink (Depends-on): Remove malloc-posix.
31651         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31652
31653 2010-06-09  Bruno Haible  <bruno@clisp.org>
31654
31655         Avoid relocwrapper link errors due to gnulib replacement functions.
31656         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31657         * lib/malloca.c: Likewise.
31658         * lib/relocatable.c: Likewise.
31659         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31660         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31661         * lib/setenv.c: Use the system's malloc, realloc functions.
31662         * lib/strerror.c: Use the system's sprintf function.
31663         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31664
31665 2010-06-04  Bruno Haible  <bruno@clisp.org>
31666
31667         Prefer documented low-level autoconf macro names.
31668         * m4/lib-link.m4: Use m4_translit instead of translit.
31669         * m4/environ.m4: Likewise.
31670         * m4/mathfunc.m4: Likewise.
31671         * m4/onceonly.m4: Likewise.
31672         * m4/stdint.m4: Likewise.
31673         Suggested by Eric Blake.
31674
31675 2010-06-04  Martin Lambers  <marlam@marlam.de>
31676             Bruno Haible  <bruno@clisp.org>
31677
31678         havelib: Allow library names with '+' characters.
31679         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31680         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31681
31682 2010-06-09  Bruno Haible  <bruno@clisp.org>
31683
31684         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31685         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31686         realloc failed.
31687
31688 2010-06-08  Peter Simons  <simons@cryp.to>
31689
31690         maint.mk: make the news-check rule more configurable
31691         * top/maint.mk (news-check-lines-spec): New variable.
31692         (news-check): Use "sed -n 1,10p" in place of "head".
31693
31694 2010-06-07  Jim Meyering  <meyering@redhat.com>
31695
31696         do-release-commit-and-tag: fix typo in --help
31697         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31698
31699         regex: avoid new dead-code warning with gcc-4.6.0
31700         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31701         if-block containing a while-loop.  It's been unused for at least
31702         5 years.
31703
31704 2010-06-05  Bruno Haible  <bruno@clisp.org>
31705
31706         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31707         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31708
31709 2010-06-04  Bruno Haible  <bruno@clisp.org>
31710
31711         Update to GNU gettext 0.18.1.
31712         * modules/gettext (configure.ac): Require gettext infrastructure from
31713         version 0.18.1.
31714
31715 2010-06-03  Bruno Haible  <bruno@clisp.org>
31716
31717         Don't use AC_LIBOBJ with file names in subdirectories.
31718         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31719         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31720         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31721         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31722         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31723         gl_LIBUNISTRING_LIBSOURCE.
31724         (Makefile.am): Augment lib_SOURCES here, conditionally.
31725         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31726
31727 2010-06-03  Bruno Haible  <bruno@clisp.org>
31728
31729         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31730         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31731         expansion does not end with a newline.
31732         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31733         unnecessary newline.
31734
31735 2010-06-03  Bruno Haible  <bruno@clisp.org>
31736
31737         Reduce dependencies.
31738         * tests/test-quotearg.h: New file, extracted from
31739         tests/test-quotearg.c.
31740         * tests/test-quotearg-simple.c: New file, extracted from
31741         tests/test-quotearg.c.
31742         * tests/test-quotearg.c: Don't include <ctype.h>.
31743         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31744         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31745         use_quote_double_quotes, use_quotearg_colon): Moved to
31746         tests/test-quotearg.h.
31747         (results_g, flag_results, custom_quotes, custom_results): Moved
31748         to tests/test-quotearg-simple.c.
31749         (main): Moved the part that does not depend on gettext to
31750         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31751         performed.
31752         * modules/quotearg-simple: New file.
31753         * modules/quotearg-simple-tests: New file.
31754         * modules/quotearg (Depends-on): Add quotearg-simple.
31755         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31756         (Files): Add tests/test-quotearg.h.
31757         Reported by Paolo Bonzini.
31758
31759 2010-06-03  Bruno Haible  <bruno@clisp.org>
31760
31761         Reduce dependencies.
31762         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31763
31764 2010-06-03  Bruno Haible  <bruno@clisp.org>
31765
31766         time: Undefine more broken macros.
31767         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31768         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31769         Reported by Eric Blake.
31770
31771 2010-06-03  Bruno Haible  <bruno@clisp.org>
31772
31773         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31774         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31775         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31776         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31777         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31778         Reported by Ludovic Courtès <ludo@gnu.org>.
31779
31780 2010-06-02  Eric Blake  <eblake@redhat.com>
31781
31782         time: work with mingw + pthreads-win32 library
31783         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31784         if timespec is defined only in pthread.h.
31785         * modules/time (Makefile.am): Substitute it.
31786         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31787         <pthread.h>, when needed.
31788         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31789         from the library.
31790
31791 2010-05-31  Bruno Haible  <bruno@clisp.org>
31792
31793         Avoid expanding two macros in the wrong order.
31794         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31795         gl_LIBUNISTRING if it is defined.
31796         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31797         autoconf >= 2.64.
31798         Reported by Ludovic Courtès <ludo@gnu.org>.
31799
31800 2010-05-27  Jim Meyering  <meyering@redhat.com>
31801
31802         maint.mk: also prohibit "#undef" of always-defined symbols
31803         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31804         Allow more than one space before the symbol name.
31805         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31806         the regexp uses alternation.
31807
31808 2010-05-26  Eric Blake  <eblake@redhat.com>
31809
31810         maint.mk: avoid echo -e
31811         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31812         Convert all uses of echo -* to printf.
31813         Reported by Matthias Bolte.
31814
31815 2010-05-25  Bruno Haible  <bruno@clisp.org>
31816
31817         Update to GNU gettext 0.18, part 2.
31818         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31819         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31820
31821 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31822
31823         Add missing include in test-pwrite.c.
31824         * tests/test-pwrite.c: Include string.h, for strcmp.
31825
31826 2010-05-24  Bruno Haible  <bruno@clisp.org>
31827
31828         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31829
31830 2010-05-24  Bruno Haible  <bruno@clisp.org>
31831
31832         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31833         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31834         iconveh_error argument.
31835         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31836         U_STRCONV_TO_LOCALE.
31837         * lib/unistr/u16-strcoll.c: Likewise.
31838         * lib/unistr/u32-strcoll.c: Likewise.
31839         * modules/unistr/u8-strcoll (Depends-on): Add
31840         uniconv/u8-strconv-to-enc, localcharset. Remove
31841         uniconv/u8-strconv-to-locale.
31842         (configure.ac): Bump version number.
31843         * modules/unistr/u16-strcoll (Depends-on): Add
31844         uniconv/u16-strconv-to-enc, localcharset. Remove
31845         uniconv/u16-strconv-to-locale.
31846         (configure.ac): Bump version number.
31847         * modules/unistr/u32-strcoll (Depends-on): Add
31848         uniconv/u32-strconv-to-enc, localcharset. Remove
31849         uniconv/u32-strconv-to-locale.
31850         (configure.ac): Bump version number.
31851
31852 2010-05-24  Bruno Haible  <bruno@clisp.org>
31853
31854         Avoid a test failure on NetBSD 5.0.
31855         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31856         an iconv() bug.
31857
31858 2010-05-24  Bruno Haible  <bruno@clisp.org>
31859
31860         Adjust #include directive style.
31861         * modules/regex (Includes): Recommend to write <regex.h>.
31862
31863 2010-05-24  Bruno Haible  <bruno@clisp.org>
31864
31865         regex: Don't require alloca.
31866         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31867         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31868         only inside if (0).
31869
31870 2010-05-23  Jim Meyering  <meyering@redhat.com>
31871
31872         test-renameat.c: include <sys/stat.h>
31873         * tests/test-renameat.c: Include <sys/stat.h>; required for
31874         definition of S_IS* macros.
31875
31876 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31877
31878         Update maintainer documentation for 'relocatable-prog' module.
31879         * doc/relocatable-maint.texi: Update.
31880         Comments by Bruno Haible.
31881
31882 2010-05-23  Bruno Haible  <bruno@clisp.org>
31883
31884         git-merge-changelog: Enable --split-merged-entry by default.
31885         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31886         (usage): Don't mention this option any more.
31887         Reported by Ralf Wildenhues.
31888
31889 2010-05-23  Jim Meyering  <meyering@redhat.com>
31890
31891         test-pwrite: do not leave behind a test file named "out"
31892         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31893         The trivial-looking use of init.sh is really necessary.
31894         It ensures that the temporary file, "out", is created in
31895         a temporary directory, and removed upon termination.
31896         * tests/test-pwrite.sh: Re-add file.
31897         * modules/pwrite-tests: Reference it.
31898
31899 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31900
31901         Fix output redirection buglet in init.sh.
31902         * tests/init.sh: Fix redirection of stderr.
31903
31904 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31905
31906         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31907
31908 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31909
31910         * modules/valgrind-tests: New file.
31911         * m4/valgrind-tests.m4: New file.
31912         * doc/valgrind-tests.texi: New file.
31913         * doc/gnulib.texi (Running self-tests under valgrind): New
31914         section.
31915
31916 2010-05-19  Bruno Haible  <bruno@clisp.org>
31917
31918         Clean up dead code in recent commit.
31919         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31920         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31921         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31922         Suggested by Paolo Bonzini.
31923
31924 2010-05-19  Bruno Haible  <bruno@clisp.org>
31925
31926         Avoid valgrind error reports from libunistring.
31927         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31928         * modules/libunistring (Files): Add it.
31929         * modules/libunistring-optional (Files): Likewise.
31930
31931 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31932             Bruno Haible  <bruno@clisp.org>
31933
31934         New module 'libunistring-optional'.
31935         * modules/libunistring-optional: New file.
31936         * m4/libunistring-base.m4: New file.
31937         * m4/libunistring-optional.m4: New file.
31938         * lib/unicase.in.h: Renamed from lib/unicase.h.
31939         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31940         * lib/unictype.in.h: Renamed from lib/unictype.h.
31941         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31942         * lib/uniname.in.h: Renamed from lib/uniname.h.
31943         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31944         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31945         * lib/unistr.in.h: Renamed from lib/unistr.h.
31946         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31947         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31948         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31949         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31950         gl_LIBUNISTRING. If the library was found, determine the installed
31951         version and set LIBUNISTRING_VERSION.
31952         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31953         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31954         handle a configuration option --with-included-libunistring.
31955         * modules/libunistring (Files): Add m4/absolute-header.m4.
31956         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31957         Add m4/libunistring-base.m4.
31958         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31959         (Makefile.am): Build unicase.h from unicase.in.h.
31960         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31961         Add m4/libunistring-base.m4.
31962         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31963         (Makefile.am): Build uniconv.h from uniconv.in.h.
31964         * modules/unictype/base (Files): Use unictype.in.h instead of
31965         unictype.h. Add m4/libunistring-base.m4.
31966         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31967         (Makefile.am): Build unictype.h from unictype.in.h.
31968         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31969         Add m4/libunistring-base.m4.
31970         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31971         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31972         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31973         Add m4/libunistring-base.m4.
31974         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31975         (Makefile.am): Build uniname.h from uniname.in.h.
31976         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31977         Add m4/libunistring-base.m4.
31978         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31979         (Makefile.am): Build uninorm.h from uninorm.in.h.
31980         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31981         unistdio.h. Add m4/libunistring-base.m4.
31982         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31983         (Makefile.am): Build unistdio.h from unistdio.in.h.
31984         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31985         Add m4/libunistring-base.m4.
31986         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31987         (Makefile.am): Build unistr.h from unistr.in.h.
31988         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31989         Add m4/libunistring-base.m4.
31990         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31991         (Makefile.am): Build unitypes.h from unitypes.in.h.
31992         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31993         Add m4/libunistring-base.m4.
31994         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31995         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31996         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31997         uniwidth.h. Add m4/libunistring-base.m4.
31998         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31999         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32000         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32001         instead of augmenting lib_SOURCES.
32002         * modules/unicase/empty-suffix-context: Likewise.
32003         * modules/unicase/locale-language: Likewise.
32004         * modules/unicase/tolower: Likewise.
32005         * modules/unicase/totitle: Likewise.
32006         * modules/unicase/toupper: Likewise.
32007         * modules/unicase/u8-casecmp: Likewise.
32008         * modules/unicase/u8-casecoll: Likewise.
32009         * modules/unicase/u8-casefold: Likewise.
32010         * modules/unicase/u8-casexfrm: Likewise.
32011         * modules/unicase/u8-ct-casefold: Likewise.
32012         * modules/unicase/u8-ct-tolower: Likewise.
32013         * modules/unicase/u8-ct-totitle: Likewise.
32014         * modules/unicase/u8-ct-toupper: Likewise.
32015         * modules/unicase/u8-is-cased: Likewise.
32016         * modules/unicase/u8-is-casefolded: Likewise.
32017         * modules/unicase/u8-is-lowercase: Likewise.
32018         * modules/unicase/u8-is-titlecase: Likewise.
32019         * modules/unicase/u8-is-uppercase: Likewise.
32020         * modules/unicase/u8-prefix-context: Likewise.
32021         * modules/unicase/u8-suffix-context: Likewise.
32022         * modules/unicase/u8-tolower: Likewise.
32023         * modules/unicase/u8-totitle: Likewise.
32024         * modules/unicase/u8-toupper: Likewise.
32025         * modules/unicase/u16-casecmp: Likewise.
32026         * modules/unicase/u16-casecoll: Likewise.
32027         * modules/unicase/u16-casefold: Likewise.
32028         * modules/unicase/u16-casexfrm: Likewise.
32029         * modules/unicase/u16-ct-casefold: Likewise.
32030         * modules/unicase/u16-ct-tolower: Likewise.
32031         * modules/unicase/u16-ct-totitle: Likewise.
32032         * modules/unicase/u16-ct-toupper: Likewise.
32033         * modules/unicase/u16-is-cased: Likewise.
32034         * modules/unicase/u16-is-casefolded: Likewise.
32035         * modules/unicase/u16-is-lowercase: Likewise.
32036         * modules/unicase/u16-is-titlecase: Likewise.
32037         * modules/unicase/u16-is-uppercase: Likewise.
32038         * modules/unicase/u16-prefix-context: Likewise.
32039         * modules/unicase/u16-suffix-context: Likewise.
32040         * modules/unicase/u16-tolower: Likewise.
32041         * modules/unicase/u16-totitle: Likewise.
32042         * modules/unicase/u16-toupper: Likewise.
32043         * modules/unicase/u32-casecmp: Likewise.
32044         * modules/unicase/u32-casecoll: Likewise.
32045         * modules/unicase/u32-casefold: Likewise.
32046         * modules/unicase/u32-casexfrm: Likewise.
32047         * modules/unicase/u32-ct-casefold: Likewise.
32048         * modules/unicase/u32-ct-tolower: Likewise.
32049         * modules/unicase/u32-ct-totitle: Likewise.
32050         * modules/unicase/u32-ct-toupper: Likewise.
32051         * modules/unicase/u32-is-cased: Likewise.
32052         * modules/unicase/u32-is-casefolded: Likewise.
32053         * modules/unicase/u32-is-lowercase: Likewise.
32054         * modules/unicase/u32-is-titlecase: Likewise.
32055         * modules/unicase/u32-is-uppercase: Likewise.
32056         * modules/unicase/u32-prefix-context: Likewise.
32057         * modules/unicase/u32-suffix-context: Likewise.
32058         * modules/unicase/u32-tolower: Likewise.
32059         * modules/unicase/u32-totitle: Likewise.
32060         * modules/unicase/u32-toupper: Likewise.
32061         * modules/unicase/ulc-casecmp: Likewise.
32062         * modules/unicase/ulc-casecoll: Likewise.
32063         * modules/unicase/ulc-casexfrm: Likewise.
32064         * modules/uniconv/u8-conv-from-enc: Likewise.
32065         * modules/uniconv/u8-conv-to-enc: Likewise.
32066         * modules/uniconv/u8-strconv-from-enc: Likewise.
32067         * modules/uniconv/u8-strconv-from-locale: Likewise.
32068         * modules/uniconv/u8-strconv-to-enc: Likewise.
32069         * modules/uniconv/u8-strconv-to-locale: Likewise.
32070         * modules/uniconv/u16-conv-from-enc: Likewise.
32071         * modules/uniconv/u16-conv-to-enc: Likewise.
32072         * modules/uniconv/u16-strconv-from-enc: Likewise.
32073         * modules/uniconv/u16-strconv-from-locale: Likewise.
32074         * modules/uniconv/u16-strconv-to-enc: Likewise.
32075         * modules/uniconv/u16-strconv-to-locale: Likewise.
32076         * modules/uniconv/u32-conv-from-enc: Likewise.
32077         * modules/uniconv/u32-conv-to-enc: Likewise.
32078         * modules/uniconv/u32-strconv-from-enc: Likewise.
32079         * modules/uniconv/u32-strconv-from-locale: Likewise.
32080         * modules/uniconv/u32-strconv-to-enc: Likewise.
32081         * modules/uniconv/u32-strconv-to-locale: Likewise.
32082         * modules/unictype/bidicategory-byname: Likewise.
32083         * modules/unictype/bidicategory-name: Likewise.
32084         * modules/unictype/bidicategory-of: Likewise.
32085         * modules/unictype/bidicategory-test: Likewise.
32086         * modules/unictype/block-list: Likewise.
32087         * modules/unictype/block-test: Likewise.
32088         * modules/unictype/category-C: Likewise.
32089         * modules/unictype/category-Cc: Likewise.
32090         * modules/unictype/category-Cf: Likewise.
32091         * modules/unictype/category-Cn: Likewise.
32092         * modules/unictype/category-Co: Likewise.
32093         * modules/unictype/category-Cs: Likewise.
32094         * modules/unictype/category-L: Likewise.
32095         * modules/unictype/category-Ll: Likewise.
32096         * modules/unictype/category-Lm: Likewise.
32097         * modules/unictype/category-Lo: Likewise.
32098         * modules/unictype/category-Lt: Likewise.
32099         * modules/unictype/category-Lu: Likewise.
32100         * modules/unictype/category-M: Likewise.
32101         * modules/unictype/category-Mc: Likewise.
32102         * modules/unictype/category-Me: Likewise.
32103         * modules/unictype/category-Mn: Likewise.
32104         * modules/unictype/category-N: Likewise.
32105         * modules/unictype/category-Nd: Likewise.
32106         * modules/unictype/category-Nl: Likewise.
32107         * modules/unictype/category-No: Likewise.
32108         * modules/unictype/category-P: Likewise.
32109         * modules/unictype/category-Pc: Likewise.
32110         * modules/unictype/category-Pd: Likewise.
32111         * modules/unictype/category-Pe: Likewise.
32112         * modules/unictype/category-Pf: Likewise.
32113         * modules/unictype/category-Pi: Likewise.
32114         * modules/unictype/category-Po: Likewise.
32115         * modules/unictype/category-Ps: Likewise.
32116         * modules/unictype/category-S: Likewise.
32117         * modules/unictype/category-Sc: Likewise.
32118         * modules/unictype/category-Sk: Likewise.
32119         * modules/unictype/category-Sm: Likewise.
32120         * modules/unictype/category-So: Likewise.
32121         * modules/unictype/category-Z: Likewise.
32122         * modules/unictype/category-Zl: Likewise.
32123         * modules/unictype/category-Zp: Likewise.
32124         * modules/unictype/category-Zs: Likewise.
32125         * modules/unictype/category-and: Likewise.
32126         * modules/unictype/category-and-not: Likewise.
32127         * modules/unictype/category-byname: Likewise.
32128         * modules/unictype/category-name: Likewise.
32129         * modules/unictype/category-none: Likewise.
32130         * modules/unictype/category-of: Likewise.
32131         * modules/unictype/category-or: Likewise.
32132         * modules/unictype/category-test: Likewise.
32133         * modules/unictype/combining-class: Likewise.
32134         * modules/unictype/ctype-alnum: Likewise.
32135         * modules/unictype/ctype-alpha: Likewise.
32136         * modules/unictype/ctype-blank: Likewise.
32137         * modules/unictype/ctype-cntrl: Likewise.
32138         * modules/unictype/ctype-digit: Likewise.
32139         * modules/unictype/ctype-graph: Likewise.
32140         * modules/unictype/ctype-lower: Likewise.
32141         * modules/unictype/ctype-print: Likewise.
32142         * modules/unictype/ctype-punct: Likewise.
32143         * modules/unictype/ctype-space: Likewise.
32144         * modules/unictype/ctype-upper: Likewise.
32145         * modules/unictype/ctype-xdigit: Likewise.
32146         * modules/unictype/decimal-digit: Likewise.
32147         * modules/unictype/digit: Likewise.
32148         * modules/unictype/mirror: Likewise.
32149         * modules/unictype/numeric: Likewise.
32150         * modules/unictype/property-alphabetic: Likewise.
32151         * modules/unictype/property-ascii-hex-digit: Likewise.
32152         * modules/unictype/property-bidi-arabic-digit: Likewise.
32153         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32154         * modules/unictype/property-bidi-block-separator: Likewise.
32155         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32156         * modules/unictype/property-bidi-common-separator: Likewise.
32157         * modules/unictype/property-bidi-control: Likewise.
32158         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32159         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32160         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32161         * modules/unictype/property-bidi-european-digit: Likewise.
32162         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32163         * modules/unictype/property-bidi-left-to-right: Likewise.
32164         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32165         * modules/unictype/property-bidi-other-neutral: Likewise.
32166         * modules/unictype/property-bidi-pdf: Likewise.
32167         * modules/unictype/property-bidi-segment-separator: Likewise.
32168         * modules/unictype/property-bidi-whitespace: Likewise.
32169         * modules/unictype/property-byname: Likewise.
32170         * modules/unictype/property-combining: Likewise.
32171         * modules/unictype/property-composite: Likewise.
32172         * modules/unictype/property-currency-symbol: Likewise.
32173         * modules/unictype/property-dash: Likewise.
32174         * modules/unictype/property-decimal-digit: Likewise.
32175         * modules/unictype/property-default-ignorable-code-point: Likewise.
32176         * modules/unictype/property-deprecated: Likewise.
32177         * modules/unictype/property-diacritic: Likewise.
32178         * modules/unictype/property-extender: Likewise.
32179         * modules/unictype/property-format-control: Likewise.
32180         * modules/unictype/property-grapheme-base: Likewise.
32181         * modules/unictype/property-grapheme-extend: Likewise.
32182         * modules/unictype/property-grapheme-link: Likewise.
32183         * modules/unictype/property-hex-digit: Likewise.
32184         * modules/unictype/property-hyphen: Likewise.
32185         * modules/unictype/property-id-continue: Likewise.
32186         * modules/unictype/property-id-start: Likewise.
32187         * modules/unictype/property-ideographic: Likewise.
32188         * modules/unictype/property-ids-binary-operator: Likewise.
32189         * modules/unictype/property-ids-trinary-operator: Likewise.
32190         * modules/unictype/property-ignorable-control: Likewise.
32191         * modules/unictype/property-iso-control: Likewise.
32192         * modules/unictype/property-join-control: Likewise.
32193         * modules/unictype/property-left-of-pair: Likewise.
32194         * modules/unictype/property-line-separator: Likewise.
32195         * modules/unictype/property-logical-order-exception: Likewise.
32196         * modules/unictype/property-lowercase: Likewise.
32197         * modules/unictype/property-math: Likewise.
32198         * modules/unictype/property-non-break: Likewise.
32199         * modules/unictype/property-not-a-character: Likewise.
32200         * modules/unictype/property-numeric: Likewise.
32201         * modules/unictype/property-other-alphabetic: Likewise.
32202         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32203         * modules/unictype/property-other-grapheme-extend: Likewise.
32204         * modules/unictype/property-other-id-continue: Likewise.
32205         * modules/unictype/property-other-id-start: Likewise.
32206         * modules/unictype/property-other-lowercase: Likewise.
32207         * modules/unictype/property-other-math: Likewise.
32208         * modules/unictype/property-other-uppercase: Likewise.
32209         * modules/unictype/property-paired-punctuation: Likewise.
32210         * modules/unictype/property-paragraph-separator: Likewise.
32211         * modules/unictype/property-pattern-syntax: Likewise.
32212         * modules/unictype/property-pattern-white-space: Likewise.
32213         * modules/unictype/property-private-use: Likewise.
32214         * modules/unictype/property-punctuation: Likewise.
32215         * modules/unictype/property-quotation-mark: Likewise.
32216         * modules/unictype/property-radical: Likewise.
32217         * modules/unictype/property-sentence-terminal: Likewise.
32218         * modules/unictype/property-soft-dotted: Likewise.
32219         * modules/unictype/property-space: Likewise.
32220         * modules/unictype/property-terminal-punctuation: Likewise.
32221         * modules/unictype/property-test: Likewise.
32222         * modules/unictype/property-titlecase: Likewise.
32223         * modules/unictype/property-unassigned-code-value: Likewise.
32224         * modules/unictype/property-unified-ideograph: Likewise.
32225         * modules/unictype/property-uppercase: Likewise.
32226         * modules/unictype/property-variation-selector: Likewise.
32227         * modules/unictype/property-white-space: Likewise.
32228         * modules/unictype/property-xid-continue: Likewise.
32229         * modules/unictype/property-xid-start: Likewise.
32230         * modules/unictype/property-zero-width: Likewise.
32231         * modules/unictype/scripts: Likewise.
32232         * modules/unictype/syntax-c-ident: Likewise.
32233         * modules/unictype/syntax-c-whitespace: Likewise.
32234         * modules/unictype/syntax-java-ident: Likewise.
32235         * modules/unictype/syntax-java-whitespace: Likewise.
32236         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32237         * modules/unilbrk/u8-width-linebreaks: Likewise.
32238         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32239         * modules/unilbrk/u16-width-linebreaks: Likewise.
32240         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32241         * modules/unilbrk/u32-width-linebreaks: Likewise.
32242         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32243         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32244         * modules/uniname/uniname: Likewise.
32245         * modules/uninorm/canonical-decomposition: Likewise.
32246         * modules/uninorm/composition: Likewise.
32247         * modules/uninorm/decomposing-form: Likewise.
32248         * modules/uninorm/decomposition: Likewise.
32249         * modules/uninorm/filter: Likewise.
32250         * modules/uninorm/nfc: Likewise.
32251         * modules/uninorm/nfd: Likewise.
32252         * modules/uninorm/nfkc: Likewise.
32253         * modules/uninorm/nfkd: Likewise.
32254         * modules/uninorm/u8-normalize: Likewise.
32255         * modules/uninorm/u8-normcmp: Likewise.
32256         * modules/uninorm/u8-normcoll: Likewise.
32257         * modules/uninorm/u8-normxfrm: Likewise.
32258         * modules/uninorm/u16-normalize: Likewise.
32259         * modules/uninorm/u16-normcmp: Likewise.
32260         * modules/uninorm/u16-normcoll: Likewise.
32261         * modules/uninorm/u16-normxfrm: Likewise.
32262         * modules/uninorm/u32-normalize: Likewise.
32263         * modules/uninorm/u32-normcmp: Likewise.
32264         * modules/uninorm/u32-normcoll: Likewise.
32265         * modules/uninorm/u32-normxfrm: Likewise.
32266         * modules/unistdio/u8-asnprintf: Likewise.
32267         * modules/unistdio/u8-asprintf: Likewise.
32268         * modules/unistdio/u8-snprintf: Likewise.
32269         * modules/unistdio/u8-sprintf: Likewise.
32270         * modules/unistdio/u8-u8-asnprintf: Likewise.
32271         * modules/unistdio/u8-u8-asprintf: Likewise.
32272         * modules/unistdio/u8-u8-snprintf: Likewise.
32273         * modules/unistdio/u8-u8-sprintf: Likewise.
32274         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32275         * modules/unistdio/u8-u8-vasprintf: Likewise.
32276         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32277         * modules/unistdio/u8-u8-vsprintf: Likewise.
32278         * modules/unistdio/u8-vasnprintf: Likewise.
32279         * modules/unistdio/u8-vasprintf: Likewise.
32280         * modules/unistdio/u8-vsnprintf: Likewise.
32281         * modules/unistdio/u8-vsprintf: Likewise.
32282         * modules/unistdio/u16-asnprintf: Likewise.
32283         * modules/unistdio/u16-asprintf: Likewise.
32284         * modules/unistdio/u16-snprintf: Likewise.
32285         * modules/unistdio/u16-sprintf: Likewise.
32286         * modules/unistdio/u16-u16-asnprintf: Likewise.
32287         * modules/unistdio/u16-u16-asprintf: Likewise.
32288         * modules/unistdio/u16-u16-snprintf: Likewise.
32289         * modules/unistdio/u16-u16-sprintf: Likewise.
32290         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32291         * modules/unistdio/u16-u16-vasprintf: Likewise.
32292         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32293         * modules/unistdio/u16-u16-vsprintf: Likewise.
32294         * modules/unistdio/u16-vasnprintf: Likewise.
32295         * modules/unistdio/u16-vasprintf: Likewise.
32296         * modules/unistdio/u16-vsnprintf: Likewise.
32297         * modules/unistdio/u16-vsprintf: Likewise.
32298         * modules/unistdio/u32-asnprintf: Likewise.
32299         * modules/unistdio/u32-asprintf: Likewise.
32300         * modules/unistdio/u32-snprintf: Likewise.
32301         * modules/unistdio/u32-sprintf: Likewise.
32302         * modules/unistdio/u32-u32-asnprintf: Likewise.
32303         * modules/unistdio/u32-u32-asprintf: Likewise.
32304         * modules/unistdio/u32-u32-snprintf: Likewise.
32305         * modules/unistdio/u32-u32-sprintf: Likewise.
32306         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32307         * modules/unistdio/u32-u32-vasprintf: Likewise.
32308         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32309         * modules/unistdio/u32-u32-vsprintf: Likewise.
32310         * modules/unistdio/u32-vasnprintf: Likewise.
32311         * modules/unistdio/u32-vasprintf: Likewise.
32312         * modules/unistdio/u32-vsnprintf: Likewise.
32313         * modules/unistdio/u32-vsprintf: Likewise.
32314         * modules/unistdio/ulc-asnprintf: Likewise.
32315         * modules/unistdio/ulc-asprintf: Likewise.
32316         * modules/unistdio/ulc-fprintf: Likewise.
32317         * modules/unistdio/ulc-snprintf: Likewise.
32318         * modules/unistdio/ulc-sprintf: Likewise.
32319         * modules/unistdio/ulc-vasnprintf: Likewise.
32320         * modules/unistdio/ulc-vasprintf: Likewise.
32321         * modules/unistdio/ulc-vfprintf: Likewise.
32322         * modules/unistdio/ulc-vsnprintf: Likewise.
32323         * modules/unistdio/ulc-vsprintf: Likewise.
32324         * modules/unistr/u8-check: Likewise.
32325         * modules/unistr/u8-chr: Likewise.
32326         * modules/unistr/u8-cmp: Likewise.
32327         * modules/unistr/u8-cmp2: Likewise.
32328         * modules/unistr/u8-cpy: Likewise.
32329         * modules/unistr/u8-cpy-alloc: Likewise.
32330         * modules/unistr/u8-endswith: Likewise.
32331         * modules/unistr/u8-mblen: Likewise.
32332         * modules/unistr/u8-mbsnlen: Likewise.
32333         * modules/unistr/u8-mbtouc: Likewise.
32334         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32335         * modules/unistr/u8-mbtoucr: Likewise.
32336         * modules/unistr/u8-move: Likewise.
32337         * modules/unistr/u8-next: Likewise.
32338         * modules/unistr/u8-prev: Likewise.
32339         * modules/unistr/u8-set: Likewise.
32340         * modules/unistr/u8-startswith: Likewise.
32341         * modules/unistr/u8-stpcpy: Likewise.
32342         * modules/unistr/u8-stpncpy: Likewise.
32343         * modules/unistr/u8-strcat: Likewise.
32344         * modules/unistr/u8-strchr: Likewise.
32345         * modules/unistr/u8-strcmp: Likewise.
32346         * modules/unistr/u8-strcoll: Likewise.
32347         * modules/unistr/u8-strcpy: Likewise.
32348         * modules/unistr/u8-strcspn: Likewise.
32349         * modules/unistr/u8-strdup: Likewise.
32350         * modules/unistr/u8-strlen: Likewise.
32351         * modules/unistr/u8-strmblen: Likewise.
32352         * modules/unistr/u8-strmbtouc: Likewise.
32353         * modules/unistr/u8-strncat: Likewise.
32354         * modules/unistr/u8-strncmp: Likewise.
32355         * modules/unistr/u8-strncpy: Likewise.
32356         * modules/unistr/u8-strnlen: Likewise.
32357         * modules/unistr/u8-strpbrk: Likewise.
32358         * modules/unistr/u8-strrchr: Likewise.
32359         * modules/unistr/u8-strspn: Likewise.
32360         * modules/unistr/u8-strstr: Likewise.
32361         * modules/unistr/u8-strtok: Likewise.
32362         * modules/unistr/u8-to-u16: Likewise.
32363         * modules/unistr/u8-to-u32: Likewise.
32364         * modules/unistr/u8-uctomb: Likewise.
32365         * modules/unistr/u16-check: Likewise.
32366         * modules/unistr/u16-chr: Likewise.
32367         * modules/unistr/u16-cmp: Likewise.
32368         * modules/unistr/u16-cmp2: Likewise.
32369         * modules/unistr/u16-cpy: Likewise.
32370         * modules/unistr/u16-cpy-alloc: Likewise.
32371         * modules/unistr/u16-endswith: Likewise.
32372         * modules/unistr/u16-mblen: Likewise.
32373         * modules/unistr/u16-mbsnlen: Likewise.
32374         * modules/unistr/u16-mbtouc: Likewise.
32375         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32376         * modules/unistr/u16-mbtoucr: Likewise.
32377         * modules/unistr/u16-move: Likewise.
32378         * modules/unistr/u16-next: Likewise.
32379         * modules/unistr/u16-prev: Likewise.
32380         * modules/unistr/u16-set: Likewise.
32381         * modules/unistr/u16-startswith: Likewise.
32382         * modules/unistr/u16-stpcpy: Likewise.
32383         * modules/unistr/u16-stpncpy: Likewise.
32384         * modules/unistr/u16-strcat: Likewise.
32385         * modules/unistr/u16-strchr: Likewise.
32386         * modules/unistr/u16-strcmp: Likewise.
32387         * modules/unistr/u16-strcoll: Likewise.
32388         * modules/unistr/u16-strcpy: Likewise.
32389         * modules/unistr/u16-strcspn: Likewise.
32390         * modules/unistr/u16-strdup: Likewise.
32391         * modules/unistr/u16-strlen: Likewise.
32392         * modules/unistr/u16-strmblen: Likewise.
32393         * modules/unistr/u16-strmbtouc: Likewise.
32394         * modules/unistr/u16-strncat: Likewise.
32395         * modules/unistr/u16-strncmp: Likewise.
32396         * modules/unistr/u16-strncpy: Likewise.
32397         * modules/unistr/u16-strnlen: Likewise.
32398         * modules/unistr/u16-strpbrk: Likewise.
32399         * modules/unistr/u16-strrchr: Likewise.
32400         * modules/unistr/u16-strspn: Likewise.
32401         * modules/unistr/u16-strstr: Likewise.
32402         * modules/unistr/u16-strtok: Likewise.
32403         * modules/unistr/u16-to-u32: Likewise.
32404         * modules/unistr/u16-to-u8: Likewise.
32405         * modules/unistr/u16-uctomb: Likewise.
32406         * modules/unistr/u32-check: Likewise.
32407         * modules/unistr/u32-chr: Likewise.
32408         * modules/unistr/u32-cmp: Likewise.
32409         * modules/unistr/u32-cmp2: Likewise.
32410         * modules/unistr/u32-cpy: Likewise.
32411         * modules/unistr/u32-cpy-alloc: Likewise.
32412         * modules/unistr/u32-endswith: Likewise.
32413         * modules/unistr/u32-mblen: Likewise.
32414         * modules/unistr/u32-mbsnlen: Likewise.
32415         * modules/unistr/u32-mbtouc: Likewise.
32416         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32417         * modules/unistr/u32-mbtoucr: Likewise.
32418         * modules/unistr/u32-move: Likewise.
32419         * modules/unistr/u32-next: Likewise.
32420         * modules/unistr/u32-prev: Likewise.
32421         * modules/unistr/u32-set: Likewise.
32422         * modules/unistr/u32-startswith: Likewise.
32423         * modules/unistr/u32-stpcpy: Likewise.
32424         * modules/unistr/u32-stpncpy: Likewise.
32425         * modules/unistr/u32-strcat: Likewise.
32426         * modules/unistr/u32-strchr: Likewise.
32427         * modules/unistr/u32-strcmp: Likewise.
32428         * modules/unistr/u32-strcoll: Likewise.
32429         * modules/unistr/u32-strcpy: Likewise.
32430         * modules/unistr/u32-strcspn: Likewise.
32431         * modules/unistr/u32-strdup: Likewise.
32432         * modules/unistr/u32-strlen: Likewise.
32433         * modules/unistr/u32-strmblen: Likewise.
32434         * modules/unistr/u32-strmbtouc: Likewise.
32435         * modules/unistr/u32-strncat: Likewise.
32436         * modules/unistr/u32-strncmp: Likewise.
32437         * modules/unistr/u32-strncpy: Likewise.
32438         * modules/unistr/u32-strnlen: Likewise.
32439         * modules/unistr/u32-strpbrk: Likewise.
32440         * modules/unistr/u32-strrchr: Likewise.
32441         * modules/unistr/u32-strspn: Likewise.
32442         * modules/unistr/u32-strstr: Likewise.
32443         * modules/unistr/u32-strtok: Likewise.
32444         * modules/unistr/u32-to-u16: Likewise.
32445         * modules/unistr/u32-to-u8: Likewise.
32446         * modules/unistr/u32-uctomb: Likewise.
32447         * modules/uniwbrk/u8-wordbreaks: Likewise.
32448         * modules/uniwbrk/u16-wordbreaks: Likewise.
32449         * modules/uniwbrk/u32-wordbreaks: Likewise.
32450         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32451         * modules/uniwbrk/wordbreak-property: Likewise.
32452         * modules/uniwidth/u8-strwidth: Likewise.
32453         * modules/uniwidth/u8-width: Likewise.
32454         * modules/uniwidth/u16-strwidth: Likewise.
32455         * modules/uniwidth/u16-width: Likewise.
32456         * modules/uniwidth/u32-strwidth: Likewise.
32457         * modules/uniwidth/u32-width: Likewise.
32458         * modules/uniwidth/width: Likewise.
32459         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32460         with $(LIBUNISTRING).
32461         * modules/unicase/ignorable-tests: Likewise.
32462         * modules/unicase/locale-language-tests: Likewise.
32463         * modules/unicase/tolower-tests: Likewise.
32464         * modules/unicase/totitle-tests: Likewise.
32465         * modules/unicase/toupper-tests: Likewise.
32466         * modules/unicase/u8-casecmp-tests: Likewise.
32467         * modules/unicase/u8-casecoll-tests: Likewise.
32468         * modules/unicase/u8-casefold-tests: Likewise.
32469         * modules/unicase/u8-is-cased-tests: Likewise.
32470         * modules/unicase/u8-is-casefolded-tests: Likewise.
32471         * modules/unicase/u8-is-lowercase-tests: Likewise.
32472         * modules/unicase/u8-is-titlecase-tests: Likewise.
32473         * modules/unicase/u8-is-uppercase-tests: Likewise.
32474         * modules/unicase/u8-tolower-tests: Likewise.
32475         * modules/unicase/u8-totitle-tests: Likewise.
32476         * modules/unicase/u8-toupper-tests: Likewise.
32477         * modules/unicase/u16-casecmp-tests: Likewise.
32478         * modules/unicase/u16-casecoll-tests: Likewise.
32479         * modules/unicase/u16-casefold-tests: Likewise.
32480         * modules/unicase/u16-is-cased-tests: Likewise.
32481         * modules/unicase/u16-is-casefolded-tests: Likewise.
32482         * modules/unicase/u16-is-lowercase-tests: Likewise.
32483         * modules/unicase/u16-is-titlecase-tests: Likewise.
32484         * modules/unicase/u16-is-uppercase-tests: Likewise.
32485         * modules/unicase/u16-tolower-tests: Likewise.
32486         * modules/unicase/u16-totitle-tests: Likewise.
32487         * modules/unicase/u16-toupper-tests: Likewise.
32488         * modules/unicase/u32-casecmp-tests: Likewise.
32489         * modules/unicase/u32-casecoll-tests: Likewise.
32490         * modules/unicase/u32-casefold-tests: Likewise.
32491         * modules/unicase/u32-is-cased-tests: Likewise.
32492         * modules/unicase/u32-is-casefolded-tests: Likewise.
32493         * modules/unicase/u32-is-lowercase-tests: Likewise.
32494         * modules/unicase/u32-is-titlecase-tests: Likewise.
32495         * modules/unicase/u32-is-uppercase-tests: Likewise.
32496         * modules/unicase/u32-tolower-tests: Likewise.
32497         * modules/unicase/u32-totitle-tests: Likewise.
32498         * modules/unicase/u32-toupper-tests: Likewise.
32499         * modules/unicase/ulc-casecmp-tests: Likewise.
32500         * modules/unicase/ulc-casecoll-tests: Likewise.
32501         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32502         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32503         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32504         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32505         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32506         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32507         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32508         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32509         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32510         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32511         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32512         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32513         * modules/unictype/bidicategory-byname-tests: Likewise.
32514         * modules/unictype/bidicategory-name-tests: Likewise.
32515         * modules/unictype/bidicategory-of-tests: Likewise.
32516         * modules/unictype/bidicategory-test-tests: Likewise.
32517         * modules/unictype/block-list-tests: Likewise.
32518         * modules/unictype/block-of-tests: Likewise.
32519         * modules/unictype/block-test-tests: Likewise.
32520         * modules/unictype/category-C-tests: Likewise.
32521         * modules/unictype/category-Cc-tests: Likewise.
32522         * modules/unictype/category-Cf-tests: Likewise.
32523         * modules/unictype/category-Cn-tests: Likewise.
32524         * modules/unictype/category-Co-tests: Likewise.
32525         * modules/unictype/category-Cs-tests: Likewise.
32526         * modules/unictype/category-L-tests: Likewise.
32527         * modules/unictype/category-Ll-tests: Likewise.
32528         * modules/unictype/category-Lm-tests: Likewise.
32529         * modules/unictype/category-Lo-tests: Likewise.
32530         * modules/unictype/category-Lt-tests: Likewise.
32531         * modules/unictype/category-Lu-tests: Likewise.
32532         * modules/unictype/category-M-tests: Likewise.
32533         * modules/unictype/category-Mc-tests: Likewise.
32534         * modules/unictype/category-Me-tests: Likewise.
32535         * modules/unictype/category-Mn-tests: Likewise.
32536         * modules/unictype/category-N-tests: Likewise.
32537         * modules/unictype/category-Nd-tests: Likewise.
32538         * modules/unictype/category-Nl-tests: Likewise.
32539         * modules/unictype/category-No-tests: Likewise.
32540         * modules/unictype/category-P-tests: Likewise.
32541         * modules/unictype/category-Pc-tests: Likewise.
32542         * modules/unictype/category-Pd-tests: Likewise.
32543         * modules/unictype/category-Pe-tests: Likewise.
32544         * modules/unictype/category-Pf-tests: Likewise.
32545         * modules/unictype/category-Pi-tests: Likewise.
32546         * modules/unictype/category-Po-tests: Likewise.
32547         * modules/unictype/category-Ps-tests: Likewise.
32548         * modules/unictype/category-S-tests: Likewise.
32549         * modules/unictype/category-Sc-tests: Likewise.
32550         * modules/unictype/category-Sk-tests: Likewise.
32551         * modules/unictype/category-Sm-tests: Likewise.
32552         * modules/unictype/category-So-tests: Likewise.
32553         * modules/unictype/category-Z-tests: Likewise.
32554         * modules/unictype/category-Zl-tests: Likewise.
32555         * modules/unictype/category-Zp-tests: Likewise.
32556         * modules/unictype/category-Zs-tests: Likewise.
32557         * modules/unictype/category-and-not-tests: Likewise.
32558         * modules/unictype/category-and-tests: Likewise.
32559         * modules/unictype/category-byname-tests: Likewise.
32560         * modules/unictype/category-name-tests: Likewise.
32561         * modules/unictype/category-none-tests: Likewise.
32562         * modules/unictype/category-of-tests: Likewise.
32563         * modules/unictype/category-or-tests: Likewise.
32564         * modules/unictype/category-test-withtable-tests: Likewise.
32565         * modules/unictype/combining-class-tests: Likewise.
32566         * modules/unictype/ctype-alnum-tests: Likewise.
32567         * modules/unictype/ctype-alpha-tests: Likewise.
32568         * modules/unictype/ctype-blank-tests: Likewise.
32569         * modules/unictype/ctype-cntrl-tests: Likewise.
32570         * modules/unictype/ctype-digit-tests: Likewise.
32571         * modules/unictype/ctype-graph-tests: Likewise.
32572         * modules/unictype/ctype-lower-tests: Likewise.
32573         * modules/unictype/ctype-print-tests: Likewise.
32574         * modules/unictype/ctype-punct-tests: Likewise.
32575         * modules/unictype/ctype-space-tests: Likewise.
32576         * modules/unictype/ctype-upper-tests: Likewise.
32577         * modules/unictype/ctype-xdigit-tests: Likewise.
32578         * modules/unictype/decimal-digit-tests: Likewise.
32579         * modules/unictype/digit-tests: Likewise.
32580         * modules/unictype/mirror-tests: Likewise.
32581         * modules/unictype/numeric-tests: Likewise.
32582         * modules/unictype/property-alphabetic-tests: Likewise.
32583         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32584         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32585         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32586         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32587         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32588         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32589         * modules/unictype/property-bidi-control-tests: Likewise.
32590         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32591         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32592         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32593         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32594         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32595         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32596         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32597         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32598         * modules/unictype/property-bidi-pdf-tests: Likewise.
32599         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32600         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32601         * modules/unictype/property-byname-tests: Likewise.
32602         * modules/unictype/property-combining-tests: Likewise.
32603         * modules/unictype/property-composite-tests: Likewise.
32604         * modules/unictype/property-currency-symbol-tests: Likewise.
32605         * modules/unictype/property-dash-tests: Likewise.
32606         * modules/unictype/property-decimal-digit-tests: Likewise.
32607         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32608         * modules/unictype/property-deprecated-tests: Likewise.
32609         * modules/unictype/property-diacritic-tests: Likewise.
32610         * modules/unictype/property-extender-tests: Likewise.
32611         * modules/unictype/property-format-control-tests: Likewise.
32612         * modules/unictype/property-grapheme-base-tests: Likewise.
32613         * modules/unictype/property-grapheme-extend-tests: Likewise.
32614         * modules/unictype/property-grapheme-link-tests: Likewise.
32615         * modules/unictype/property-hex-digit-tests: Likewise.
32616         * modules/unictype/property-hyphen-tests: Likewise.
32617         * modules/unictype/property-id-continue-tests: Likewise.
32618         * modules/unictype/property-id-start-tests: Likewise.
32619         * modules/unictype/property-ideographic-tests: Likewise.
32620         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32621         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32622         * modules/unictype/property-ignorable-control-tests: Likewise.
32623         * modules/unictype/property-iso-control-tests: Likewise.
32624         * modules/unictype/property-join-control-tests: Likewise.
32625         * modules/unictype/property-left-of-pair-tests: Likewise.
32626         * modules/unictype/property-line-separator-tests: Likewise.
32627         * modules/unictype/property-logical-order-exception-tests: Likewise.
32628         * modules/unictype/property-lowercase-tests: Likewise.
32629         * modules/unictype/property-math-tests: Likewise.
32630         * modules/unictype/property-non-break-tests: Likewise.
32631         * modules/unictype/property-not-a-character-tests: Likewise.
32632         * modules/unictype/property-numeric-tests: Likewise.
32633         * modules/unictype/property-other-alphabetic-tests: Likewise.
32634         * modules/unictype/property-other-default-ignorable-code-point-tests:
32635         Likewise.
32636         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32637         * modules/unictype/property-other-id-continue-tests: Likewise.
32638         * modules/unictype/property-other-id-start-tests: Likewise.
32639         * modules/unictype/property-other-lowercase-tests: Likewise.
32640         * modules/unictype/property-other-math-tests: Likewise.
32641         * modules/unictype/property-other-uppercase-tests: Likewise.
32642         * modules/unictype/property-paired-punctuation-tests: Likewise.
32643         * modules/unictype/property-paragraph-separator-tests: Likewise.
32644         * modules/unictype/property-pattern-syntax-tests: Likewise.
32645         * modules/unictype/property-pattern-white-space-tests: Likewise.
32646         * modules/unictype/property-private-use-tests: Likewise.
32647         * modules/unictype/property-punctuation-tests: Likewise.
32648         * modules/unictype/property-quotation-mark-tests: Likewise.
32649         * modules/unictype/property-radical-tests: Likewise.
32650         * modules/unictype/property-sentence-terminal-tests: Likewise.
32651         * modules/unictype/property-soft-dotted-tests: Likewise.
32652         * modules/unictype/property-space-tests: Likewise.
32653         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32654         * modules/unictype/property-test-tests: Likewise.
32655         * modules/unictype/property-titlecase-tests: Likewise.
32656         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32657         * modules/unictype/property-unified-ideograph-tests: Likewise.
32658         * modules/unictype/property-uppercase-tests: Likewise.
32659         * modules/unictype/property-variation-selector-tests: Likewise.
32660         * modules/unictype/property-white-space-tests: Likewise.
32661         * modules/unictype/property-xid-continue-tests: Likewise.
32662         * modules/unictype/property-xid-start-tests: Likewise.
32663         * modules/unictype/property-zero-width-tests: Likewise.
32664         * modules/unictype/scripts-tests: Likewise.
32665         * modules/unictype/syntax-c-ident-tests: Likewise.
32666         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32667         * modules/unictype/syntax-java-ident-tests: Likewise.
32668         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32669         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32670         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32671         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32672         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32673         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32674         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32675         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32676         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32677         * modules/uniname/uniname-tests: Likewise.
32678         * modules/uninorm/canonical-decomposition-tests: Likewise.
32679         * modules/uninorm/compat-decomposition-tests: Likewise.
32680         * modules/uninorm/composition-tests: Likewise.
32681         * modules/uninorm/decomposing-form-tests: Likewise.
32682         * modules/uninorm/decomposition-tests: Likewise.
32683         * modules/uninorm/filter-tests: Likewise.
32684         * modules/uninorm/nfc-tests: Likewise.
32685         * modules/uninorm/nfd-tests: Likewise.
32686         * modules/uninorm/nfkc-tests: Likewise.
32687         * modules/uninorm/nfkd-tests: Likewise.
32688         * modules/uninorm/u8-normcmp-tests: Likewise.
32689         * modules/uninorm/u8-normcoll-tests: Likewise.
32690         * modules/uninorm/u16-normcmp-tests: Likewise.
32691         * modules/uninorm/u16-normcoll-tests: Likewise.
32692         * modules/uninorm/u32-normcmp-tests: Likewise.
32693         * modules/uninorm/u32-normcoll-tests: Likewise.
32694         * modules/unistdio/u8-asnprintf-tests: Likewise.
32695         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32696         * modules/unistdio/u8-vasprintf-tests: Likewise.
32697         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32698         * modules/unistdio/u8-vsprintf-tests: Likewise.
32699         * modules/unistdio/u16-asnprintf-tests: Likewise.
32700         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32701         * modules/unistdio/u16-vasprintf-tests: Likewise.
32702         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32703         * modules/unistdio/u16-vsprintf-tests: Likewise.
32704         * modules/unistdio/u32-asnprintf-tests: Likewise.
32705         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32706         * modules/unistdio/u32-vasprintf-tests: Likewise.
32707         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32708         * modules/unistdio/u32-vsprintf-tests: Likewise.
32709         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32710         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32711         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32712         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32713         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32714         * modules/unistr/u8-check-tests: Likewise.
32715         * modules/unistr/u8-chr-tests: Likewise.
32716         * modules/unistr/u8-cmp-tests: Likewise.
32717         * modules/unistr/u8-cmp2-tests: Likewise.
32718         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32719         * modules/unistr/u8-cpy-tests: Likewise.
32720         * modules/unistr/u8-mblen-tests: Likewise.
32721         * modules/unistr/u8-mbsnlen-tests: Likewise.
32722         * modules/unistr/u8-mbtouc-tests: Likewise.
32723         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32724         * modules/unistr/u8-mbtoucr-tests: Likewise.
32725         * modules/unistr/u8-move-tests: Likewise.
32726         * modules/unistr/u8-next-tests: Likewise.
32727         * modules/unistr/u8-prev-tests: Likewise.
32728         * modules/unistr/u8-set-tests: Likewise.
32729         * modules/unistr/u8-stpcpy-tests: Likewise.
32730         * modules/unistr/u8-stpncpy-tests: Likewise.
32731         * modules/unistr/u8-strcat-tests: Likewise.
32732         * modules/unistr/u8-strcmp-tests: Likewise.
32733         * modules/unistr/u8-strcoll-tests: Likewise.
32734         * modules/unistr/u8-strcpy-tests: Likewise.
32735         * modules/unistr/u8-strdup-tests: Likewise.
32736         * modules/unistr/u8-strlen-tests: Likewise.
32737         * modules/unistr/u8-strmblen-tests: Likewise.
32738         * modules/unistr/u8-strmbtouc-tests: Likewise.
32739         * modules/unistr/u8-strncat-tests: Likewise.
32740         * modules/unistr/u8-strncmp-tests: Likewise.
32741         * modules/unistr/u8-strncpy-tests: Likewise.
32742         * modules/unistr/u8-strnlen-tests: Likewise.
32743         * modules/unistr/u8-to-u16-tests: Likewise.
32744         * modules/unistr/u8-to-u32-tests: Likewise.
32745         * modules/unistr/u8-uctomb-tests: Likewise.
32746         * modules/unistr/u16-check-tests: Likewise.
32747         * modules/unistr/u16-chr-tests: Likewise.
32748         * modules/unistr/u16-cmp-tests: Likewise.
32749         * modules/unistr/u16-cmp2-tests: Likewise.
32750         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32751         * modules/unistr/u16-cpy-tests: Likewise.
32752         * modules/unistr/u16-mblen-tests: Likewise.
32753         * modules/unistr/u16-mbsnlen-tests: Likewise.
32754         * modules/unistr/u16-mbtouc-tests: Likewise.
32755         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32756         * modules/unistr/u16-mbtoucr-tests: Likewise.
32757         * modules/unistr/u16-move-tests: Likewise.
32758         * modules/unistr/u16-next-tests: Likewise.
32759         * modules/unistr/u16-prev-tests: Likewise.
32760         * modules/unistr/u16-set-tests: Likewise.
32761         * modules/unistr/u16-stpcpy-tests: Likewise.
32762         * modules/unistr/u16-stpncpy-tests: Likewise.
32763         * modules/unistr/u16-strcat-tests: Likewise.
32764         * modules/unistr/u16-strcmp-tests: Likewise.
32765         * modules/unistr/u16-strcoll-tests: Likewise.
32766         * modules/unistr/u16-strcpy-tests: Likewise.
32767         * modules/unistr/u16-strdup-tests: Likewise.
32768         * modules/unistr/u16-strlen-tests: Likewise.
32769         * modules/unistr/u16-strmblen-tests: Likewise.
32770         * modules/unistr/u16-strmbtouc-tests: Likewise.
32771         * modules/unistr/u16-strncat-tests: Likewise.
32772         * modules/unistr/u16-strncmp-tests: Likewise.
32773         * modules/unistr/u16-strncpy-tests: Likewise.
32774         * modules/unistr/u16-strnlen-tests: Likewise.
32775         * modules/unistr/u16-to-u32-tests: Likewise.
32776         * modules/unistr/u16-to-u8-tests: Likewise.
32777         * modules/unistr/u16-uctomb-tests: Likewise.
32778         * modules/unistr/u32-check-tests: Likewise.
32779         * modules/unistr/u32-chr-tests: Likewise.
32780         * modules/unistr/u32-cmp-tests: Likewise.
32781         * modules/unistr/u32-cmp2-tests: Likewise.
32782         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32783         * modules/unistr/u32-cpy-tests: Likewise.
32784         * modules/unistr/u32-mblen-tests: Likewise.
32785         * modules/unistr/u32-mbsnlen-tests: Likewise.
32786         * modules/unistr/u32-mbtouc-tests: Likewise.
32787         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32788         * modules/unistr/u32-mbtoucr-tests: Likewise.
32789         * modules/unistr/u32-move-tests: Likewise.
32790         * modules/unistr/u32-next-tests: Likewise.
32791         * modules/unistr/u32-prev-tests: Likewise.
32792         * modules/unistr/u32-set-tests: Likewise.
32793         * modules/unistr/u32-stpcpy-tests: Likewise.
32794         * modules/unistr/u32-stpncpy-tests: Likewise.
32795         * modules/unistr/u32-strcat-tests: Likewise.
32796         * modules/unistr/u32-strcmp-tests: Likewise.
32797         * modules/unistr/u32-strcoll-tests: Likewise.
32798         * modules/unistr/u32-strcpy-tests: Likewise.
32799         * modules/unistr/u32-strdup-tests: Likewise.
32800         * modules/unistr/u32-strlen-tests: Likewise.
32801         * modules/unistr/u32-strmblen-tests: Likewise.
32802         * modules/unistr/u32-strmbtouc-tests: Likewise.
32803         * modules/unistr/u32-strncat-tests: Likewise.
32804         * modules/unistr/u32-strncmp-tests: Likewise.
32805         * modules/unistr/u32-strncpy-tests: Likewise.
32806         * modules/unistr/u32-strnlen-tests: Likewise.
32807         * modules/unistr/u32-to-u16-tests: Likewise.
32808         * modules/unistr/u32-to-u8-tests: Likewise.
32809         * modules/unistr/u32-uctomb-tests: Likewise.
32810         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32811         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32812         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32813         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32814         * modules/uniwidth/u8-strwidth-tests: Likewise.
32815         * modules/uniwidth/u8-width-tests: Likewise.
32816         * modules/uniwidth/u16-strwidth-tests: Likewise.
32817         * modules/uniwidth/u16-width-tests: Likewise.
32818         * modules/uniwidth/u32-strwidth-tests: Likewise.
32819         * modules/uniwidth/u32-width-tests: Likewise.
32820         * modules/uniwidth/width-tests: Likewise.
32821
32822 2010-05-18  Richard Jones  <rjones@redhat.com>
32823
32824         doc: users.txt: list hivex
32825         * users.txt: Add hivex.
32826
32827 2010-05-18  Richard Jones  <rjones@redhat.com>
32828
32829         doc: users.txt: list febootstrap
32830         * users.txt: Add febootstrap.
32831
32832 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32833
32834         bootstrap: fix an error when gnulib is not used as a git submodule
32835         * build-aux/bootstrap (gnulib_path): If its length is zero then
32836         assign "gnulib" to it.
32837         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32838
32839 2010-05-16  Bruno Haible  <bruno@clisp.org>
32840
32841         Avoid autoconf warnings about AM_ICONV.
32842         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32843         2.64.
32844
32845 2010-05-16  Bruno Haible  <bruno@clisp.org>
32846
32847         absolute-header: Make the macro usable in more situations.
32848         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32849         from gl_ABSOLUTE_HEADER.
32850         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32851
32852 2010-05-16  James Youngman  <jay@gnu.org>
32853
32854         doc: update users.txt
32855         * users.txt: Add CSSC.
32856
32857 2010-05-16  Jim Meyering  <meyering@redhat.com>
32858
32859         init.sh: fix an error in the previous change; add more comments
32860         * tests/init.sh: Compare exit code in loop against 9, not 2.
32861         Patch by Bruno Haible.
32862         Make the two tests more similar by adding an empty "then" clause.
32863         Add comments.
32864
32865         init.sh: avoid unnecessary shell re-exec
32866         * tests/init.sh: Improve the re-exec-required check to first test the
32867         current shell.  If it passes the test, do not search for a shell that
32868         does pass, and do not re-exec.  This test is particularly contorted to
32869         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32870         of $(...) evokes a syntax error and causes immediate shell exit with
32871         status 2.  Bruno Haible reported that the re-exec made it impossible
32872         to single-step through any init.sh-using script.
32873
32874 2010-05-16  Bruno Haible  <bruno@clisp.org>
32875
32876         Fix collision between gnulib's and libintl's printf replacements.
32877         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32878         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32879         (printf): When using GNU C, map the __printf__ function to rpl_printf
32880         via __asm__. When not using GNU C, define rpl_printf instead of
32881         __printf__.
32882         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32883         commit.
32884         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32885         commit.
32886         * m4/asm-underscore.m4: New file.
32887         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32888         * modules/stdio (Files): Add m4/asm-underscore.m4.
32889         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32890         Reported by Ben Pfaff.
32891
32892 2010-05-16  Bruno Haible  <bruno@clisp.org>
32893
32894         verify: Avoid skipping the test on openSUSE 11.0.
32895         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32896
32897 2010-05-13  Bruno Haible  <bruno@clisp.org>
32898
32899         Avoid useless warnings from G++.
32900         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32901         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32902         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32903
32904 2010-05-11  Jim Meyering  <meyering@redhat.com>
32905
32906         maint.mk: tweak preceding change
32907         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32908         regexps tighter by anchoring at EOL, and make the new group "shy"
32909         for slightly decreased overhead.
32910
32911 2010-05-11  Eric Blake  <eblake@redhat.com>
32912
32913         maint.mk: gnulib doesn't guarantee NSIG
32914         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32915
32916 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32917
32918         test-pwrite.c: Remove unused variable declaration.
32919         * tests/test-pwrite.c (main): Remove read_buf declaration.
32920
32921         Remove useless test-pwrite.sh file.
32922         * tests/test-pwrite.sh: Delete file.
32923         * modules/pwrite-tests: Remove references.
32924         Reported by Bruno Haible.
32925
32926 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32927
32928         init.sh: fix a typo
32929         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32930
32931 2010-05-10  Jim Meyering  <meyering@redhat.com>
32932
32933         maint.mk: avoid using a temporary file in the always-defined-macros check
32934         * top/maint.mk (.re-defmac): Remove rule.
32935         (gl_trap_): Remove definition.
32936         (sc_prohibit_always-defined_macros): Rewrite not to create and
32937         depend on a temporary file.  Instead, depend on GNU grep's ability
32938         to read a list of regular expressions from stdin when given "-f -".
32939
32940 2010-05-09  Bruno Haible  <bruno@clisp.org>
32941
32942         Update to GNU gettext 0.18, part 1.
32943         * m4/gettext.m4: Update to GNU gettext 0.18.
32944         * m4/intl.m4: Likewise.
32945         * m4/po.m4: Likewise.
32946         * modules/gettext (Files): Add m4/fcntl-o.m4.
32947         (configure.ac): Require gettext infrastructure from version 0.18.
32948
32949 2010-05-09  Jim Meyering  <meyering@redhat.com>
32950
32951         init.sh: enable MALLOC_PERTURB_
32952         * tests/init.sh: Enable glibc's malloc-perturbing option.
32953
32954         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32955         With my recent change in init.sh from the two-line form:
32956             -#   : ${srcdir=.}
32957             -#   . "$srcdir/init.sh"; path_prepend_ .
32958             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32959         I noticed that using the one-line form would cause this test
32960         to fail with a false-positive, or to stop working altogether,
32961         depending on whether help-version changed or all the tests did.
32962         * top/maint.mk (_hv_regex): Remove this definition.
32963         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32964         (_hv_regex_strong): Use a stronger regex to check for conformance.
32965         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32966         Give a separate diagnostic for lack of conforming use.
32967
32968         maint.mk: prohibit definition of symbols defined by gnulib
32969         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32970         definition of symbols defined by gnulib.
32971
32972 2010-05-09  Bruno Haible  <bruno@clisp.org>
32973
32974         acl: Avoid test failure on Cygwin-hosted mingw.
32975         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32976
32977 2010-05-09  Bruno Haible  <bruno@clisp.org>
32978
32979         error: Use system's fcntl function.
32980         * lib/error.c (fcntl): Undefine.
32981
32982 2010-05-09  Jim Meyering  <meyering@redhat.com>
32983
32984         verify: adjust formatting to be more consistent
32985         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32986         argument-list '('s, and after one comma.
32987
32988 2010-05-09  Bruno Haible  <bruno@clisp.org>
32989
32990         error: More reliable output on mingw.
32991         * lib/error.c: Include <windows.h>.
32992         (is_open): New function.
32993         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32994         defined.
32995
32996 2010-05-09  Bruno Haible  <bruno@clisp.org>
32997
32998         vasnprintf: Fix syntax errors in libintl build on mingw.
32999         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33000         pad_ourselves and prec_ourselves after use.
33001
33002 2010-05-08  Bruno Haible  <bruno@clisp.org>
33003
33004         * lib/config.charset: Update comments for Cygwin 1.7.
33005         * lib/localcharset.c: Likewise.
33006
33007 2010-05-07  Jim Meyering  <meyering@redhat.com>
33008
33009         init.sh: improve comments
33010         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33011         . "${srcdir=.}/init.sh"; path_prepend_ .
33012         Add a note about path_prepend_ and the alternative of using
33013         TESTS_ENVIRONMENT.
33014
33015 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33016
33017         exclude: Unescape hashed patterns in wildcard mode.
33018         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33019         to the hash list.
33020         * tests/test-exclude8.sh: New test case.
33021         * modules/exclude-tests: Add new test.
33022
33023 2010-05-05  Eric Blake  <eblake@redhat.com>
33024
33025         verify: automate tests
33026         * modules/verify-tests: New module.
33027         * tests/test-verify.sh: New file.
33028         * tests/test-verify.c: Guard each negative test with a unique id.
33029         Also avoid warning about unused left hand of comma expressions.
33030
33031 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33032
33033         Further improvements to verify.h, suggested by Eric Blake.
33034         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33035         the GL_* versions, to avoid collision with OpenGL.
33036         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33037         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33038         than testing merely whether it's defined.
33039
33040         Modify verify.h to pacify gcc -Wredundant_decls.
33041         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33042         These use the prefix "GL_" since they're likely to be useful elsewhere.
33043         We may need to break them out into a different .h file.
33044         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33045         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33046         of verify_function__.
33047
33048 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33049
33050         Tests for module pwrite.
33051         * modules/pwrite-tests: New file.
33052         * tests/test-pwrite.sh: New file.
33053         * tests/test-pwrite.c: New file.
33054
33055         New module pwrite.
33056         * lib/unistd.in.h (pwrite): New declaration.
33057         * lib/pwrite.c: New file, from glibc with modifications.
33058         * m4/pwrite.m4: New file.
33059         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33060         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33061         REPLACE_PWRITE.
33062         * modules/pwrite: New file.
33063         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33064         REPLACE_PWRITE.
33065         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33066         * doc/posix-functions/pwrite.texi: Mention the new module.
33067
33068 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33069
33070         pread: Update documentation.
33071         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33072
33073 2010-05-04  Eric Blake  <eblake@redhat.com>
33074
33075         docs: update cygwin progress
33076         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33077         this bug.
33078         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33079         Added in cygwin 1.7.2.
33080         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33081         Likewise.
33082         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33083         Likewise.
33084         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33085         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33086         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33087         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33088         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33089         Mention nproc module.
33090         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33091         bug in cygwin 1.7.5 addition.
33092         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33093         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33094         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33095         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33096         1.7.5.
33097         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33098         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33099         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33100         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33101         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33102         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33103         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33104         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33105         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33106         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33107         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33108         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33109         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33110         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33111         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33112         Likewise.
33113         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33114         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33115         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33116         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33117         Likewise.
33118         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33119         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33120         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33121         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33122         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33123         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33124         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33125         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33126         Likewise.
33127         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33128         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33129         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33130         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33131         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33132         Likewise.
33133         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33134         Likewise.
33135         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33136         Likewise.
33137         * doc/glibc-functions/xdrrec_endofrecord.texi
33138         (xdrrec_endofrecord): Likewise.
33139         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33140         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33141         Likewise.
33142         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33143         Likewise.
33144
33145 2010-05-04  Jim Meyering  <meyering@redhat.com>
33146
33147         gendocs.sh: make its "-s FILE" option more useful
33148         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33149         $PACKAGE to reflect the probably-different basename of "FILE".
33150
33151 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33152
33153         bootstrap: don't ignore download_po_files failure
33154         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33155         failure.
33156
33157 2010-05-03  Jim Meyering  <meyering@redhat.com>
33158
33159         maint.mk: allow to pass options to gendocs.sh
33160         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33161         (gendocs_options_): New overridable variable.
33162
33163         gnu-web-doc-update: don't ignore configure or build failure
33164         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33165
33166         announce-gen: backslash-escape '@'s in --help output
33167         * build-aux/announce-gen: Fix syntax errors.
33168
33169         maint.mk, announce-gen: allow project-specific announcement mail headers
33170         * top/maint.mk (translation_project_): Define default.
33171         (announcement_Cc_, announcement_mail_headers_): Likewise.
33172         (announcement): Invoke announce-gen with new --mail-headers option.
33173         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33174
33175         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33176         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33177         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33178         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33179         line in the "err2" output file when running "make check" in verbose
33180         mode (i.e., with set -x enabled).
33181
33182 2010-05-03  Bruno Haible  <bruno@clisp.org>
33183
33184         wctob: Fix for weird platforms.
33185         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33186         argument value.
33187
33188 2010-05-03  Jim Meyering  <meyering@redhat.com>
33189
33190         maint.mk: prohibit unwarranted use of <strings.h>
33191         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33192         strings.h in a file that does not also use strcasecmp, strncasecmp,
33193         ffs or ffsll.
33194
33195         maint.mk: remove obsolete comments
33196         * top/maint.mk: Remove stale, commented-out rules.
33197
33198 2010-05-02  Bruno Haible  <bruno@clisp.org>
33199
33200         wcwidth: Declare also when it's aliased.
33201         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33202         macro.
33203
33204 2010-05-02  Bruno Haible  <bruno@clisp.org>
33205
33206         Fix regression from 2010-04-25.
33207         * gnulib-tool (func_modules_transitive_closure): Check the status of
33208         all modules, not only of the tests that are of the form foo-tests where
33209         foo is a module.
33210
33211 2010-05-02  Bruno Haible  <bruno@clisp.org>
33212
33213         wctob: Work around nasty Cygwin 1.7.2 bug.
33214         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33215         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33216
33217 2010-05-01  Bruno Haible  <bruno@clisp.org>
33218
33219         fpurge: Sharper test.
33220         * tests/test-fpurge.c (main): Add one more ftell check.
33221         * modules/fpurge-tests (Depends-on): Add ftell.
33222         Suggested by Eric Blake.
33223
33224 2010-05-01  Bruno Haible  <bruno@clisp.org>
33225
33226         ftello: Another test.
33227         * tests/test-ftello3.c: New file.
33228         * modules/ftello-tests (Files): Add it.
33229         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33230         MOSTLYCLEANFILES.
33231
33232         ftell: Another test.
33233         * tests/test-ftell3.c: New file.
33234         * modules/ftell-tests (Files): Add it.
33235         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33236         MOSTLYCLEANFILES.
33237
33238 2010-05-01  Bruno Haible  <bruno@clisp.org>
33239
33240         ftell, ftello: Work around Solaris bug.
33241         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33242         * lib/ftello.c: Include stdio-impl.h.
33243         (ftello): On Solaris, when _IOWRT is set, compute the result without
33244         looking at _IOREAD.
33245         * modules/ftello (Files): Add lib/stdio-impl.h.
33246         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33247         * doc/posix-functions/ftello.texi: Likewise.
33248         Reported by Eric Blake.
33249
33250 2010-05-01  Bruno Haible  <bruno@clisp.org>
33251
33252         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33253         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33254         the _IOWRT flag is also set.
33255
33256 2010-05-01  Bruno Haible  <bruno@clisp.org>
33257
33258         Fix doc about a HP-UX stdio bug.
33259         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33260         * doc/posix-functions/ftello.texi: Likewise.
33261
33262 2010-05-01  Bruno Haible  <bruno@clisp.org>
33263
33264         lseek test: Fix failure on Solaris.
33265         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33266         output.
33267
33268 2010-04-30  Jim Meyering  <meyering@redhat.com>
33269
33270         bootstrap: don't ignore failure to generate po*/Makevars
33271         * build-aux/bootstrap (with_gettext): Don't ignore failure
33272         to create po/Makevars or runtime-po/Makevars.
33273
33274 2010-04-29  Eric Blake  <eblake@redhat.com>
33275
33276         headers: relax license to LGPLv2+
33277         * modules/fcntl-h (License): Relax license.
33278         * modules/getopt-posix (License): Likewise.
33279         * modules/locale (License): Likewise.
33280         * modules/math (License): Likewise.
33281         * modules/pty (License): Likewise.
33282         * modules/sched (License): Likewise.
33283         * modules/search (License): Likewise.
33284         * modules/spawn (License): Likewise.
33285         * modules/stdarg (License): Likewise.
33286         * modules/sysexits (License): Likewise.
33287
33288 2010-04-29  Jim Meyering  <meyering@redhat.com>
33289
33290         inttypes: relax license to LGPLv2+
33291         * modules/inttypes (License): Relax license.
33292
33293 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33294
33295         * top/maint.mk (indent): Run twice to produce idempotent results.
33296
33297 2010-04-28  Bruno Haible  <bruno@clisp.org>
33298
33299         getdate: Generate getdate.c in the source directory.
33300         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33301         MOSTLYCLEANFILES.
33302         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33303
33304 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33305
33306         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33307         is not declared as a const *; avoid warnings in that case.
33308
33309 2010-04-28  Eric Blake  <eblake@redhat.com>
33310
33311         canonicalize-lgpl: avoid compiler warning
33312         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33313         declaration' / 'extraneous semicolon' warning with some compilers.
33314         Reported by Andreas Gruenbacher.
33315
33316 2010-04-28  Jim Meyering  <meyering@redhat.com>
33317
33318         init.sh: ensure a more reliable exit status when exiting via trap
33319         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33320         Inspired by patches from Dmitry V. Levin.
33321         Also trap on signal 3 (SIGQUIT).
33322
33323 2010-04-27  Bruno Haible  <bruno@clisp.org>
33324
33325         Update doc about utimes().
33326         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33327         'utimens' module.
33328         Reported by Andreas Gruenbacher <agruen@suse.de>.
33329
33330 2010-04-27  Eric Blake  <eblake@redhat.com>
33331
33332         full-read, full-write: relax license
33333         * modules/full-read (License): Drop to LGPLv2+.
33334         * modules/full-write (License): Likewise.
33335         * modules/safe-read (License): Likewise.
33336         * modules/safe-write (License): Likewise.
33337
33338         pthread: mention library for linking
33339         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33340
33341 2010-04-27  Jim Meyering  <meyering@redhat.com>
33342
33343         maint.mk: fix a bug introduced in last change
33344         * top/maint.mk (gl_assured_headers_): Now that all names are on
33345         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33346         is not anchored to end of word, it should be adequate.
33347
33348         maint.mk: avoid side-effect in latest syntax-check
33349         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33350         to run commands via $(shell...), and hence to incur cost only when
33351         the new rule is actually run.
33352
33353         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33354         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33355         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33356         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33357         (gl_assured_headers_, az_, AZ_): Define.
33358         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33359
33360 2010-04-26  Jim Meyering  <jim@meyering.net>
33361             Bruno Haible  <bruno@clisp.org>
33362
33363         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33364         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33365         Prompted by an exchange with Gilles Espinasse.
33366
33367 2010-04-26  Jim Meyering  <meyering@redhat.com>
33368
33369         git-version-gen: aesthetic tweak
33370         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33371         so that the command remains on a single line.
33372
33373 2010-04-26  Eric Blake  <eblake@redhat.com>
33374
33375         git-version-gen: allow use on EBCDIC hosts
33376         * build-aux/git-version-gen (dirty): Use literal rather than tying
33377         ourselves to ascii.
33378         Reported by Steve Goetze.
33379
33380 2010-04-25  Bruno Haible  <bruno@clisp.org>
33381
33382         netdb: Add support for GNULIB_POSIXCHECK.
33383         * lib/netdb.in.h: Include warn-on-use.h.
33384         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33385         functions are used when GNULIB_POSIXCHECK is defined and the
33386         getaddrinfo module is not in use.
33387         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33388         freeaddrinfo, gai_strerror, getnameinfo are declared.
33389         * modules/netdb (Depends-on): Add warn-on-use.
33390         (Makefile.am): Include warn-on-use.h in netdb.h.
33391
33392 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33393
33394         build: avoid "make check" failure without .git/ directory
33395         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33396         there is no .git/ directory.
33397
33398 2010-04-25  Bruno Haible  <bruno@clisp.org>
33399
33400         ptsname: Fix misuse of ttyname_r.
33401         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33402         of errno.
33403
33404 2010-04-25  Bruno Haible  <bruno@clisp.org>
33405
33406         ttyname_r: Make it work on Solaris 10.
33407         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33408         if the system function has the POSIX declaration. Test whether the
33409         function fails if the buffer is less than 128 bytes large.
33410         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33411         system's ttyname_r function. Provide a reasonably large buffer.
33412         * modules/ttyname_r (Depends-on): Add extensions.
33413         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33414
33415 2010-04-25  Bruno Haible  <bruno@clisp.org>
33416
33417         Use the 'extensions' module for some more functions on Solaris.
33418         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33419         module.
33420         * doc/posix-functions/ctime_r.texi: Likewise.
33421         * doc/posix-functions/getgrgid_r.texi: Likewise.
33422         * doc/posix-functions/getgrnam_r.texi: Likewise.
33423         * doc/posix-functions/getpwnam_r.texi: Likewise.
33424         * doc/posix-functions/getpwuid_r.texi: Likewise.
33425         * doc/posix-functions/readdir_r.texi: Likewise.
33426         * doc/posix-functions/sigwait.texi: Likewise.
33427         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33428         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33429
33430 2010-04-25  Bruno Haible  <bruno@clisp.org>
33431
33432         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33433         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33434         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33435         * lib/ttyname_r.c: Include <limits.h>.
33436         (ttyname_r): Define using the system's ttyname_r function, if it exists
33437         and not on Solaris.
33438         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33439         set.
33440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33441         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33442         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33443         Reported by Simon Josefsson.
33444
33445 2010-04-25  Bruno Haible  <bruno@clisp.org>
33446
33447         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33448         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33449         * doc/posix-functions/ctime_r.texi: Likewise.
33450         * doc/posix-functions/getgrgid_r.texi: Likewise.
33451         * doc/posix-functions/getgrnam_r.texi: Likewise.
33452         * doc/posix-functions/getlogin_r.texi: Likewise.
33453         * doc/posix-functions/getpwnam_r.texi: Likewise.
33454         * doc/posix-functions/getpwuid_r.texi: Likewise.
33455         * doc/posix-functions/readdir_r.texi: Likewise.
33456         * doc/posix-functions/sigwait.texi: Likewise.
33457         * doc/posix-functions/ttyname_r.texi: Likewise.
33458         Reported by Simon Josefsson.
33459
33460 2010-04-25  Bruno Haible  <bruno@clisp.org>
33461
33462         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33463         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33464         also to --create-testdir.
33465         (func_acceptable): Don't consider the status of *-tests modules here.
33466         (func_modules_transitive_closure): Consider it here, before including a
33467         test module.
33468         (func_import, func_create_testdir): Set inc_all_direct_tests,
33469         inc_all_indirect_tests.
33470         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33471         --create-testdir and --create-megatestdir.
33472
33473 2010-04-25  Bruno Haible  <bruno@clisp.org>
33474
33475         gnulib-tool: Add --without-*-tests options.
33476         * gnulib-tool (func_usage): Document the --without-*-tests options.
33477         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33478         excl_unportable_tests): New variables.
33479         Fail if they are specified with --import or --update.
33480         (func_acceptable): Respect the excl_*_tests variables.
33481         (func_import): Set the excl_*_tests variables to empty.
33482
33483 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33484             Bruno Haible  <bruno@clisp.org>
33485
33486         Work around a MacOS X 10.4 bug with openpty.
33487         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33488         * tests/test-openpty.c (main): Close the master side explicitly.
33489
33490 2010-04-25  Bruno Haible  <bruno@clisp.org>
33491
33492         strnlen: Fix a C++ test error on MacOS X and Solaris.
33493         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33494         the function is not declared.
33495         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33496         Simon Josefsson.
33497
33498 2010-04-24  Bruno Haible  <bruno@clisp.org>
33499
33500         Avoid a gcc warning.
33501         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33502         of correct type for %08lx directive.
33503         Reported by Eric Blake.
33504
33505 2010-04-24  Bruno Haible  <bruno@clisp.org>
33506
33507         vasnprintf: Correct errno value in case of out-of-memory.
33508         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33509         or sprintf. Use the errno value from SNPRINTF or sprintf.
33510         Reported by Ian Beckwith <ianb@erislabs.net>.
33511
33512 2010-04-24  Bruno Haible  <bruno@clisp.org>
33513
33514         ansi-c++-opt: Find correct compiler when cross-compiling.
33515         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33516         AC_CHECK_PROGS.
33517         Reported by Simon Josefsson.
33518
33519 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33520
33521         vc-list-files: Add support for subversion
33522         * build-aux/vc-list-files: Use "svn list" to generate the list of
33523         files controlled by subversion.
33524
33525 2010-04-23  Jim Meyering  <meyering@redhat.com>
33526
33527         vc-list-files tests: convert to use init.sh
33528         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33529         path_prepend_.
33530         Use Exit, not exit.
33531         Use skip_ rather than open coding it.
33532         Remove trap set-up and compare definitions.
33533         * tests/test-vc-list-files-git.sh: Likewise.
33534         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33535
33536 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33537
33538         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33539         backup files.
33540
33541 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33542
33543         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33544
33545 2010-04-20  Eric Blake  <eblake@redhat.com>
33546
33547         tests: be robust to ignored SIGPIPE
33548         * tests/test-select-in.sh: Consume all output.
33549         * tests/test-lseek.sh: Check correct exit status, while avoiding
33550         EPIPE.
33551
33552 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33553             Bruno Haible  <bruno@clisp.org>
33554
33555         visibility: Don't use -fvisibility if it leads to a warning.
33556         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33557         yes, don't pretend that visibility works if it leads to a warning.
33558         Reported by Mike Gran <spk121@yahoo.com>.
33559
33560 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33561
33562         * build-aux/bootstrap: Use "git -h" for testing for supported options
33563         instead of "git --help".  The short-form option only shows a summary,
33564         and doesn't layout the full man page.  Grep for the full option name
33565         in the summary, too.
33566
33567 2010-04-19  Bruno Haible  <bruno@clisp.org>
33568
33569         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33570         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33571         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33572         mention of RELOCATABLE_STRIP.
33573         Reported by Sylvain Beucler <beuc@beuc.net>.
33574
33575 2010-04-19  Bruno Haible  <bruno@clisp.org>
33576
33577         * lib/diffseq.h: Fix typo in comment.
33578         Reported by Eric Blake.
33579
33580 2010-04-19  Bruno Haible  <bruno@clisp.org>
33581
33582         ioctl: Move autoconf macro to a .m4 file.
33583         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33584         * modules/ioctl (Files): Add it.
33585         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33586         Reported by Ian Beckwith <ianb@erislabs.net>.
33587
33588 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33589             Bruno Haible  <bruno@clisp.org>
33590
33591         diffseq: Accommodate use-case with abstract arrays.
33592         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33593         is not defined.
33594         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33595         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33596
33597 2010-04-18  Bruno Haible  <bruno@clisp.org>
33598
33599         * doc/posix-headers/stdbool.texi: More precise wording.
33600
33601 2010-04-17  Jim Meyering  <meyering@redhat.com>
33602
33603         maint.mk: use gnu-style indentation in an embedded perl script
33604         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33605         Rename variable: s/two/last_two_bytes/
33606
33607 2010-04-16  Eric Blake  <eblake@redhat.com>
33608
33609         test-stdbool: skip test that fails with Solaris CC
33610         * tests/test-stdbool.c (f): Skip test that causes compilation
33611         error under buggy C++ compiler.
33612         * lib/stdbool.in.h: Document the limitation.
33613         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33614
33615         setenv: allow compilation with C++
33616         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33617         register keyword.
33618
33619         stdint: allow test to pass with C++
33620         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33621
33622         getopt: allow compilation with C++
33623         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33624         struct.
33625         * lib/getopt.c (_getopt_internal_r): Use correct type.
33626         Reported by Dagobert Michelson, via Joel E. Denny.
33627
33628 2010-04-16  Bruno Haible  <bruno@clisp.org>
33629
33630         Override netdb.h always.
33631         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33632         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33633         Reported by Ludovic Courtès <ludo@gnu.org>.
33634
33635 2010-04-15  Bruno Haible  <bruno@clisp.org>
33636
33637         openpty: Fix mistake from 2010-03-21.
33638         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33639         Reported by Simon Josefsson.
33640
33641 2010-04-15  Eric Blake  <eblake@redhat.com>
33642
33643         test-forkpty: fix expected signature
33644         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33645         Reported by Simon Josefsson.
33646
33647 2010-04-15  Jim Meyering  <meyering@redhat.com>
33648
33649         maint.mk: texinfo_suffix_re_: correct the default regexp
33650         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33651
33652         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33653         make it configurable via texinfo_suffix_re_.
33654
33655 2010-04-14  Eric Blake  <eblake@redhat.com>
33656
33657         strtok_r: relax license to LGPLv2+
33658         * modules/strtok_r (License): Relax license.
33659         Reported by Matthias Bolte.
33660
33661 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33662
33663         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33664         version 1.4.4 by default instead of requiring the libgcrypt
33665         version used during build.  This makes it possible to use the
33666         application with older but still binary compatible libgcrypt
33667         versions.
33668
33669 2010-04-13  Eric Blake  <eblake@redhat.com>
33670
33671         getopt-gnu: match recent glibc fixes and posix ruling
33672         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33673         '+' handling, when requesting extensions.
33674         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33675         'W;' handling.
33676         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33677         * doc/posix-functions/getopt.texi (getopt): Document this.
33678         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33679         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33680         Likewise.
33681
33682         getopt: merge bug fixes from glibc
33683         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33684         diagnostics.  Honor '+:' correctly.  Reject ';'.
33685
33686         getopt-posix: detect MacOS bug
33687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33688         optind when missing a required argument.
33689         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33690         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33691         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33692         Likewise.
33693
33694         getopt-posix: avoid spurious failure on Solaris
33695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33696         an indicator that setting optind=1 is sufficient for reset.
33697
33698         getopt-posix: avoid spurious failure on FreeBSD
33699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33700         in POSIX mode, since the m4 test uses it.
33701
33702         gnulib-tool: silence warning on BSD sh
33703         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33704
33705 2010-04-13  Jim Meyering  <meyering@redhat.com>
33706
33707         doc: users.txt: GNU patch now uses gnulib
33708         * users.txt: Add patch.
33709
33710 2010-04-12  Jim Meyering  <meyering@redhat.com>
33711
33712         maint.mk: generate more concise timing data for syntax-check rules
33713         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33714         " done" from each line that reports a syntax-check test duration.
33715
33716 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33717
33718         git-version-gen: use "git update-index..." rather than "git status"
33719         * build-aux/git-version-gen: Use git update-index --refresh, not
33720         "git status".  With some versions of git, "git status" would fail
33721         to update the index and result in an unwarranted "-dirty" suffix.
33722
33723 2010-04-11  Jim Meyering  <meyering@redhat.com>
33724
33725         openat: correct formatting (no semantic change)
33726         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33727         Suggested by Bruno Haible.
33728
33729 2010-04-11  Bruno Haible  <bruno@clisp.org>
33730
33731         Stricter declaration checking in testdirs.
33732         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33733         If for_tests is true, augment AM_CPPFLAGS to define
33734         GNULIB_STRICT_CHECKING.
33735         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33736         GNULIB_STRICT_CHECKING is defined, verify that the function is
33737         declared.
33738
33739 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33740             Bruno Haible  <bruno@clisp.org>
33741
33742         libunistring: Improve configure output.
33743         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33744         Don't say "consider installing GNU libunistring" when checking again
33745         with libiconv.
33746
33747 2010-04-11  Bruno Haible  <bruno@clisp.org>
33748
33749         libunistring: Correct value of $LTLIBUNISTRING.
33750         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33751         correct the value of $LTLIBUNISTRING.
33752
33753 2010-04-11  Bruno Haible  <bruno@clisp.org>
33754
33755         havelib: Add static libraries to LIBS in the right order.
33756         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33757         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33758
33759 2010-04-11  Bruno Haible  <bruno@clisp.org>
33760
33761         libunistring: Detect libunistring also when it depends on libiconv.
33762         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33763         the second AC_LIB_HAVE_LINKFLAGS invocation.
33764
33765 2010-04-11  James Youngman  <jay@gnu.org>
33766
33767         close-stream: declare local scalars to be "const"
33768         * lib/close-stream.c (close_stream): Make boolean variables const
33769         to document the fact that we set but do not change them.
33770
33771 2010-04-11  Bruno Haible  <bruno@clisp.org>
33772
33773         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33774
33775 2010-04-11  Jim Meyering  <meyering@redhat.com>
33776
33777         maint.mk: don't include dist-check.mk
33778         * top/maint.mk: Remove bogus include directive.
33779
33780         maint.mk: improve empty-line-at-EOF check
33781         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33782         solution, rather than tail+Perl-based one.  The latter would read
33783         a few kilobytes from the end of each file, and did not handle empty
33784         files properly.
33785
33786         maint.mk: print the elapsed time for each syntax-check rule
33787         * top/maint.mk (sc_m_rules_): Save start time in a file.
33788         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33789         (local-check): Interpose the .z rules
33790
33791 2010-04-11  Jim Meyering  <meyering@redhat.com>
33792
33793         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33794         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33795         empty file with one that ends in an empty line.
33796
33797 2010-04-10  Bruno Haible  <bruno@clisp.org>
33798
33799         mkdir: Make it work on mingw64.
33800         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33801         * lib/mkdir.c: Update comment.
33802         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33803
33804 2010-04-10  Bruno Haible  <bruno@clisp.org>
33805
33806         Don't override improved macro from newer autoconf.
33807         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33808         autoconf >= 2.62.
33809         Reported by Joel E. Denny <jdenny@clemson.edu>.
33810
33811 2010-04-10  Jim Meyering  <meyering@redhat.com>
33812
33813         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33814         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33815
33816         maint.mk: correct a diagnostic
33817         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33818         in diagnostic; now use $prohibit.
33819
33820 2010-04-10  Bruno Haible  <address@hidden>
33821
33822         fchownat: Fix a C++ test error on Solaris 8.
33823         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33824         the function does not exist.
33825
33826 2010-04-10  Bruno Haible  <bruno@clisp.org>
33827
33828         vasnprintf: Add more tests.
33829         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33830         (test_function): Test converting an invalid wide string.
33831
33832         vasnprintf: Correct handling of unconvertible wide string arguments.
33833         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33834         VASNPRINTF.
33835         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33836         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33837         smaller than the expected maximum need for the directive. Set errno to
33838         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33839         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33841         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33842         * modules/vasnprintf (Files): Add m4/printf.m4.
33843         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33844
33845 2010-04-10  Bruno Haible  <bruno@clisp.org>
33846
33847         vasnprintf: Fix crash in %ls directive.
33848         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33849         string is passed as argument to %ls, with no precision and no width.
33850         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33851
33852 2010-04-10  Bruno Haible  <bruno@clisp.org>
33853
33854         vasnprintf: Fix multiple test failures on mingw.
33855         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33856         _snprintf, or snwprintf, not _snwprintf.
33857
33858 2010-04-10  Bruno Haible  <bruno@clisp.org>
33859
33860         write: Fix a C++ test error on mingw.
33861         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33862
33863 2010-04-10  Bruno Haible  <bruno@clisp.org>
33864
33865         vasnprintf test: Reduce code duplication.
33866         * tests/test-vasnprintf.c (test_function): New function, extracted from
33867         test_vasnprintf.
33868         (test_vasnprintf, test_asnprintf): Invoke it.
33869
33870 2010-04-10  Bruno Haible  <bruno@clisp.org>
33871
33872         strnlen: Fix warning in C++ mode on MacOS X.
33873         * lib/string.in.h (strnlen): Use the modern idiom.
33874         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33875         defining strnlen as a macro already in <config.h>.
33876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33877         REPLACE_STRNLEN.
33878         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33879         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33880
33881 2010-04-08  James Youngman  <jay@gnu.org>
33882
33883         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33884         the example.
33885
33886 2010-04-09  Jim Meyering  <meyering@redhat.com>
33887
33888         maint.mk: print better diagnostic when there is no $(_hv_file)
33889         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33890         announce that when $(_hv_file) (aka help-version) does not exist.
33891
33892         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33893         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33894         not try to interpret its random input bytes.  Jarno Rajahalme reported
33895         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33896         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33897         (mktempd_): Likewise, just in case.
33898
33899         ftruncate: add two years to projected module removal date: 2012
33900         * m4/ftruncate.m4: Adjust comments.
33901
33902         ftruncate: mark module as obsolete; even MinGW provides it, now
33903         * modules/ftruncate (Status): Obsolete.
33904         (Notice): Say that.
33905         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33907
33908 2010-04-08  Bruno Haible  <bruno@clisp.org>
33909
33910         Fix side effects from tests-related modules.
33911         * modules/dprintf-posix (Comment): New section.
33912         * modules/fprintf-posix (Comment): Likewise.
33913         * modules/obstack-printf-posix (Comment): Likewise.
33914         * modules/printf-posix (Comment): Likewise.
33915         * modules/snprintf-posix (Comment): Likewise.
33916         * modules/sprintf-posix (Comment): Likewise.
33917         * modules/vasnprintf-posix (Comment): Likewise.
33918         * modules/vasprintf-posix (Comment): Likewise.
33919         * modules/vdprintf-posix (Comment): Likewise.
33920         * modules/vfprintf-posix (Comment): Likewise.
33921         * modules/vprintf-posix (Comment): Likewise.
33922         * modules/vsnprintf-posix (Comment): Likewise.
33923         * modules/vsprintf-posix (Comment): Likewise.
33924         * modules/xprintf-posix (Comment): Likewise.
33925         * modules/xvasprintf-posix (Comment): Likewise.
33926         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33927         * modules/floorf-tests (Depends-on): Likewise.
33928         * modules/round-tests (Depends-on): Likewise.
33929         * modules/roundf-tests (Depends-on): Likewise.
33930         * modules/trunc-tests (Depends-on): Likewise.
33931         * modules/truncf-tests (Depends-on): Likewise.
33932         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33933         'fprintf-posix' module is not present.
33934         * tests/test-floorf2.c (check): Likewise.
33935         * tests/test-trunc2.c (check): Likewise.
33936         * tests/test-truncf2.c (check): Likewise.
33937         * tests/test-round2.c (equal): Likewise.
33938         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33939
33940 2010-04-07  Karl Berry  <karl@gnu.org>
33941
33942         * config/srclist.txt,
33943         * config/srclistvars.sh,
33944         * config/srclist-update: doc fixes.
33945
33946 2010-04-07  Jim Meyering  <meyering@redhat.com>
33947
33948         maint.mk: add a PATH crosschecking syntax-check rule
33949         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33950         Useful if you use a test like the one in help-version (coreutils,
33951         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33952         printed by prog --version.
33953
33954 2010-04-06  Bruno Haible  <bruno@clisp.org>
33955
33956         Fix link error on mingw.
33957         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33958         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33959
33960 2010-04-06  Bruno Haible  <bruno@clisp.org>
33961
33962         Assume rmdir exists.
33963         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33964
33965 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33966
33967         doc: update users.txt
33968         * users.txt: Add gcal.
33969
33970 2010-04-06  Jim Meyering  <meyering@redhat.com>
33971
33972         init.sh: simply unset TMPDIR rather than risking env -i
33973         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33974         although it probably works fine on all Unix-based systems, some
33975         systems (Cygwin?) cannot tolerate a totally cleared environment.
33976         Suggestion from Eric Blake.
33977
33978 2010-04-06  Jim Meyering  <meyering@redhat.com>
33979
33980         init.sh: portability fix: use env's POSIX-specified -i option not -u
33981         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33982         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33983
33984 2010-04-05  Bruno Haible  <bruno@clisp.org>
33985
33986         btowc: Work around Cygwin 1.7.2 bug.
33987         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33988         does not map NUL to 0.
33989         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33990
33991 2010-04-05  Bruno Haible  <bruno@clisp.org>
33992
33993         Make the multithread modules work on Cygwin 1.7.2.
33994         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33995         imported symbols can be declared weak, so that it returns "no" on
33996         Cygwin 1.7.2.
33997
33998 2010-04-05  Bruno Haible  <bruno@clisp.org>
33999
34000         Use the module 'strncat'.
34001         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34002
34003         Tests for module 'strncat'.
34004         * modules/strncat-tests: New file.
34005         * tests/test-strncat.c: New file.
34006
34007         New module 'strncat'.
34008         * lib/string.in.h (strncat): New declaration.
34009         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34010         * m4/strncat.m4: New file, based on m4/memchr.m4.
34011         * modules/strncat: New file.
34012         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34013         is declared.
34014         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34015         REPLACE_STRNCAT.
34016         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34017         REPLACE_STRNCAT.
34018         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34019         module.
34020         * tests/test-string-c++.cc: Check signature of strncat.
34021
34022 2010-04-05  Jim Meyering  <meyering@redhat.com>
34023
34024         xstrtoumax-tests: convert to use init.sh
34025         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34026         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34027         Use Exit, not exit.
34028         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34029
34030         xstrtoimax-tests: convert to use init.sh
34031         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34032         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34033         Use Exit, not exit.
34034         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34035
34036 2010-04-05  Bruno Haible  <bruno@clisp.org>
34037
34038         sys_socket: Avoid #define replacements in C++ mode.
34039         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34040         warning to the function if possible, rather than #defining the symbol
34041         to a dysfunctional alias.
34042
34043 2010-04-05  Bruno Haible  <bruno@clisp.org>
34044
34045         fseeko: Fix C++ test error on mingw.
34046         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34047         gl_FUNC_FSEEKO.
34048         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34049         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34050         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34051         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34052
34053 2010-04-05  Bruno Haible  <bruno@clisp.org>
34054
34055         duplocale: Improve test output.
34056         * tests/test-duplocale.c (main): Print reason for skipped test.
34057
34058 2010-04-05  Bruno Haible  <bruno@clisp.org>
34059
34060         Assume rmdir exists.
34061         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34062         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34063
34064 2010-04-05  Bruno Haible  <bruno@clisp.org>
34065
34066         Fix link error on Solaris 8 with cc.
34067         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34068
34069 2010-04-05  Bruno Haible  <bruno@clisp.org>
34070
34071         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34072         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34073
34074 2010-04-05  Bruno Haible  <bruno@clisp.org>
34075
34076         vasprintf: Update documentation.
34077         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34078
34079 2010-04-05  Bruno Haible  <bruno@clisp.org>
34080
34081         ptsname: Improve test.
34082         * tests/test-ptsname.c (main): Also try the various master names of BSD
34083         systems.
34084
34085 2010-04-05  Bruno Haible  <bruno@clisp.org>
34086
34087         memchr: Avoid a possible C++ test error.
34088         * lib/string.in.h (memchr): Provide declaration if function is missing.
34089         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34090         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34091         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34092         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34093
34094 2010-04-05  Bruno Haible  <bruno@clisp.org>
34095
34096         strtok_r: Improve idiom.
34097         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34098         AC_LIBOBJ is used.
34099
34100 2010-04-05  Bruno Haible  <bruno@clisp.org>
34101
34102         strdup: Improve idiom.
34103         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34104         AC_LIBOBJ is used.
34105         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34106         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34107         when AC_LIBOBJ is used.
34108
34109 2010-04-05  Bruno Haible  <bruno@clisp.org>
34110
34111         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34112         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34113         don't set REPLACE_MBSINIT to 1.
34114         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34115         don't set REPLACE_MBRTOWC to 1.
34116         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34117         exist, don't set REPLACE_MBSRTOWCS to 1.
34118         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34119         exist, don't set REPLACE_MBSNRTOWCS to 1.
34120         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34121         don't set REPLACE_WCRTOMB to 1.
34122         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34123         exist, don't set REPLACE_WCSRTOMBS to 1.
34124         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34125         exist, don't set REPLACE_WCSNRTOMBS to 1.
34126
34127 2010-04-05  Bruno Haible  <bruno@clisp.org>
34128
34129         ldexpl: Improve idiom.
34130         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34131         make sure to set HAVE_DECL_LDEXPL to 0.
34132
34133 2010-04-05  Jim Meyering  <meyering@redhat.com>
34134
34135         xstrtol-tests: convert to use init.sh
34136         * modules/xstrtol-tests (Files): Add tests/init.sh.
34137         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34138         Use Exit, not exit.
34139         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34140
34141         atexit-tests: convert to use init.sh
34142         * modules/atexit-tests (Files): Add tests/init.sh.
34143         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34144         Use Exit, not exit.
34145         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34146
34147         init.sh: fix typo
34148         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34149
34150         init.sh: make it easier for a test script to write to the tty, ...
34151         when using automake's parallel-tests mode.
34152         * tests/init.sh (stderr_fileno_): Define overridable variable.
34153         (warn_): New function, to use it.
34154         (fail_, skip_, framework_failure_): Use warn_.
34155
34156 2010-04-04  Bruno Haible  <bruno@clisp.org>
34157
34158         btowc: Avoid warning.
34159         * lib/btowc.c: Include <stdlib.h>.
34160         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34161
34162 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34163             Bruno Haible  <bruno@clisp.org>
34164
34165         wchar: Port to NetBSD 1.5.
34166         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34167         * lib/wctype.in.h (WEOF): Likewise.
34168
34169 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34170             Bruno Haible  <bruno@clisp.org>
34171
34172         Port extended stdio to NetBSD 1.5.
34173         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34174         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34175         older.
34176
34177 2010-04-04  Bruno Haible  <bruno@clisp.org>
34178
34179         string: Remove unused substitution.
34180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34181         HAVE_DECL_STRERROR.
34182         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34183
34184 2010-04-04  Bruno Haible  <bruno@clisp.org>
34185
34186         strtod: Avoid a possible C++ test error.
34187         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34188         set REPLACE_STRTOD.
34189
34190 2010-04-04  Bruno Haible  <bruno@clisp.org>
34191
34192         strerror: Update documentation.
34193         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34194
34195 2010-04-04  Bruno Haible  <bruno@clisp.org>
34196
34197         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34198         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34199         _GL_CXXALIAS_SYS_CAST.
34200
34201 2010-04-04  Bruno Haible  <bruno@clisp.org>
34202
34203         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34204         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34205         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34206         REPLACE_FREXPL to 1.
34207         * doc/posix-functions/frexpl.texi: Update documentation.
34208
34209 2010-04-04  Bruno Haible  <bruno@clisp.org>
34210
34211         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34212         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34213
34214 2010-04-04  Bruno Haible  <bruno@clisp.org>
34215
34216         Implement nanosleep for native Windows.
34217         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34218
34219 2010-04-04  Bruno Haible  <bruno@clisp.org>
34220
34221         math: Fix some C++ test errors on Solaris 8.
34222         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34223
34224 2010-04-04  Bruno Haible  <bruno@clisp.org>
34225
34226         math: Fix some C++ test errors on Cygwin.
34227         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34228         truncl): Provide declaration if the system does not have it.
34229         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34230         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34231         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34232         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34233         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34234         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34235         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34236         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34237         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34238         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34239         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34240         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34241         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34242         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34243         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34244         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34246         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34247         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34248         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34249         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34250         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34251
34252 2010-04-04  Bruno Haible  <bruno@clisp.org>
34253
34254         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34255         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34256         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34257         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34258         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34259         * m4/isinf.m4 (gl_ISINF): Likewise.
34260         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34261
34262 2010-04-04  Bruno Haible  <bruno@clisp.org>
34263
34264         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34265         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34266
34267 2010-04-04  Bruno Haible  <bruno@clisp.org>
34268
34269         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34270         * modules/tmpfile (configure.ac): Update.
34271
34272         tmpfile: Fix C++ test error on mingw.
34273         * lib/stdio.in.h (tmpfile): New declaration.
34274         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34275         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34276         * modules/tmpfile (Depends-on): Add stdio.
34277         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34278         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34279         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34280         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34281         REPLACE_TMPFILE.
34282         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34283
34284 2010-04-04  Bruno Haible  <bruno@clisp.org>
34285
34286         ioctl: Fix C++ test error on mingw.
34287         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34288         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34289         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34290
34291 2010-04-03  Bruno Haible  <bruno@clisp.org>
34292
34293         wcwidth: Fix C++ test error on mingw.
34294         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34296         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34297
34298 2010-04-03  Bruno Haible  <bruno@clisp.org>
34299
34300         nanosleep: Fix C++ test error on mingw.
34301         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34302         * lib/time.in.h (nanosleep): Use modern idiom.
34303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34304         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34305         REPLACE_NANOSLEEP to 1.
34306         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34307         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34308
34309 2010-04-03  Bruno Haible  <bruno@clisp.org>
34310
34311         strptime: Fix C++ test error on mingw.
34312         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34313         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34314         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34315         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34316         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34317         not REPLACE_STRPTIME.
34318         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34319         REPLACE_STRPTIME.
34320
34321 2010-04-03  Bruno Haible  <bruno@clisp.org>
34322
34323         timegm: Fix C++ test error on mingw.
34324         * lib/time.in.h (timegm): Use modern idiom.
34325         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34326         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34327         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34328         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34329
34330 2010-04-03  Bruno Haible  <bruno@clisp.org>
34331
34332         timegm: Assume declaration if function exists.
34333         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34334         if it exists. Don't clobber ac_cv_func_timegm.
34335
34336 2010-04-03  Bruno Haible  <bruno@clisp.org>
34337
34338         time_r: Fix C++ test error on mingw.
34339         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34340         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34341         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34342         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34343         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34344
34345 2010-04-03  Bruno Haible  <bruno@clisp.org>
34346
34347         time_r: Minor updates.
34348         * modules/time_r (Description): Mention the provided functions.
34349         * lib/time_r.c: Don't include <string.h>.
34350         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34351         * doc/posix-functions/localtime_r.texi: Likewise.
34352
34353 2010-04-03  Bruno Haible  <bruno@clisp.org>
34354
34355         time: Fix regression introduced on 2010-03-08.
34356         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34357         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34358
34359 2010-04-03  Jim Meyering  <meyering@redhat.com>
34360
34361         maint.mk: don't silently disable project-specific syntax-check rules
34362         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34363         that they need to convert their project-specific syntax-check rules
34364         to use the new _sc_search_regexp.
34365
34366 2010-04-03  Bruno Haible  <bruno@clisp.org>
34367
34368         fchdir: Fix regression introduced on 2010-03-08.
34369         * lib/unistd.in.h (fchdir): Fix declaration.
34370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34372         REPLACE_FCHDIR.
34373         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34374         REPLACE_FCHDIR.
34375
34376 2010-04-03  Bruno Haible  <bruno@clisp.org>
34377
34378         getpagesize: Fix C++ test error on mingw.
34379         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34380         system does not declare the function.
34381         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34382         declared.
34383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34384         HAVE_DECL_GETPAGESIZE.
34385         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34386
34387 2010-04-03  Bruno Haible  <bruno@clisp.org>
34388
34389         stdio: Make C++ tests work on mingw.
34390         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34391         does not declare the function.
34392
34393 2010-04-03  Bruno Haible  <bruno@clisp.org>
34394
34395         ftello: Fix C++ test error on mingw.
34396         * lib/stdio.in.h (ftello): Use modern idiom.
34397         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34398         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34399         is missing and that it needs to be replaced.
34400         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34402         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34403
34404 2010-04-03  Bruno Haible  <bruno@clisp.org>
34405
34406         fseeko: Fix C++ test error on mingw.
34407         * lib/stdio.in.h (fseeko): Use modern idiom.
34408         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34409         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34410         is missing and that it needs to be replaced.
34411         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34413         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34414
34415 2010-04-03  Bruno Haible  <bruno@clisp.org>
34416
34417         mkstemp: Fix C++ test error on mingw.
34418         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34419         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34420         function is missing and that it needs to be replaced.
34421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34422         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34423
34424 2010-04-03  Bruno Haible  <bruno@clisp.org>
34425
34426         stpncpy: Fix C++ test error on mingw.
34427         * lib/string.in.h (stpncpy): Use modern idiom.
34428         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34429         function is missing and that it needs to be replaced.
34430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34431         REPLACE_STPNCPY.
34432         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34433
34434 2010-04-03  Bruno Haible  <bruno@clisp.org>
34435
34436         sys_stat: Fix C++ test error on mingw.
34437         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34438         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34439
34440 2010-04-03  Bruno Haible  <bruno@clisp.org>
34441
34442         pty: Update doc.
34443         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34444
34445 2010-04-03  Bruno Haible  <bruno@clisp.org>
34446
34447         unistd: Fix C++ test error on mingw.
34448         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34449
34450 2010-04-03  Bruno Haible  <bruno@clisp.org>
34451
34452         Update doc regarding mingw.
34453         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34454         * doc/glibc-functions/login_tty.texi: Likewise.
34455         * doc/glibc-functions/forkpty.texi: Likewise.
34456
34457 2010-04-03  Bruno Haible  <bruno@clisp.org>
34458
34459         stdlib: Avoid compilation failure of c-strtold on mingw.
34460         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34461
34462 2010-04-03  Bruno Haible  <bruno@clisp.org>
34463
34464         locale: Make C++ tests work on Cygwin and mingw.
34465         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34466         cannot provide the function.
34467         Reported by Simon Josefsson.
34468
34469 2010-04-03  Bruno Haible  <bruno@clisp.org>
34470
34471         localename: Port to MacOS X 10.6.
34472         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34473         memory layout of the locales in MacOS X 10.6 as well.
34474         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34475
34476 2010-04-02  Bruno Haible  <bruno@clisp.org>
34477
34478         gnulib-tool: Ensure that long-running tests are executed last.
34479         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34480         running tests after the one for the other tests.
34481
34482 2010-04-02  Bruno Haible  <bruno@clisp.org>
34483
34484         gnulib-tool: Ensure the tests in the main directory are executed first.
34485         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34486         start with the current directory.
34487
34488 2010-04-02  Bruno Haible  <bruno@clisp.org>
34489
34490         Tests for module 'havelib', moved here from GNU gettext.
34491         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34492         modifications.
34493         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34494         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34495         with modifications.
34496         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34497         modifications.
34498         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34499         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34500         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34501         with modifications.
34502         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34503         with modifications.
34504         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34505         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34506         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34507         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34508         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34509         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34510         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34511         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34512         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34513         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34514         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34515         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34516         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34517         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34518         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34519         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34520         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34521         with modifications.
34522         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34523         with modifications.
34524         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34525         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34526         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34527         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34528         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34529         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34530         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34531         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34532         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34533         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34534         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34535         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34536         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34537         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34538         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34539         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34540         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34541         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34542         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34543         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34544         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34545         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34546         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34547         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34548         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34549         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34550         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34551         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34552         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34553         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34554         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34555         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34556         * tests/havelib/rpathx/rpathx.c: New file, from
34557         gettext/autoconf-lib-link.
34558         * tests/havelib/rpathx/Makefile.am: New file, from
34559         gettext/autoconf-lib-link.
34560         * tests/havelib/rpathx/configure.ac: New file, from
34561         gettext/autoconf-lib-link with modifications.
34562         * tests/havelib/rpathy/rpathy.c: New file, from
34563         gettext/autoconf-lib-link.
34564         * tests/havelib/rpathy/Makefile.am: New file, from
34565         gettext/autoconf-lib-link.
34566         * tests/havelib/rpathy/configure.ac: New file, from
34567         gettext/autoconf-lib-link with modifications.
34568         * tests/havelib/rpathz/rpathz.c: New file, from
34569         gettext/autoconf-lib-link.
34570         * tests/havelib/rpathz/Makefile.am: New file, from
34571         gettext/autoconf-lib-link.
34572         * tests/havelib/rpathz/configure.ac: New file, from
34573         gettext/autoconf-lib-link with modifications.
34574         * tests/havelib/rpathlx/usex.c: New file, from
34575         gettext/autoconf-lib-link.
34576         * tests/havelib/rpathlx/Makefile.am: New file, from
34577         gettext/autoconf-lib-link.
34578         * tests/havelib/rpathlx/configure.ac: New file, from
34579         gettext/autoconf-lib-link with modifications.
34580         * tests/havelib/rpathly/usey.c: New file, from
34581         gettext/autoconf-lib-link.
34582         * tests/havelib/rpathly/Makefile.am: New file, from
34583         gettext/autoconf-lib-link.
34584         * tests/havelib/rpathly/configure.ac: New file, from
34585         gettext/autoconf-lib-link with modifications.
34586         * tests/havelib/rpathlz/usez.c: New file, from
34587         gettext/autoconf-lib-link.
34588         * tests/havelib/rpathlz/Makefile.am: New file, from
34589         gettext/autoconf-lib-link.
34590         * tests/havelib/rpathlz/configure.ac: New file, from
34591         gettext/autoconf-lib-link with modifications.
34592         * tests/havelib/rpathlyx/usey.c: New file, from
34593         gettext/autoconf-lib-link.
34594         * tests/havelib/rpathlyx/Makefile.am: New file, from
34595         gettext/autoconf-lib-link.
34596         * tests/havelib/rpathlyx/configure.ac: New file, from
34597         gettext/autoconf-lib-link with modifications.
34598         * tests/havelib/rpathlzyx/usez.c: New file, from
34599         gettext/autoconf-lib-link.
34600         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34601         gettext/autoconf-lib-link.
34602         * tests/havelib/rpathlzyx/configure.ac: New file, from
34603         gettext/autoconf-lib-link with modifications.
34604         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34605         with modifications.
34606
34607 2010-04-02  Bruno Haible  <bruno@clisp.org>
34608
34609         gnulib-tool: Create distributed built sources also for the tests.
34610         * gnulib-tool (func_create_testdir): Also generate distributed built
34611         sources in the tests directory.
34612
34613 2010-04-02  Bruno Haible  <bruno@clisp.org>
34614
34615         gnulib-tool: Obey user's environment variables.
34616         * gnulib-tool (func_create_testdir): When creating built sources,
34617         respect the environment variables for autoconf, automake, etc. given by
34618         the user.
34619
34620 2010-04-02  Bruno Haible  <bruno@clisp.org>
34621
34622         gnulib-tool: Provide the value of --m4-base to modules.
34623         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34624         of gl_m4_base.
34625
34626 2010-04-02  Eric Blake  <eblake@redhat.com>
34627
34628         maint.mk: fix some fallout
34629         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34630         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34631
34632 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34633
34634         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34635         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34636         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34637         (sc_cast_of_x_alloc_return_value): Likewise.
34638         (sc_cast_of_alloca_return_value): Likewise.
34639         (sc_space_tab): Likewise.
34640         (sc_prohibit_atoi_atof): Likewise.
34641         (sc_prohibit_magic_number_exit): Likewise.
34642         (sc_error_exit_success): Likewise.
34643         (sc_file_system): Likewise.
34644         (sc_prohibit_have_config_h): Likewise.
34645         (sc_require_config_h): Likewise.
34646         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34647         (sc_obsolete_symbols): Likewise.
34648         (sc_changelog): Likewise.
34649         (sc_program_name): Likewise.
34650         (sc_the_the): Likewise.
34651         (sc_trailing_blank): Likewise.
34652         (sc_two_space_separator_in_usage): Likewise.
34653         (sc_useless_cpp_parens): Likewise.
34654         (sc_GPL_version): Likewise.
34655         (sc_GFDL_version): Likewise.
34656         (sc_texinfo_acronym): Likewise.
34657         (sc_prohibit_cvs_keyword): Likewise.
34658         (sc_prohibit_stat_st_blocks): Likewise.
34659         (sc_prohibit_S_IS_definition): Likewise.
34660         (sc_redundant_const): Likewise.
34661         (sc_makefile_TAB_only_indentation): Likewise.
34662         (sc_m4_quote_check): Likewise.
34663         (sc_makefile_path_separator_check): Likewise.
34664         (sc_copyright_check): Likewise.
34665         (sc_Wundef_boolean): Likewise.
34666         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34667
34668         maint.mk: match 0 or more whitespace-before-function-call '('
34669         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34670         that have zero or two-and-more spaces between the function name
34671         and the open parenthesis.
34672         (sc_error_message_warn_fatal): Likewise.
34673         (sc_error_message_uppercase): Likewise.
34674         (sc_error_message_period): Likewise.
34675
34676 2010-03-31  Eric Blake  <eblake@redhat.com>
34677
34678         maint.mk: check for [ as well as test
34679         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34680         Based on a libvirt report by Matthias Bolte.
34681
34682         gnumakefile: don't squelch _version output
34683         * top/GNUmakefile (_version): Create one-shot dependency rather
34684         than using $(shell) when version must be regenerated.
34685         (_autoreconf): Run verbosely, by default.
34686
34687         sys_time: avoid compiler warnings
34688         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34689         unconditional, fixing regression from 2010-03-29.
34690         Reported by Simon Josefsson.
34691
34692 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34693
34694         maint.mk: s/_header_without_use/_sc_header_without_use/
34695         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34696         (sc_prohibit_assert_without_use): Use the new name.
34697         (sc_prohibit_close_stream_without_use): Likewise.
34698         (sc_prohibit_getopt_without_use): Likewise.
34699         (sc_prohibit_quotearg_without_use): Likewise.
34700         (sc_prohibit_quote_without_use): Likewise.
34701         (sc_prohibit_long_options_without_use): Likewise.
34702         (sc_prohibit_inttostr_without_use): Likewise.
34703         (sc_prohibit_ignore_value_without_use): Likewise.
34704         (sc_prohibit_error_without_use): Likewise.
34705         (sc_prohibit_xalloc_without_use): Likewise.
34706         (sc_prohibit_hash_without_use): Likewise.
34707         (sc_prohibit_hash_pjw_without_use): Likewise.
34708         (sc_prohibit_safe_read_without_use): Likewise.
34709         (sc_prohibit_argmatch_without_use): Likewise.
34710         (sc_prohibit_canonicalize_without_use): Likewise.
34711         (sc_prohibit_root_dev_ino_without_use): Likewise.
34712         (sc_prohibit_openat_without_use): Likewise.
34713         (sc_prohibit_c_ctype_without_use): Likewise.
34714         (sc_prohibit_signal_without_use): Likewise.
34715         (sc_prohibit_intprops_without_use): Likewise.
34716
34717 2010-03-30  Eric Blake  <eblake@redhat.com>
34718
34719         maint: improve module indicators
34720         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34721         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34722         columns, and avoid extra macro expansion.
34723
34724         fdopendir: work around FreeBSD bug
34725         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34726         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34727         * modules/dirent (Makefile.am): Substitute it.
34728         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34729         declaration.
34730         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34731         fix.
34732         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34733
34734 2010-03-29  Bruno Haible  <bruno@clisp.org>
34735
34736         Emit #pragma system_header after the inclusion guard, not before.
34737         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34738         guard that spans the entire file, not before. This enables an
34739         optimization in GCC's preprocessor.
34740         * lib/ctype.in.h: Likewise.
34741         * lib/dirent.in.h: Likewise.
34742         * lib/errno.in.h: Likewise.
34743         * lib/float.in.h: Likewise.
34744         * lib/getopt.in.h: Likewise.
34745         * lib/iconv.in.h: Likewise.
34746         * lib/langinfo.in.h: Likewise.
34747         * lib/locale.in.h: Likewise.
34748         * lib/math.in.h: Likewise.
34749         * lib/netdb.in.h: Likewise.
34750         * lib/netinet_in.in.h: Likewise.
34751         * lib/pty.in.h: Likewise.
34752         * lib/sched.in.h: Likewise.
34753         * lib/se-selinux.in.h: Likewise.
34754         * lib/search.in.h: Likewise.
34755         * lib/spawn.in.h: Likewise.
34756         * lib/stdarg.in.h: Likewise.
34757         * lib/stdint.in.h: Likewise.
34758         * lib/string.in.h: Likewise.
34759         * lib/strings.in.h: Likewise.
34760         * lib/sys_file.in.h: Likewise.
34761         * lib/sys_ioctl.in.h: Likewise.
34762         * lib/sys_time.in.h: Likewise.
34763         * lib/sys_times.in.h: Likewise.
34764         * lib/sys_utsname.in.h: Likewise.
34765         * lib/sys_wait.in.h: Likewise.
34766         * lib/sysexits.in.h: Likewise.
34767         * lib/wctype.in.h: Likewise.
34768
34769 2010-03-28  James Youngman  <jay@gnu.org>
34770
34771         save-cwd: don't leak a file descriptor when the caller execs.
34772         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34773         saved file descriptor.
34774         * modules/save-cwd (Depends-on): Depend on cloexec.
34775
34776 2010-03-29  Bruno Haible  <bruno@clisp.org>
34777
34778         Remove vestiges of fts-lgpl module.
34779         * lib/fts_.h: Assume GNULIB_FTS is 1.
34780         * lib/fts.c: Likewise.
34781         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34782
34783 2010-03-28  Bruno Haible  <bruno@clisp.org>
34784
34785         Fix definition of tests witness macro.
34786         * gnulib-tool (func_import): Fix definition of witness macro.
34787
34788 2010-03-28  Bruno Haible  <bruno@clisp.org>
34789
34790         Fix ioctl's protoype on glibc systems.
34791         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34792         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34793         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34794         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34795         signature. If not, arrange to replace the ioctl function.
34796         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34797         REPLACE_IOCTL.
34798         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34799         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34800         Reported by Ludovic Courtès <ludo@gnu.org>.
34801
34802 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34803
34804         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34805         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34806         made it so grep -r --include=GLOB* ... did not work.
34807
34808 2010-03-26  Jim Meyering  <meyering@redhat.com>
34809             Eric Blake  <eblake@redhat.com>
34810
34811         maint.mk: prohibit use of test's -o and -a operators
34812         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34813
34814 2010-03-28  Bruno Haible  <bruno@clisp.org>
34815
34816         Remove unused GNULIB_XYZ macro definitions.
34817         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34818         invocation.
34819
34820 2010-03-28  Bruno Haible  <bruno@clisp.org>
34821
34822         Mark privileged tests modules.
34823         * modules/idpriv-drop-tests (Status): New section.
34824         * modules/idpriv-droptemp-tests (Status): New section.
34825
34826 2010-03-28  Bruno Haible  <bruno@clisp.org>
34827
34828         Split C++ tests into separate tests modules.
34829         * modules/dirent-c++-tests: New file, extracted from
34830         modules/dirent-tests.
34831         * modules/dirent-tests: Depend on it.
34832         * modules/fcntl-h-c++-tests: New file, extracted from
34833         modules/fcntl-h-tests.
34834         * modules/fcntl-h-tests: Depend on it.
34835         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34836         * modules/glob-tests: Depend on it.
34837         * modules/iconv-h-c++-tests: New file, extracted from
34838         modules/iconv-h-tests.
34839         * modules/iconv-h-tests: Depend on it.
34840         * modules/langinfo-c++-tests: New file, extracted from
34841         modules/langinfo-tests.
34842         * modules/langinfo-tests: Depend on it.
34843         * modules/locale-c++-tests: New file, extracted from
34844         modules/locale-tests.
34845         * modules/locale-tests: Depend on it.
34846         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34847         * modules/math-tests: Depend on it.
34848         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34849         * modules/pty-tests: Depend on it.
34850         * modules/search-c++-tests: New file, extracted from
34851         modules/search-tests.
34852         * modules/search-tests: Depend on it.
34853         * modules/signal-c++-tests: New file, extracted from
34854         modules/signal-tests.
34855         * modules/signal-tests: Depend on it.
34856         * modules/spawn-c++-tests: New file, extracted from
34857         modules/spawn-tests.
34858         * modules/spawn-tests: Depend on it.
34859         * modules/stdio-c++-tests: New file, extracted from
34860         modules/stdio-tests.
34861         * modules/stdio-tests: Depend on it.
34862         * modules/stdlib-c++-tests: New file, extracted from
34863         modules/stdlib-tests.
34864         * modules/stdlib-tests: Depend on it.
34865         * modules/string-c++-tests: New file, extracted from
34866         modules/string-tests.
34867         * modules/string-tests: Depend on it.
34868         * modules/sys_ioctl-c++-tests: New file, extracted from
34869         modules/sys_ioctl-tests.
34870         * modules/sys_ioctl-tests: Depend on it.
34871         * modules/sys_select-c++-tests: New file, extracted from
34872         modules/sys_select-tests.
34873         * modules/sys_select-tests: Depend on it.
34874         * modules/sys_socket-c++-tests: New file, extracted from
34875         modules/sys_socket-tests.
34876         * modules/sys_socket-tests: Depend on it.
34877         * modules/sys_stat-c++-tests: New file, extracted from
34878         modules/sys_stat-tests.
34879         * modules/sys_stat-tests: Depend on it.
34880         * modules/sys_time-c++-tests: New file, extracted from
34881         modules/sys_time-tests.
34882         * modules/sys_time-tests: Depend on it.
34883         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34884         * modules/time-tests: Depend on it.
34885         * modules/unistd-c++-tests: New file, extracted from
34886         modules/unistd-tests.
34887         * modules/unistd-tests: Depend on it.
34888         * modules/wchar-c++-tests: New file, extracted from
34889         modules/wchar-tests.
34890         * modules/wchar-tests: Depend on it.
34891         * modules/wctype-c++-tests: New file, extracted from
34892         modules/wctype-tests.
34893         * modules/wctype-tests: Depend on it.
34894         Reported by Simon Josefsson.
34895
34896 2010-03-28  Bruno Haible  <bruno@clisp.org>
34897
34898         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34899         * gnulib-tool (func_exists_module): New function, extracted from
34900         func_verify_module.
34901         (func_verify_module): Use it.
34902         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34903         'foo' only if 'foo' exists.
34904         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34905         module.
34906
34907 2010-03-28  Bruno Haible  <bruno@clisp.org>
34908
34909         gnulib-tool: Add support for special categories of tests.
34910         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34911         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34912         (func_usage): Document them.
34913         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34914         inc_unportable_tests, inc_all_tests): New variables.
34915         (func_acceptable): Consider these variables.
34916         (func_modules_transitive_closure): Make it work when the 'Status' field
34917         consists of multiple words.
34918         (func_import): Store and restore the values of inc_cxx_tests,
34919         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34920         inc_all_tests in gnulib-comp.m4.
34921         (func_create_testdir): Set inc_all_tests to true.
34922         * doc/gnulib.texi (Extra tests modules): New section.
34923         Suggested by Jim Meyering.
34924
34925 2010-03-28  Bruno Haible  <bruno@clisp.org>
34926
34927         ansi-c++-opt: Allow turning off the C++ build by default.
34928         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34929         gl_CXX_CHOICE_DEFAULT_NO is defined.
34930         Requested by Eric Blake.
34931
34932 2010-03-28  Bruno Haible  <bruno@clisp.org>
34933
34934         unistd: Avoid #define replacements in C++ mode.
34935         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34936         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34937         setsockopt, shutdown, select): In C++, attach a warning to the function
34938         if possible, rather than #defining the symbol to a dysfunctional alias.
34939         Reported by John W. Eaton <jwe@gnu.org>.
34940
34941 2010-03-28  Bruno Haible  <bruno@clisp.org>
34942
34943         Fix link errors on mingw.
34944         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34945         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34946         $(LIBSOCKET).
34947         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34948         $(LIBSOCKET).
34949
34950 2010-03-28  Bruno Haible  <bruno@clisp.org>
34951             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34952
34953         lib-ignore: Determine different options for different compilers.
34954         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34955         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34956         Add comments.
34957         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34958         * NEWS: Mention the change.
34959
34960 2010-03-27  Bruno Haible  <bruno@clisp.org>
34961
34962         Remove unused GNULIB_XYZ macro definitions.
34963         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34964         * modules/fseek (configure.ac): Likewise.
34965         * modules/ioctl (configure.ac): Likewise.
34966         * modules/open (configure.ac): Likewise.
34967         * modules/stdlib-safer (configure.ac): Likewise.
34968
34969 2010-03-27  Bruno Haible  <bruno@clisp.org>
34970
34971         Add a remark about certain modules.
34972         * modules/malloc (Comment): New section.
34973         * modules/realloc (Comment): Likewise.
34974         * modules/sigpipe (Comment): Likewise.
34975
34976 2010-03-27  Bruno Haible  <bruno@clisp.org>
34977
34978         Resolve conflict between the two kinds of module indicators.
34979         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34980         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34981         * modules/canonicalize (configure.ac): Invoke
34982         gl_MODULE_INDICATOR_FOR_TESTS.
34983         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34984         GNULIB_XYZ.
34985         * tests/test-dirent-c++.cc: Likewise.
34986         * tests/test-dirent-safer.c: Likewise.
34987         * tests/test-dup2.c: Likewise.
34988         * tests/test-fchdir.c: Likewise.
34989         * tests/test-fcntl-h-c++.cc: Likewise.
34990         * tests/test-getopt.c: Likewise.
34991         * tests/test-getopt.h: Likewise.
34992         * tests/test-langinfo-c++.cc: Likewise.
34993         * tests/test-locale-c++.cc: Likewise.
34994         * tests/test-math-c++.cc: Likewise.
34995         * tests/test-pty-c++.cc: Likewise.
34996         * tests/test-search-c++.cc: Likewise.
34997         * tests/test-signal-c++.cc: Likewise.
34998         * tests/test-spawn-c++.cc: Likewise.
34999         * tests/test-stdio-c++.cc: Likewise.
35000         * tests/test-stdlib-c++.cc: Likewise.
35001         * tests/test-string-c++.cc: Likewise.
35002         * tests/test-sys_ioctl-c++.cc: Likewise.
35003         * tests/test-sys_select-c++.cc: Likewise.
35004         * tests/test-sys_socket-c++.cc: Likewise.
35005         * tests/test-sys_stat-c++.cc: Likewise.
35006         * tests/test-sys_time-c++.cc: Likewise.
35007         * tests/test-time-c++.cc: Likewise.
35008         * tests/test-unistd-c++.cc: Likewise.
35009         * tests/test-wchar-c++.cc: Likewise.
35010         * tests/uninorm/test-u8-nfc.c: Likewise.
35011         * tests/uninorm/test-u8-nfd.c: Likewise.
35012         * tests/uninorm/test-u8-nfkc.c: Likewise.
35013         * tests/uninorm/test-u8-nfkd.c: Likewise.
35014         * tests/uninorm/test-u16-nfc.c: Likewise.
35015         * tests/uninorm/test-u16-nfd.c: Likewise.
35016         * tests/uninorm/test-u16-nfkc.c: Likewise.
35017         * tests/uninorm/test-u16-nfkd.c: Likewise.
35018         * tests/uninorm/test-u32-nfc.c: Likewise.
35019         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35020         * tests/uninorm/test-u32-nfd.c: Likewise.
35021         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35022         * tests/uninorm/test-u32-nfkc.c: Likewise.
35023         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35024         * tests/uninorm/test-u32-nfkd.c: Likewise.
35025         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35026         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35027
35028 2010-03-27  Bruno Haible  <bruno@clisp.org>
35029
35030         Distinguish two kinds of module indicators.
35031         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35032         gl_MODULE_INDICATOR.
35033         (gl_MODULE_INDICATOR): New macro.
35034         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35035         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35036         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35037         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35038         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35039         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35040         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35041         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35042         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35043         * m4/spawn_h.m4 (gl_SPAWN_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/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35048         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35049         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35050         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35051         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35052         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35053         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35054         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35055         * modules/cloexec (configure.ac): Likewise.
35056         * modules/getopt-gnu (configure.ac): Likewise.
35057         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35058         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35059         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35060         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35061
35062 2010-03-27  Bruno Haible  <bruno@clisp.org>
35063
35064         New module description field 'Comment'.
35065         * gnulib-tool: New option --extract-comment.
35066         (func_usage): Document it.
35067         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35068         (func_get_comment): New function.
35069         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35070
35071 2010-03-27  Bruno Haible  <bruno@clisp.org>
35072
35073         Addendum to 2010-02-07 commit.
35074         * gnulib-tool (func_usage): Document --extract-applicability option.
35075
35076 2010-03-27  Bruno Haible  <bruno@clisp.org>
35077
35078         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35079         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35080         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35081         rather than link errors.
35082
35083 2010-03-27  Bruno Haible  <bruno@clisp.org>
35084
35085         Avoid side effects from tests-related modules on the compilation of lib.
35086         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35087         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35088         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35089         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35090         macro.
35091         (func_import): Define a witness macro. Assign it a value that depends
35092         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35093         tests-related modules.
35094         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35095         Reported by Jim Meyering.
35096
35097 2010-03-27  Bruno Haible  <bruno@clisp.org>
35098
35099         Factorize common .m4 code.
35100         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35101         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35102         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35103         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35104         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35105         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35106         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35107         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35108         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35109         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35110         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35111         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35112         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35113         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35114         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35115         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35116         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35117         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35118         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35119         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35120         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35121         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35122         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35123         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35124         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35125         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35126         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35127         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35128         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35129         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35130         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35131         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35132
35133 2010-03-27  Bruno Haible  <bruno@clisp.org>
35134
35135         Fix a compilation error on Cygwin with g++ >= 4.3.
35136         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35137         if it is undefined or if we alias it to chmod.
35138         (lstat): Don't warn about the use of this function if it is undefined
35139         or if we alias it to stat.
35140         Reported by Simon Josefsson.
35141
35142 2010-03-27  Bruno Haible  <bruno@clisp.org>
35143
35144         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35145         * modules/getlogin (configure.ac): Update.
35146
35147         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35148         * modules/getlogin_r (configure.ac): Update.
35149
35150         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35152         * modules/inet_ntop (configure.ac): Update.
35153
35154         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35155         * modules/inet_pton (configure.ac): Update.
35156
35157         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35158         * modules/mbslen (configure.ac): Update.
35159
35160         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35161         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35162         * modules/forkpty (configure.ac): Update.
35163         * modules/openpty (configure.ac): Update.
35164
35165 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35166
35167         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35168         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35169
35170 2010-03-25  Eric Blake  <eblake@redhat.com>
35171
35172         maint: use pragma consistently across replacement headers
35173         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35174         * lib/dirent.in.h (system_header): Likewise.
35175         * lib/errno.in.h (system_header): Likewise.
35176         * lib/float.in.h (system_header): Likewise.
35177         * lib/getopt.in.h (system_header): Likewise.
35178         * lib/iconv.in.h (system_header): Likewise.
35179         * lib/inttypes.in.h (system_header): Likewise.
35180         * lib/langinfo.in.h (system_header): Likewise.
35181         * lib/locale.in.h (system_header): Likewise.
35182         * lib/math.in.h (system_header): Likewise.
35183         * lib/netdb.in.h (system_header): Likewise.
35184         * lib/netinet_in.in.h (system_header): Likewise.
35185         * lib/pty.in.h (system_header): Likewise.
35186         * lib/sched.in.h (system_header): Likewise.
35187         * lib/se-selinux.in.h (system_header): Likewise.
35188         * lib/search.in.h (system_header): Likewise.
35189         * lib/spawn.in.h (system_header): Likewise.
35190         * lib/stdarg.in.h (system_header): Likewise.
35191         * lib/stdint.in.h (system_header): Likewise.
35192         * lib/string.in.h (system_header): Likewise.
35193         * lib/strings.in.h (system_header): Likewise.
35194         * lib/sys_file.in.h (system_header): Likewise.
35195         * lib/sys_ioctl.in.h (system_header): Likewise.
35196         * lib/sys_socket.in.h (system_header): Likewise.
35197         * lib/sys_times.in.h (system_header): Likewise.
35198         * lib/sys_utsname.in.h (system_header): Likewise.
35199         * lib/sys_wait.in.h (system_header): Likewise.
35200         * lib/sysexits.in.h (system_header): Likewise.
35201         * lib/unistd.in.h (system_header): Likewise.
35202         * lib/wctype.in.h (system_header): Likewise.
35203
35204         arpa/inet: fix mingw compilation warning
35205         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35206         Reported by Matthew Bolte.
35207
35208 2010-03-25  Bruno Haible  <bruno@clisp.org>
35209
35210         Avoid collision between gnulib wrapper and libintl wrapper.
35211         * lib/printf.c (printf): Don't define if a printf wrapper is already
35212         defined in intl/printf.c.
35213         Reported by Michel Boaventura <michel@michelboaventura.com>.
35214
35215 2010-03-25  Bruno Haible  <bruno@clisp.org>
35216
35217         Use ANSI C.
35218         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35219
35220 2010-03-25  Bruno Haible  <bruno@clisp.org>
35221
35222         Minor formatting changes.
35223         * lib/acosl.c: Insert space before function argument list.
35224         * lib/argz.c: Likewise.
35225         * lib/asinl.c: Likewise.
35226         * lib/expl.c: Likewise.
35227         * lib/gen-uni-tables.c: Likewise.
35228         * lib/gettext.h: Likewise.
35229         * lib/glthread/lock.h: Likewise.
35230         * lib/tanl.c: Likewise.
35231         * lib/uniname/uniname.c: Likewise.
35232         * tests/test-idpriv-drop.c: Likewise.
35233         * tests/test-idpriv-droptemp.c: Likewise.
35234         * tests/test-lock.c: Likewise.
35235         * tests/test-tls.c: Likewise.
35236         * lib/argp-help.c: Insert space before function-like macro argument
35237         list.
35238         * lib/memcmp.c: Likewise.
35239         * tests/test-base64.c: Likewise.
35240         * lib/localename.c: Insert space before sizeof's argument list.
35241         * lib/safe-alloc.h: Likewise.
35242         * lib/file-set.h: Insert space before macro argument list.
35243         * tests/test-argp.c: Likewise.
35244         * lib/argp-namefrob.h: Insert space before function parameter list.
35245         * lib/getaddrinfo.c: Likewise.
35246         * lib/netdb.in.h: Likewise.
35247         * lib/parse-duration.h: Likewise.
35248         * lib/parse-duration.c: Likewise.
35249         * lib/poll.c: Likewise.
35250         * lib/select.c: Likewise.
35251         * lib/trim.h: Likewise.
35252         * tests/test-usleep.c: Likewise.
35253         * lib/ldexpl.c: Insert space before function parameter list and before
35254         function argument list.
35255         * lib/logl.c: Likewise.
35256         * lib/sqrtl.c: Likewise.
35257         * lib/trim.c: Likewise.
35258         * lib/cosl.c: Use GNU style indentation. Insert space before function
35259         argument list.
35260         * lib/sinl.c: Likewise.
35261         * lib/tsearch.c: Insert space after 'for'.
35262         Reported by Jim Meyering.
35263
35264 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35265
35266         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35267         config header before grepping, as it's not present before
35268         autoreconf/configure are run.  Reported by Simon Josefsson.
35269
35270 2010-03-23  Bruno Haible  <bruno@clisp.org>
35271
35272         pt_chown: Make it work with automake < 1.11.
35273         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35274         Reported by Simon Josefsson.
35275
35276 2010-03-23  Bruno Haible  <bruno@clisp.org>
35277
35278         pt_chown: Don't depend on GPLed modules.
35279         * lib/pt_chown.c: Don't include idpriv.h.
35280         (main): Don't drop privileges.
35281         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35282         Reported by Simon Josefsson.
35283
35284 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35285
35286         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35287         suggestions from karl@freefriends.org (Karl Berry).
35288
35289 2010-03-22  Eric Blake  <eblake@redhat.com>
35290
35291         gethostname: further tweaks
35292         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35293         are overriding gethostname.
35294         Suggested by Bruno Haible.
35295
35296 2010-03-21  Bruno Haible  <bruno@clisp.org>
35297
35298         Fix comments.
35299         * lib/forkpty.c (rpl_forkpty): Fix comment.
35300         * lib/openpty.c (rpl_openpty): Likewise.
35301         Reported by Eric Blake.
35302
35303 2010-03-22  Eric Blake  <eblake@redhat.com>
35304
35305         gethostname: fix build on mingw
35306         * lib/unistd.in.h (includes): Work around fact that mingw
35307         <winsock2.h> re-includes <unistd.h>, by avoiding any
35308         redeclarations if we are being included by <winsock2.h>.
35309         Reported by Matthias Bolte.
35310
35311 2010-03-21  Bruno Haible  <bruno@clisp.org>
35312
35313         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35314         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35315         modifications.
35316         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35317         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35318         provide the replacement.
35319         * modules/forkpty (Depends-on): Add openpty, login_tty.
35320         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35321         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35322         * doc/glibc-functions/forkpty.texi: More supported platforms.
35323         * config/srclist.txt: Add forkpty.c (commented).
35324
35325 2010-03-21  Bruno Haible  <bruno@clisp.org>
35326
35327         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35328         (Makefile.am): Verify that PTY_LIB is defined.
35329
35330         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35331
35332 2010-03-21  Bruno Haible  <bruno@clisp.org>
35333
35334         Tests for module 'login_tty'.
35335         * modules/login_tty-tests: New file.
35336         * tests/test-login_tty.c: New file.
35337
35338         New module 'login_tty'.
35339         * lib/login_tty.c: New file.
35340         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35341         * modules/login_tty: New file.
35342         * doc/glibc-functions/login_tty.texi: Mention the new module.
35343
35344 2010-03-21  Bruno Haible  <bruno@clisp.org>
35345
35346         login_tty: Documentation.
35347         * doc/glibc-functions/login_tty.texi: New file.
35348         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35349
35350 2010-03-21  Bruno Haible  <bruno@clisp.org>
35351
35352         pty: Consistent macro naming.
35353         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35354         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35355         * modules/pty (configure.ac): Update.
35356
35357 2010-03-21  Bruno Haible  <bruno@clisp.org>
35358
35359         Tests for openpty: Make stricter.
35360         * tests/test-openpty.c (main): Add test of canonical processing and
35361         erase.
35362         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35363
35364         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35365         * lib/openpty.c (openpty): New replacement function.
35366         * lib/pty.in.h: Include <termios.h>.
35367         (openpty): Update declaration. Add comments.
35368         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35369         is not declared, arrange to provide the replacement. Check for _getpty
35370         and posix_openpt.
35371         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35372         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35373         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35374         * modules/pty-tests (test_pty_c___LDADD): New variable.
35375         * doc/glibc-functions/openpty.texi: More supported platforms.
35376
35377 2010-03-21  Bruno Haible  <bruno@clisp.org>
35378
35379         setenv: Tweaks.
35380         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35381         the test program.
35382         * doc/posix-functions/setenv.texi: Update platforms list.
35383
35384 2010-03-21  Bruno Haible  <bruno@clisp.org>
35385
35386         New module 'unlockpt'.
35387         * lib/unlockpt.c: New file, from glibc with modifications.
35388         * m4/unlockpt.m4: New file.
35389         * modules/unlockpt: New file.
35390         * lib/stdlib.in.h (unlockpt): New declaration.
35391         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35392         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35393         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35394         HAVE_UNLOCKPT.
35395         * doc/posix-functions/unlockpt.texi: Mention the new module.
35396         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35397         * config/srclist.txt: Add unlockpt.c (commented).
35398
35399 2010-03-21  Jim Meyering  <meyering@redhat.com>
35400
35401         maint.mk: prohibit inclusion of "intprops.h" without use
35402         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35403
35404 2010-03-21  Bruno Haible  <bruno@clisp.org>
35405
35406         New module 'grantpt'.
35407         * lib/grantpt.c: New file, from glibc with modifications.
35408         * m4/grantpt.m4: New file.
35409         * modules/grantpt: New file.
35410         * lib/stdlib.in.h (grantpt): New declaration.
35411         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35412         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35413         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35414         HAVE_GRANTPT.
35415         * doc/posix-functions/grantpt.texi: Mention the new module.
35416         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35417         * config/srclist.txt: Add grantpt.c (commented).
35418
35419 2010-03-21  Bruno Haible  <bruno@clisp.org>
35420
35421         New module 'pt_chown'.
35422         * lib/pt_chown.c: New file, from glibc with modifications.
35423         * lib/pty-private.h: New file, from glibc with modifications.
35424         * modules/pt_chown: New file.
35425         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35426
35427 2010-03-21  Bruno Haible  <bruno@clisp.org>
35428
35429         Tests for module 'ptsname'.
35430         * modules/ptsname-tests: New file.
35431         * tests/test-ptsname.c: New file.
35432
35433         New module 'ptsname'.
35434         * lib/ptsname.c: New file, from glibc with modifications.
35435         * m4/ptsname.m4: New file.
35436         * modules/ptsname: New file.
35437         * lib/stdlib.in.h (ptsname): New declaration.
35438         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35439         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35440         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35441         HAVE_PTSNAME.
35442         * doc/posix-functions/ptsname.texi: Mention the new module.
35443         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35444         * config/srclist.txt: Add ptsname.c (commented).
35445
35446 2010-03-21  Bruno Haible  <bruno@clisp.org>
35447
35448         Tests for module 'ttyname_r'.
35449         * modules/ttyname_r-tests: New file.
35450         * tests/test-ttyname_r.c: New file.
35451
35452         New module 'ttyname_r'.
35453         * lib/ttyname_r.c: New file.
35454         * m4/ttyname_r.m4: New file.
35455         * modules/ttyname_r: New file.
35456         * lib/unistd.in.h (ttyname_r): New declaration.
35457         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35458         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35459         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35460         HAVE_TTYNAME_R.
35461         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35462         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35463
35464 2010-03-20  Bruno Haible  <bruno@clisp.org>
35465
35466         signal: Undefine macro definitions in C++ mode.
35467         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35468         sigfillset): Undefine macro definitions from the system header in C++
35469         mode.
35470         Reported by John W. Eaton <jwe@gnu.org>.
35471
35472 2010-03-20  Bruno Haible  <bruno@clisp.org>
35473
35474         Ensure no #include statements inside extern "C" { ... }.
35475         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35476         contain #include statements.
35477         * lib/time.in.h: Likewise.
35478
35479 2010-03-20  Bruno Haible  <bruno@clisp.org>
35480
35481         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35482         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35483         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35484         Reported by John W. Eaton <jwe@gnu.org>.
35485
35486 2010-03-20  Bruno Haible  <bruno@clisp.org>
35487
35488         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35489         Reported by Jim Meyering.
35490
35491 2010-03-20  Bruno Haible  <bruno@clisp.org>
35492
35493         pipe: Set errno upon failure.
35494         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35495         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35496         errno value in error message.
35497
35498 2010-03-20  Bruno Haible  <bruno@clisp.org>
35499             Jim Meyering  <meyering@redhat.com>
35500
35501         lchown: Avoid "unused variable" warning.
35502         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35503
35504 2010-03-20  Bruno Haible  <bruno@clisp.org>
35505
35506         Work around unlink() bug on MacOS X 10.5.6.
35507         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35508         attempting to unlink a parent directory.
35509         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35510         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35511         activate for the replacement function.
35512         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35513
35514 2010-03-20  Bruno Haible  <bruno@clisp.org>
35515
35516         Fix link errors on Solaris 8.
35517         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35518         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35519
35520 2010-03-19  Jim Meyering  <meyering@redhat.com>
35521
35522         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35523         The _LIBC implementation of build_range_exp correctly honors the
35524         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35525         However, the non-_LIBC implementation would ignore that syntax-bit
35526         flag and return REG_ERANGE unconditionally.
35527         This change makes it honor that flag.
35528         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35529         Make two pointer parameters "const".
35530         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35531         (parse_bracket_exp): Update caller.
35532
35533         regex.m4: correct the reversed range endpoint ([b-a]) test
35534         * m4/regex.m4: When requiring that [b-a] evoke failure,
35535         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35536         test pass once again for x86-based systems.
35537
35538 2010-03-19  Bruno Haible  <bruno@clisp.org>
35539
35540         scandir: Fix link error on Solaris 8.
35541         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35542         macros.
35543
35544 2010-03-19  Bruno Haible  <bruno@clisp.org>
35545
35546         getusershell: Fix documentation.
35547         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35548         module.
35549         * doc/glibc-functions/setusershell.texi: Likewise.
35550
35551         getusershell: Provide declaration, missing on Solaris 9.
35552         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35553         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35554         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35555         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35557         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35558         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35559         HAVE_GETUSERSHELL.
35560         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35561
35562 2010-03-19  Bruno Haible  <bruno@clisp.org>
35563
35564         wctype: Provide iswblank function.
35565         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35566         exists and is fine.
35567         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35568         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35569         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35570         * doc/posix-functions/iswblank.texi: Update.
35571
35572 2010-03-19  Bruno Haible  <bruno@clisp.org>
35573
35574         Tests of module 'pty' in C++ mode.
35575         * modules/pty-tests: New file.
35576         * tests/test-pty-c++.cc: New file.
35577         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35578
35579 2010-03-19  Eric Blake  <eblake@redhat.com>
35580
35581         logb: fix documentation
35582         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35583         1.5 declaration bug.
35584
35585         forkpty, openpty: prefer glibc's const-safe prototype
35586         * lib/forkpty.c (rpl_forkpty): New file.
35587         * lib/openpty.c (rpl_openpty): Likewise.
35588         * modules/forkpty (Files): Distribute it.
35589         * modules/openpty (Files): Likewise.
35590         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35591         check...
35592         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35593         replacement for for non-const BSD signature.
35594         * modules/pty (Makefile.am): Substitute witnesses.
35595         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35596         * tests/test-forkpty.c: Update signature check.
35597         * tests/test-openpty.c: Likewise.
35598         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35599         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35600
35601         forkpty, openpty: split functions into new modules
35602         * modules/pty (Makefile.am): Substitute new witnesses.
35603         (Libraries): Move library detection...
35604         * modules/forkpty: ...into new module.
35605         * modules/openpty: Another new module.
35606         * modules/pty-tests: Rename and split...
35607         * modules/forkpty-tests: ...to this...
35608         * modules/openpty-tests: ...and this.
35609         * tests/test-pty.c: Rename and split...
35610         * tests/test-forkpty.c: ...to this...
35611         * tests/test-openpty.c: ...and this.
35612         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35613         (gl_PTY): Split library searching...
35614         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35615         (gl_FORKPTY, gl_OPENPTY): New macros.
35616         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35617         * NEWS: Mention the split.
35618         * MODULES.html.sh (Misc): Document the modules.
35619         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35620         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35621
35622         pty: improve replacement header
35623         * lib/pty.in.h: New file.
35624         * modules/pty (Files): Ship it.
35625         (Makefile.am): Always build replacement.
35626         * m4/pty.m4: Rename...
35627         * m4/pty_h.m4: ...to this.
35628         (gl_PTY): Modernize setting of witness macros; update check of
35629         forkpty to take proper advantage of cache.
35630         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35631
35632         getopt: avoid compiler warning
35633         * lib/getopt.c (attribute_hidden): Remove unused macro.
35634
35635 2010-03-18  Bruno Haible  <bruno@clisp.org>
35636
35637         Fix link errors on Solaris 8.
35638         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35639         * modules/search-tests (test_search_c___LDADD): Likewise.
35640         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35641         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35642         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35643         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35644         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35645         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35646         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35647
35648 2010-03-18  Bruno Haible  <bruno@clisp.org>
35649
35650         Fix bug introduced on 2010-03-14.
35651         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35652         (gl_SPAWN_H): Require it.
35653         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35654         Reported by Simon Josefsson.
35655
35656 2010-03-18  Bruno Haible  <bruno@clisp.org>
35657
35658         Fix typo introduced on 2009-12-31.
35659         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35660         posix_spawn_file_actions_adddup2.
35661
35662 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35663         and Eric Blake  <eblake@redhat.com>
35664
35665         test-vc-list-files-git: make more robust
35666         * tests/test-vc-list-files-git.sh: Unset problematic environment
35667         variables.  Chain commands together.
35668
35669 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35670
35671         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35672         `AC_CHECK_DECL' invocation.
35673
35674 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35675
35676         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35677         appears before executable statements. Suggested by Petr Sumbera
35678         <Petr.Sumbera@Sun.COM>.
35679
35680 2010-03-14  Bruno Haible  <bruno@clisp.org>
35681
35682         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35683         portability problems. Instead use a simpler test.
35684         (main): Check that invalid arguments are rejected only on Linux.
35685
35686 2010-03-14  Bruno Haible  <bruno@clisp.org>
35687
35688         Fix bug introduced on 2009-12-31.
35689         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35690         gl_PREREQ_SYS_H_WINSOCK2 always.
35691         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35692         SYS_SOCKET_H variable.
35693         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35694         Update comments.
35695         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35696         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35697         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35698         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35699         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35700
35701 2010-03-14  Bruno Haible  <bruno@clisp.org>
35702
35703         Fix values returned by sinl, cosl.
35704         * lib/trigl.h: Add specification comments.
35705         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35706         that combines the values from the precomputed table with the values of
35707         the Chebyshev polynomials.
35708
35709 2010-03-14  Bruno Haible  <bruno@clisp.org>
35710
35711         Fix compilation error when modules 'posix_spawn[p]' are not used.
35712         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35713         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35714
35715 2010-03-14  Bruno Haible  <bruno@clisp.org>
35716
35717         Fix compilation error on mingw when module 'time_r' is not used.
35718         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35719         is 1.
35720         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35721         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35722         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35723         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35724
35725 2010-03-14  Bruno Haible  <bruno@clisp.org>
35726
35727         Fix compilation error with Sun C.
35728         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35729         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35730         instead of GCC specific ULONG_LONG_MAX.
35731         * lib/xstrtoll.c: Likewise.
35732         * lib/xstrtoull.c: Likewise.
35733
35734 2010-03-13  Bruno Haible  <bruno@clisp.org>
35735
35736         Allow the user to disable C++ code and tests.
35737         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35738         (gl_PROG_ANSI_CXX): Require it.
35739
35740 2010-03-13  Bruno Haible  <bruno@clisp.org>
35741
35742         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35743         cases.
35744
35745 2010-03-13  Bruno Haible  <bruno@clisp.org>
35746
35747         Test that gnulib does not break the standard C++ headers.
35748         * tests/test-locale-c++2.cc: New file.
35749         * modules/locale-tests (Files): Add it.
35750         (Makefile.am): Compile it for test-locale-c++.
35751         * tests/test-math-c++2.cc: New file.
35752         * modules/math-tests (Files): Add it.
35753         (Makefile.am): Compile it for test-math-c++.
35754         * tests/test-signal-c++2.cc: New file.
35755         * modules/signal-tests (Files): Add it.
35756         (Makefile.am): Compile it for test-signal-c++.
35757         * tests/test-stdio-c++2.cc: New file.
35758         * modules/stdio-tests (Files): Add it.
35759         (Makefile.am): Compile it for test-stdio-c++.
35760         * tests/test-stdlib-c++2.cc: New file.
35761         * modules/stdlib-tests (Files): Add it.
35762         (Makefile.am): Compile it for test-stdlib-c++.
35763         * tests/test-string-c++2.cc: New file.
35764         * modules/string-tests (Files): Add it.
35765         (Makefile.am): Compile it for test-string-c++.
35766         * tests/test-time-c++2.cc: New file.
35767         * modules/time-tests (Files): Add it.
35768         (Makefile.am): Compile it for test-time-c++.
35769         Reported by John W. Eaton <jwe@gnu.org>.
35770
35771 2010-03-13  Bruno Haible  <bruno@clisp.org>
35772
35773         * gnulib-tool (func_usage): Clarify which options are available for
35774         --create-testdir and --create-megatestdir.
35775
35776 2010-03-13  Bruno Haible  <bruno@clisp.org>
35777
35778         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35779         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35780         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35781         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35782         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35783         when appropriate.
35784         Reported by Jim Meyering.
35785
35786 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35787
35788         * gnulib-tool (func_import): Explain origin of code.
35789
35790 2010-03-12  Bruno Haible  <bruno@clisp.org>
35791
35792         Fix problem with automake's definition of CXXLINK.
35793         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35794         Reported by Simon Josefsson and Ludovic Courtès.
35795
35796 2010-03-12  Bruno Haible  <bruno@clisp.org>
35797
35798         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35799         stable releases.
35800
35801 2010-03-11  Bruno Haible  <bruno@clisp.org>
35802
35803         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35804         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35805         whether the system provides one variant or multiple variants of the
35806         function.
35807         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35808         C++ compilers.
35809         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35810         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35811         Reported by Jim Meyering.
35812
35813 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35814
35815         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35816
35817 2010-03-08  Bruno Haible  <bruno@clisp.org>
35818
35819         gnulib-tool: Add support for --libtool in --create-testdir.
35820         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35821         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35822
35823 2010-03-08  Eric Blake  <eblake@redhat.com>
35824
35825         gnulib-tool.texi: mention possibility of git submodule
35826         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35827         submodules.
35828         * doc/.gitignore: Ignore another generated file.
35829
35830 2010-03-08  Karl Berry  <karl@gnu.org>
35831
35832         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35833         of committing gnulib files while skipping others.
35834
35835 2010-03-07  Bruno Haible  <bruno@clisp.org>
35836
35837         Tests of module 'wctype' in C++ mode.
35838         * tests/test-wctype-c++.cc: New file.
35839         * modules/wctype-tests (Files): Add it and tests/signature.h.
35840         (Depends-on): Add ansi-c++-opt.
35841         (Makefile.am): Arrange to compile and run test-wctype-c++.
35842
35843         Tests of module 'wchar' in C++ mode.
35844         * tests/test-wchar-c++.cc: New file.
35845         * modules/wchar-tests (Files): Add it and tests/signature.h.
35846         (Depends-on): Add ansi-c++-opt.
35847         (Makefile.am): Arrange to compile and run test-wchar-c++.
35848         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35849         gl_MODULE_INDICATOR.
35850
35851         Tests of module 'unistd' in C++ mode.
35852         * tests/test-unistd-c++.cc: New file.
35853         * modules/unistd-tests (Files): Add it and tests/signature.h.
35854         (Depends-on): Add ansi-c++-opt.
35855         (Makefile.am): Arrange to compile and run test-unistd-c++.
35856         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35857         gl_MODULE_INDICATOR.
35858
35859         Tests of module 'time' in C++ mode.
35860         * tests/test-time-c++.cc: New file.
35861         * modules/time-tests (Files): Add it and tests/signature.h.
35862         (Depends-on): Add ansi-c++-opt.
35863         (Makefile.am): Arrange to compile and run test-time-c++.
35864         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35865
35866         Tests of module 'sys_time' in C++ mode.
35867         * tests/test-sys_time-c++.cc: New file.
35868         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35869         (Depends-on): Add ansi-c++-opt.
35870         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35871         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35872         gl_MODULE_INDICATOR.
35873
35874         Tests of module 'sys_stat' in C++ mode.
35875         * tests/test-sys_stat-c++.cc: New file.
35876         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35877         (Depends-on): Add ansi-c++-opt.
35878         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35879         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35880         gl_MODULE_INDICATOR.
35881
35882         Tests of module 'sys_socket' in C++ mode.
35883         * tests/test-sys_socket-c++.cc: New file.
35884         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35885         (Depends-on): Add ansi-c++-opt.
35886         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35887         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35888         gl_MODULE_INDICATOR.
35889
35890         Tests of module 'sys_select' in C++ mode.
35891         * tests/test-sys_select-c++.cc: New file.
35892         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35893         (Depends-on): Add ansi-c++-opt.
35894         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35895         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35896         gl_MODULE_INDICATOR.
35897
35898         Tests of module 'sys_ioctl' in C++ mode.
35899         * tests/test-sys_ioctl-c++.cc: New file.
35900         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35901         (Depends-on): Add ansi-c++-opt.
35902         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35903         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35904         gl_MODULE_INDICATOR.
35905
35906         Tests of module 'string' in C++ mode.
35907         * tests/test-string-c++.cc: New file.
35908         * modules/string-tests (Files): Add it and tests/signature.h.
35909         (Depends-on): Add ansi-c++-opt.
35910         (Makefile.am): Arrange to compile and run test-string-c++.
35911         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35912         gl_MODULE_INDICATOR.
35913
35914         Tests of module 'stdlib' in C++ mode.
35915         * tests/test-stdlib-c++.cc: New file.
35916         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35917         (Depends-on): Add ansi-c++-opt.
35918         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35919         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35920         gl_MODULE_INDICATOR.
35921
35922         Tests of module 'stdio' in C++ mode.
35923         * tests/test-stdio-c++.cc: New file.
35924         * modules/stdio-tests (Files): Add it and tests/signature.h.
35925         (Depends-on): Add ansi-c++-opt.
35926         (Makefile.am): Arrange to compile and run test-stdio-c++.
35927         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35928         gl_MODULE_INDICATOR.
35929
35930         Tests of module 'spawn' in C++ mode.
35931         * tests/test-spawn-c++.cc: New file.
35932         * modules/spawn-tests (Files): Add it and tests/signature.h.
35933         (Depends-on): Add ansi-c++-opt.
35934         (Makefile.am): Arrange to compile and run test-spawn-c++.
35935         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35936         gl_MODULE_INDICATOR.
35937
35938         Tests of module 'signal' in C++ mode.
35939         * tests/test-signal-c++.cc: New file.
35940         * modules/signal-tests (Files): Add it and tests/signature.h.
35941         (Depends-on): Add ansi-c++-opt.
35942         (Makefile.am): Arrange to compile and run test-signal-c++.
35943         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35944         gl_MODULE_INDICATOR.
35945
35946         Tests of module 'search' in C++ mode.
35947         * tests/test-search-c++.cc: New file.
35948         * modules/search-tests (Files): Add it and tests/signature.h.
35949         (Depends-on): Add ansi-c++-opt.
35950         (Makefile.am): Arrange to compile and run test-search-c++.
35951         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35952         gl_MODULE_INDICATOR.
35953
35954         Tests of module 'math' in C++ mode.
35955         * tests/test-math-c++.cc: New file.
35956         * modules/math-tests (Files): Add it and tests/signature.h.
35957         (Depends-on): Add ansi-c++-opt.
35958         (Makefile.am): Arrange to compile and run test-math-c++.
35959         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35960
35961         Tests of module 'locale' in C++ mode.
35962         * tests/test-locale-c++.cc: New file.
35963         * modules/locale-tests (Files): Add it and tests/signature.h.
35964         (Depends-on): Add ansi-c++-opt.
35965         (Makefile.am): Arrange to compile and run test-locale-c++.
35966         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35967         gl_MODULE_INDICATOR.
35968
35969         Tests of module 'langinfo' in C++ mode.
35970         * tests/test-langinfo-c++.cc: New file.
35971         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35972         (Depends-on): Add ansi-c++-opt.
35973         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35974         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35975         gl_MODULE_INDICATOR.
35976
35977         Tests of module 'iconv-h' in C++ mode.
35978         * tests/test-iconv-h-c++.cc: New file.
35979         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35980         (Depends-on): Add ansi-c++-opt.
35981         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35982
35983         Tests of module 'glob' in C++ mode.
35984         * tests/test-glob-c++.cc: New file.
35985         * modules/glob-tests (Files): Add it.
35986         (Depends-on): Add ansi-c++-opt.
35987         (Makefile.am): Arrange to compile and run test-glob-c++.
35988
35989         Tests of module 'fcntl-h' in C++ mode.
35990         * tests/test-fcntl-h-c++.cc: New file.
35991         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35992         (Depends-on): Add ansi-c++-opt.
35993         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35994         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35995         gl_MODULE_INDICATOR.
35996
35997         Tests of module 'dirent' in C++ mode.
35998         * tests/test-dirent-c++.cc: New file.
35999         * modules/dirent-tests (Files): Add it and tests/signature.h.
36000         (Depends-on): Add ansi-c++-opt.
36001         (Makefile.am): Arrange to compile and run test-dirent-c++.
36002         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36003         gl_MODULE_INDICATOR.
36004
36005         New module 'ansi-c++-opt'.
36006         * modules/ansi-c++-opt: New file.
36007         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36008
36009         Document C++ namespace mode.
36010         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36011
36012         wctype: Avoid #define replacements in C++ mode.
36013         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36014         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36015         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36016         In C++, define a namespaced alias symbol.
36017         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36018         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36019         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36020         rule.
36021
36022         wchar: Avoid #define replacements in C++ mode.
36023         * lib/wchar.in.h: Include c++defs.h.
36024         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36025         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36026         symbol.
36027         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36028         * modules/wchar (Depends-on): Add c++defs.
36029         (Makefile.am): Update wchar.h rule.
36030
36031         unistd: Avoid #define replacements in C++ mode.
36032         * lib/unistd.in.h: Include c++defs.h.
36033         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36034         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36035         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36036         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36037         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36038         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36039         symbol.
36040         (environ): Update.
36041         * modules/unistd (Depends-on): Add c++defs.
36042         (Makefile.am): Update unistd.h rule.
36043
36044         time: Avoid #define replacements in C++ mode.
36045         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36046         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36047         define a namespaced alias symbol.
36048         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36049         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36050         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36051         * modules/time (Depends-on): Add c++defs, warn-on-use.
36052         (Makefile.am): Update time.h rule.
36053         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36054         * modules/nanosleep (configure.ac): Likewise.
36055         * modules/strptime (configure.ac): Likewise.
36056         * modules/timegm (configure.ac): Likewise.
36057
36058         sys_time: Avoid #define replacements in C++ mode.
36059         * lib/sys_time.in.h: Include c++defs.h.
36060         (gettimeofday): In C++, define a namespaced alias symbol.
36061         * modules/sys_time (Depends-on): Add c++defs.
36062         (Makefile.am): Update sys/time.h rule.
36063
36064         sys_stat: Avoid #define replacements in C++ mode.
36065         * lib/sys_stat.in.h: Include c++defs.h.
36066         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36067         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36068         namespaced alias symbol.
36069         In C++, define a namespaced alias symbol.
36070         * modules/sys_stat (Depends-on): Add c++defs.
36071         (Makefile.am): Update sys/stat.h rule.
36072
36073         sys_socket: Avoid #define replacements in C++ mode.
36074         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36075         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36076         definitions also when the system has a <sys/socket.h>.
36077         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36078         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36079         In C++, define a namespaced alias symbol.
36080         * modules/sys_socket (Depends-on): Add c++defs.
36081         (Makefile.am): Update sys/socket.h rule.
36082
36083         sys_select: Avoid #define replacements in C++ mode.
36084         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36085         definitions also when the system has a <sys/select.h>.
36086         (select): In C++, define a namespaced alias symbol.
36087         * modules/sys_select (Depends-on): Add c++defs.
36088         (Makefile.am): Update sys/select.h rule.
36089
36090         sys_ioctl: Avoid #define replacements in C++ mode.
36091         * lib/sys_ioctl.in.h: Include c++defs.h.
36092         (ioctl): In C++, define a namespaced alias symbol.
36093         * modules/sys_ioctl (Depends-on): Add c++defs.
36094         (Makefile.am): Update sys/ioctl.h rule.
36095
36096         string: Avoid #define replacements in C++ mode.
36097         * lib/string.in.h: Include c++defs.h.
36098         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36099         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36100         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36101         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36102         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36103         * modules/string (Depends-on): Add c++defs.
36104         (Makefile.am): Update string.h rule.
36105
36106         stdlib: Avoid #define replacements in C++ mode.
36107         * lib/stdlib.in.h: Include c++defs.h.
36108         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36109         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36110         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36111         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36112         symbol.
36113         * modules/stdlib (Depends-on): Add c++defs.
36114         (Makefile.am): Update stdlib.h rule.
36115
36116         stdio: Avoid #define replacements in C++ mode.
36117         * lib/stdio.in.h: Include c++defs.h.
36118         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36119         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36120         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36121         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36122         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36123         namespaced alias symbol.
36124         * modules/stdio (Depends-on): Add c++defs.
36125         (Makefile.am): Update stdio.h rule.
36126
36127         spawn: Avoid #define replacements in C++ mode.
36128         * lib/spawn.in.h: Include c++defs.h.
36129         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36130         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36131         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36132         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36133         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36134         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36135         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36136         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36137         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36138         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36139         In C++, define a namespaced alias symbol.
36140         * modules/spawn (Depends-on): Add c++defs.
36141         (Makefile.am): Update spawn.h rule.
36142
36143         signal: Avoid #define replacements in C++ mode.
36144         * lib/signal.in.h: Include c++defs.h.
36145         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36146         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36147         namespaced alias symbol.
36148         * modules/signal (Depends-on): Add c++defs.
36149         (Makefile.am): Update signal.h rule.
36150
36151         search: Avoid #define replacements in C++ mode.
36152         * lib/search.in.h: Include c++defs.h.
36153         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36154         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36155         symbol.
36156         * modules/search (Depends-on): Add c++defs.
36157         (Makefile.am): Update search.h rule.
36158
36159         math: Avoid #define replacements in C++ mode.
36160         * lib/math.in.h: Include c++defs.h.
36161         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36162         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36163         trunc, truncl): In C++, define a namespaced alias symbol.
36164         * modules/math (Depends-on): Add c++defs.
36165         (Makefile.am): Update math.h rule.
36166
36167         locale: Avoid #define replacements in C++ mode.
36168         * lib/locale.in.h: Include c++defs.h.
36169         (duplocale): In C++, define a namespaced alias symbol.
36170         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36171         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36172         * modules/locale (Depends-on): Add c++defs.
36173         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36174
36175         langinfo: Avoid #define replacements in C++ mode.
36176         * lib/langinfo.in.h: Include c++defs.h.
36177         (nl_langinfo): In C++, define a namespaced alias symbol.
36178         * modules/langinfo (Depends-on): Add c++defs.
36179         (Makefile.am): Update langinfo.h rule.
36180
36181         iconv-h: Avoid #define replacements in C++ mode.
36182         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36183         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36184         symbol.
36185         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36186         whenever iconv is present.
36187         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36188         (Makefile.am): Update iconv.h rule.
36189
36190         glob: Avoid #define replacements in C++ mode.
36191         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36192         (_gl_glob_errfunc_fn): New type.
36193         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36194         symbol.
36195         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36196         (Makefile.am): Update glob.h rule.
36197
36198         fcntl-h: Avoid #define replacements in C++ mode.
36199         * lib/fcntl.in.h: Include c++defs.h.
36200         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36201         * modules/fcntl-h (Depends-on): Add c++defs.
36202         (Makefile.am): Update fcntl.h rule.
36203
36204         dirent: Avoid #define replacements in C++ mode.
36205         * lib/dirent.in.h: Include c++defs.h.
36206         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36207         namespaced alias symbol.
36208         (dirfd): Update declaration.
36209         * modules/dirent (Depends-on): Add c++defs.
36210         (Makefile.am): Update dirent.h rule.
36211
36212         ctype: Make it usable in C++ code.
36213         * lib/ctype.in.h: Include c++defs.h.
36214         (isblank): Declare as extern "C".
36215         * modules/ctype (Depends-on): Add c++defs.
36216         (Makefile.am): Update ctype.h rule.
36217
36218         New module 'c++defs'.
36219         * modules/c++defs: New file.
36220         * build-aux/c++defs.h: New file.
36221         Reported by John W. Eaton <jwe@gnu.org>.
36222
36223 2010-03-07  Bruno Haible  <bruno@clisp.org>
36224
36225         logb: Provide missing declaration for Cygwin.
36226         * lib/math.in.h (logb): New declaration.
36227         * m4/logb.m4: New file.
36228         * modules/logb (Files): Add m4/logb.m4.
36229         (Depends-on): Add math.
36230         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36231         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36233         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36234         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36235
36236 2010-03-07  Bruno Haible  <bruno@clisp.org>
36237
36238         Fix test-cond link error.
36239         * tests/test-cond.c: Include <stdio.h>.
36240
36241 2010-03-07  Bruno Haible  <bruno@clisp.org>
36242
36243         Fix test-dirent-safer link error.
36244         * modules/dirent-safer-tests (Makefile.am): Define
36245         test_dirent_safer_LDADD.
36246
36247 2010-03-07  Bruno Haible  <bruno@clisp.org>
36248
36249         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36250         among default module list.
36251
36252 2010-03-07  Bruno Haible  <bruno@clisp.org>
36253
36254         Fix link error on platforms with GNU libiconv.
36255         * modules/unistr/u8-strcoll-tests (Makefile): Define
36256         test_u8_strcoll_LDADD.
36257         * modules/unistr/u16-strcoll-tests (Makefile): Define
36258         test_u16_strcoll_LDADD.
36259         * modules/unistr/u32-strcoll-tests (Makefile): Define
36260         test_u32_strcoll_LDADD.
36261
36262 2010-03-07  Bruno Haible  <bruno@clisp.org>
36263
36264         Use POSIX declarations for socket functions.
36265         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36266         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36267         rpl_sendto): Change declaration to match POSIX.
36268         * lib/connect.c (rpl_connect): Likewise.
36269         * lib/accept.c (rpl_accept): Likewise.
36270         * lib/bind.c (rpl_bind): Likewise.
36271         * lib/getpeername.c (rpl_getpeername): Likewise.
36272         * lib/getsockname.c (rpl_getsockname): Likewise.
36273         * lib/recv.c (rpl_recv): Likewise.
36274         * lib/send.c (rpl_send): Likewise.
36275         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36276         * lib/sendto.c (rpl_sendto): Likewise.
36277
36278 2010-03-06  Bruno Haible  <bruno@clisp.org>
36279
36280         Clarify access, euidaccess, faccessat.
36281         * doc/posix-functions/faccessat.texi: Mention security problem under
36282         "Other problems", not "Portability problems".
36283         * doc/posix-functions/access.texi: Likewise. Mention a related security
36284         problem.
36285         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36286         * lib/euidaccess.c: Add comments about platforms.
36287         * lib/unistd.in.h (access, euidaccess): Add warnings.
36288
36289 2010-03-07  Bruno Haible  <bruno@clisp.org>
36290
36291         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36292         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36293         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36294         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36295         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36296         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36297         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36298         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36299         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36300         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36301         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36302         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36303         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36304         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36305         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36306         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36307         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36308         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36309         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36310         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36311         Likewise.
36312         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36313         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36314         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36315         Likewise.
36316         * tests/test-spawn.c (main): Make it work when
36317         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36318
36319 2010-03-07  Bruno Haible  <bruno@clisp.org>
36320
36321         Fix incorrect Makefile.am generation in German locale.
36322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36323         Execute sed command with character range in C locale.
36324
36325 2010-03-06  Bruno Haible  <bruno@clisp.org>
36326
36327         Tests for module 'iconv-h'.
36328         * modules/iconv-h-tests: New file.
36329         * tests/test-iconv-h.c: New file.
36330
36331         New module 'iconv-h'.
36332         * modules/iconv-h: New file.
36333         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36334         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36335         (configure.ac): Remove gl_ICONV_H.
36336         (Makefile.am): Remove rule for iconv.h.
36337
36338 2010-03-06  Bruno Haible  <bruno@clisp.org>
36339
36340         More consistent naming of *.m4 files.
36341         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36342         * modules/wctype (Files): Update.
36343
36344         More consistent naming of *.m4 files.
36345         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36346         * modules/wchar (Files): Update.
36347
36348 2010-03-06  Jim Meyering  <meyering@redhat.com>
36349
36350         euidaccess: relax license to LGPLv2+
36351         * modules/euidaccess (License): Relax to LGPLv2+.
36352
36353 2010-03-06  Bruno Haible  <bruno@clisp.org>
36354
36355         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36356         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36357         (Makefile.am): Augment lib_SOURCES instead.
36358
36359 2010-03-04  Jim Meyering  <meyering@redhat.com>
36360
36361         utime: remove obsolete module
36362         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36363         unnecessary for years, and has been marked as obsolete for 10 months.
36364         * modules/utime: Remove file.
36365         * lib/utime.c: Remove file.
36366         * m4/utime.m4: Remove file.
36367         * m4/utimes-null.m4: Remove file.
36368         * doc/posix-functions/utime.texi (utime): Remove reference to
36369         the module.  Move the sole "fixed by gnulib" item into the
36370         "problems not fixed by Gnulib" list.
36371         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36372
36373 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36374
36375         * modules/exit (License): Relax license to LGPLv2+.
36376         (Status): Mark as obsolete.
36377         * NEWS: Mention deprecated 'exit' module.
36378         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36379         of now obsolete 'exit'.
36380
36381 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36382
36383         fts-lgpl: remove unused module
36384         * modules/fts-lgpl: Remove.
36385         * MODULES.html.sh (func_all_modules): Adjust.
36386         * check-module (find_included_lib_files): Adjust.
36387         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36388
36389 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36390
36391         copy-acl: enhance Solaris ACL error handling
36392         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36393         * lib/set-mode-acl.c (qset_acl): Likewise.
36394
36395 2010-03-02  Bruno Haible  <bruno@clisp.org>
36396
36397         spawn: Don't override the system defined values on FreeBSD 8.
36398         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36399         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36400         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36401         if HAVE_POSIX_SPAWN is 1.
36402         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36403
36404 2010-03-01  Bruno Haible  <bruno@clisp.org>
36405
36406         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36407         regarding Automake.
36408
36409 2010-02-25  Bruno Haible  <bruno@clisp.org>
36410
36411         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36412         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36413         setting, not afterwards.
36414         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36415
36416 2010-02-24  Eric Blake  <eblake@redhat.com>
36417
36418         bootstrap, git-version-gen: use timestamp
36419         * build-aux/git-version-gen (scriptversion): Force UTC.
36420         * build-aux/bootstrap (scriptversion): New variable.
36421
36422         bootstrap: allow older git
36423         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36424         older than 1.6.4.  Requested by the libvirt project.
36425
36426 2010-02-23  Eric Blake  <eblake@redhat.com>
36427
36428         warn-on-use: work with old autoconf
36429         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36430         AS_VAR semantics of autoconf 2.60.
36431         Reported by Bruno Haible.
36432
36433         bootstrap: improve some comments
36434         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36435         clarification comments.
36436
36437         gettimeofday: provide correct function
36438         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36439         when replacement is declared, otherwise provide gettimeofday.
36440         Reported by Michael Goffioul.
36441
36442 2010-02-23  Jim Meyering  <meyering@redhat.com>
36443
36444         lib-ignore: relax license to "unlimited", not LGPLv2+
36445         * modules/lib-ignore (License): Relax to "unlimited".
36446
36447 2010-02-23  Jim Meyering  <meyering@redhat.com>
36448
36449         lib-ignore: relax license to LGPLv2+
36450         * modules/lib-ignore (License): Relax to LGPLv2+.
36451
36452 2010-02-22  Eric Blake  <eblake@redhat.com>
36453
36454         lseek: avoid bash 3.2 broken pipe bug
36455         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36456         warning from bash 3.2.
36457         Reported by Ben Pfaff, with analysis from Bruno Haible.
36458
36459         bootstrap: support non-FSF copyright holder
36460         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36461         bootstrap.conf override of COPYRIGHT_HOLDER.
36462         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36463
36464         bootstrap: interoperate with gettext 0.14.1
36465         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36466
36467         bootstrap: allow for alternate submodule location
36468         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36469         hardcoding submodule location.
36470         (gnulib_mk): Allow direct use of Makefile.am.
36471
36472         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36473         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36474         rather than reconfiguring where the submodule points.
36475
36476         gettimeofday: restore support for platforms that lack function
36477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36478         replacement if function is missing.
36479         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36480         * modules/sys_time (Makefile.am): Substitute it.
36481         * lib/sys_time.in.h (gettimeofday): Check it.
36482         Reported by Michael Goffioul.
36483
36484 2010-02-21  Bruno Haible  <bruno@clisp.org>
36485
36486         * lib/stdio.in.h (obstack_printf): Fix typo.
36487
36488 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36489
36490         vc-list-files: use bzr ls's -R option
36491         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36492         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36493
36494 2010-02-21  Jim Meyering  <meyering@redhat.com>
36495
36496         init.sh: fix EXEEXT shims to work also for names like test-prog
36497         * tests/init.sh: Re-exec a better shell, when needed.
36498         If the current shell lacks support for posix $(...), an init.sh-using
36499         test will now try to find a shell that supports that.  If EXEEXT is
36500         nonempty, we also require support for hyphen-in-alias-name and shell
36501         substitutions like ${var#glob}.  Failure to find such a shell results
36502         in a skipped test.
36503
36504 2010-02-21  Bruno Haible  <bruno@clisp.org>
36505
36506         Really work around around "broken pipe" error message from bash 3.2.
36507         * gnulib-tool (func_reset_sigpipe): Remove function.
36508         (echo): In bash 3.2, define to a function that uses printf.
36509         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36510
36511 2010-02-20  Bruno Haible  <bruno@clisp.org>
36512
36513         Restore support for automake 1.9.6 with autoconf 2.61.
36514         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36515         Reported by James Youngman <jay@gnu.org>.
36516
36517 2010-02-20  Bruno Haible  <bruno@clisp.org>
36518
36519         Improve *printf warning condition.
36520         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36521         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36522         and the function is overridden due to SIGPIPE emulation.
36523
36524 2010-02-20  Bruno Haible  <bruno@clisp.org>
36525
36526         * lib/stdio.in.h: Tweak comments.
36527
36528 2010-02-19  Bruno Haible  <bruno@clisp.org>
36529
36530         Make it easier to find modules. New gnulib-tool option '--find'.
36531         * gnulib-tool: New option --find.
36532         (func_usage): Document it.
36533         (func_sanitize_modulelist): New function, extracted from
36534         func_all_modules.
36535         (func_all_modules): Invoke it.
36536         * doc/gnulib-tool.texi (Which modules?): New node.
36537
36538 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36539
36540         * lib/sys_select.in.h: Provide select replacement even if
36541         sys/select.h exists on a system, for Interix.
36542
36543 2010-02-18  Jim Meyering  <meyering@redhat.com>
36544
36545         init.sh: don't use $(...) just yet
36546         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36547         to accommodate e.g., Solaris' /bin/sh.
36548
36549 2010-02-17  Bruno Haible  <bruno@clisp.org>
36550
36551         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36552         Reported by Ludovic Courtès <ludo@gnu.org>.
36553
36554 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36555
36556         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36557         linking with -lintl.
36558
36559 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36560
36561         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36562         if not provided by the system's netdb.h.  Reported by
36563         ludo@gnu.org (Ludovic Courtès).
36564
36565 2010-02-15  Jim Meyering  <meyering@redhat.com>
36566
36567         init.sh: improve portability and efficiency
36568         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36569         "dummy" in a for loop.
36570         Use '!', not '^' to select the complement of a character set used
36571         in a "case" statement.
36572         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36573         Suggestions from Eric Blake.
36574
36575         init.sh: automatically accommodate programs with the .exe suffix
36576         Automatically arrange for an invocation of "prog" to execute the
36577         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36578         may use the simpler "prog", yet still work when built on a system
36579         that requires specifying the added suffix.
36580         Do this by constructing a function named "prog" that invokes
36581         "prog.exe" for each .exe file in selected directories.
36582         * tests/init.sh (find_exe_basenames_): New function.
36583         (create_exe_shim_functions_): New function.
36584         (path_prepend_): Use it.
36585
36586         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36587         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36588         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36589
36590 2010-02-14  Jim Meyering  <meyering@redhat.com>
36591
36592         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36593         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36594         (sc_prohibit_hash_pjw_without_use): New rule.
36595
36596         maint.mk: allow the default upload destination dir to be overridden
36597         * top/maint.mk (upload_dest_dir_): Define with a default that
36598         preserves the status quo.
36599         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36600         Reported by Peter Simons.
36601
36602         maint.mk: prohibit inclusion of "hash.h" without_use
36603         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36604
36605 2010-02-10  Jim Meyering  <meyering@redhat.com>
36606
36607         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36608         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36609
36610 2010-02-09  Eric Blake  <ebb9@byu.net>
36611         and Bruno Haible  <bruno@clisp.org>
36612
36613         obstack-printf-posix: ensure declaration
36614         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36615         extracted from gl_FUNC_OBSTACK_PRINTF.
36616         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36617         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36618         Likewise.
36619         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36620         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36621         0.
36622
36623 2010-02-08  Bruno Haible  <bruno@clisp.org>
36624
36625         gnulib-tool: Fix typo in 2010-02-07 commit.
36626         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36627         Reported by Eric Blake.
36628
36629 2010-02-07  Bruno Haible  <bruno@clisp.org>
36630
36631         gnulib-tool: Fix up caching patches.
36632         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36633         option --no-cache. Use associative arrays when supported by the shell.
36634         (sed_comments): New variable.
36635         (modcache): Renamed from do_cache.
36636         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36637         abbreviate unnecessarily.
36638         (have_associative): New variable.
36639         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36640         way also for ksh and zsh.
36641         (func_init_sed_convert_to_cache_statements): New function, extracted
36642         from func_cache_lookup_module. Add support for associative arrays.
36643         Don't set the c_MODULE_cached variable here. Ignore all lines before
36644         the first field header. Remove only the final newline, not all trailing
36645         newlines. Support empty fields correctly. Limit the use of 'eval' to
36646         assignments.
36647         (func_get_description, func_get_status, func_get_notice,
36648         func_get_applicability, func_get_filelist, func_get_dependencies,
36649         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36650         func_get_automake_snippet, func_get_include_directive,
36651         func_get_link_directive, func_get_license, func_get_maintainer):
36652         Update documentation. List the unoptimized code first. Add support for
36653         associative arrays. Limit the use of 'eval' to assignments.
36654         (func_get_applicability): Undo stylistic pessimisations.
36655         (func_get_automake_snippet, func_get_include_directive): Reduce code
36656         duplication.
36657         (func_modules_transitive_closure, func_modules_add_dummy,
36658         func_modules_notice, func_modules_to_filelist, func_add_file,
36659         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36660         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36661         func_create_testdir, func_create_megatestdir): Update documentation.
36662
36663 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36664
36665         * gnulib-tool (func_cache_lookup_module): Store the module name
36666         belonging to the cache variable; error out if two different
36667         module names map to the same cache variable name.
36668
36669 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36670
36671         gnulib-tool: Make caching optional.
36672         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36673         Update matching short versions of --no-changelog.
36674         (func_usage): Update.
36675         (sed_extract_cache_prog): Renamed from ...
36676         (sed_extract_prog): ... this; revert to old extraction script.
36677         (func_get_description, func_get_status)
36678         (func_get_notice, func_get_applicability, func_get_filelist)
36679         (func_get_dependencies, func_get_autoconf_early_snippet)
36680         (func_get_autoconf_snippet, func_get_automake_snippet)
36681         (func_get_include_directive, func_get_link_directive)
36682         (func_get_license, func_get_maintainer): If $do_cache is false,
36683         use old, non-caching extraction scripts.
36684         Suggestion by Bruno Haible.
36685
36686 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36687
36688         gnulib-tool: cache module metainformation.
36689         * gnulib-tool (sed_extract_prog): Match newline before each
36690         header, and rewrite header to a shell variable suffix.
36691         (func_cache_var, func_cache_lookup_module): New functions,
36692         to turn a module name into a cache variable prefix, and to
36693         look up and cache module metainformation.
36694         (func_get_description, func_get_status)
36695         (func_get_notice, func_get_applicability, func_get_filelist)
36696         (func_get_dependencies, func_get_autoconf_early_snippet)
36697         (func_get_autoconf_snippet, func_get_automake_snippet)
36698         (func_get_include_directive, func_get_link_directive)
36699         (func_get_license, func_get_maintainer): Use
36700         func_cache_lookup_module.
36701
36702 2010-02-07  Bruno Haible  <bruno@clisp.org>
36703
36704         fnctl: Fix missing dependency.
36705         * modules/fcntl (Depends-on): Add getdtablesize.
36706         Reported by John W. Eaton <jwe@gnu.org>.
36707
36708 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36709
36710         Argp: fix recognition of short alias options.
36711
36712         * lib/argp-parse.c (convert_options): Fix improper use of
36713         `|' between character values.
36714         * tests/test-argp.c (group1_option): New alias option
36715         --read (-r).
36716         (group1_parser): Special handling for 'r'.
36717         (test15): New test case.
36718         (test_fun): Add test15.
36719         * tests/test-argp-2.sh: Update expected --help and --usage
36720         outputs.
36721
36722 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36723
36724         * tests/test-argp.c: Fix indentation.
36725
36726 2010-02-04  Eric Blake  <ebb9@byu.net>
36727
36728         gettimeofday: expose type of second argument
36729         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36730         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36731         * tests/test-gettimeofday.c: Use it to silence warning.
36732         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36733         the issue.
36734
36735 2010-02-03  Jim Meyering  <meyering@redhat.com>
36736
36737         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36738         * lib/regcomp.c (TYPE_SIGNED): Define.
36739         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36740
36741         regcomp.c: avoid a new -Wshadow warning
36742         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36743
36744 2010-02-01  Jim Meyering  <meyering@redhat.com>
36745
36746         removing useless parentheses in cpp #define directives
36747         For motivation, see commit c0221df4, "define STREQ(a,b)
36748         consistently, removing useless parentheses"
36749         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36750         * lib/mountlist.c (MNT_IGNORE): Likewise.
36751         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36752
36753 2010-02-01  Eric Blake  <ebb9@byu.net>
36754
36755         sys_time: use link-warning
36756         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36757         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36758         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36759         * modules/sys_time (Depends-on): Add warn-on-use.
36760         (Makefile.am): Always build replacement.
36761         (configure.ac): Update substitutions.
36762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36763         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36764         bother with SYS_TIME_H.
36765         * modules/gettimeofday (configure.ac): Declare indicator.
36766         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36767         in use.
36768
36769         closein-tests: silence compiler warning
36770         * tests/test-closein.c (main): Ignore fread result.
36771         * modules/closein-tests (Depends-on): Add ignore-value.
36772
36773         tests: silence warning about system return
36774         * tests/test-areadlink-with-size.c (main): Ignore system result.
36775         * tests/test-areadlink.c (main): Likewise.
36776         * tests/test-areadlinkat-with-size.c (main): Likewise.
36777         * tests/test-areadlinkat.c (main): Likewise.
36778         * tests/test-canonicalize-lgpl.c (main): Likewise.
36779         * tests/test-canonicalize.c (main): Likewise.
36780         * tests/test-chown.c (main): Likewise.
36781         * tests/test-fchownat.c (main): Likewise.
36782         * tests/test-fdutimensat.c (main): Likewise.
36783         * tests/test-fstatat.c (main): Likewise.
36784         * tests/test-futimens.c (main): Likewise.
36785         * tests/test-lchown.c (main): Likewise.
36786         * tests/test-link.c (main): Likewise.
36787         * tests/test-linkat.c (main): Likewise.
36788         * tests/test-lstat.c (main): Likewise.
36789         * tests/test-mkdir.c (main): Likewise.
36790         * tests/test-mkdirat.c (main): Likewise.
36791         * tests/test-mkfifo.c (main): Likewise.
36792         * tests/test-mkfifoat.c (main): Likewise.
36793         * tests/test-mknod.c (main): Likewise.
36794         * tests/test-readlink.c (main): Likewise.
36795         * tests/test-remove.c (main): Likewise.
36796         * tests/test-rename.c (main): Likewise.
36797         * tests/test-renameat.c (main): Likewise.
36798         * tests/test-rmdir.c (main): Likewise.
36799         * tests/test-symlink.c (main): Likewise.
36800         * tests/test-symlinkat.c (main): Likewise.
36801         * tests/test-unlink.c (main): Likewise.
36802         * tests/test-unlinkat.c (main): Likewise.
36803         * tests/test-utimens.c (main): Likewise.
36804         * tests/test-utimensat.c (main): Likewise.
36805         * modules/areadlink-tests (Depends-on): Add ignore-value.
36806         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36807         * modules/areadlinkat-tests (Depends-on): Likewise.
36808         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36809         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36810         * modules/canonicalize-tests (Depends-on): Likewise.
36811         * modules/chown-tests (Depends-on): Likewise.
36812         * modules/fdutimensat-tests (Depends-on): Likewise.
36813         * modules/futimens-tests (Depends-on): Likewise.
36814         * modules/lchown-tests (Depends-on): Likewise.
36815         * modules/link-tests (Depends-on): Likewise.
36816         * modules/linkat-tests (Depends-on): Likewise.
36817         * modules/lstat-tests (Depends-on): Likewise.
36818         * modules/mkdir-tests (Depends-on): Likewise.
36819         * modules/mkfifo-tests (Depends-on): Likewise.
36820         * modules/mkfifoat-tests (Depends-on): Likewise.
36821         * modules/mknod-tests (Depends-on): Likewise.
36822         * modules/openat-tests (Depends-on): Likewise.
36823         * modules/readlink-tests (Depends-on): Likewise.
36824         * modules/remove-tests (Depends-on): Likewise.
36825         * modules/rename-tests (Depends-on): Likewise.
36826         * modules/renameat-tests (Depends-on): Likewise.
36827         * modules/rmdir-tests (Depends-on): Likewise.
36828         * modules/symlink-tests (Depends-on): Likewise.
36829         * modules/symlinkat-tests (Depends-on): Likewise.
36830         * modules/unlink-tests (Depends-on): Likewise.
36831         * modules/utimens-tests (Depends-on): Likewise.
36832         * modules/utimensat-tests (Depends-on): Likewise.
36833
36834 2010-01-31  Bruno Haible  <bruno@clisp.org>
36835
36836         Perform the same test for many <math.h> functions.
36837         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36838         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36839         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36840         of gl_MATHFUNC.
36841         * modules/acos (configure.ac): Likewise.
36842         * modules/asin (configure.ac): Likewise.
36843         * modules/atan (configure.ac): Likewise.
36844         * modules/atan2 (configure.ac): Likewise.
36845         * modules/cbrt (configure.ac): Likewise.
36846         * modules/copysign (configure.ac): Likewise.
36847         * modules/cos (configure.ac): Likewise.
36848         * modules/cosh (configure.ac): Likewise.
36849         * modules/erf (configure.ac): Likewise.
36850         * modules/erfc (configure.ac): Likewise.
36851         * modules/exp (configure.ac): Likewise.
36852         * modules/fmod (configure.ac): Likewise.
36853         * modules/hypot (configure.ac): Likewise.
36854         * modules/j0 (configure.ac): Likewise.
36855         * modules/j1 (configure.ac): Likewise.
36856         * modules/jn (configure.ac): Likewise.
36857         * modules/lgamma (configure.ac): Likewise.
36858         * modules/log (configure.ac): Likewise.
36859         * modules/log10 (configure.ac): Likewise.
36860         * modules/log1p (configure.ac): Likewise.
36861         * modules/pow (configure.ac): Likewise.
36862         * modules/remainder (configure.ac): Likewise.
36863         * modules/sin (configure.ac): Likewise.
36864         * modules/sinh (configure.ac): Likewise.
36865         * modules/tan (configure.ac): Likewise.
36866         * modules/tanh (configure.ac): Likewise.
36867         * modules/y0 (configure.ac): Likewise.
36868         * modules/y1 (configure.ac): Likewise.
36869         * modules/yn (configure.ac): Likewise.
36870         Suggested by Paolo Bonzini.
36871
36872 2010-01-31  Bruno Haible  <bruno@clisp.org>
36873
36874         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36875
36876 2010-01-31  Bruno Haible  <bruno@clisp.org>
36877
36878         Work around getdelim() bug on FreeBSD 8.0.
36879         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36880         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36881         not work.
36882         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36883         is 1.
36884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36885         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36886         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36887         a non-zero size.
36888         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36889
36890 2010-01-31  Bruno Haible  <bruno@clisp.org>
36891
36892         Work around getline() bug on FreeBSD 8.0.
36893         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36894         and a non-zero size.
36895         * tests/test-getline.c (main): Likewise.
36896         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36897         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36898
36899 2010-01-28  Eric Blake  <ebb9@byu.net>
36900
36901         regex: fix build failure
36902         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36903         platforms.
36904
36905 2010-01-28  Jim Meyering  <meyering@redhat.com>
36906
36907         regex: do not ignore memory allocation failure
36908         * lib/regex_internal.c (create_cd_newstate): Detect
36909         re_node_set_init_copy failure.   Extracted from glibc commit
36910         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36911
36912         regex: sync more white-space changes from libc
36913         * lib/regex_internal.c: White-space only changes.
36914         * lib/regexec.c: Likewise.
36915
36916         regex: add many uses of __attribute_warn_unused_result__
36917         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36918         * lib/regexec.c: Likewise.
36919         Extracted from a messy glibc commit.
36920
36921         regcomp.c: spelling and merge-artifact from glibc
36922         * lib/regcomp.c: Merge remainder of glibc's
36923         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36924
36925         regcomp.c: sync white-space changes from glibc
36926         * lib/regcomp.c: Merge to accommodate white space
36927         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36928
36929         regcomp.c: do not ignore internal return values
36930         * lib/regcomp.c: Do not ignore internal return values.
36931         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36932         but without its white-space changes and spelling fixes.
36933
36934         regex_internal.h: define __attribute_warn_unused_result__
36935         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36936
36937         maint: add a syntax-check rule to check for vulnerable Makefile.in
36938         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36939
36940 2010-01-27  Jim Meyering  <meyering@redhat.com>
36941
36942         ncftpput-ftp: clean up spaces
36943         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36944         Remove trailing blanks.
36945
36946 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36947
36948         * build-aux/git-version-gen: Fix copyright statement.
36949         * build-aux/gnupload: Likewise.
36950         * tests/test-arcfour.c: Likewise.
36951         * tests/test-arctwo.c: Likewise.
36952         * tests/test-count-one-bits.c: Likewise.
36953         * tests/test-crc.c: Likewise.
36954         * tests/test-des.c: Likewise.
36955         * tests/test-gc-arcfour.c: Likewise.
36956         * tests/test-gc-arctwo.c: Likewise.
36957         * tests/test-gc-des.c: Likewise.
36958         * tests/test-gc-hmac-md5.c: Likewise.
36959         * tests/test-gc-hmac-sha1.c: Likewise.
36960         * tests/test-gc-md2.c: Likewise.
36961         * tests/test-gc-md4.c: Likewise.
36962         * tests/test-gc-md5.c: Likewise.
36963         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36964         * tests/test-gc-rijndael.c: Likewise.
36965         * tests/test-gc-sha1.c: Likewise.
36966         * tests/test-gc.c: Likewise.
36967         * tests/test-gethostname.c: Likewise.
36968         * tests/test-gettimeofday.c: Likewise.
36969         * tests/test-hash.c: Likewise.
36970         * tests/test-hmac-md5.c: Likewise.
36971         * tests/test-hmac-sha1.c: Likewise.
36972         * tests/test-md2.c: Likewise.
36973         * tests/test-md4.c: Likewise.
36974         * tests/test-md5.c: Likewise.
36975         * tests/test-memchr.c: Likewise.
36976         * tests/test-memchr2.c: Likewise.
36977         * tests/test-memcmp.c: Likewise.
36978         * tests/test-memmem.c: Likewise.
36979         * tests/test-memrchr.c: Likewise.
36980         * tests/test-rawmemchr.c: Likewise.
36981         * tests/test-read-file.c: Likewise.
36982         * tests/test-rijndael.c: Likewise.
36983         * tests/test-sockets.c: Likewise.
36984         * tests/test-strchrnul.c: Likewise.
36985         * tests/test-strstr.c: Likewise.
36986         * tests/test-strtod.c: Likewise.
36987         * build-aux/ncftpput-ftp: Likewise.
36988
36989 2010-01-26  Eric Blake  <ebb9@byu.net>
36990
36991         ignore-value: update recommended header name
36992         * modules/ignore-value (Include): Only use <> for headers that
36993         exist in glibc.
36994
36995 2010-01-26  Jim Meyering  <meyering@redhat.com>
36996
36997         test-userspec.c: avoid compiler warnings
36998         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36999         and "initialization discards qualifiers..." warnings.
37000         Put the first "uid" in its own scope, and make char* members "const".
37001
37002 2010-01-25  Bruno Haible  <bruno@clisp.org>
37003
37004         gnulib-tool: Make warning diagnostics consistent.
37005         * gnulib-tool (func_warning): New function.
37006         Use it everywhere where gnulib-tool produces output to stderr and it is
37007         not a fatal error.
37008
37009 2010-01-25  Bruno Haible  <bruno@clisp.org>
37010
37011         Fix test dependencies.
37012         * modules/xstrtol-tests (Depends-on): Add inttypes.
37013         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37014
37015 2010-01-25 Pádraig Brady <P@draigBrady.com>
37016
37017         syntax-check: detect incorrect boolean macro values in config.h
37018         * modules/maintainer-makefile (configure.ac): Parameterize the location
37019         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37020         The logic is from Eric Blake and the location indicated by Jim Meyering.
37021         Note the more natural CONFIG_HEADER name is prohibited by automake
37022         for backwards compatibility reasons.
37023         * top/maint.mk (sc_Wundef_boolean): New rule.
37024
37025 2010-01-25  Jim Meyering  <meyering@redhat.com>
37026
37027         bootstrap: detect MacOS 10.6's shasum, too
37028         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37029         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37030
37031 2010-01-23  Jim Meyering  <meyering@redhat.com>
37032
37033         xstrtoll: new module
37034         * modules/xstrtoll: New file.
37035         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37036         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37037         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37038         ./configure fails if you use this module and lack "long long".
37039         * modules/xstrtoll-tests: New module.
37040         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37041         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37042         new init.sh-based test framework.
37043
37044 2010-01-24  Bruno Haible  <bruno@clisp.org>
37045
37046         Tests for module 'yn'.
37047         * modules/yn-tests: New file.
37048         * tests/test-yn.c: New file.
37049
37050         Tests for module 'y1'.
37051         * modules/y1-tests: New file.
37052         * tests/test-y1.c: New file.
37053
37054         Tests for module 'y0'.
37055         * modules/y0-tests: New file.
37056         * tests/test-y0.c: New file.
37057
37058         Tests for module 'tanh'.
37059         * modules/tanh-tests: New file.
37060         * tests/test-tanh.c: New file.
37061
37062         Tests for module 'tan'.
37063         * modules/tan-tests: New file.
37064         * tests/test-tan.c: New file.
37065
37066         Tests for module 'sqrt'.
37067         * modules/sqrt-tests: New file.
37068         * tests/test-sqrt.c: New file.
37069
37070         Tests for module 'sinh'.
37071         * modules/sinh-tests: New file.
37072         * tests/test-sinh.c: New file.
37073
37074         Tests for module 'sin'.
37075         * modules/sin-tests: New file.
37076         * tests/test-sin.c: New file.
37077
37078         Tests for module 'rint'.
37079         * modules/rint-tests: New file.
37080         * tests/test-rint.c: New file.
37081
37082         Tests for module 'remainder'.
37083         * modules/remainder-tests: New file.
37084         * tests/test-remainder.c: New file.
37085
37086         Tests for module 'pow'.
37087         * modules/pow-tests: New file.
37088         * tests/test-pow.c: New file.
37089
37090         Tests for module 'nextafter'.
37091         * modules/nextafter-tests: New file.
37092         * tests/test-nextafter.c: New file.
37093
37094         Tests for module 'modf'.
37095         * modules/modf-tests: New file.
37096         * tests/test-modf.c: New file.
37097
37098         Tests for module 'logb'.
37099         * modules/logb-tests: New file.
37100         * tests/test-logb.c: New file.
37101
37102         Tests for module 'log1p'.
37103         * modules/log1p-tests: New file.
37104         * tests/test-log1p.c: New file.
37105
37106         Tests for module 'log10'.
37107         * modules/log10-tests: New file.
37108         * tests/test-log10.c: New file.
37109
37110         Tests for module 'log'.
37111         * modules/log-tests: New file.
37112         * tests/test-log.c: New file.
37113
37114         Tests for module 'lgamma'.
37115         * modules/lgamma-tests: New file.
37116         * tests/test-lgamma.c: New file.
37117
37118         Tests for module 'ldexp'.
37119         * modules/ldexp-tests: New file.
37120         * tests/test-ldexp.c: New file.
37121
37122         Tests for module 'jn'.
37123         * modules/jn-tests: New file.
37124         * tests/test-jn.c: New file.
37125
37126         Tests for module 'j1'.
37127         * modules/j1-tests: New file.
37128         * tests/test-j1.c: New file.
37129
37130         Tests for module 'j0'.
37131         * modules/j0-tests: New file.
37132         * tests/test-j0.c: New file.
37133
37134         Tests for module 'hypot'.
37135         * modules/hypot-tests: New file.
37136         * tests/test-hypot.c: New file.
37137
37138         Tests for module 'fmod'.
37139         * modules/fmod-tests: New file.
37140         * tests/test-fmod.c: New file.
37141
37142         Tests for module 'fabs'.
37143         * modules/fabs-tests: New file.
37144         * tests/test-fabs.c: New file.
37145
37146         Tests for module 'exp'.
37147         * modules/exp-tests: New file.
37148         * tests/test-exp.c: New file.
37149
37150         Tests for module 'erfc'.
37151         * modules/erfc-tests: New file.
37152         * tests/test-erfc.c: New file.
37153
37154         Tests for module 'erf'.
37155         * modules/erf-tests: New file.
37156         * tests/test-erf.c: New file.
37157
37158         Tests for module 'cosh'.
37159         * modules/cosh-tests: New file.
37160         * tests/test-cosh.c: New file.
37161
37162         Tests for module 'cos'.
37163         * modules/cos-tests: New file.
37164         * tests/test-cos.c: New file.
37165
37166         Tests for module 'copysign'.
37167         * modules/copysign-tests: New file.
37168         * tests/test-copysign.c: New file.
37169
37170         Tests for module 'cbrt'.
37171         * modules/cbrt-tests: New file.
37172         * tests/test-cbrt.c: New file.
37173
37174         Tests for module 'atan2'.
37175         * modules/atan2-tests: New file.
37176         * tests/test-atan2.c: New file.
37177
37178         Tests for module 'atan'.
37179         * modules/atan-tests: New file.
37180         * tests/test-atan.c: New file.
37181
37182         Tests for module 'asin'.
37183         * modules/asin-tests: New file.
37184         * tests/test-asin.c: New file.
37185
37186         Tests for module 'acos'.
37187         * modules/acos-tests: New file.
37188         * tests/test-acos.c: New file.
37189
37190 2010-01-24  Bruno Haible  <bruno@clisp.org>
37191
37192         Fix tests for common <math.h> functions.
37193         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37194         code snippet that references the function pointer, rather than merely
37195         calling the function. Substitute the FUNC_LIBM variable.
37196         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37197         * modules/acos (configure.ac): Likewise.
37198         * modules/asin (configure.ac): Likewise.
37199         * modules/atan (configure.ac): Likewise.
37200         * modules/atan2 (configure.ac): Likewise.
37201         * modules/cbrt (configure.ac): Likewise.
37202         * modules/copysign (configure.ac): Likewise.
37203         * modules/cos (configure.ac): Likewise.
37204         * modules/cosh (configure.ac): Likewise.
37205         * modules/erf (configure.ac): Likewise.
37206         * modules/erfc (configure.ac): Likewise.
37207         * modules/exp (configure.ac): Likewise.
37208         * modules/fabs (configure.ac): Likewise.
37209         * modules/fmod (configure.ac): Likewise.
37210         * modules/hypot (configure.ac): Likewise.
37211         * modules/j0 (configure.ac): Likewise.
37212         * modules/j1 (configure.ac): Likewise.
37213         * modules/jn (configure.ac): Likewise.
37214         * modules/ldexp (configure.ac): Likewise.
37215         * modules/lgamma (configure.ac): Likewise.
37216         * modules/log (configure.ac): Likewise.
37217         * modules/log10 (configure.ac): Likewise.
37218         * modules/log1p (configure.ac): Likewise.
37219         * modules/logb (configure.ac): Likewise.
37220         * modules/modf (configure.ac): Likewise.
37221         * modules/nextafter (configure.ac): Likewise.
37222         * modules/pow (configure.ac): Likewise.
37223         * modules/remainder (configure.ac): Likewise.
37224         * modules/rint (configure.ac): Likewise.
37225         * modules/sin (configure.ac): Likewise.
37226         * modules/sinh (configure.ac): Likewise.
37227         * modules/tan (configure.ac): Likewise.
37228         * modules/tanh (configure.ac): Likewise.
37229         * modules/y0 (configure.ac): Likewise.
37230         * modules/y1 (configure.ac): Likewise.
37231         * modules/yn (configure.ac): Likewise.
37232
37233 2010-01-24  Bruno Haible  <bruno@clisp.org>
37234
37235         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37236         * tests/test-acosl.c (x): New variable.
37237         (main): Store argument in x and fetch it from x.
37238         * tests/test-asinl.c (x): New variable.
37239         (main): Store argument in x and fetch it from x.
37240         * tests/test-atanl.c (x): New variable.
37241         (main): Store argument in x and fetch it from x.
37242         * tests/test-cosl.c (x): New variable.
37243         (main): Store argument in x and fetch it from x.
37244         * tests/test-expl.c (x): New variable.
37245         (main): Store argument in x and fetch it from x.
37246         * tests/test-logl.c (x): New variable.
37247         (main): Store argument in x and fetch it from x.
37248         * tests/test-sinl.c (x): New variable.
37249         (main): Store argument in x and fetch it from x.
37250         * tests/test-sqrtl.c (x): New variable.
37251         (main): Store argument in x and fetch it from x.
37252         * tests/test-tanl.c (x): New variable.
37253         (main): Store argument in x and fetch it from x.
37254
37255 2010-01-24  Bruno Haible  <bruno@clisp.org>
37256
37257         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37258         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37259         assignments to the initial TESTS_ENVIRONMENT.
37260         * doc/gnulib.texi (Unit test modules): Document it.
37261         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37262         TESTS_ENVIRONMENT.
37263         * modules/btowc-tests (Makefile.am): Likewise.
37264         * modules/c-stack-tests (Makefile.am): Likewise.
37265         * modules/c-strcase-tests (Makefile.am): Likewise.
37266         * modules/copy-file-tests (Makefile.am): Likewise.
37267         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37268         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37269         * modules/mbrtowc-tests (Makefile.am): Likewise.
37270         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37271         * modules/mbscasestr-tests (Makefile.am): Likewise.
37272         * modules/mbschr-tests (Makefile.am): Likewise.
37273         * modules/mbscspn-tests (Makefile.am): Likewise.
37274         * modules/mbsinit-tests (Makefile.am): Likewise.
37275         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37276         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37277         * modules/mbspbrk-tests (Makefile.am): Likewise.
37278         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37279         * modules/mbsrchr-tests (Makefile.am): Likewise.
37280         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37281         * modules/mbsspn-tests (Makefile.am): Likewise.
37282         * modules/mbsstr-tests (Makefile.am): Likewise.
37283         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37284         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37285         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37286         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37287         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37288         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37289         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37290         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37291         * modules/wcrtomb-tests (Makefile.am): Likewise.
37292         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37293         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37294         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37295         assignments from TESTS_ENVIRONMENT.
37296         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37297         augmentation.
37298         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37299         * modules/atexit-tests (Makefile.am): Likewise.
37300         * modules/binary-io-tests (Makefile.am): Likewise.
37301         * modules/closein-tests (Makefile.am): Likewise.
37302         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37303         * modules/exclude-tests (Makefile.am): Likewise.
37304         * modules/fflush-tests (Makefile.am): Likewise.
37305         * modules/fpending-tests (Makefile.am): Likewise.
37306         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37307         * modules/freadahead-tests (Makefile.am): Likewise.
37308         * modules/freadptr-tests (Makefile.am): Likewise.
37309         * modules/freadseek-tests (Makefile.am): Likewise.
37310         * modules/fseek-tests (Makefile.am): Likewise.
37311         * modules/fseeko-tests (Makefile.am): Likewise.
37312         * modules/ftell-tests (Makefile.am): Likewise.
37313         * modules/ftello-tests (Makefile.am): Likewise.
37314         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37315         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37316         * modules/lseek-tests (Makefile.am): Likewise.
37317         * modules/parse-duration-tests (Makefile.am): Likewise.
37318         * modules/perror-tests (Makefile.am): Likewise.
37319         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37320         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37321         * modules/pipe-tests (Makefile.am): Likewise.
37322         * modules/pread-tests (Makefile.am): Likewise.
37323         * modules/printf-posix-tests (Makefile.am): Likewise.
37324         * modules/select-tests (Makefile.am): Likewise.
37325         * modules/sigpipe-tests (Makefile.am): Likewise.
37326         * modules/tsearch-tests (Makefile.am): Likewise.
37327         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37328         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37329         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37330         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37331         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37332         * modules/version-etc-tests (Makefile.am): Likewise.
37333         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37334         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37335         * modules/xalloc-die-tests (Makefile.am): Likewise.
37336         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37337         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37338         * modules/xstrtol-tests (Makefile.am): Likewise.
37339         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37340         * modules/yesno-tests (Makefile.am): Likewise.
37341         Suggested by Jim Meyering.
37342
37343 2010-01-24  Bruno Haible  <bruno@clisp.org>
37344
37345         More documentation.
37346         * doc/gnulib.texi (Writing modules): New chapter.
37347         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37348         the new chapter.
37349
37350 2010-01-24  Jim Meyering  <meyering@redhat.com>
37351
37352         maint.mk: do not prepend "./" after filtering
37353         * top/maint.mk (_prepend_srcdir_prefix): New variable
37354         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37355         "./" when $(srcdir) is ".".
37356
37357         define STREQ(a,b) consistently, removing useless parentheses
37358         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37359         since the only risk is that "a" or "b" contains an unparenthesized
37360         comma, but if either did that, STREQ would have 3 or more arguments.
37361         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37362         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37363         * lib/hash-triple.c (STREQ): Likewise.
37364         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37365         * lib/getugroups.c (STREQ): Likewise.
37366
37367 2010-01-23  Jim Meyering  <meyering@redhat.com>
37368
37369         maint.mk: fix syntax-check in a non-srcdir build directory
37370         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37371         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37372
37373 2010-01-22  Jim Meyering  <meyering@redhat.com>
37374
37375         userspec: add unit tests
37376         * tests/test-userspec.c: New file.
37377         * modules/userspec-tests: Likewise.
37378
37379 2010-01-21  Jim Meyering  <meyering@redhat.com>
37380
37381         maint.mk: handle source file names containing "." robustly
37382         * top/maint.mk (_dot_escaped_srcdir): Define.
37383         (VC_LIST): Use it in LHS of sed substitution.
37384
37385 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37386
37387         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37388         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37389         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37390         from a non-srcdir build.
37391
37392 2010-01-20  Eric Blake  <ebb9@byu.net>
37393
37394         warn-on-use: use instead of link-warning
37395         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37396         * modules/unistd (Depends-on, Makefile.am): Likewise.
37397         * modules/arpa_inet (Depends-on): Replace link-warning with
37398         warn-on-use.
37399         (Makefile.am): Update rules accordingly.
37400         * modules/ctype (Depends-on, Makefile.am): Likewise.
37401         * modules/dirent (Depends-on, Makefile.am): Likewise.
37402         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37403         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37404         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37405         * modules/locale (Depends-on, Makefile.am): Likewise.
37406         * modules/math (Depends-on, Makefile.am): Likewise.
37407         * modules/search (Depends-on, Makefile.am): Likewise.
37408         * modules/signal (Depends-on, Makefile.am): Likewise.
37409         * modules/spawn (Depends-on, Makefile.am): Likewise.
37410         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37411         * modules/string (Depends-on, Makefile.am): Likewise.
37412         * modules/strings (Depends-on, Makefile.am): Likewise.
37413         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37414         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37415         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37416         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37417         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37418         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37419         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37420         * modules/wchar (Depends-on, Makefile.am): Likewise.
37421         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37422         should be poisoned.
37423         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37424         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37425         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37426         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37427         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37428         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37429         * m4/math_h.m4 (gl_MATH_H): Likewise.
37430         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37431         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37432         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37433         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37434         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37435         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37436         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37437         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37438         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37439         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37440         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37442         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37443         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37444         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37445         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37446         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37447         GL_LINK_WARNING.
37448         * lib/ctype.in.h: Likewise.
37449         * lib/dirent.in.h: Likewise.
37450         * lib/fcntl.in.h: Likewise.
37451         * lib/inttypes.in.h: Likewise.
37452         * lib/langinfo.in.h: Likewise.
37453         * lib/locale.in.h: Likewise.
37454         * lib/math.in.h: Likewise.
37455         * lib/search.in.h: Likewise.
37456         * lib/signal.in.h: Likewise.
37457         * lib/spawn.in.h: Likewise.
37458         * lib/stdio.in.h: Likewise.
37459         * lib/stdlib.in.h: Likewise.
37460         * lib/string.in.h: Likewise.
37461         * lib/strings.in.h: Likewise.
37462         * lib/sys_file.in.h: Likewise.
37463         * lib/sys_ioctl.in.h: Likewise.
37464         * lib/sys_select.in.h: Likewise.
37465         * lib/sys_socket.in.h: Likewise.
37466         * lib/sys_stat.in.h: Likewise.
37467         * lib/sys_times.in.h: Likewise.
37468         * lib/sys_utsname.in.h: Likewise.
37469         * lib/unistd.in.h: Likewise.
37470         * lib/wchar.in.h: Likewise.
37471
37472 2010-01-20  Bruno Haible  <bruno@clisp.org>
37473
37474         Avoid duplicate -lm.
37475         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37476         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37477         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37478         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37479         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37480         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37481         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37482         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37483         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37484         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37485         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37486         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37487         Reported by Paolo Bonzini.
37488
37489 2010-01-19  Bruno Haible  <bruno@clisp.org>
37490
37491         langinfo, nl_langinfo: Relicense under LGPLv2+.
37492         * modules/langinfo (License): Change to LGPLv2+.
37493         * modules/nl_langinfo (License): Likewise.
37494         Patch by David Lutterkort <lutter@redhat.com>.
37495
37496 2010-01-19  Bruno Haible  <bruno@clisp.org>
37497
37498         Avoid compilation error with cc on OSF/1 5.1.
37499         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37500         statement, not before.
37501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37502
37503 2010-01-18  Bruno Haible  <bruno@clisp.org>
37504
37505         Avoid a link error due to the __printf__ symbol.
37506         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37507         and 2.6.x.
37508         (__format__, __printf__): Remove definitions.
37509         * lib/argp-fmtstream.h: Likewise.
37510         * lib/argp.h: Likewise.
37511         * lib/error.h: Likewise.
37512         * lib/vasnprintf.h: Likewise.
37513         * lib/xprintf.h: Likewise.
37514         * lib/xvasprintf.h: Likewise.
37515         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37516
37517 2010-01-18  Bruno Haible  <bruno@clisp.org>
37518
37519         Tests for module 'tanl'.
37520         * modules/tanl-tests: New file.
37521         * tests/test-tanl.c: New file.
37522
37523         Tests for module 'sqrtl'.
37524         * modules/sqrtl-tests: New file.
37525         * tests/test-sqrtl.c: New file.
37526
37527         Tests for module 'sinl'.
37528         * modules/sinl-tests: New file.
37529         * tests/test-sinl.c: New file.
37530
37531         Tests for module 'logl'.
37532         * modules/logl-tests: New file.
37533         * tests/test-logl.c: New file.
37534
37535         Tests for module 'expl'.
37536         * modules/expl-tests: New file.
37537         * tests/test-expl.c: New file.
37538
37539         Tests for module 'cosl'.
37540         * modules/cosl-tests: New file.
37541         * tests/test-cosl.c: New file.
37542
37543         Tests for module 'atanl'.
37544         * modules/atanl-tests: New file.
37545         * tests/test-atanl.c: New file.
37546
37547         Tests for module 'asinl'.
37548         * modules/asinl-tests: New file.
37549         * tests/test-asinl.c: New file.
37550
37551         Tests for module 'acosl'.
37552         * modules/acosl-tests: New file.
37553         * tests/test-acosl.c: New file.
37554
37555         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37556         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37557         tanl): Use the standard gnulib idiom.
37558         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37559         * lib/sinl.c: Likewise.
37560         * lib/tanl.c: Don't include trigl.c.
37561         (kernel_tanl): Make static.
37562         * lib/sincosl.c: Include trigl.h first.
37563         * lib/trigl.c: Likewise.
37564         * m4/acosl.m4: New file.
37565         * m4/asinl.m4: New file.
37566         * m4/atanl.m4: New file.
37567         * m4/cosl.m4: New file.
37568         * m4/expl.m4: New file.
37569         * m4/logl.m4: New file.
37570         * m4/sinl.m4: New file.
37571         * m4/sqrtl.m4: New file.
37572         * m4/tanl.m4: New file.
37573         * m4/mathl.m4: Remove file.
37574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37575         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37576         Don't initialize GNULIB_MATHL.
37577         * modules/acosl: New file.
37578         * modules/asinl: New file.
37579         * modules/atanl: New file.
37580         * modules/cosl: New file.
37581         * modules/expl: New file.
37582         * modules/logl: New file.
37583         * modules/sinl: New file.
37584         * modules/sqrtl: New file.
37585         * modules/tanl: New file.
37586         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37587         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37588         substitute GNULIB_MATHL.
37589         * modules/mathl: Rewritten.
37590         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37591         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37592         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37593         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37594         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37595         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37596         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37597         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37598         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37599
37600 2010-01-18  Bruno Haible  <bruno@clisp.org>
37601
37602         sqrt: Make gl_FUNC_SQRT requirable.
37603         * m4/sqrt.m4: New file.
37604         * modules/sqrt (Files): Add it.
37605         (configure.ac): Invoke gl_FUNC_SQRT.
37606
37607 2010-01-18  Bruno Haible  <bruno@clisp.org>
37608
37609         New modules for common <math.h> functions.
37610         * m4/mathfunc.m4: New file.
37611         * modules/acos: New file.
37612         * modules/asin: New file.
37613         * modules/atan: New file.
37614         * modules/atan2: New file.
37615         * modules/cbrt: New file.
37616         * modules/copysign: New file.
37617         * modules/cos: New file.
37618         * modules/cosh: New file.
37619         * modules/erf: New file.
37620         * modules/erfc: New file.
37621         * modules/exp: New file.
37622         * modules/fabs: New file.
37623         * modules/fmod: New file.
37624         * modules/hypot: New file.
37625         * modules/j0: New file.
37626         * modules/j1: New file.
37627         * modules/jn: New file.
37628         * modules/ldexp: New file.
37629         * modules/lgamma: New file.
37630         * modules/log: New file.
37631         * modules/log10: New file.
37632         * modules/log1p: New file.
37633         * modules/logb: New file.
37634         * modules/modf: New file.
37635         * modules/nextafter: New file.
37636         * modules/pow: New file.
37637         * modules/remainder: New file.
37638         * modules/rint: New file.
37639         * modules/sin: New file.
37640         * modules/sinh: New file.
37641         * modules/sqrt: New file.
37642         * modules/tan: New file.
37643         * modules/tanh: New file.
37644         * modules/y0: New file.
37645         * modules/y1: New file.
37646         * modules/yn: New file.
37647         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37648         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37649         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37650         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37651         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37652         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37653         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37654         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37655         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37656         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37657         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37658         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37659         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37660         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37661         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37662         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37663         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37664         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37665         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37666         * doc/posix-functions/log.texi: Mention the 'log' module.
37667         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37668         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37669         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37670         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37671         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37672         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37673         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37674         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37675         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37676         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37677         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37678         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37679         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37680         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37681         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37682         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37683
37684 2010-01-18  Jim Meyering  <meyering@redhat.com>
37685
37686         ignore-value: relax license to LGPLv2+
37687         * modules/ignore-value (License): Relax to LGPLv2+.
37688
37689         getdate: don't leak when TZ contains two or more '"'s
37690         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37691         double quote in TZ after the first one.
37692
37693         readtokens: do not leak internal token_lengths buffer
37694         * lib/readtokens.c (readtokens): Free the local, lengths,
37695         when the supplied "token_lengths" parameter is NULL.
37696
37697 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37698
37699         Fix a couple of missing LIBTHREAD link failures on AIX.
37700         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37701         $(LIBTHREAD).
37702         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37703
37704         Link test-poll against INET_PTON_LIB.
37705         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37706         for inet_pton on Solaris 10.
37707
37708 2010-01-17  Bruno Haible  <bruno@clisp.org>
37709
37710         unistdio/*-sprintf: Fix typo in module description.
37711         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37712         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37713         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37714         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37715         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37716         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37717         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37718         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37719
37720 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37721
37722         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37723         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37724         variables in shell case patterns, for AIX and HP-UX ksh.
37725
37726         Split large sed scripts, for HP-UX sed.
37727         * modules/stdio: Split sed scripts around 50 sed commands,
37728         to avoid HP-UX limit of 99 commands, in the near future.
37729         * modules/string: Likewise.
37730         * modules/unistd: Likewise.
37731
37732         gnulib-tool: avoid writing in the current directory.
37733         * gnulib-tool (func_emit_lib_Makefile_am)
37734         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37735         not in the current directory, so concurrent gnulib-tool
37736         instances do not interfere.
37737
37738 2010-01-16  Jim Meyering  <meyering@redhat.com>
37739
37740         doc: update users.txt
37741         * users.txt: Add grep.
37742         (diffutils, gzip): Update URLs.
37743
37744 2010-01-12  Bruno Haible  <bruno@clisp.org>
37745
37746         posix_spawn: Avoid test failure on Cygwin.
37747         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37748         characters.
37749         Reported by Simon Josefsson.
37750
37751 2010-01-12  Bruno Haible  <bruno@clisp.org>
37752
37753         * tests/test-cond.c (main): When skipping the test, show the reason.
37754
37755 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37756
37757         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37758
37759 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37760
37761         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37762         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37763
37764 2010-01-12  Eric Blake  <ebb9@byu.net>
37765
37766         build: guarantee AS_VAR_IF
37767         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37768         (gl_AS_VAR_IF): Move...
37769         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37770         Reported by Simon Josefsson.
37771
37772 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37773
37774         * lib/stdio.in.h: Fix typo.
37775
37776 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37777
37778         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37779         libgpg-error.
37780
37781 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37782
37783         * tests/test-xalloc-die.sh: Use $EXEEXT.
37784
37785 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37786             Bruno Haible  <bruno@clisp.org>
37787
37788         getlogin, getlogin_r: Avoid test failure.
37789         * tests/test-getlogin.c: Include <stdio.h>.
37790         (main): Skip the test when the function fails because stdin is not a
37791         tty.
37792         * tests/test-getlogin_r.c: Include <stdio.h>.
37793         (main): Skip the test when the function fails because stdin is not a
37794         tty.
37795
37796 2010-01-11  Eric Blake  <ebb9@byu.net>
37797
37798         tests: avoid more large file warnings
37799         * tests/test-fflush.c: Avoid warning about ftell use.
37800         * tests/test-fseek.c: Avoid warning about fseek use.
37801
37802 2010-01-10  Bruno Haible  <bruno@clisp.org>
37803
37804         nproc: Work better on Linux when /proc and /sys are not mounted.
37805         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37806         as lower bound when, on glibc/Linux systems,
37807         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37808         Suggested by Pádraig Brady <P@draigbrady.com>.
37809         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37810
37811         nproc: Refactor.
37812         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37813         extracted from num_processors.
37814         (num_processors): Call it.
37815
37816 2010-01-11  Jim Meyering  <meyering@redhat.com>
37817
37818         utimecmp: avoid new warning from upcoming gcc-4.5.0
37819         * lib/utimecmp.c (BILLION): Define using #define rather than an
37820         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37821
37822 2010-01-11  Eric Blake  <ebb9@byu.net>
37823
37824         math: add portability warnings for classification macros
37825         * modules/math (Depends-on): Add warn-on-use.
37826         (Makefile.am): Provide new substitutions.
37827         * m4/math_h.m4 (gl_MATH_H): Require inline.
37828         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37829         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37830         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37831         implement warnings.
37832
37833         unistd: warn on use of environ without module
37834         * modules/unistd (Depends-on): Add warn-on-use.
37835         (Makefile.am): Provide new substitutions.
37836         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37837         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37838
37839         stdio: warn on suspicious uses
37840         * modules/stdio (Depends-on): Add warn-on-use.
37841         (Makefile.am): Provide new substitutions.
37842         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37843         fseeko.
37844         * lib/stdio.in.h (gets): Always warn on use.
37845         (fseek, ftell): Adjust when warnings are issued, and honor
37846         _GL_NO_LARGE_FILES as a way to silence the warning.
37847         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37848         any warning about large file offsets.
37849         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37850         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37851         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37852         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37853         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37854         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37855         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37856         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37857
37858         warn-on-use: new module
37859         * modules/warn-on-use: New file.
37860         * build-aux/warn-on-use.h: Likewise.
37861         * m4/warn-on-use.m4: Likewise.
37862         * MODULES.html.sh (Support for building): Mention it.
37863
37864 2010-01-10  Bruno Haible  <bruno@clisp.org>
37865
37866         Tests for module 'unistr/u32-strdup'.
37867         * modules/unistr/u32-strdup-tests: New file.
37868         * tests/unistr/test-u32-strdup.c: New file.
37869
37870         Tests for module 'unistr/u16-strdup'.
37871         * modules/unistr/u16-strdup-tests: New file.
37872         * tests/unistr/test-u16-strdup.c: New file.
37873
37874         Tests for module 'unistr/u8-strdup'.
37875         * modules/unistr/u8-strdup-tests: New file.
37876         * tests/unistr/test-u8-strdup.c: New file.
37877         * tests/unistr/test-strdup.h: New file.
37878
37879         Tests for module 'unistr/u32-strncmp'.
37880         * modules/unistr/u32-strncmp-tests: New file.
37881         * tests/unistr/test-u32-strncmp.c: New file.
37882
37883         Tests for module 'unistr/u16-strncmp'.
37884         * modules/unistr/u16-strncmp-tests: New file.
37885         * tests/unistr/test-u16-strncmp.c: New file.
37886
37887         Tests for module 'unistr/u8-strncmp'.
37888         * modules/unistr/u8-strncmp-tests: New file.
37889         * tests/unistr/test-u8-strncmp.c: New file.
37890         * tests/unistr/test-strncmp.h: New file.
37891
37892         Tests for module 'unistr/u32-strcoll'.
37893         * modules/unistr/u32-strcoll-tests: New file.
37894         * tests/unistr/test-u32-strcoll.c: New file.
37895
37896         Tests for module 'unistr/u16-strcoll'.
37897         * modules/unistr/u16-strcoll-tests: New file.
37898         * tests/unistr/test-u16-strcoll.c: New file.
37899
37900         Tests for module 'unistr/u8-strcoll'.
37901         * modules/unistr/u8-strcoll-tests: New file.
37902         * tests/unistr/test-u8-strcoll.c: New file.
37903
37904         Tests for module 'unistr/u32-strcmp'.
37905         * modules/unistr/u32-strcmp-tests: New file.
37906         * tests/unistr/test-u32-strcmp.c: New file.
37907         * tests/unistr/test-u32-strcmp.h: New file.
37908
37909         Tests for module 'unistr/u16-strcmp'.
37910         * modules/unistr/u16-strcmp-tests: New file.
37911         * tests/unistr/test-u16-strcmp.c: New file.
37912         * tests/unistr/test-u16-strcmp.h: New file.
37913
37914         Tests for module 'unistr/u8-strcmp'.
37915         * modules/unistr/u8-strcmp-tests: New file.
37916         * tests/unistr/test-u8-strcmp.c: New file.
37917         * tests/unistr/test-u8-strcmp.h: New file.
37918         * tests/unistr/test-strcmp.h: New file.
37919
37920         Tests for module 'unistr/u32-strncat'.
37921         * modules/unistr/u32-strncat-tests: New file.
37922         * tests/unistr/test-u32-strncat.c: New file.
37923
37924         Tests for module 'unistr/u16-strncat'.
37925         * modules/unistr/u16-strncat-tests: New file.
37926         * tests/unistr/test-u16-strncat.c: New file.
37927
37928         Tests for module 'unistr/u8-strncat'.
37929         * modules/unistr/u8-strncat-tests: New file.
37930         * tests/unistr/test-u8-strncat.c: New file.
37931         * tests/unistr/test-strncat.h: New file.
37932
37933         Tests for module 'unistr/u32-strcat'.
37934         * modules/unistr/u32-strcat-tests: New file.
37935         * tests/unistr/test-u32-strcat.c: New file.
37936
37937         Tests for module 'unistr/u16-strcat'.
37938         * modules/unistr/u16-strcat-tests: New file.
37939         * tests/unistr/test-u16-strcat.c: New file.
37940
37941         Tests for module 'unistr/u8-strcat'.
37942         * modules/unistr/u8-strcat-tests: New file.
37943         * tests/unistr/test-u8-strcat.c: New file.
37944         * tests/unistr/test-strcat.h: New file.
37945
37946         Tests for module 'unistr/u32-stpncpy'.
37947         * modules/unistr/u32-stpncpy-tests: New file.
37948         * tests/unistr/test-u32-stpncpy.c: New file.
37949
37950         Tests for module 'unistr/u16-stpncpy'.
37951         * modules/unistr/u16-stpncpy-tests: New file.
37952         * tests/unistr/test-u16-stpncpy.c: New file.
37953
37954         Tests for module 'unistr/u8-stpncpy'.
37955         * modules/unistr/u8-stpncpy-tests: New file.
37956         * tests/unistr/test-u8-stpncpy.c: New file.
37957         * tests/unistr/test-stpncpy.h: New file.
37958
37959         Tests for module 'unistr/u32-strncpy'.
37960         * modules/unistr/u32-strncpy-tests: New file.
37961         * tests/unistr/test-u32-strncpy.c: New file.
37962
37963         Tests for module 'unistr/u16-strncpy'.
37964         * modules/unistr/u16-strncpy-tests: New file.
37965         * tests/unistr/test-u16-strncpy.c: New file.
37966
37967         Tests for module 'unistr/u8-strncpy'.
37968         * modules/unistr/u8-strncpy-tests: New file.
37969         * tests/unistr/test-u8-strncpy.c: New file.
37970         * tests/unistr/test-strncpy.h: New file.
37971
37972         Tests for module 'unistr/u32-stpcpy'.
37973         * modules/unistr/u32-stpcpy-tests: New file.
37974         * tests/unistr/test-u32-stpcpy.c: New file.
37975
37976         Tests for module 'unistr/u16-stpcpy'.
37977         * modules/unistr/u16-stpcpy-tests: New file.
37978         * tests/unistr/test-u16-stpcpy.c: New file.
37979
37980         Tests for module 'unistr/u8-stpcpy'.
37981         * modules/unistr/u8-stpcpy-tests: New file.
37982         * tests/unistr/test-u8-stpcpy.c: New file.
37983         * tests/unistr/test-stpcpy.h: New file.
37984
37985         Tests for module 'unistr/u32-strcpy'.
37986         * modules/unistr/u32-strcpy-tests: New file.
37987         * tests/unistr/test-u32-strcpy.c: New file.
37988
37989         Tests for module 'unistr/u16-strcpy'.
37990         * modules/unistr/u16-strcpy-tests: New file.
37991         * tests/unistr/test-u16-strcpy.c: New file.
37992
37993         Tests for module 'unistr/u8-strcpy'.
37994         * modules/unistr/u8-strcpy-tests: New file.
37995         * tests/unistr/test-u8-strcpy.c: New file.
37996         * tests/unistr/test-strcpy.h: New file.
37997
37998         Tests for module 'unistr/u32-strnlen'.
37999         * modules/unistr/u32-strnlen-tests: New file.
38000         * tests/unistr/test-u32-strnlen.c: New file.
38001
38002         Tests for module 'unistr/u16-strnlen'.
38003         * modules/unistr/u16-strnlen-tests: New file.
38004         * tests/unistr/test-u16-strnlen.c: New file.
38005
38006         Tests for module 'unistr/u8-strnlen'.
38007         * modules/unistr/u8-strnlen-tests: New file.
38008         * tests/unistr/test-u8-strnlen.c: New file.
38009         * tests/unistr/test-strnlen.h: New file.
38010
38011         Tests for module 'unistr/u32-strlen'.
38012         * modules/unistr/u32-strlen-tests: New file.
38013         * tests/unistr/test-u32-strlen.c: New file.
38014
38015         Tests for module 'unistr/u16-strlen'.
38016         * modules/unistr/u16-strlen-tests: New file.
38017         * tests/unistr/test-u16-strlen.c: New file.
38018
38019         Tests for module 'unistr/u8-strlen'.
38020         * modules/unistr/u8-strlen-tests: New file.
38021         * tests/unistr/test-u8-strlen.c: New file.
38022
38023         Tests for module 'unistr/u32-prev'.
38024         * modules/unistr/u32-prev-tests: New file.
38025         * tests/unistr/test-u32-prev.c: New file.
38026
38027         Tests for module 'unistr/u16-prev'.
38028         * modules/unistr/u16-prev-tests: New file.
38029         * tests/unistr/test-u16-prev.c: New file.
38030
38031         Tests for module 'unistr/u8-prev'.
38032         * modules/unistr/u8-prev-tests: New file.
38033         * tests/unistr/test-u8-prev.c: New file.
38034
38035         Tests for module 'unistr/u32-next'.
38036         * modules/unistr/u32-next-tests: New file.
38037         * tests/unistr/test-u32-next.c: New file.
38038
38039         Tests for module 'unistr/u16-next'.
38040         * modules/unistr/u16-next-tests: New file.
38041         * tests/unistr/test-u16-next.c: New file.
38042
38043         Tests for module 'unistr/u8-next'.
38044         * modules/unistr/u8-next-tests: New file.
38045         * tests/unistr/test-u8-next.c: New file.
38046
38047         Tests for module 'unistr/u32-strmbtouc'.
38048         * modules/unistr/u32-strmbtouc-tests: New file.
38049         * tests/unistr/test-u32-strmbtouc.c: New file.
38050
38051         Tests for module 'unistr/u16-strmbtouc'.
38052         * modules/unistr/u16-strmbtouc-tests: New file.
38053         * tests/unistr/test-u16-strmbtouc.c: New file.
38054
38055         Tests for module 'unistr/u8-strmbtouc'.
38056         * modules/unistr/u8-strmbtouc-tests: New file.
38057         * tests/unistr/test-u8-strmbtouc.c: New file.
38058
38059         Tests for module 'unistr/u32-strmblen'.
38060         * modules/unistr/u32-strmblen-tests: New file.
38061         * tests/unistr/test-u32-strmblen.c: New file.
38062
38063         Tests for module 'unistr/u16-strmblen'.
38064         * modules/unistr/u16-strmblen-tests: New file.
38065         * tests/unistr/test-u16-strmblen.c: New file.
38066
38067         Tests for module 'unistr/u8-strmblen'.
38068         * modules/unistr/u8-strmblen-tests: New file.
38069         * tests/unistr/test-u8-strmblen.c: New file.
38070
38071         Tests for module 'unistr/u32-cpy-alloc'.
38072         * modules/unistr/u32-cpy-alloc-tests: New file.
38073         * tests/unistr/test-u32-cpy-alloc.c: New file.
38074
38075         Tests for module 'unistr/u16-cpy-alloc'.
38076         * modules/unistr/u16-cpy-alloc-tests: New file.
38077         * tests/unistr/test-u16-cpy-alloc.c: New file.
38078
38079         Tests for module 'unistr/u8-cpy-alloc'.
38080         * modules/unistr/u8-cpy-alloc-tests: New file.
38081         * tests/unistr/test-u8-cpy-alloc.c: New file.
38082         * tests/unistr/test-cpy-alloc.h: New file.
38083
38084         Tests for module 'unistr/u32-mbsnlen'.
38085         * modules/unistr/u32-mbsnlen-tests: New file.
38086         * tests/unistr/test-u32-mbsnlen.c: New file.
38087
38088         Tests for module 'unistr/u16-mbsnlen'.
38089         * modules/unistr/u16-mbsnlen-tests: New file.
38090         * tests/unistr/test-u16-mbsnlen.c: New file.
38091
38092         Tests for module 'unistr/u8-mbsnlen'.
38093         * modules/unistr/u8-mbsnlen-tests: New file.
38094         * tests/unistr/test-u8-mbsnlen.c: New file.
38095
38096         Tests for module 'unistr/u32-chr'.
38097         * modules/unistr/u32-chr-tests: New file.
38098         * tests/unistr/test-u32-chr.c: New file.
38099
38100         Tests for module 'unistr/u16-chr'.
38101         * modules/unistr/u16-chr-tests: New file.
38102         * tests/unistr/test-u16-chr.c: New file.
38103
38104         Tests for module 'unistr/u8-chr'.
38105         * modules/unistr/u8-chr-tests: New file.
38106         * tests/unistr/test-u8-chr.c: New file.
38107         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38108
38109         Tests for module 'unistr/u32-cmp2'.
38110         * modules/unistr/u32-cmp2-tests: New file.
38111         * tests/unistr/test-u32-cmp2.c: New file.
38112
38113         Tests for module 'unistr/u16-cmp2'.
38114         * modules/unistr/u16-cmp2-tests: New file.
38115         * tests/unistr/test-u16-cmp2.c: New file.
38116
38117         Tests for module 'unistr/u8-cmp2'.
38118         * modules/unistr/u8-cmp2-tests: New file.
38119         * tests/unistr/test-u8-cmp2.c: New file.
38120         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38121
38122         Tests for module 'unistr/u32-cmp'.
38123         * modules/unistr/u32-cmp-tests: New file.
38124         * tests/unistr/test-u32-cmp.c: New file.
38125
38126         Tests for module 'unistr/u16-cmp'.
38127         * modules/unistr/u16-cmp-tests: New file.
38128         * tests/unistr/test-u16-cmp.c: New file.
38129
38130         Tests for module 'unistr/u8-cmp'.
38131         * modules/unistr/u8-cmp-tests: New file.
38132         * tests/unistr/test-u8-cmp.c: New file.
38133         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38134
38135         Tests for module 'unistr/u32-set'.
38136         * modules/unistr/u32-set-tests: New file.
38137         * tests/unistr/test-u32-set.c: New file.
38138
38139         Tests for module 'unistr/u16-set'.
38140         * modules/unistr/u16-set-tests: New file.
38141         * tests/unistr/test-u16-set.c: New file.
38142
38143         Tests for module 'unistr/u8-set'.
38144         * modules/unistr/u8-set-tests: New file.
38145         * tests/unistr/test-u8-set.c: New file.
38146         * tests/unistr/test-set.h: New file.
38147
38148         Tests for module 'unistr/u32-move'.
38149         * modules/unistr/u32-move-tests: New file.
38150         * tests/unistr/test-u32-move.c: New file.
38151
38152         Tests for module 'unistr/u16-move'.
38153         * modules/unistr/u16-move-tests: New file.
38154         * tests/unistr/test-u16-move.c: New file.
38155
38156         Tests for module 'unistr/u8-move'.
38157         * modules/unistr/u8-move-tests: New file.
38158         * tests/unistr/test-u8-move.c: New file.
38159         * tests/unistr/test-move.h: New file.
38160
38161         Tests for module 'unistr/u32-cpy'.
38162         * modules/unistr/u32-cpy-tests: New file.
38163         * tests/unistr/test-u32-cpy.c: New file.
38164
38165         Tests for module 'unistr/u16-cpy'.
38166         * modules/unistr/u16-cpy-tests: New file.
38167         * tests/unistr/test-u16-cpy.c: New file.
38168
38169         Tests for module 'unistr/u8-cpy'.
38170         * modules/unistr/u8-cpy-tests: New file.
38171         * tests/unistr/test-u8-cpy.c: New file.
38172         * tests/unistr/test-cpy.h: New file.
38173
38174 2010-01-09  Bruno Haible  <bruno@clisp.org>
38175
38176         Tests for module 'unistr/u32-uctomb'.
38177         * modules/unistr/u32-uctomb-tests: New file.
38178         * tests/unistr/test-u32-uctomb.c: New file.
38179
38180         Tests for module 'unistr/u16-uctomb'.
38181         * modules/unistr/u16-uctomb-tests: New file.
38182         * tests/unistr/test-u16-uctomb.c: New file.
38183
38184         Tests for module 'unistr/u8-uctomb'.
38185         * modules/unistr/u8-uctomb-tests: New file.
38186         * tests/unistr/test-u8-uctomb.c: New file.
38187
38188         Tests for module 'unistr/u32-mbtoucr'.
38189         * modules/unistr/u32-mbtoucr-tests: New file.
38190         * tests/unistr/test-u32-mbtoucr.c: New file.
38191
38192         Tests for module 'unistr/u16-mbtoucr'.
38193         * modules/unistr/u16-mbtoucr-tests: New file.
38194         * tests/unistr/test-u16-mbtoucr.c: New file.
38195
38196         Tests for module 'unistr/u8-mbtoucr'.
38197         * modules/unistr/u8-mbtoucr-tests: New file.
38198         * tests/unistr/test-u8-mbtoucr.c: New file.
38199
38200         Tests for module 'unistr/u32-mbtouc'.
38201         * modules/unistr/u32-mbtouc-tests: New file.
38202         * tests/unistr/test-u32-mbtouc.c: New file.
38203
38204         Tests for module 'unistr/u16-mbtouc'.
38205         * modules/unistr/u16-mbtouc-tests: New file.
38206         * tests/unistr/test-u16-mbtouc.c: New file.
38207
38208         Tests for module 'unistr/u8-mbtouc'.
38209         * modules/unistr/u8-mbtouc-tests: New file.
38210         * tests/unistr/test-u8-mbtouc.c: New file.
38211
38212         Tests for module 'unistr/u32-mbtouc-unsafe'.
38213         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38214         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38215         * tests/unistr/test-u32-mbtouc.h: New file.
38216
38217         Tests for module 'unistr/u16-mbtouc-unsafe'.
38218         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38219         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38220         * tests/unistr/test-u16-mbtouc.h: New file.
38221
38222         Tests for module 'unistr/u8-mbtouc-unsafe'.
38223         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38224         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38225         * tests/unistr/test-u8-mbtouc.h: New file.
38226
38227         Tests for module 'unistr/u32-mblen'.
38228         * modules/unistr/u32-mblen-tests: New file.
38229         * tests/unistr/test-u32-mblen.c: New file.
38230
38231         Tests for module 'unistr/u16-mblen'.
38232         * modules/unistr/u16-mblen-tests: New file.
38233         * tests/unistr/test-u16-mblen.c: New file.
38234
38235         Tests for module 'unistr/u8-mblen'.
38236         * modules/unistr/u8-mblen-tests: New file.
38237         * tests/unistr/test-u8-mblen.c: New file.
38238
38239         Tests for module 'unistr/u32-to-u16'.
38240         * modules/unistr/u32-to-u16-tests: New file.
38241         * tests/unistr/test-u32-to-u16.c: New file.
38242
38243         Tests for module 'unistr/u32-to-u8'.
38244         * modules/unistr/u32-to-u8-tests: New file.
38245         * tests/unistr/test-u32-to-u8.c: New file.
38246
38247         Tests for module 'unistr/u16-to-u32'.
38248         * modules/unistr/u16-to-u32-tests: New file.
38249         * tests/unistr/test-u16-to-u32.c: New file.
38250
38251         Tests for module 'unistr/u16-to-u8'.
38252         * modules/unistr/u16-to-u8-tests: New file.
38253         * tests/unistr/test-u16-to-u8.c: New file.
38254
38255         Tests for module 'unistr/u8-to-u32'.
38256         * modules/unistr/u8-to-u32-tests: New file.
38257         * tests/unistr/test-u8-to-u32.c: New file.
38258
38259         Tests for module 'unistr/u8-to-u16'.
38260         * modules/unistr/u8-to-u16-tests: New file.
38261         * tests/unistr/test-u8-to-u16.c: New file.
38262
38263         Tests for module 'unistr/u32-check'.
38264         * modules/unistr/u32-check-tests: New file.
38265         * tests/unistr/test-u32-check.c: New file.
38266
38267         Tests for module 'unistr/u16-check'.
38268         * modules/unistr/u16-check-tests: New file.
38269         * tests/unistr/test-u16-check.c: New file.
38270
38271         Tests for module 'unistr/u8-check'.
38272         * modules/unistr/u8-check-tests: New file.
38273         * tests/unistr/test-u8-check.c: New file.
38274
38275         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38276         (category_equals): New function.
38277         (main): Add more tests.
38278         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38279
38280         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38281
38282 2010-01-10  Bruno Haible  <bruno@clisp.org>
38283
38284         unistr/u*-strcoll: Try harder to distinguish different strings.
38285         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38286         compare s1 and s2 to see if they are different.
38287
38288 2010-01-10  Bruno Haible  <bruno@clisp.org>
38289
38290         unistr/u*-stpncpy: Fix the return value.
38291         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38292         description of the return value consistent with stpncpy in glibc.
38293         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38294         written non-NUL unit.
38295
38296 2010-01-10  Bruno Haible  <bruno@clisp.org>
38297
38298         unistr/u*-next: Add missing dependencies.
38299         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38300         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38301         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38302
38303 2010-01-10  Bruno Haible  <bruno@clisp.org>
38304
38305         unistr/u8-mbsnlen: Fix return value for incomplete character.
38306         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38307         u8_mblen.
38308         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38309         Remove unistr/u8-mblen.
38310         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38311         u16_mblen.
38312         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38313         Remove unistr/u16-mblen.
38314
38315 2010-01-10  Bruno Haible  <bruno@clisp.org>
38316
38317         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38318         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38319         Reported by Brian Gough <bjg@gnu.org> and
38320         Chris Clayton <chris2553@googlemail.com> via
38321         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38322
38323 2010-01-09  Bruno Haible  <bruno@clisp.org>
38324
38325         unistr/u16-to-u32: Reject invalid input.
38326         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38327         u16_mbtouc.
38328         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38329         Remove unistr/u16-mbtouc.
38330
38331         unistr/u16-to-u8: Reject invalid input.
38332         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38333         u16_mbtouc.
38334         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38335         Remove unistr/u16-mbtouc.
38336
38337         unistr/u8-to-u32: Reject invalid input.
38338         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38339         u8_mbtouc.
38340         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38341         Remove unistr/u8-mbtouc.
38342
38343         unistr/u8-to-u16: Reject invalid input.
38344         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38345         u8_mbtouc.
38346         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38347         Remove unistr/u8-mbtouc.
38348
38349 2010-01-09  Bruno Haible  <bruno@clisp.org>
38350
38351         Tests for module 'getlogin'.
38352         * modules/getlogin-tests: New file.
38353         * tests/test-getlogin.c: New file.
38354
38355         New module 'getlogin'.
38356         * lib/unistd.in.h (getlogin): New declaration.
38357         * lib/getlogin.c: New file.
38358         * m4/getlogin.m4: New file.
38359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38360         HAVE_GETLOGIN.
38361         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38362         HAVE_GETLOGIN.
38363         * modules/getlogin: New file.
38364         * doc/posix-functions/getlogin.texi: Mention the new module.
38365         Reported by John W. Eaton <jwe@gnu.org>.
38366
38367 2010-01-09  Bruno Haible  <bruno@clisp.org>
38368
38369         getlogin_r: Support for native Windows.
38370         * lib/getlogin_r.c: Include <windows.h>
38371         (getlogin_r): Implement for native Windows.
38372         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38373         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38374         via John W. Eaton <jwe@gnu.org>.
38375
38376 2010-01-09  Bruno Haible  <bruno@clisp.org>
38377
38378         getlogin_r: Small fixes.
38379         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38380         succeeds.
38381         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38382         before testing whether getlogin_r is declared. No need to set
38383         HAVE_DECL_GETLOGIN_R to 1.
38384         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38385
38386 2010-01-09  Bruno Haible  <bruno@clisp.org>
38387
38388         * lib/unistd.in.h (getlogin_r): Add comment.
38389
38390 2010-01-09  Bruno Haible  <bruno@clisp.org>
38391
38392         Tests for module 'getlogin_r'.
38393         * modules/getlogin_r-tests: New file.
38394         * tests/test-getlogin_r.c: New file.
38395
38396 2010-01-09  Jim Meyering  <meyering@redhat.com>
38397
38398         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38399         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38400         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38401
38402 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38403
38404         * lib/dup2.c (rpl_dup2): Improve comment.
38405
38406 2010-01-08  Eric Blake  <ebb9@byu.net>
38407
38408         maint.mk: allow packages to add makefile @@ exceptions
38409         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38410         (sc_makefile_check): Rename...
38411         (sc_makefile_at_at_check): ...to this, and use hook.
38412
38413         dup2: work around mingw bug
38414         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38415         Reported by Simon Josefsson.
38416
38417 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38418
38419         glob: Fix C++ compilation.
38420         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38421         C++.
38422
38423 2010-01-07  Bruno Haible  <bruno@clisp.org>
38424
38425         Fix indentation of wctype.in.h, broken since 2007-01-06.
38426         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38427
38428 2010-01-07  Bruno Haible  <bruno@clisp.org>
38429
38430         mbslen: Avoid collision with system function.
38431         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38432         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38433         * m4/mbslen.m4: New file.
38434         * modules/mbslen (Files): Add it.
38435         (configure.ac): Invoke gl_MBSLEN.
38436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38437         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38438         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38439         via Ian Beckwith <ianb@erislabs.net>.
38440
38441 2010-01-07  Bruno Haible  <bruno@clisp.org>
38442
38443         dirent: Document the last fix.
38444         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38445
38446 2010-01-07  Bruno Haible  <bruno@clisp.org>
38447
38448         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38449         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38450         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38451         va_list are defined.
38452         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38453         Reported by Eric Blake.
38454
38455 2010-01-07  Bruno Haible  <bruno@clisp.org>
38456
38457         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38458         * modules/xlist (Depends-on): Add 'list',
38459         * modules/xoset (Depends-on): Add 'oset'.
38460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38461
38462 2010-01-07  Bruno Haible  <bruno@clisp.org>
38463
38464         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38465         * doc/posix-functions/strncasecmp.texi: Likewise.
38466
38467 2010-01-07  Bruno Haible  <bruno@clisp.org>
38468
38469         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38470
38471 2010-01-07  John W. Eaton  <jwe@octave.org>
38472
38473         wctype: allow C++ use
38474         * lib/wctype.in.h: Add extern "C" block for C++.
38475
38476 2010-01-06  Eric Blake  <ebb9@byu.net>
38477
38478         maint.mk: detect incorrect GFDL usage
38479         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38480
38481 2010-01-06  Jim Meyering  <meyering@redhat.com>
38482         and Eric Blake  <ebb9@byu.net>
38483
38484         maint.mk: ignore multi-line copyright in NEWS
38485         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38486
38487 2010-01-06  Eric Blake  <ebb9@byu.net>
38488
38489         select: add missing dependency
38490         * modules/select-tests (Depends-on): Move sockets dependency...
38491         * modules/select (Depends-on): ...here.
38492         Reported by Ian Beckwith.
38493
38494         doc: regenerate INSTALL
38495         * doc/INSTALL: Reflect recent autoconf update.
38496         * doc/INSTALL.ISO: Likewise.
38497         * doc/INSTALL.UTF-8: Likewise.
38498
38499         pread: fix compilation on glibc
38500         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38501         Reported by Ralf Wildenhues.
38502
38503         dirent: fix test failure
38504         * lib/dirent.in.h (includes): Guarantee ino_t.
38505         Reported by Ralf Wildenhues.
38506
38507 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38508
38509         linkat, renameat: avoid bad free
38510         * lib/at-func2.c (at_func2): Fix typo.
38511         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38512
38513 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38514
38515         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38516         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38517         to avoid failure of symlink test later.
38518
38519 2010-01-06  Eric Blake  <ebb9@byu.net>
38520
38521         stdio, unistd: guarantee ssize_t
38522         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38523         2008 are exposed when needed.
38524         * lib/stdio.in.h (includes): Likewise.
38525         Reported by Ralf Wildenhues.
38526
38527 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38528
38529         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38530         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38531         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38532
38533 2010-01-06  Jim Meyering  <meyering@redhat.com>
38534
38535         readtokens: this module *does* require xalloc.h
38536         It uses only functions that were omitted by the old syntax-check rule.
38537         * lib/readtokens.c: Include "xalloc.h" once again.
38538         * modules/readtokens (Depends-on): Add xalloc.
38539         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38540
38541 2010-01-05  Eric Blake  <ebb9@byu.net>
38542
38543         maint: support 'make announcement' from a VPATH build
38544         * top/maint.mk (announcement): Look for correct NEWS file.
38545
38546 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38547
38548         utimens (fdutimens): ignore a negative FD, per contract
38549         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38550         when we have a valid file descriptor.  Otherwise, using a brand
38551         new glibc (with just-patched futimens that now fails with EBADF)
38552         would cause this function to fail with ENOSYS.
38553         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38554         See also http://bugzilla.redhat.com/552320.
38555
38556 2010-01-05  Eric Blake  <ebb9@byu.net>
38557
38558         strcase: document what it provides
38559         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38560         gnulib module.
38561         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38562         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38563
38564 2010-01-05  Jim Meyering  <meyering@redhat.com>
38565
38566         maint: remove useless inclusions of "xalloc.h"
38567         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38568         * lib/readtokens.c: Likewise.
38569         * lib/same.c: Likewise.
38570         * modules/getloadavg (Depends-on): Remove xalloc.
38571         * modules/readtokens: Likewise.
38572         * modules/same: Likewise.
38573
38574         maint.mk: include 4 more function names in alloca.h-checking regexp
38575         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38576         regexp.  Before, we would give a false-positive (saying alloca.h
38577         is included unnecessarily) when the only uses involved omitted symbols.
38578
38579         xalloc.h: use consistent formatting
38580         * lib/xalloc.h: Move declarations to start in the first column.
38581
38582 2010-01-05  Eric Blake  <ebb9@byu.net>
38583
38584         mkdir: avoid xalloc
38585         * lib/mkdir.c (includes): Drop unused header.
38586         Reported by John W. Eaton.
38587
38588 2010-01-04  Jim Meyering  <meyering@redhat.com>
38589
38590         nl_langinfo: avoid configure-time syntax error
38591         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38592         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38593         the empty string.  Don't let that provoke a shell syntax error.
38594
38595         regcomp, regexec, fnmatch: avoid array bounds read error
38596         * lib/regcomp.c (build_equiv_class): From glibc:
38597         Use only the low 24 bits of a findidx return value as an index
38598         into the weights array.  Patch by Ulrich Drepper:
38599         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38600         * lib/regexec.c (check_node_accept_bytes): Likewise.
38601         * lib/fnmatch_loop.c (FCT): Likewise.
38602
38603         regcomp: skip collseq lookup when there are no rules
38604         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38605         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38606
38607         regcomp: recognize ill-formed { } expressions
38608         * lib/regcomp.c (parse_dup_op): From glibc:
38609         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38610
38611         regcomp: fix typo in comment
38612         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38613         s/satisfy/satisfies/.
38614
38615         regcomp: sync from glibc: remove dead store
38616         * lib/regcomp.c (duplicate_node_closure): Remove useless
38617         search_duplicated_node call and dead store.
38618
38619         regcomp: sync from glibc; always use nl_langinfo
38620         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38621         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38622         * modules/regex (Depends-on): Add nl_langinfo.
38623
38624 2010-01-04  Eric Blake  <ebb9@byu.net>
38625
38626         fdopendir: fix configure test
38627         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38628
38629 2010-01-01  Bruno Haible  <bruno@clisp.org>
38630
38631         wchar: Remove unused configure check.
38632         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38633
38634 2010-01-01  Eric Blake  <ebb9@byu.net>
38635
38636         headers: make check of system header explicit
38637         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38638         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38639         ourselves.
38640         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38641         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38642         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38643         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38644         internals.
38645         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38646         missing.
38647         Suggested by Bruno Haible.
38648
38649 2010-01-01  Jim Meyering  <meyering@redhat.com>
38650
38651         ChangeLog: tweak to eliminate unnecessary copyright line
38652         * ChangeLog: Remove a copyright line that was mistakenly updated
38653         by today's update-copyright run.  Reported by Eric Blake.
38654
38655         test-update-copyright: don't let envvar setting cause test failure
38656         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38657
38658 2010-01-01  Bruno Haible  <bruno@clisp.org>
38659
38660         localename: Avoid gcc warning.
38661         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38662         function if it is not used.
38663
38664 2010-01-01  Jim Meyering  <meyering@redhat.com>
38665
38666         update nearly all FSF copyright year lists to include 2010
38667         Use the same procedure as for 2009, outlined in
38668         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38669
38670         version-etc: set COPYRIGHT_YEAR to 2010
38671         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38672
38673 2009-12-31  Eric Blake  <ebb9@byu.net>
38674
38675         doc: correct availability of cygwin 1.5.x getopt
38676         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38677         variables.
38678         * doc/posix-functions/opterr.texi (opterr): Likewise.
38679         * doc/posix-functions/optind.texi (optind): Likewise.
38680         * doc/posix-functions/optopt.texi (optopt): Likewise.
38681         * doc/posix-functions/tzname.texi (tzname): Likewise.
38682
38683         openat: update maintainer
38684         * modules/openat (Maintainer): Add myself.
38685
38686         utimens: avoid shadowing warning
38687         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38688         buffers into one, to avoid shadowing, as well as avoiding a
38689         redundant stat.
38690         Reported by Jim Meyering.
38691
38692         test-dup2: avoid compiler warning
38693         * tests/test-dup2.c (is_inheritable): Only define if used.
38694
38695 2010-01-01  Bruno Haible  <bruno@clisp.org>
38696
38697         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38698         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38699         defined, use wctomb instead of wcrtomb.
38700
38701 2010-01-01  Bruno Haible  <bruno@clisp.org>
38702
38703         iconv: Reject native Solaris iconv.
38704         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38705         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38706
38707 2009-12-31  Bruno Haible  <bruno@clisp.org>
38708
38709         * tests/test-signal.c (main): Remove test of 'SIG'.
38710
38711 2009-12-31  Bruno Haible  <bruno@clisp.org>
38712
38713         spawn: Fix incomplete fix.
38714         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38715         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38716         warnings for GNULIB_POSIXCHECK again.
38717         Reported by Eric Blake.
38718
38719 2009-12-31  Bruno Haible  <bruno@clisp.org>
38720
38721         Avoid namespace pollution on glibc systems.
38722         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38723         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38724         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38725         glibc systems.
38726
38727 2009-12-31  Bruno Haible  <bruno@clisp.org>
38728
38729         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38730         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38731         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38732         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38733         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38734         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38735         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38736
38737 2009-12-31  Bruno Haible  <bruno@clisp.org>
38738
38739         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38740         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38741         afterwards.
38742
38743 2009-12-31  Bruno Haible  <bruno@clisp.org>
38744
38745         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38746         SYS_UTSNAME_H.
38747
38748 2009-12-31  Bruno Haible  <bruno@clisp.org>
38749
38750         spawn: Fix misapplied patch.
38751         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38752         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38753         warnings for GNULIB_POSIXCHECK.
38754
38755 2009-12-31  Bruno Haible  <bruno@clisp.org>
38756
38757         times: Update after sys_times changed.
38758         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38759         * modules/times (Files): Add it.
38760         (configure.ac): Invoke gl_FUNC_TIMES.
38761
38762 2009-12-31  Bruno Haible  <bruno@clisp.org>
38763
38764         Use AC_C_INLINE where necessary.
38765         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38766         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38767         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38768         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38769         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38770         * m4/mbiter.m4 (gl_MBITER): Likewise.
38771         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38772         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38773         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38774         * modules/u64 (configure.ac): Likewise.
38775
38776 2009-12-31  Bruno Haible  <bruno@clisp.org>
38777
38778         Use AC_C_INLINE instead of module 'inline' where possible.
38779         * modules/inline (Description): Clarify purpose.
38780         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38781         * modules/count-one-bits (Depends-on): Remove inline.
38782         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38783         * modules/openat (Depends-on): Remove inline.
38784         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38785         instead of depending on module 'inline'.
38786         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38787         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38788         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38789         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38790         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38791         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38792         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38793         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38794         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38795         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38796         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38797         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38798         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38799         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38800         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38801         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38802         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38803         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38804         Likewise.
38805         * modules/unictype/property-ascii-hex-digit (Depends-on,
38806         configure.ac): Likewise.
38807         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38808         configure.ac): Likewise.
38809         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38810         configure.ac): Likewise.
38811         * modules/unictype/property-bidi-block-separator (Depends-on,
38812         configure.ac): Likewise.
38813         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38814         configure.ac): Likewise.
38815         * modules/unictype/property-bidi-common-separator (Depends-on,
38816         configure.ac): Likewise.
38817         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38818         Likewise.
38819         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38820         configure.ac): Likewise.
38821         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38822         configure.ac): Likewise.
38823         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38824         configure.ac): Likewise.
38825         * modules/unictype/property-bidi-european-digit (Depends-on,
38826         configure.ac): Likewise.
38827         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38828         configure.ac): Likewise.
38829         * modules/unictype/property-bidi-left-to-right (Depends-on,
38830         configure.ac): Likewise.
38831         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38832         configure.ac): Likewise.
38833         * modules/unictype/property-bidi-other-neutral (Depends-on,
38834         configure.ac): Likewise.
38835         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38836         Likewise.
38837         * modules/unictype/property-bidi-segment-separator (Depends-on,
38838         configure.ac): Likewise.
38839         * modules/unictype/property-bidi-whitespace (Depends-on,
38840         configure.ac): Likewise.
38841         * modules/unictype/property-combining (Depends-on, configure.ac):
38842         Likewise.
38843         * modules/unictype/property-composite (Depends-on, configure.ac):
38844         Likewise.
38845         * modules/unictype/property-currency-symbol (Depends-on,
38846         configure.ac): Likewise.
38847         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38848         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38849         Likewise.
38850         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38851         configure.ac): Likewise.
38852         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38853         Likewise.
38854         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38855         Likewise.
38856         * modules/unictype/property-extender (Depends-on, configure.ac):
38857         Likewise.
38858         * modules/unictype/property-format-control (Depends-on, configure.ac):
38859         Likewise.
38860         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38861         Likewise.
38862         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38863         Likewise.
38864         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38865         Likewise.
38866         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38867         Likewise.
38868         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38869         Likewise.
38870         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38871         Likewise.
38872         * modules/unictype/property-id-start (Depends-on, configure.ac):
38873         Likewise.
38874         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38875         Likewise.
38876         * modules/unictype/property-ids-binary-operator (Depends-on,
38877         configure.ac): Likewise.
38878         * modules/unictype/property-ids-trinary-operator (Depends-on,
38879         configure.ac): Likewise.
38880         * modules/unictype/property-ignorable-control (Depends-on,
38881         configure.ac): Likewise.
38882         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38883         Likewise.
38884         * modules/unictype/property-join-control (Depends-on, configure.ac):
38885         Likewise.
38886         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38887         Likewise.
38888         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38889         Likewise.
38890         * modules/unictype/property-logical-order-exception (Depends-on,
38891         configure.ac): Likewise.
38892         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38893         Likewise.
38894         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38895         * modules/unictype/property-non-break (Depends-on, configure.ac):
38896         Likewise.
38897         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38898         Likewise.
38899         * modules/unictype/property-numeric (Depends-on, configure.ac):
38900         Likewise.
38901         * modules/unictype/property-other-alphabetic (Depends-on,
38902         configure.ac): Likewise.
38903         * modules/unictype/property-other-default-ignorable-code-point
38904         (Depends-on, configure.ac): Likewise.
38905         * modules/unictype/property-other-grapheme-extend (Depends-on,
38906         configure.ac): Likewise.
38907         * modules/unictype/property-other-id-continue (Depends-on,
38908         configure.ac): Likewise.
38909         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38910         Likewise.
38911         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38912         Likewise.
38913         * modules/unictype/property-other-math (Depends-on, configure.ac):
38914         Likewise.
38915         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38916         Likewise.
38917         * modules/unictype/property-paired-punctuation (Depends-on,
38918         configure.ac): Likewise.
38919         * modules/unictype/property-paragraph-separator (Depends-on,
38920         configure.ac): Likewise.
38921         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38922         Likewise.
38923         * modules/unictype/property-pattern-white-space (Depends-on,
38924         configure.ac): Likewise.
38925         * modules/unictype/property-private-use (Depends-on, configure.ac):
38926         Likewise.
38927         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38928         Likewise.
38929         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38930         Likewise.
38931         * modules/unictype/property-radical (Depends-on, configure.ac):
38932         Likewise.
38933         * modules/unictype/property-sentence-terminal (Depends-on,
38934         configure.ac): Likewise.
38935         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38936         Likewise.
38937         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38938         * modules/unictype/property-terminal-punctuation (Depends-on,
38939         configure.ac): Likewise.
38940         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38941         Likewise.
38942         * modules/unictype/property-unassigned-code-value (Depends-on,
38943         configure.ac): Likewise.
38944         * modules/unictype/property-unified-ideograph (Depends-on,
38945         configure.ac): Likewise.
38946         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38947         Likewise.
38948         * modules/unictype/property-variation-selector (Depends-on,
38949         configure.ac): Likewise.
38950         * modules/unictype/property-white-space (Depends-on, configure.ac):
38951         Likewise.
38952         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38953         Likewise.
38954         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38955         Likewise.
38956         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38957         Likewise.
38958         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38959         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38960         Likewise.
38961
38962 2009-12-31  Bruno Haible  <bruno@clisp.org>
38963
38964         Remove unnecessary AC_C_INLINE invocation.
38965         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38966         since 2009-08-21.
38967
38968 2009-12-31  Jim Meyering  <meyering@redhat.com>
38969
38970         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38971         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38972         With this change, we can all remove the gpg_key_ID = ... definition
38973         from our respective cfg.mk files.
38974
38975         maint.mk: create announcement template in ~/, not in /tmp
38976         * top/maint.mk (emit_upload_commands): Adjust.
38977         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38978         Remove temporary file, .ci-msg.
38979
38980 2009-12-31  Eric Blake  <ebb9@byu.net>
38981
38982         link-warning: always build headers with link warnings
38983         * modules/arpa_inet (Makefile.am): Always build replacement
38984         header.
38985         * modules/ctype (Makefile.am): Likewise.
38986         * modules/dirent (Makefile.am): Likewise.
38987         * modules/inttypes (Makefile.am): Likewise.
38988         * modules/langinfo (Makefile.am): Likewise.
38989         * modules/locale (Makefile.am): Likewise.
38990         * modules/spawn (Makefile.am): Likewise.
38991         * modules/sys_file (Makefile.am): Likewise.
38992         * modules/sys_ioctl (Makefile.am): Likewise.
38993         * modules/sys_select (Makefile.am): Likewise.
38994         * modules/sys_socket (Makefile.am): Likewise.
38995         * modules/sys_times (Makefile.am): Likewise.
38996         * modules/sys_utsname (Makefile.am): Likewise.
38997         * modules/sys_wait (Makefile.am): Likewise.
38998         * modules/wchar (Makefile.am): Likewise.
38999         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39000         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39001         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39002         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39003         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39004         Likewise.
39005         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39006         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39007         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39008         Likewise.
39009         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39010         Likewise.
39011         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39012         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39013         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39014         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39015         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39016         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39017         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39018         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39019         (gl_WCHAR_H_DEFAULTS): Likewise.
39020
39021 2009-12-31  Eric Blake  <ebb9@byu.net>
39022
39023         signal, spawn: use link warnings
39024         * lib/signal.in.h (sigset_t): Make unconditional.
39025         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39026         (sigpending, sigprocmask, sigaction): Add link warnings.
39027         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39028         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39029         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39030         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39031         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39032         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39033         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39034         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39035         (posix_spawn_file_actions_destroy)
39036         (posix_spawn_file_actions_addopen)
39037         (posix_spawn_file_actions_addclose)
39038         (posix_spawn_file_actions_adddup2): Likewise.
39039         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39040         * tests/test-signal.c (main): Enhance test.
39041
39042         spawn: improve wrapper support
39043         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39044         (gl_SPAWN_H_DEFAULTS): New defaults.
39045         * modules/spawn (Makefile.am): Substitute them.
39046         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39047         Only declare if missing or broken.
39048
39049         sys_times, sys_utsname: use include_next
39050         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39051         header.
39052         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39053         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39054         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39055         * modules/sys_times (Depends-on): Add include_next.
39056         (Makefile.am): Substitute additional values.
39057         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39058         * lib/sys_times.in.h (includes): Include native header, if
39059         available.
39060         * lib/sys_utsname.in.h (includes): Likewise.
39061         * tests/test-sys_times.c (main): Enhance test.
39062
39063         fdutimensat: revert prior patch
39064         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39065         utimens.h.
39066         Reported by Bruno Haible.
39067
39068 2009-12-30  Eric Blake  <ebb9@byu.net>
39069
39070         sys_wait: drop link-warning dependency
39071         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39072         link-warning efforts.
39073         * lib/sys_wait.in.h: Likewise.
39074
39075         fdutimensat: remove bogus dependency
39076         * modules/fdutimensat (Depends-on): Drop inline.
39077
39078         unistd: fix typo
39079         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39080
39081 2009-12-30  Bruno Haible  <bruno@clisp.org>
39082
39083         Fix compilation error with Solaris cc.
39084         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39085         * lib/unicase/u16-is-invariant.c: Likewise.
39086         * lib/unicase/u32-is-invariant.c: Likewise.
39087         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39088
39089 2009-12-30  Bruno Haible  <bruno@clisp.org>
39090
39091         Fix test crash.
39092         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39093         locales.
39094         Reported by Simon Josefsson <simon@josefsson.org>.
39095
39096 2009-12-30  Bruno Haible  <bruno@clisp.org>
39097
39098         Fix compilation error on most platforms.
39099         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39100         Reported by Simon Josefsson <simon@josefsson.org>
39101         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39102
39103 2009-12-30  Eric Blake  <ebb9@byu.net>
39104
39105         futimens, utimensat: work around ntfs-3g bug
39106         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39107         a ctime bug is present, and expand workaround to cover ntfs-3g.
39108         * lib/utimens.c (fdutimens, lutimens): Likewise.
39109         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39110         (validate_timespec): Adjust return value.
39111         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39112         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39113         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39114
39115 2009-12-29  Eric Blake  <ebb9@byu.net>
39116
39117         link-warning: make usage consistent
39118         * modules/ctype (Depends-on): Add link-warning.
39119         (Makefile.am): Update rules accordingly.
39120         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39121         * modules/locale (Depends-on, Makefile.am): Likewise.
39122         * modules/sys_file (Makefile.am): Likewise.
39123         * modules/getopt-posix (Makefile.am): Delete unused link warning
39124         efforts.
39125         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39126         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39127         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39128         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39129
39130         stdio: remove unused variables
39131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39132         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39133         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39134
39135         tests: test more substitute headers
39136         * modules/ctype-tests: New file.
39137         * modules/dirent-tests: Likewise.
39138         * modules/spawn-tests: Likewise.
39139         * modules/sys_file-tests: Likewise.
39140         * modules/sys_ioctl-tests: Likewise.
39141         * modules/sys_wait-tests: Likewise.
39142         * tests/test-ctype.c: Likewise.
39143         * tests/test-dirent.c: Likewise.
39144         * tests/test-spawn.c: Likewise.
39145         * tests/test-sys_file.c: Likewise.
39146         * tests/test-sys_ioctl.c: Likewise.
39147         * tests/test-sys_wait.c: Likewise.
39148         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39149         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39150         whether or not flock is in use.
39151
39152         tests: remove License section from module
39153         * modules/arpa_inet-tests: Remove unneeded section.
39154         * modules/byteswap-tests: Likewise.
39155         * modules/ceilf-tests: Likewise.
39156         * modules/ceill-tests: Likewise.
39157         * modules/crypto/des-tests: Likewise.
39158         * modules/crypto/gc-arcfour-tests: Likewise.
39159         * modules/crypto/gc-arctwo-tests: Likewise.
39160         * modules/crypto/gc-des-tests: Likewise.
39161         * modules/crypto/gc-hmac-md5-tests: Likewise.
39162         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39163         * modules/crypto/gc-md2-tests: Likewise.
39164         * modules/crypto/gc-md4-tests: Likewise.
39165         * modules/crypto/gc-md5-tests: Likewise.
39166         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39167         * modules/crypto/gc-rijndael-tests: Likewise.
39168         * modules/crypto/gc-sha1-tests: Likewise.
39169         * modules/crypto/gc-tests: Likewise.
39170         * modules/crypto/md2-tests: Likewise.
39171         * modules/crypto/md4-tests: Likewise.
39172         * modules/fcntl-h-tests: Likewise.
39173         * modules/floorf-tests: Likewise.
39174         * modules/floorl-tests: Likewise.
39175         * modules/frexp-nolibm-tests: Likewise.
39176         * modules/frexp-tests: Likewise.
39177         * modules/frexpl-nolibm-tests: Likewise.
39178         * modules/frexpl-tests: Likewise.
39179         * modules/getaddrinfo-tests: Likewise.
39180         * modules/inttypes-tests: Likewise.
39181         * modules/isfinite-tests: Likewise.
39182         * modules/isinf-tests: Likewise.
39183         * modules/ldexpl-tests: Likewise.
39184         * modules/locale-tests: Likewise.
39185         * modules/math-tests: Likewise.
39186         * modules/netdb-tests: Likewise.
39187         * modules/netinet_in-tests: Likewise.
39188         * modules/printf-frexp-tests: Likewise.
39189         * modules/printf-frexpl-tests: Likewise.
39190         * modules/priv-set-tests: Likewise.
39191         * modules/random_r-tests: Likewise.
39192         * modules/round-tests: Likewise.
39193         * modules/roundf-tests: Likewise.
39194         * modules/roundl-tests: Likewise.
39195         * modules/search-tests: Likewise.
39196         * modules/select-tests: Likewise.
39197         * modules/signal-tests: Likewise.
39198         * modules/stdbool-tests: Likewise.
39199         * modules/stddef-tests: Likewise.
39200         * modules/stdint-tests: Likewise.
39201         * modules/stdio-tests: Likewise.
39202         * modules/stdlib-tests: Likewise.
39203         * modules/string-tests: Likewise.
39204         * modules/strings-tests: Likewise.
39205         * modules/sys_select-tests: Likewise.
39206         * modules/sys_socket-tests: Likewise.
39207         * modules/sys_stat-tests: Likewise.
39208         * modules/sys_time-tests: Likewise.
39209         * modules/sys_utsname-tests: Likewise.
39210         * modules/sysexits-tests: Likewise.
39211         * modules/time-tests: Likewise.
39212         * modules/trunc-tests: Likewise.
39213         * modules/truncf-tests: Likewise.
39214         * modules/truncl-tests: Likewise.
39215         * modules/tsearch-tests: Likewise.
39216         * modules/unistd-tests: Likewise.
39217         * modules/wchar-tests: Likewise.
39218         * modules/wctype-tests: Likewise.
39219
39220         tests: fix license on several tests
39221         * tests/test-des.c: Update to GPLv3+.
39222         * tests/test-flock.c: Likewise.
39223         * tests/test-fsync.c: Likewise.
39224         * tests/test-futimens.h: Likewise.
39225         * tests/test-gc-arcfour.c: Likewise.
39226         * tests/test-gc-arctwo.c: Likewise.
39227         * tests/test-gc-des.c: Likewise.
39228         * tests/test-gc-hmac-md5.c: Likewise.
39229         * tests/test-gc-hmac-sha1.c: Likewise.
39230         * tests/test-gc-md2.c: Likewise.
39231         * tests/test-gc-md4.c: Likewise.
39232         * tests/test-gc-md5.c: Likewise.
39233         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39234         * tests/test-gc-rijndael.c: Likewise.
39235         * tests/test-gc-sha1.c: Likewise.
39236         * tests/test-gc.c: Likewise.
39237         * tests/test-getcwd.c: Likewise.
39238         * tests/test-link.c: Likewise.
39239         * tests/test-link.h: Likewise.
39240         * tests/test-lutimens.h: Likewise.
39241         * tests/test-md2.c: Likewise.
39242         * tests/test-md4.c: Likewise.
39243         * tests/test-mkdir.h: Likewise.
39244         * tests/test-rename.c: Likewise.
39245         * tests/test-rename.h: Likewise.
39246         * tests/test-safe-alloc.c: Likewise.
39247         * tests/test-utimens-common.h: Likewise.
39248         * tests/test-utimens.h: Likewise.
39249
39250         maint: sync license texts
39251         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39252         * doc/gpl-3.0.texi: Revert copyright year update.
39253         * doc/lgpl-3.0.texi: Likewise.
39254
39255 2009-12-29  Jim Meyering  <meyering@redhat.com>
39256
39257         update nearly all FSF copyright year lists to include 2009
39258         The files named by the following are exempted:
39259             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39260               test -f "$dst" && { echo "$dst"; continue; }
39261               test -d "$dst" || continue
39262               echo "$dst"/$(basename "$src")
39263             done > exempt
39264             git ls-files tests/unictype >> exempt
39265         In the remaining files, convert to all-interval notation if
39266         - there is already at least one year interval like 2000-2003
39267         - the file is maintained by me
39268         - the file is in lib/uni*/, where that style already prevails
39269         Otherwise, use update-copyright's default.
39270
39271 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39272         and Eric Blake  <ebb9@byu.net>
39273
39274         tests: don't require debug system() to pass
39275         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39276         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39277         * tests/test-unlink.h (test_unlink_func): Likewise.
39278         * tests/test-fstatat.c (main): ...into callers.
39279         * tests/test-lstat.c (main): Likewise.
39280         * tests/test-rmdir.c (main): Likewise.
39281         * tests/test-unlink.c (main): Likewise.
39282         * tests/test-unlinkat.c (main): Likewise.
39283         * tests/test-areadlink-with-size.c (main): Don't require a
39284         debug-only system call to pass, aiding cross-testing to mingw.
39285         * tests/test-areadlink.c (main): Likewise.
39286         * tests/test-areadlinkat-with-size.c (main): Likewise.
39287         * tests/test-areadlinkat.c (main): Likewise.
39288         * tests/test-canonicalize-lgpl.c (main): Likewise.
39289         * tests/test-canonicalize.c (main): Likewise.
39290         * tests/test-chown.c (main): Likewise.
39291         * tests/test-fchownat.c (main): Likewise.
39292         * tests/test-lchown.c (main): Likewise.
39293         * tests/test-fdutimensat.c (main): Likewise.
39294         * tests/test-futimens.c (main): Likewise.
39295         * tests/test-link.c (main): Likewise.
39296         * tests/test-linkat.c (main): Likewise.
39297         * tests/test-mkdir.c (main): Likewise.
39298         * tests/test-mkdirat.c (main): Likewise.
39299         * tests/test-mkfifo.c (main): Likewise.
39300         * tests/test-mkfifoat.c (main): Likewise.
39301         * tests/test-mknod.c (main): Likewise.
39302         * tests/test-readlink.c (main): Likewise.
39303         * tests/test-remove.c (main): Likewise.
39304         * tests/test-rename.c (main): Likewise.
39305         * tests/test-renameat.c (main): Likewise.
39306         * tests/test-symlink.c (main): Likewise.
39307         * tests/test-symlinkat.c (main): Likewise.
39308         * tests/test-utimens.c (main): Likewise.
39309         * tests/test-utimensat.c (main): Likewise.
39310
39311 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39312
39313         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39314         on $(UNUSED_PARAMETER_H) to avoid build failure.
39315
39316 2009-12-28  Jim Meyering  <meyering@redhat.com>
39317
39318         update-copyright: you may specify a max. line length other than 72
39319         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39320
39321         maint: use consistent FSF copyright line syntax
39322         * lib/posixtm.c: Add missing comma in FSF copyright line.
39323         * lib/posixtm.h: Likewise.
39324         * lib/getugroups.c: Add missing ", Inc.".
39325
39326         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39327         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39328         FSF copyright line.  Remove trailing blanks.
39329
39330 2009-12-28  Eric Blake  <ebb9@byu.net>
39331
39332         test-dup2: reduce dependencies
39333         * modules/cloexec (Configure.ac): Set witness.
39334         * modules/dup2-tests (Depends-on): Drop cloexec.
39335         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39336         not present.
39337         Suggested by Bruno Haible.
39338
39339 2009-12-26  Bruno Haible  <bruno@clisp.org>
39340
39341         Remove an unneeded dependency.
39342         * modules/fseterr (Depends-on): Remove dup2.
39343
39344 2009-12-26  Eric Blake  <ebb9@byu.net>
39345
39346         tests: use macros.h in more places
39347         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39348         (ASSERT_STREAM): Provide default of stderr.
39349         * tests/test-dirent-safer.c: Include macros.h, using alternate
39350         stream for assertions.
39351         * tests/test-dup-safer.c: Likewise.
39352         * tests/test-freopen-safer.c: Likewise.
39353         * tests/test-getopt.c: Likewise.
39354         * tests/test-openat-safer.c: Likewise.
39355         * tests/test-pipe.c: Likewise.
39356         * tests/test-popen-safer.c: Likewise.
39357         * modules/dirent-safer-tests (Files): Include macros.h.
39358         * modules/unistd-safer-tests (Files): Likewise.
39359         * modules/freopen-safer-tests (Files): Likewise.
39360         * modules/getopt-posix-tests (Files): Likewise.
39361         * modules/openat-safer-tests (Files): Likewise.
39362         * modules/pipe-tests (Files): Likewise.
39363
39364 2009-12-26  Bruno Haible  <bruno@clisp.org>
39365
39366         javacomp: Portability fix.
39367         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39368         that it also works on Solaris.
39369
39370 2009-12-26  Bruno Haible  <bruno@clisp.org>
39371
39372         localename: Fix storage allocation of gl_locale_name_thread's result.
39373         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39374         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39375         all platforms that have 'uselocale'.
39376         (gl_locale_name_thread_unsafe): New function, extracted from
39377         gl_locale_name_thread.
39378         (gl_locale_name_thread): Call struniq on all platforms that have
39379         'uselocale'.
39380         * tests/test-localename.c (test_locale_name_thread): Check that the
39381         resulting strings are permanently allocated.
39382         * modules/localename-tests (Depends-on): Add strdup.
39383
39384 2009-12-26  Bruno Haible  <bruno@clisp.org>
39385
39386         * tests/test-localename.c (categories): Fill in the strings.
39387
39388 2009-12-26  Jim Meyering  <meyering@redhat.com>
39389
39390         isdir: complete the removal of m4/isdir.m4
39391         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39392
39393         isdir: clean up, since at least grep still uses it
39394         * lib/isdir.c: Include "isdir.h".
39395         (S_ISDIR): Remove now-unneeded definition.
39396         * modules/isdir (Files): Add lib/isdir.h.
39397         * lib/isdir.h: New file, with declaration.
39398         * m4/isdir.m4: Remove file -- unneeded.
39399
39400 2009-12-25  Bruno Haible  <bruno@clisp.org>
39401
39402         selinux-h: Make generated .h files standalone.
39403         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39404         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39405         * lib/se-selinux.in.h: Likewise.
39406         * modules/selinux-h (Depends-on): Add unused-parameter.
39407         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39408         selinux/selinux.h and selinux/context.h.
39409         Suggested by Eric Blake.
39410
39411 2009-12-25  Bruno Haible  <bruno@clisp.org>
39412
39413         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39414         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39415         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39416         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39417         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39418
39419 2009-12-24  Bruno Haible  <bruno@clisp.org>
39420
39421         openat: Fix warning.
39422         * lib/openat-proc.c: Include <unistd.h>.
39423
39424 2009-12-24  Bruno Haible  <bruno@clisp.org>
39425
39426         New module 'unused-parameter'.
39427         * build-aux/unused-parameter.h: New file, extracted from earlier
39428         gnulib-common.m4.
39429         * modules/unused-parameter: New file.
39430         * lib/unistr.h: Include unused-parameter.h.
39431         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39432         _GL_UNUSED.
39433         * modules/unistr/base (Depends-on): Add unused-parameter.
39434
39435 2009-12-24  Bruno Haible  <bruno@clisp.org>
39436
39437         Add missing dependencies to 'extensions' module.
39438         * m4/extensions.m4: Add comment.
39439         * modules/accept4 (Depends-on): Add extensions.
39440         * modules/dup3 (Depends-on): Likewise.
39441         * modules/fcntl (Depends-on): Likewise.
39442         * modules/futimens (Depends-on): Likewise.
39443         * modules/mknod (Depends-on): Likewise.
39444         * modules/pipe2 (Depends-on): Likewise.
39445         * modules/stat-time (Depends-on): Likewise.
39446         * modules/strcasestr-simple (Depends-on): Likewise.
39447         * modules/strsignal (Depends-on): Likewise.
39448         * modules/utimensat (Depends-on): Likewise.
39449         * modules/localcharset (Depends-on): Likewise. Needed because of
39450         gl_FCNTL_O_FLAGS.
39451         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39452         AC_TYPE_MBSTATE_T.
39453         * modules/wcsnrtombs (Depends-on): Likewise.
39454         * modules/wcsrtombs (Depends-on): Likewise.
39455
39456 2009-12-24  Bruno Haible  <bruno@clisp.org>
39457
39458         binary-io: Avoid gcc warning due to SET_BINARY.
39459         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39460         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39461
39462 2009-12-24  Bruno Haible  <bruno@clisp.org>
39463
39464         Avoid future namespace pollution on glibc systems.
39465         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39466         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39467         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39468         glibc systems.
39469
39470 2009-12-24  Bruno Haible  <bruno@clisp.org>
39471
39472         Refactor common macros used in tests.
39473         * tests/macros.h: New file.
39474         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39475         and/or <stdlib.h>, if appropriate.
39476         (ASSERT, SIZEOF): Remove macros.
39477         * tests/test-areadlink-with-size.c: Likewise.
39478         * tests/test-areadlinkat.c: Likewise.
39479         * tests/test-areadlinkat-with-size.c: Likewise.
39480         * tests/test-argmatch.c: Likewise.
39481         * tests/test-argv-iter.c: Likewise.
39482         * tests/test-array-mergesort.c: Likewise.
39483         * tests/test-array_list.c: Likewise.
39484         * tests/test-array_oset.c: Likewise.
39485         * tests/test-avltree_list.c: Likewise.
39486         * tests/test-avltree_oset.c: Likewise.
39487         * tests/test-avltreehash_list.c: Likewise.
39488         * tests/test-base64.c: Likewise.
39489         * tests/test-binary-io.c: Likewise.
39490         * tests/test-bitrotate.c: Likewise.
39491         * tests/test-btowc.c: Likewise.
39492         * tests/test-byteswap.c: Likewise.
39493         * tests/test-c-ctype.c: Likewise.
39494         * tests/test-c-stack.c: Likewise.
39495         * tests/test-c-strcasecmp.c: Likewise.
39496         * tests/test-c-strcasestr.c: Likewise.
39497         * tests/test-c-strncasecmp.c: Likewise.
39498         * tests/test-c-strstr.c: Likewise.
39499         * tests/test-canonicalize-lgpl.c: Likewise.
39500         * tests/test-canonicalize.c: Likewise.
39501         * tests/test-carray_list.c: Likewise.
39502         * tests/test-ceilf1.c: Likewise.
39503         * tests/test-ceilf2.c: Likewise.
39504         * tests/test-ceill.c: Likewise.
39505         * tests/test-chown.c: Likewise.
39506         * tests/test-cloexec.c: Likewise.
39507         * tests/test-copy-acl.c: Likewise.
39508         * tests/test-copy-file.c: Likewise.
39509         * tests/test-count-one-bits.c: Likewise.
39510         * tests/test-dprintf-posix.c: Likewise.
39511         * tests/test-dup2.c: Likewise.
39512         * tests/test-dup3.c: Likewise.
39513         * tests/test-duplocale.c: Likewise.
39514         * tests/test-fbufmode.c: Likewise.
39515         * tests/test-fchdir.c: Likewise.
39516         * tests/test-fchownat.c: Likewise.
39517         * tests/test-fcntl-safer.c: Likewise.
39518         * tests/test-fcntl.c: Likewise.
39519         * tests/test-fdopendir.c: Likewise.
39520         * tests/test-fdutimensat.c: Likewise.
39521         * tests/test-fflush2.c: Likewise.
39522         * tests/test-file-has-acl.c: Likewise.
39523         * tests/test-filevercmp.c: Likewise.
39524         * tests/test-flock.c: Likewise.
39525         * tests/test-floorf1.c: Likewise.
39526         * tests/test-floorf2.c: Likewise.
39527         * tests/test-floorl.c: Likewise.
39528         * tests/test-fnmatch.c: Likewise.
39529         * tests/test-fopen.h: Likewise.
39530         * tests/test-fpending.c: Likewise.
39531         * tests/test-fprintf-posix.c: Likewise.
39532         * tests/test-fpurge.c: Likewise.
39533         * tests/test-freadable.c: Likewise.
39534         * tests/test-freadahead.c: Likewise.
39535         * tests/test-freading.c: Likewise.
39536         * tests/test-freadptr.c: Likewise.
39537         * tests/test-freadptr2.c: Likewise.
39538         * tests/test-freadseek.c: Likewise.
39539         * tests/test-freopen.c: Likewise.
39540         * tests/test-frexp.c: Likewise.
39541         * tests/test-frexpl.c: Likewise.
39542         * tests/test-fseek.c: Likewise.
39543         * tests/test-fseeko.c: Likewise.
39544         * tests/test-fstatat.c: Likewise.
39545         * tests/test-fstrcmp.c: Likewise.
39546         * tests/test-fsync.c: Likewise.
39547         * tests/test-ftell.c: Likewise.
39548         * tests/test-ftello.c: Likewise.
39549         * tests/test-func.c: Likewise.
39550         * tests/test-futimens.c: Likewise.
39551         * tests/test-fwritable.c: Likewise.
39552         * tests/test-fwriting.c: Likewise.
39553         * tests/test-getcwd.c: Likewise.
39554         * tests/test-getdate.c: Likewise.
39555         * tests/test-getdelim.c: Likewise.
39556         * tests/test-getdtablesize.c: Likewise.
39557         * tests/test-getgroups.c: Likewise.
39558         * tests/test-getline.c: Likewise.
39559         * tests/test-getndelim2.c: Likewise.
39560         * tests/test-glob.c: Likewise.
39561         * tests/test-hash.c: Likewise.
39562         * tests/test-i-ring.c: Likewise.
39563         * tests/test-iconv-utf.c: Likewise.
39564         * tests/test-iconv.c: Likewise.
39565         * tests/test-idpriv-drop.c: Likewise.
39566         * tests/test-idpriv-droptemp.c: Likewise.
39567         * tests/test-inet_ntop.c: Likewise.
39568         * tests/test-inet_pton.c: Likewise.
39569         * tests/test-isblank.c: Likewise.
39570         * tests/test-isfinite.c: Likewise.
39571         * tests/test-isinf.c: Likewise.
39572         * tests/test-isnan.c: Likewise.
39573         * tests/test-isnand.h: Likewise.
39574         * tests/test-isnanf.h: Likewise.
39575         * tests/test-isnanl.h: Likewise.
39576         * tests/test-lchown.c: Likewise.
39577         * tests/test-ldexpl.c: Likewise.
39578         * tests/test-link.c: Likewise.
39579         * tests/test-linkat.c: Likewise.
39580         * tests/test-linked_list.c: Likewise.
39581         * tests/test-linkedhash_list.c: Likewise.
39582         * tests/test-localename.c: Likewise.
39583         * tests/test-lseek.c: Likewise.
39584         * tests/test-lstat.c: Likewise.
39585         * tests/test-mbmemcasecmp.c: Likewise.
39586         * tests/test-mbmemcasecoll.c: Likewise.
39587         * tests/test-mbrtowc.c: Likewise.
39588         * tests/test-mbscasecmp.c: Likewise.
39589         * tests/test-mbscasestr1.c: Likewise.
39590         * tests/test-mbscasestr2.c: Likewise.
39591         * tests/test-mbscasestr3.c: Likewise.
39592         * tests/test-mbscasestr4.c: Likewise.
39593         * tests/test-mbschr.c: Likewise.
39594         * tests/test-mbscspn.c: Likewise.
39595         * tests/test-mbsinit.c: Likewise.
39596         * tests/test-mbsncasecmp.c: Likewise.
39597         * tests/test-mbsnrtowcs.c: Likewise.
39598         * tests/test-mbspbrk.c: Likewise.
39599         * tests/test-mbspcasecmp.c: Likewise.
39600         * tests/test-mbsrchr.c: Likewise.
39601         * tests/test-mbsrtowcs.c: Likewise.
39602         * tests/test-mbsspn.c: Likewise.
39603         * tests/test-mbsstr1.c: Likewise.
39604         * tests/test-mbsstr2.c: Likewise.
39605         * tests/test-mbsstr3.c: Likewise.
39606         * tests/test-memchr.c: Likewise.
39607         * tests/test-memchr2.c: Likewise.
39608         * tests/test-memcmp.c: Likewise.
39609         * tests/test-memmem.c: Likewise.
39610         * tests/test-memrchr.c: Likewise.
39611         * tests/test-mkdir.c: Likewise.
39612         * tests/test-mkdirat.c: Likewise.
39613         * tests/test-mkfifo.c: Likewise.
39614         * tests/test-mkfifoat.c: Likewise.
39615         * tests/test-mknod.c: Likewise.
39616         * tests/test-nanosleep.c: Likewise.
39617         * tests/test-nl_langinfo.c: Likewise.
39618         * tests/test-obstack-printf.c: Likewise.
39619         * tests/test-open.c: Likewise.
39620         * tests/test-openat.c: Likewise.
39621         * tests/test-pipe-filter-gi1.c: Likewise.
39622         * tests/test-pipe-filter-gi2-main.c: Likewise.
39623         * tests/test-pipe-filter-ii1.c: Likewise.
39624         * tests/test-pipe-filter-ii2-main.c: Likewise.
39625         * tests/test-pipe2.c: Likewise.
39626         * tests/test-popen.h: Likewise.
39627         * tests/test-posixtm.c: Likewise.
39628         * tests/test-pread.c: Likewise.
39629         * tests/test-printf-frexp.c: Likewise.
39630         * tests/test-printf-frexpl.c: Likewise.
39631         * tests/test-printf-posix.c: Likewise.
39632         * tests/test-priv-set.c: Likewise.
39633         * tests/test-quotearg.c: Likewise.
39634         * tests/test-random_r.c: Likewise.
39635         * tests/test-rawmemchr.c: Likewise.
39636         * tests/test-rbtree_list.c: Likewise.
39637         * tests/test-rbtree_oset.c: Likewise.
39638         * tests/test-rbtreehash_list.c: Likewise.
39639         * tests/test-readlink.c: Likewise.
39640         * tests/test-remove.c: Likewise.
39641         * tests/test-rename.c: Likewise.
39642         * tests/test-renameat.c: Likewise.
39643         * tests/test-rmdir.c: Likewise.
39644         * tests/test-round1.c: Likewise.
39645         * tests/test-roundf1.c: Likewise.
39646         * tests/test-roundl.c: Likewise.
39647         * tests/test-safe-alloc.c: Likewise.
39648         * tests/test-sameacls.c: Likewise.
39649         * tests/test-set-mode-acl.c: Likewise.
39650         * tests/test-setenv.c: Likewise.
39651         * tests/test-sigaction.c: Likewise.
39652         * tests/test-signbit.c: Likewise.
39653         * tests/test-sleep.c: Likewise.
39654         * tests/test-snprintf-posix.c: Likewise.
39655         * tests/test-snprintf.c: Likewise.
39656         * tests/test-sprintf-posix.c: Likewise.
39657         * tests/test-stat-time.c: Likewise.
39658         * tests/test-stat.c: Likewise.
39659         * tests/test-strcasestr.c: Likewise.
39660         * tests/test-strchrnul.c: Likewise.
39661         * tests/test-strerror.c: Likewise.
39662         * tests/test-striconv.c: Likewise.
39663         * tests/test-striconveh.c: Likewise.
39664         * tests/test-striconveha.c: Likewise.
39665         * tests/test-strsignal.c: Likewise.
39666         * tests/test-strstr.c: Likewise.
39667         * tests/test-strtod.c: Likewise.
39668         * tests/test-strverscmp.c: Likewise.
39669         * tests/test-symlink.c: Likewise.
39670         * tests/test-symlinkat.c: Likewise.
39671         * tests/test-trunc1.c: Likewise.
39672         * tests/test-trunc2.c: Likewise.
39673         * tests/test-truncf1.c: Likewise.
39674         * tests/test-truncf2.c: Likewise.
39675         * tests/test-truncl.c: Likewise.
39676         * tests/test-uname.c: Likewise.
39677         * tests/test-unlink.c: Likewise.
39678         * tests/test-unlinkat.c: Likewise.
39679         * tests/test-unsetenv.c: Likewise.
39680         * tests/test-usleep.c: Likewise.
39681         * tests/test-utimens.c: Likewise.
39682         * tests/test-utimensat.c: Likewise.
39683         * tests/test-vasnprintf-posix.c: Likewise.
39684         * tests/test-vasnprintf-posix2.c: Likewise.
39685         * tests/test-vasnprintf.c: Likewise.
39686         * tests/test-vasprintf-posix.c: Likewise.
39687         * tests/test-vasprintf.c: Likewise.
39688         * tests/test-vdprintf-posix.c: Likewise.
39689         * tests/test-vfprintf-posix.c: Likewise.
39690         * tests/test-vprintf-posix.c: Likewise.
39691         * tests/test-vsnprintf-posix.c: Likewise.
39692         * tests/test-vsnprintf.c: Likewise.
39693         * tests/test-vsprintf-posix.c: Likewise.
39694         * tests/test-wcrtomb.c: Likewise.
39695         * tests/test-wcsnrtombs.c: Likewise.
39696         * tests/test-wcsrtombs.c: Likewise.
39697         * tests/test-wctype.c: Likewise.
39698         * tests/test-wcwidth.c: Likewise.
39699         * tests/test-xfprintf-posix.c: Likewise.
39700         * tests/test-xmemdup0.c: Likewise.
39701         * tests/test-xprintf-posix.c: Likewise.
39702         * tests/test-xvasprintf.c: Likewise.
39703         * tests/unicase/test-locale-language.c: Likewise.
39704         * tests/unicase/test-mapping-part1.h: Likewise.
39705         * tests/unicase/test-predicate-part1.h: Likewise.
39706         * tests/unicase/test-u8-casecmp.c: Likewise.
39707         * tests/unicase/test-u8-casecoll.c: Likewise.
39708         * tests/unicase/test-u8-casefold.c: Likewise.
39709         * tests/unicase/test-u8-is-cased.c: Likewise.
39710         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39711         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39712         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39713         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39714         * tests/unicase/test-u8-tolower.c: Likewise.
39715         * tests/unicase/test-u8-totitle.c: Likewise.
39716         * tests/unicase/test-u8-toupper.c: Likewise.
39717         * tests/unicase/test-u16-casecmp.c: Likewise.
39718         * tests/unicase/test-u16-casecoll.c: Likewise.
39719         * tests/unicase/test-u16-casefold.c: Likewise.
39720         * tests/unicase/test-u16-is-cased.c: Likewise.
39721         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39722         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39723         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39724         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39725         * tests/unicase/test-u16-tolower.c: Likewise.
39726         * tests/unicase/test-u16-totitle.c: Likewise.
39727         * tests/unicase/test-u16-toupper.c: Likewise.
39728         * tests/unicase/test-u32-casecmp.c: Likewise.
39729         * tests/unicase/test-u32-casecoll.c: Likewise.
39730         * tests/unicase/test-u32-casefold.c: Likewise.
39731         * tests/unicase/test-u32-is-cased.c: Likewise.
39732         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39733         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39734         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39735         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39736         * tests/unicase/test-u32-tolower.c: Likewise.
39737         * tests/unicase/test-u32-totitle.c: Likewise.
39738         * tests/unicase/test-u32-toupper.c: Likewise.
39739         * tests/unicase/test-ulc-casecmp.c: Likewise.
39740         * tests/unicase/test-ulc-casecoll.c: Likewise.
39741         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39742         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39743         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39744         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39745         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39746         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39747         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39748         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39749         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39750         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39751         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39752         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39753         * tests/unictype/test-bidi_byname.c: Likewise.
39754         * tests/unictype/test-bidi_name.c: Likewise.
39755         * tests/unictype/test-bidi_of.c: Likewise.
39756         * tests/unictype/test-bidi_test.c: Likewise.
39757         * tests/unictype/test-block_list.c: Likewise.
39758         * tests/unictype/test-block_of.c: Likewise.
39759         * tests/unictype/test-block_test.c: Likewise.
39760         * tests/unictype/test-categ_and.c: Likewise.
39761         * tests/unictype/test-categ_and_not.c: Likewise.
39762         * tests/unictype/test-categ_byname.c: Likewise.
39763         * tests/unictype/test-categ_name.c: Likewise.
39764         * tests/unictype/test-categ_none.c: Likewise.
39765         * tests/unictype/test-categ_of.c: Likewise.
39766         * tests/unictype/test-categ_or.c: Likewise.
39767         * tests/unictype/test-categ_test_withtable.c: Likewise.
39768         * tests/unictype/test-combining.c: Likewise.
39769         * tests/unictype/test-decdigit.c: Likewise.
39770         * tests/unictype/test-digit.c: Likewise.
39771         * tests/unictype/test-mirror.c: Likewise.
39772         * tests/unictype/test-numeric.c: Likewise.
39773         * tests/unictype/test-pr_byname.c: Likewise.
39774         * tests/unictype/test-pr_test.c: Likewise.
39775         * tests/unictype/test-predicate-part1.h: Likewise.
39776         * tests/unictype/test-scripts.c: Likewise.
39777         * tests/unictype/test-sy_c_ident.c: Likewise.
39778         * tests/unictype/test-sy_java_ident.c: Likewise.
39779         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39780         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39781         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39782         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39783         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39784         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39785         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39786         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39787         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39788         * tests/uninorm/test-compat-decomposition.c: Likewise.
39789         * tests/uninorm/test-composition.c: Likewise.
39790         * tests/uninorm/test-decomposing-form.c: Likewise.
39791         * tests/uninorm/test-decomposition.c: Likewise.
39792         * tests/uninorm/test-u8-nfc.c: Likewise.
39793         * tests/uninorm/test-u8-nfd.c: Likewise.
39794         * tests/uninorm/test-u8-nfkc.c: Likewise.
39795         * tests/uninorm/test-u8-nfkd.c: Likewise.
39796         * tests/uninorm/test-u8-normcmp.c: Likewise.
39797         * tests/uninorm/test-u8-normcoll.c: Likewise.
39798         * tests/uninorm/test-u16-nfc.c: Likewise.
39799         * tests/uninorm/test-u16-nfd.c: Likewise.
39800         * tests/uninorm/test-u16-nfkc.c: Likewise.
39801         * tests/uninorm/test-u16-nfkd.c: Likewise.
39802         * tests/uninorm/test-u16-normcmp.c: Likewise.
39803         * tests/uninorm/test-u16-normcoll.c: Likewise.
39804         * tests/uninorm/test-u32-nfc.c: Likewise.
39805         * tests/uninorm/test-u32-nfd.c: Likewise.
39806         * tests/uninorm/test-u32-nfkc.c: Likewise.
39807         * tests/uninorm/test-u32-nfkd.c: Likewise.
39808         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39809         * tests/uninorm/test-u32-normcmp.c: Likewise.
39810         * tests/uninorm/test-u32-normcoll.c: Likewise.
39811         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39812         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39813         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39814         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39815         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39816         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39817         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39818         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39819         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39820         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39821         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39822         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39823         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39824         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39825         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39826         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39827         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39828         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39829         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39830         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39831         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39832         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39833         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39834         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39835         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39836         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39837         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39838         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39839         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39840         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39841         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39842         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39843         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39844         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39845         * tests/uniwidth/test-u8-width.c: Likewise.
39846         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39847         * tests/uniwidth/test-u16-width.c: Likewise.
39848         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39849         * tests/uniwidth/test-u32-width.c: Likewise.
39850         * tests/uniwidth/test-uc_width.c: Likewise.
39851         * tests/uniwidth/test-uc_width2.c: Likewise.
39852         * modules/acl-tests (Files): Add tests/macros.h.
39853         * modules/areadlink-tests (Files): Likewise.
39854         * modules/areadlink-with-size-tests (Files): Likewise.
39855         * modules/areadlinkat-tests (Files): Likewise.
39856         * modules/areadlinkat-with-size-tests (Files): Likewise.
39857         * modules/argmatch-tests (Files): Likewise.
39858         * modules/argv-iter-tests (Files): Likewise.
39859         * modules/array-list-tests (Files): Likewise.
39860         * modules/array-mergesort-tests (Files): Likewise.
39861         * modules/array-oset-tests (Files): Likewise.
39862         * modules/avltree-list-tests (Files): Likewise.
39863         * modules/avltree-oset-tests (Files): Likewise.
39864         * modules/avltreehash-list-tests (Files): Likewise.
39865         * modules/base64-tests (Files): Likewise.
39866         * modules/binary-io-tests (Files): Likewise.
39867         * modules/bitrotate-tests (Files): Likewise.
39868         * modules/btowc-tests (Files): Likewise.
39869         * modules/byteswap-tests (Files): Likewise.
39870         * modules/c-ctype-tests (Files): Likewise.
39871         * modules/c-stack-tests (Files): Likewise.
39872         * modules/c-strcase-tests (Files): Likewise.
39873         * modules/c-strcasestr-tests (Files): Likewise.
39874         * modules/c-strstr-tests (Files): Likewise.
39875         * modules/canonicalize-lgpl-tests (Files): Likewise.
39876         * modules/canonicalize-tests (Files): Likewise.
39877         * modules/carray-list-tests (Files): Likewise.
39878         * modules/ceilf-tests (Files): Likewise.
39879         * modules/ceill-tests (Files): Likewise.
39880         * modules/chown-tests (Files): Likewise.
39881         * modules/cloexec-tests (Files): Likewise.
39882         * modules/copy-file-tests (Files): Likewise.
39883         * modules/count-one-bits-tests (Files): Likewise.
39884         * modules/dprintf-posix-tests (Files): Likewise.
39885         * modules/dup2-tests (Files): Likewise.
39886         * modules/dup3-tests (Files): Likewise.
39887         * modules/duplocale-tests (Files): Likewise.
39888         * modules/fbufmode-tests (Files): Likewise.
39889         * modules/fchdir-tests (Files): Likewise.
39890         * modules/fcntl-safer-tests (Files): Likewise.
39891         * modules/fcntl-tests (Files): Likewise.
39892         * modules/fdopendir-tests (Files): Likewise.
39893         * modules/fdutimensat-tests (Files): Likewise.
39894         * modules/fflush-tests (Files): Likewise.
39895         * modules/filevercmp-tests (Files): Likewise.
39896         * modules/flock-tests (Files): Likewise.
39897         * modules/floorf-tests (Files): Likewise.
39898         * modules/floorl-tests (Files): Likewise.
39899         * modules/fnmatch-tests (Files): Likewise.
39900         * modules/fopen-safer-tests (Files): Likewise.
39901         * modules/fopen-tests (Files): Likewise.
39902         * modules/fpending-tests (Files): Likewise.
39903         * modules/fprintf-posix-tests (Files): Likewise.
39904         * modules/fpurge-tests (Files): Likewise.
39905         * modules/freadable-tests (Files): Likewise.
39906         * modules/freadahead-tests (Files): Likewise.
39907         * modules/freading-tests (Files): Likewise.
39908         * modules/freadptr-tests (Files): Likewise.
39909         * modules/freadseek-tests (Files): Likewise.
39910         * modules/freopen-tests (Files): Likewise.
39911         * modules/frexp-nolibm-tests (Files): Likewise.
39912         * modules/frexp-tests (Files): Likewise.
39913         * modules/frexpl-nolibm-tests (Files): Likewise.
39914         * modules/frexpl-tests (Files): Likewise.
39915         * modules/fseek-tests (Files): Likewise.
39916         * modules/fseeko-tests (Files): Likewise.
39917         * modules/fstrcmp-tests (Files): Likewise.
39918         * modules/fsync-tests (Files): Likewise.
39919         * modules/ftell-tests (Files): Likewise.
39920         * modules/ftello-tests (Files): Likewise.
39921         * modules/func-tests (Files): Likewise.
39922         * modules/futimens-tests (Files): Likewise.
39923         * modules/fwritable-tests (Files): Likewise.
39924         * modules/fwriting-tests (Files): Likewise.
39925         * modules/getcwd-tests (Files): Likewise.
39926         * modules/getdate-tests (Files): Likewise.
39927         * modules/getdelim-tests (Files): Likewise.
39928         * modules/getdtablesize-tests (Files): Likewise.
39929         * modules/getgroups-tests (Files): Likewise.
39930         * modules/getline-tests (Files): Likewise.
39931         * modules/getndelim2-tests (Files): Likewise.
39932         * modules/glob-tests (Files): Likewise.
39933         * modules/hash-tests (Files): Likewise.
39934         * modules/i-ring-tests (Files): Likewise.
39935         * modules/iconv-tests (Files): Likewise.
39936         * modules/iconv_open-utf-tests (Files): Likewise.
39937         * modules/idpriv-drop-tests (Files): Likewise.
39938         * modules/idpriv-droptemp-tests (Files): Likewise.
39939         * modules/inet_ntop-tests (Files): Likewise.
39940         * modules/inet_pton-tests (Files): Likewise.
39941         * modules/isblank-tests (Files): Likewise.
39942         * modules/isfinite-tests (Files): Likewise.
39943         * modules/isinf-tests (Files): Likewise.
39944         * modules/isnan-tests (Files): Likewise.
39945         * modules/isnand-nolibm-tests (Files): Likewise.
39946         * modules/isnand-tests (Files): Likewise.
39947         * modules/isnanf-nolibm-tests (Files): Likewise.
39948         * modules/isnanf-tests (Files): Likewise.
39949         * modules/isnanl-nolibm-tests (Files): Likewise.
39950         * modules/isnanl-tests (Files): Likewise.
39951         * modules/lchown-tests (Files): Likewise.
39952         * modules/ldexpl-tests (Files): Likewise.
39953         * modules/link-tests (Files): Likewise.
39954         * modules/linkat-tests (Files): Likewise.
39955         * modules/linked-list-tests (Files): Likewise.
39956         * modules/linkedhash-list-tests (Files): Likewise.
39957         * modules/localename-tests (Files): Likewise.
39958         * modules/lseek-tests (Files): Likewise.
39959         * modules/lstat-tests (Files): Likewise.
39960         * modules/mbmemcasecmp-tests (Files): Likewise.
39961         * modules/mbmemcasecoll-tests (Files): Likewise.
39962         * modules/mbrtowc-tests (Files): Likewise.
39963         * modules/mbscasecmp-tests (Files): Likewise.
39964         * modules/mbscasestr-tests (Files): Likewise.
39965         * modules/mbschr-tests (Files): Likewise.
39966         * modules/mbscspn-tests (Files): Likewise.
39967         * modules/mbsinit-tests (Files): Likewise.
39968         * modules/mbsncasecmp-tests (Files): Likewise.
39969         * modules/mbsnrtowcs-tests (Files): Likewise.
39970         * modules/mbspbrk-tests (Files): Likewise.
39971         * modules/mbspcasecmp-tests (Files): Likewise.
39972         * modules/mbsrchr-tests (Files): Likewise.
39973         * modules/mbsrtowcs-tests (Files): Likewise.
39974         * modules/mbsspn-tests (Files): Likewise.
39975         * modules/mbsstr-tests (Files): Likewise.
39976         * modules/memchr-tests (Files): Likewise.
39977         * modules/memchr2-tests (Files): Likewise.
39978         * modules/memcmp-tests (Files): Likewise.
39979         * modules/memmem-tests (Files): Likewise.
39980         * modules/memrchr-tests (Files): Likewise.
39981         * modules/mkdir-tests (Files): Likewise.
39982         * modules/mkfifo-tests (Files): Likewise.
39983         * modules/mkfifoat-tests (Files): Likewise.
39984         * modules/mknod-tests (Files): Likewise.
39985         * modules/nanosleep-tests (Files): Likewise.
39986         * modules/nl_langinfo-tests (Files): Likewise.
39987         * modules/obstack-printf-tests (Files): Likewise.
39988         * modules/open-tests (Files): Likewise.
39989         * modules/openat-tests (Files): Likewise.
39990         * modules/pipe-filter-gi-tests (Files): Likewise.
39991         * modules/pipe-filter-ii-tests (Files): Likewise.
39992         * modules/pipe2-tests (Files): Likewise.
39993         * modules/popen-safer-tests (Files): Likewise.
39994         * modules/popen-tests (Files): Likewise.
39995         * modules/posixtm-tests (Files): Likewise.
39996         * modules/pread-tests (Files): Likewise.
39997         * modules/printf-frexp-tests (Files): Likewise.
39998         * modules/printf-frexpl-tests (Files): Likewise.
39999         * modules/printf-posix-tests (Files): Likewise.
40000         * modules/priv-set-tests (Files): Likewise.
40001         * modules/quotearg-tests (Files): Likewise.
40002         * modules/random_r-tests (Files): Likewise.
40003         * modules/rawmemchr-tests (Files): Likewise.
40004         * modules/rbtree-list-tests (Files): Likewise.
40005         * modules/rbtree-oset-tests (Files): Likewise.
40006         * modules/rbtreehash-list-tests (Files): Likewise.
40007         * modules/readlink-tests (Files): Likewise.
40008         * modules/remove-tests (Files): Likewise.
40009         * modules/rename-tests (Files): Likewise.
40010         * modules/renameat-tests (Files): Likewise.
40011         * modules/rmdir-tests (Files): Likewise.
40012         * modules/round-tests (Files): Likewise.
40013         * modules/roundf-tests (Files): Likewise.
40014         * modules/roundl-tests (Files): Likewise.
40015         * modules/safe-alloc-tests (Files): Likewise.
40016         * modules/setenv-tests (Files): Likewise.
40017         * modules/sigaction-tests (Files): Likewise.
40018         * modules/signbit-tests (Files): Likewise.
40019         * modules/sleep-tests (Files): Likewise.
40020         * modules/snprintf-posix-tests (Files): Likewise.
40021         * modules/snprintf-tests (Files): Likewise.
40022         * modules/sprintf-posix-tests (Files): Likewise.
40023         * modules/stat-tests (Files): Likewise.
40024         * modules/stat-time-tests (Files): Likewise.
40025         * modules/strcasestr-tests (Files): Likewise.
40026         * modules/strchrnul-tests (Files): Likewise.
40027         * modules/strerror-tests (Files): Likewise.
40028         * modules/striconv-tests (Files): Likewise.
40029         * modules/striconveh-tests (Files): Likewise.
40030         * modules/striconveha-tests (Files): Likewise.
40031         * modules/strsignal-tests (Files): Likewise.
40032         * modules/strstr-tests (Files): Likewise.
40033         * modules/strtod-tests (Files): Likewise.
40034         * modules/strverscmp-tests (Files): Likewise.
40035         * modules/symlink-tests (Files): Likewise.
40036         * modules/symlinkat-tests (Files): Likewise.
40037         * modules/trunc-tests (Files): Likewise.
40038         * modules/truncf-tests (Files): Likewise.
40039         * modules/truncl-tests (Files): Likewise.
40040         * modules/uname-tests (Files): Likewise.
40041         * modules/unicase/cased-tests (Files): Likewise.
40042         * modules/unicase/ignorable-tests (Files): Likewise.
40043         * modules/unicase/locale-language-tests (Files): Likewise.
40044         * modules/unicase/tolower-tests (Files): Likewise.
40045         * modules/unicase/totitle-tests (Files): Likewise.
40046         * modules/unicase/toupper-tests (Files): Likewise.
40047         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40048         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40049         * modules/unicase/u8-casefold-tests (Files): Likewise.
40050         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40051         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40052         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40053         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40054         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40055         * modules/unicase/u8-tolower-tests (Files): Likewise.
40056         * modules/unicase/u8-totitle-tests (Files): Likewise.
40057         * modules/unicase/u8-toupper-tests (Files): Likewise.
40058         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40059         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40060         * modules/unicase/u16-casefold-tests (Files): Likewise.
40061         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40062         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40063         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40064         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40065         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40066         * modules/unicase/u16-tolower-tests (Files): Likewise.
40067         * modules/unicase/u16-totitle-tests (Files): Likewise.
40068         * modules/unicase/u16-toupper-tests (Files): Likewise.
40069         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40070         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40071         * modules/unicase/u32-casefold-tests (Files): Likewise.
40072         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40073         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40074         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40075         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40076         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40077         * modules/unicase/u32-tolower-tests (Files): Likewise.
40078         * modules/unicase/u32-totitle-tests (Files): Likewise.
40079         * modules/unicase/u32-toupper-tests (Files): Likewise.
40080         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40081         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40082         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40083         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40084         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40085         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40086         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40087         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40088         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40089         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40090         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40091         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40092         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40093         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40094         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40095         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40096         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40097         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40098         * modules/unictype/block-list-tests (Files): Likewise.
40099         * modules/unictype/block-of-tests (Files): Likewise.
40100         * modules/unictype/block-test-tests (Files): Likewise.
40101         * modules/unictype/category-C-tests (Files): Likewise.
40102         * modules/unictype/category-Cc-tests (Files): Likewise.
40103         * modules/unictype/category-Cf-tests (Files): Likewise.
40104         * modules/unictype/category-Cn-tests (Files): Likewise.
40105         * modules/unictype/category-Co-tests (Files): Likewise.
40106         * modules/unictype/category-Cs-tests (Files): Likewise.
40107         * modules/unictype/category-L-tests (Files): Likewise.
40108         * modules/unictype/category-Ll-tests (Files): Likewise.
40109         * modules/unictype/category-Lm-tests (Files): Likewise.
40110         * modules/unictype/category-Lo-tests (Files): Likewise.
40111         * modules/unictype/category-Lt-tests (Files): Likewise.
40112         * modules/unictype/category-Lu-tests (Files): Likewise.
40113         * modules/unictype/category-M-tests (Files): Likewise.
40114         * modules/unictype/category-Mc-tests (Files): Likewise.
40115         * modules/unictype/category-Me-tests (Files): Likewise.
40116         * modules/unictype/category-Mn-tests (Files): Likewise.
40117         * modules/unictype/category-N-tests (Files): Likewise.
40118         * modules/unictype/category-Nd-tests (Files): Likewise.
40119         * modules/unictype/category-Nl-tests (Files): Likewise.
40120         * modules/unictype/category-No-tests (Files): Likewise.
40121         * modules/unictype/category-P-tests (Files): Likewise.
40122         * modules/unictype/category-Pc-tests (Files): Likewise.
40123         * modules/unictype/category-Pd-tests (Files): Likewise.
40124         * modules/unictype/category-Pe-tests (Files): Likewise.
40125         * modules/unictype/category-Pf-tests (Files): Likewise.
40126         * modules/unictype/category-Pi-tests (Files): Likewise.
40127         * modules/unictype/category-Po-tests (Files): Likewise.
40128         * modules/unictype/category-Ps-tests (Files): Likewise.
40129         * modules/unictype/category-S-tests (Files): Likewise.
40130         * modules/unictype/category-Sc-tests (Files): Likewise.
40131         * modules/unictype/category-Sk-tests (Files): Likewise.
40132         * modules/unictype/category-Sm-tests (Files): Likewise.
40133         * modules/unictype/category-So-tests (Files): Likewise.
40134         * modules/unictype/category-Z-tests (Files): Likewise.
40135         * modules/unictype/category-Zl-tests (Files): Likewise.
40136         * modules/unictype/category-Zp-tests (Files): Likewise.
40137         * modules/unictype/category-Zs-tests (Files): Likewise.
40138         * modules/unictype/category-and-not-tests (Files): Likewise.
40139         * modules/unictype/category-and-tests (Files): Likewise.
40140         * modules/unictype/category-byname-tests (Files): Likewise.
40141         * modules/unictype/category-name-tests (Files): Likewise.
40142         * modules/unictype/category-none-tests (Files): Likewise.
40143         * modules/unictype/category-of-tests (Files): Likewise.
40144         * modules/unictype/category-or-tests (Files): Likewise.
40145         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40146         * modules/unictype/combining-class-tests (Files): Likewise.
40147         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40148         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40149         * modules/unictype/ctype-blank-tests (Files): Likewise.
40150         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40151         * modules/unictype/ctype-digit-tests (Files): Likewise.
40152         * modules/unictype/ctype-graph-tests (Files): Likewise.
40153         * modules/unictype/ctype-lower-tests (Files): Likewise.
40154         * modules/unictype/ctype-print-tests (Files): Likewise.
40155         * modules/unictype/ctype-punct-tests (Files): Likewise.
40156         * modules/unictype/ctype-space-tests (Files): Likewise.
40157         * modules/unictype/ctype-upper-tests (Files): Likewise.
40158         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40159         * modules/unictype/decimal-digit-tests (Files): Likewise.
40160         * modules/unictype/digit-tests (Files): Likewise.
40161         * modules/unictype/mirror-tests (Files): Likewise.
40162         * modules/unictype/numeric-tests (Files): Likewise.
40163         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40164         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40165         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40166         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40167         Likewise.
40168         * modules/unictype/property-bidi-block-separator-tests (Files):
40169         Likewise.
40170         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40171         Likewise.
40172         * modules/unictype/property-bidi-common-separator-tests (Files):
40173         Likewise.
40174         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40175         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40176         Likewise.
40177         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40178         Likewise.
40179         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40180         Likewise.
40181         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40182         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40183         Likewise.
40184         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40185         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40186         Likewise.
40187         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40188         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40189         * modules/unictype/property-bidi-segment-separator-tests (Files):
40190         Likewise.
40191         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40192         * modules/unictype/property-byname-tests (Files): Likewise.
40193         * modules/unictype/property-combining-tests (Files): Likewise.
40194         * modules/unictype/property-composite-tests (Files): Likewise.
40195         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40196         * modules/unictype/property-dash-tests (Files): Likewise.
40197         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40198         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40199         Likewise.
40200         * modules/unictype/property-deprecated-tests (Files): Likewise.
40201         * modules/unictype/property-diacritic-tests (Files): Likewise.
40202         * modules/unictype/property-extender-tests (Files): Likewise.
40203         * modules/unictype/property-format-control-tests (Files): Likewise.
40204         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40205         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40206         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40207         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40208         * modules/unictype/property-hyphen-tests (Files): Likewise.
40209         * modules/unictype/property-id-continue-tests (Files): Likewise.
40210         * modules/unictype/property-id-start-tests (Files): Likewise.
40211         * modules/unictype/property-ideographic-tests (Files): Likewise.
40212         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40213         * modules/unictype/property-ids-trinary-operator-tests (Files):
40214         Likewise.
40215         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40216         * modules/unictype/property-iso-control-tests (Files): Likewise.
40217         * modules/unictype/property-join-control-tests (Files): Likewise.
40218         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40219         * modules/unictype/property-line-separator-tests (Files): Likewise.
40220         * modules/unictype/property-logical-order-exception-tests (Files):
40221         Likewise.
40222         * modules/unictype/property-lowercase-tests (Files): Likewise.
40223         * modules/unictype/property-math-tests (Files): Likewise.
40224         * modules/unictype/property-non-break-tests (Files): Likewise.
40225         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40226         * modules/unictype/property-numeric-tests (Files): Likewise.
40227         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40228         * modules/unictype/property-other-default-ignorable-code-point-tests
40229         (Files): Likewise.
40230         * modules/unictype/property-other-grapheme-extend-tests (Files):
40231         Likewise.
40232         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40233         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40234         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40235         * modules/unictype/property-other-math-tests (Files): Likewise.
40236         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40237         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40238         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40239         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40240         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40241         * modules/unictype/property-private-use-tests (Files): Likewise.
40242         * modules/unictype/property-punctuation-tests (Files): Likewise.
40243         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40244         * modules/unictype/property-radical-tests (Files): Likewise.
40245         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40246         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40247         * modules/unictype/property-space-tests (Files): Likewise.
40248         * modules/unictype/property-terminal-punctuation-tests (Files):
40249         Likewise.
40250         * modules/unictype/property-test-tests (Files): Likewise.
40251         * modules/unictype/property-titlecase-tests (Files): Likewise.
40252         * modules/unictype/property-unassigned-code-value-tests (Files):
40253         Likewise.
40254         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40255         * modules/unictype/property-uppercase-tests (Files): Likewise.
40256         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40257         * modules/unictype/property-white-space-tests (Files): Likewise.
40258         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40259         * modules/unictype/property-xid-start-tests (Files): Likewise.
40260         * modules/unictype/property-zero-width-tests (Files): Likewise.
40261         * modules/unictype/scripts-tests (Files): Likewise.
40262         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40263         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40264         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40265         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40266         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40267         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40268         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40269         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40270         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40271         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40272         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40273         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40274         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40275         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40276         * modules/uninorm/composition-tests (Files): Likewise.
40277         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40278         * modules/uninorm/decomposition-tests (Files): Likewise.
40279         * modules/uninorm/filter-tests (Files): Likewise.
40280         * modules/uninorm/nfc-tests (Files): Likewise.
40281         * modules/uninorm/nfd-tests (Files): Likewise.
40282         * modules/uninorm/nfkc-tests (Files): Likewise.
40283         * modules/uninorm/nfkd-tests (Files): Likewise.
40284         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40285         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40286         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40287         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40288         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40289         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40290         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40291         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40292         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40293         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40294         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40295         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40296         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40297         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40298         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40299         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40300         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40301         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40302         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40303         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40304         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40305         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40306         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40307         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40308         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40309         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40310         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40311         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40312         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40313         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40314         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40315         * modules/uniwidth/u8-width-tests (Files): Likewise.
40316         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40317         * modules/uniwidth/u16-width-tests (Files): Likewise.
40318         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40319         * modules/uniwidth/u32-width-tests (Files): Likewise.
40320         * modules/uniwidth/width-tests (Files): Likewise.
40321         * modules/unlink-tests (Files): Likewise.
40322         * modules/unsetenv-tests (Files): Likewise.
40323         * modules/usleep-tests (Files): Likewise.
40324         * modules/utimens-tests (Files): Likewise.
40325         * modules/utimensat-tests (Files): Likewise.
40326         * modules/vasnprintf-posix-tests (Files): Likewise.
40327         * modules/vasnprintf-tests (Files): Likewise.
40328         * modules/vasprintf-posix-tests (Files): Likewise.
40329         * modules/vasprintf-tests (Files): Likewise.
40330         * modules/vdprintf-posix-tests (Files): Likewise.
40331         * modules/vfprintf-posix-tests (Files): Likewise.
40332         * modules/vprintf-posix-tests (Files): Likewise.
40333         * modules/vsnprintf-posix-tests (Files): Likewise.
40334         * modules/vsnprintf-tests (Files): Likewise.
40335         * modules/vsprintf-posix-tests (Files): Likewise.
40336         * modules/wcrtomb-tests (Files): Likewise.
40337         * modules/wcsnrtombs-tests (Files): Likewise.
40338         * modules/wcsrtombs-tests (Files): Likewise.
40339         * modules/wctype-tests (Files): Likewise.
40340         * modules/wcwidth-tests (Files): Likewise.
40341         * modules/xmemdup0-tests (Files): Likewise.
40342         * modules/xprintf-posix-tests (Files): Likewise.
40343         * modules/xvasprintf-tests (Files): Likewise.
40344
40345 2009-12-24  Eric Blake  <ebb9@byu.net>
40346
40347         test-nanosleep: fix typo
40348         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40349         patch.
40350         Reported by Bruno Haible.
40351
40352 2009-12-24  Bruno Haible  <bruno@clisp.org>
40353
40354         Reduce namespace pollution on glibc systems.
40355         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40356         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40357         systems.
40358         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40359         <getopt.h> on glibc systems.
40360         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40361         systems.
40362         * lib/fcntl.c: Include <unistd.h> here instead.
40363
40364 2009-12-24  Bruno Haible  <bruno@clisp.org>
40365
40366         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40367
40368 2009-12-24  Eric Blake  <ebb9@byu.net>
40369
40370         tests: add signature checks
40371         * tests/signature.h (SIGNATURE_CHECK): New file.
40372         * modules/atexit-tests (Files): Use it.
40373         * modules/btowc-tests (Files): Likewise.
40374         * modules/canonicalize-lgpl-tests (Files): Likewise.
40375         * modules/ceilf-tests (Files): Likewise.
40376         * modules/ceill-tests (Files): Likewise.
40377         * modules/chown-tests (Files): Likewise.
40378         * modules/dprintf-posix-tests (Files): Likewise.
40379         * modules/dup2-tests (Files): Likewise.
40380         * modules/dup3-tests (Files): Likewise.
40381         * modules/duplocale-tests (Files): Likewise.
40382         * modules/fchdir-tests (Files): Likewise.
40383         * modules/fcntl-tests (Files): Likewise.
40384         * modules/fdopendir-tests (Files): Likewise.
40385         * modules/fflush-tests (Files): Likewise.
40386         * modules/flock-tests (Files): Likewise.
40387         * modules/floorf-tests (Files): Likewise.
40388         * modules/floorl-tests (Files): Likewise.
40389         * modules/fnmatch-tests (Files): Likewise.
40390         * modules/fopen-tests (Files): Likewise.
40391         * modules/fprintf-posix-tests (Files): Likewise.
40392         * modules/freopen-tests (Files): Likewise.
40393         * modules/frexp-nolibm-tests (Files): Likewise.
40394         * modules/frexp-tests (Files): Likewise.
40395         * modules/frexpl-nolibm-tests (Files): Likewise.
40396         * modules/frexpl-tests (Files): Likewise.
40397         * modules/fseek-tests (Files): Likewise.
40398         * modules/fseeko-tests (Files): Likewise.
40399         * modules/fsync-tests (Files): Likewise.
40400         * modules/ftell-tests (Files): Likewise.
40401         * modules/ftello-tests (Files): Likewise.
40402         * modules/futimens-tests (Files): Likewise.
40403         * modules/getaddrinfo-tests (Files): Likewise.
40404         * modules/getcwd-tests (Files): Likewise.
40405         * modules/getdelim-tests (Files): Likewise.
40406         * modules/getdtablesize-tests (Files): Likewise.
40407         * modules/getgroups-tests (Files): Likewise.
40408         * modules/gethostname-tests (Files): Likewise.
40409         * modules/getline-tests (Files): Likewise.
40410         * modules/getopt-posix-tests (Files): Likewise.
40411         * modules/gettimeofday-tests (Files): Likewise.
40412         * modules/glob-tests (Files): Likewise.
40413         * modules/iconv-tests (Files): Likewise.
40414         * modules/inet_ntop-tests (Files): Likewise.
40415         * modules/inet_pton-tests (Files): Likewise.
40416         * modules/isblank-tests (Files): Likewise.
40417         * modules/lchown-tests (Files): Likewise.
40418         * modules/ldexpl-tests (Files): Likewise.
40419         * modules/link-tests (Files): Likewise.
40420         * modules/linkat-tests (Files): Likewise.
40421         * modules/lseek-tests (Files): Likewise.
40422         * modules/lstat-tests (Files): Likewise.
40423         * modules/mbrtowc-tests (Files): Likewise.
40424         * modules/mbsinit-tests (Files): Likewise.
40425         * modules/mbsnrtowcs-tests (Files): Likewise.
40426         * modules/mbsrtowcs-tests (Files): Likewise.
40427         * modules/memchr-tests (Files): Likewise.
40428         * modules/memcmp-tests (Files): Likewise.
40429         * modules/memmem-tests (Files): Likewise.
40430         * modules/memrchr-tests (Files): Likewise.
40431         * modules/mkdir-tests (Files): Likewise.
40432         * modules/mkfifo-tests (Files): Likewise.
40433         * modules/mkfifoat-tests (Files): Likewise.
40434         * modules/mknod-tests (Files): Likewise.
40435         * modules/nanosleep-tests (Files): Likewise.
40436         * modules/nl_langinfo-tests (Files): Likewise.
40437         * modules/obstack-printf-tests (Files): Likewise.
40438         * modules/open-tests (Files): Likewise.
40439         * modules/openat-tests (Files): Likewise.
40440         * modules/perror-tests (Files): Likewise.
40441         * modules/pipe2-tests (Files): Likewise.
40442         * modules/poll-tests (Files): Likewise.
40443         * modules/popen-tests (Files): Likewise.
40444         * modules/posix_spawn-tests (Files): Likewise.
40445         * modules/posix_spawnp-tests (Files): Likewise.
40446         * modules/pread-tests (Files): Likewise.
40447         * modules/printf-posix-tests (Files): Likewise.
40448         * modules/pty-tests (Files): Likewise.
40449         * modules/random_r-tests (Files): Likewise.
40450         * modules/rawmemchr-tests (Files): Likewise.
40451         * modules/readlink-tests (Files): Likewise.
40452         * modules/remove-tests (Files): Likewise.
40453         * modules/rename-tests (Files): Likewise.
40454         * modules/renameat-tests (Files): Likewise.
40455         * modules/rmdir-tests (Files): Likewise.
40456         * modules/round-tests (Files): Likewise.
40457         * modules/roundf-tests (Files): Likewise.
40458         * modules/roundl-tests (Files): Likewise.
40459         * modules/select-tests (Files): Likewise.
40460         * modules/setenv-tests (Files): Likewise.
40461         * modules/sigaction-tests (Files): Likewise.
40462         * modules/sleep-tests (Files): Likewise.
40463         * modules/snprintf-posix-tests (Files): Likewise.
40464         * modules/snprintf-tests (Files): Likewise.
40465         * modules/sprintf-posix-tests (Files): Likewise.
40466         * modules/stat-tests (Files): Likewise.
40467         * modules/strcasestr-tests (Files): Likewise.
40468         * modules/strchrnul-tests (Files): Likewise.
40469         * modules/strerror-tests (Files): Likewise.
40470         * modules/strsignal-tests (Files): Likewise.
40471         * modules/strstr-tests (Files): Likewise.
40472         * modules/strtod-tests (Files): Likewise.
40473         * modules/strverscmp-tests (Files): Likewise.
40474         * modules/symlink-tests (Files): Likewise.
40475         * modules/symlinkat-tests (Files): Likewise.
40476         * modules/times-tests (Files): Likewise.
40477         * modules/trunc-tests (Files): Likewise.
40478         * modules/truncf-tests (Files): Likewise.
40479         * modules/truncl-tests (Files): Likewise.
40480         * modules/tsearch-tests (Files): Likewise.
40481         * modules/uname-tests (Files): Likewise.
40482         * modules/unlink-tests (Files): Likewise.
40483         * modules/unsetenv-tests (Files): Likewise.
40484         * modules/usleep-tests (Files): Likewise.
40485         * modules/utimensat-tests (Files): Likewise.
40486         * modules/vasprintf-tests (Files): Likewise.
40487         * modules/vdprintf-posix-tests (Files): Likewise.
40488         * modules/vfprintf-posix-tests (Files): Likewise.
40489         * modules/vprintf-posix-tests (Files): Likewise.
40490         * modules/vsnprintf-posix-tests (Files): Likewise.
40491         * modules/vsnprintf-tests (Files): Likewise.
40492         * modules/vsprintf-posix-tests (Files): Likewise.
40493         * modules/wcrtomb-tests (Files): Likewise.
40494         * modules/wcsnrtombs-tests (Files): Likewise.
40495         * modules/wcsrtombs-tests (Files): Likewise.
40496         * modules/wcwidth-tests (Files): Likewise.
40497         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40498         * tests/test-isinf.c (isinf): Likewise.
40499         * tests/test-isnan.c (isnan): Likewise.
40500         * tests/test-signbit.c (signbit): Likewise.
40501         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40502         declaration, either as macro or with correct signature.
40503         (select): Ensure function under test is declared with correct
40504         signature in correct header.
40505         * tests/test-atexit.c (atexit): Likewise.
40506         * tests/test-btowc.c (btowc): Likewise.
40507         * tests/test-canonicalize-lgpl.c (realpath)
40508         (canonicalize_file_name): Likewise.
40509         * tests/test-ceilf1.c (ceilf): Likewise.
40510         * tests/test-ceill.c (ceill): Likewise.
40511         * tests/test-chown.c (chown): Likewise.
40512         * tests/test-dprintf-posix.c (dprintf): Likewise.
40513         * tests/test-dup2.c (dup2): Likewise.
40514         * tests/test-dup3.c (dup3): Likewise.
40515         * tests/test-duplocale.c (duplocale): Likewise.
40516         * tests/test-fchdir.c (fchdir): Likewise.
40517         * tests/test-fchownat.c (fchownat): Likewise.
40518         * tests/test-fcntl.c (fcntl): Likewise.
40519         * tests/test-fdopendir.c (fdopendir): Likewise.
40520         * tests/test-fflush.c (fflush): Likewise.
40521         * tests/test-flock.c (flock): Likewise.
40522         * tests/test-floorf1.c (floorf): Likewise.
40523         * tests/test-floorl.c (floorl): Likewise.
40524         * tests/test-fnmatch.c (fnmatch): Likewise.
40525         * tests/test-fopen.c (fopen): Likewise.
40526         * tests/test-fprintf-posix.c (fprintf): Likewise.
40527         * tests/test-freopen.c (freopen): Likewise.
40528         * tests/test-frexp.c (frexp): Likewise.
40529         * tests/test-frexpl.c (frexpl): Likewise.
40530         * tests/test-fseek.c (fseek): Likewise.
40531         * tests/test-fseeko.c (fseeko): Likewise.
40532         * tests/test-fstatat.c (fstatat): Likewise.
40533         * tests/test-fsync.c (fsync): Likewise.
40534         * tests/test-ftell.c (ftell): Likewise.
40535         * tests/test-ftello.c (ftello): Likewise.
40536         * tests/test-futimens.c (futimens): Likewise.
40537         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40538         (gai_strerror): Likewise.
40539         * tests/test-getcwd.c (getcwd): Likewise.
40540         * tests/test-getdelim.c (getdelim): Likewise.
40541         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40542         * tests/test-getgroups.c (getgroups): Likewise.
40543         * tests/test-gethostname.c (gethostname): Likewise.
40544         * tests/test-getline.c (getline): Likewise.
40545         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40546         Likewise.
40547         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40548         * tests/test-glob.c (glob, globfree): Likewise.
40549         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40550         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40551         * tests/test-inet_pton.c (inet_pton): Likewise.
40552         * tests/test-isblank.c (isblank): Likewise.
40553         * tests/test-lchown.c (lchown): Likewise.
40554         * tests/test-ldexpl.c (ldexpl): Likewise.
40555         * tests/test-link.c (link): Likewise.
40556         * tests/test-linkat.c (linkat): Likewise.
40557         * tests/test-lseek.c (lseek): Likewise.
40558         * tests/test-lstat.c (lstat): Likewise.
40559         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40560         * tests/test-mbsinit.c (mbsinit): Likewise.
40561         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40562         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40563         * tests/test-memchr.c (memchr): Likewise.
40564         * tests/test-memcmp.c (memcmp): Likewise.
40565         * tests/test-memmem.c (memmem): Likewise.
40566         * tests/test-memrchr.c (memrchr): Likewise.
40567         * tests/test-mkdir.c (mkdir): Likewise.
40568         * tests/test-mkdirat.c (mkdirat): Likewise.
40569         * tests/test-mkfifo.c (mkfifo): Likewise.
40570         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40571         * tests/test-mknod.c (mknod): Likewise.
40572         * tests/test-nanosleep.c (nanosleep): Likewise.
40573         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40574         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40575         Likewise.
40576         * tests/test-open.c (open): Likewise.
40577         * tests/test-openat.c (openat): Likewise.
40578         * tests/test-perror.c (perror): Likewise.
40579         * tests/test-pipe2.c (pipe2): Likewise.
40580         * tests/test-poll.c (poll): Likewise.
40581         * tests/test-popen.c (popen, pclose): Likewise.
40582         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40583         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40584         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40585         (posix_spawn_file_actions_destroy)
40586         (posix_spawn_file_actions_addclose)
40587         (posix_spawn_file_actions_addopen)
40588         (posix_spawn_file_actions_adddup2): Likewise.
40589         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40590         * tests/test-pread.c (pread): Likewise.
40591         * tests/test-printf-posix.c (printf): Likewise.
40592         * tests/test-pty.c (openpty, forkpty): Likewise.
40593         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40594         (random_r): Likewise.
40595         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40596         * tests/test-readlink.c (readlink): Likewise.
40597         * tests/test-remove.c (remove): Likewise.
40598         * tests/test-rename.c (rename): Likewise.
40599         * tests/test-renameat.c (renameat): Likewise.
40600         * tests/test-rmdir.c (rmdir): Likewise.
40601         * tests/test-round1.c (round): Likewise.
40602         * tests/test-roundf1.c (roundf): Likewise.
40603         * tests/test-roundl.c (roundl): Likewise.
40604         * tests/test-setenv.c (setenv): Likewise.
40605         * tests/test-sigaction.c (sigaction): Likewise.
40606         * tests/test-sleep.c (sleep): Likewise.
40607         * tests/test-snprintf.c (snprintf): Likewise.
40608         * tests/test-sprintf-posix.c (sprintf): Likewise.
40609         * tests/test-stat.c (stat): Likewise.
40610         * tests/test-stpncpy.c (stpncpy): Likewise.
40611         * tests/test-strcasestr.c (strcasestr): Likewise.
40612         * tests/test-strchrnul.c (strchrnul): Likewise.
40613         * tests/test-strerror.c (strerror): Likewise.
40614         * tests/test-strsignal.c (strsignal): Likewise.
40615         * tests/test-strstr.c (strstr): Likewise.
40616         * tests/test-strtod.c (strtod): Likewise.
40617         * tests/test-strverscmp.c (strverscmp): Likewise.
40618         * tests/test-symlink.c (symlink): Likewise.
40619         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40620         * tests/test-times.c (times): Likewise.
40621         * tests/test-trunc1.c (trunc): Likewise.
40622         * tests/test-truncf1.c (truncf): Likewise.
40623         * tests/test-truncl.c (truncl): Likewise.
40624         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40625         Likewise.
40626         * tests/test-uname.c (uname): Likewise.
40627         * tests/test-unlink.c (unlink): Likewise.
40628         * tests/test-unlinkat.c (unlinkat): Likewise.
40629         * tests/test-unsetenv.c (unsetenv): Likewise.
40630         * tests/test-usleep.c (usleep): Likewise.
40631         * tests/test-utimensat.c (utimensat): Likewise.
40632         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40633         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40634         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40635         * tests/test-vprintf-posix.c (vprintf): Likewise.
40636         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40637         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40638         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40639         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40640         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40641         * tests/test-wcwidth.c (wcwidth): Likewise.
40642
40643         build: pull in conditional headers during GNULIB_POSIXCHECK
40644         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40645         definitions from any conditionally-included headers.
40646         * lib/stdlib.in.h (includes): Likewise.
40647         * lib/unistd.in.h (includes): Likewise.
40648
40649 2009-12-24  Bruno Haible  <bruno@clisp.org>
40650
40651         * tests/test-argv-iter.c: Include header file being tested immediately
40652         after config.h.
40653         * tests/test-base64.c: Likewise.
40654         * tests/test-flock.c: Likewise.
40655         * tests/test-fsync.c: Likewise.
40656         * tests/test-getdate.c: Likewise.
40657         * tests/test-getndelim2.c: Likewise.
40658         * tests/test-isfinite.c: Likewise.
40659         * tests/test-isinf.c: Likewise.
40660         * tests/test-strerror.c: Likewise.
40661         * tests/test-strsignal.c: Likewise.
40662
40663 2009-12-23  Eric Blake  <ebb9@byu.net>
40664
40665         unistd: work around cygwin bug
40666         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40667         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40668         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40669
40670 2009-12-23  Bruno Haible  <bruno@clisp.org>
40671
40672         localename: More tests.
40673         * tests/test-localename.c (SIZEOF): New macro.
40674         (categories): New variable.
40675         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40676         test_locale_name_default): Add test w.r.t. thread locale.
40677         (test_locale_name_thread): New function.
40678         (main): Invoke it.
40679
40680         localename: Make aware of thread locale.
40681         * lib/localename.h (gl_locale_name_thread): New declaration.
40682         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40683         behaviour with respect to thread locale.
40684         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40685         <langinfo.h>, glthread/lock.h.
40686         (SIZE_BITS): New macro.
40687         (string_hash): New function.
40688         (struct hash_node): New type.
40689         (HASH_TABLE_SIZE): New macro.
40690         (struniq_hash_table, struniq_lock): New variables.
40691         (struniq): New function.
40692         (gl_locale_name_thread): New function.
40693         (gl_locale_name): Invoke it.
40694         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40695         * modules/localename (Depends-on): Add lock.
40696         Reported by Mike Gran <spk121@yahoo.com>.
40697
40698 2009-12-23  Eric Blake  <ebb9@byu.net>
40699
40700         va-args: new module
40701         * modules/va-args: New file.
40702         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40703         * MODULES.html.sh (Core language properties): Mention it.
40704
40705         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40706         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40707         named alias for __attribute__((__unused__)).
40708         * lib/chown.c: Update client.
40709         * lib/fchmodat.c: Likewise.
40710         * lib/fts.c: Likewise.
40711         * lib/getdate.y: Likewise.
40712         * lib/getgroups.c: Likewise.
40713         * lib/getopt.c: Likewise.
40714         * lib/getugroups.c: Likewise.
40715         * lib/mkdir.c: Likewise.
40716         * lib/mkfifo.c: Likewise.
40717         * lib/mkfifoat.c: Likewise.
40718         * lib/mknod.c: Likewise.
40719         * lib/mknodat.c: Likewise.
40720         * lib/readlink.c: Likewise.
40721         * lib/se-context.in.h: Likewise.
40722         * lib/se-selinux.in.h: Likewise.
40723         * lib/sockets.c: Likewise.
40724         * lib/symlink.c: Likewise.
40725         * lib/symlinkat.c: Likewise.
40726         * lib/unicodeio.c: Likewise.
40727         * lib/unistr.h: Likewise.
40728         * tests/test-areadlink.c: Likewise.
40729         * tests/test-areadlinkat.c: Likewise.
40730         * tests/test-filenamecat.c: Likewise.
40731         * tests/test-fseeko.c: Likewise.
40732         * tests/test-ftello.c: Likewise.
40733         * tests/test-getdate.c: Likewise.
40734         * tests/test-getgroups.c: Likewise.
40735         * tests/test-gethostname.c: Likewise.
40736         * tests/test-quotearg.c: Likewise.
40737         * tests/test-version-etc.c: Likewise.
40738         * tests/test-xalloc-die.c: Likewise.
40739         * tests/test-xfprintf-posix.c: Likewise.
40740         * tests/test-xprintf-posix.c: Likewise.
40741         * tests/test-xvasprintf.c: Likewise.
40742
40743         tests: avoid compiler warnings
40744         * tests/test-fcntl.c (main): Delete unused parameters.
40745         * tests/test-freopen-safer.c (main): Likewise.
40746         * tests/test-xalloc-die.c (main): Mark unused parameters.
40747         * tests/test-fseeko.c (main): Likewise.
40748         * tests/test-ftello.c (main): Likewise.
40749         * tests/test-nanosleep.c (main): Avoid declaration warning.
40750         * tests/test-sleep.c (main): Likewise.
40751         * tests/test-unsetenv.c (main): Silence warning about string
40752         literal.
40753         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40754
40755 2009-12-23  Bruno Haible  <bruno@clisp.org>
40756
40757         * tests/test-localename.c (test_locale_name): New function, extracted
40758         from main. Also test mixed situations.
40759         (test_locale_name_posix, test_locale_name_environ,
40760         test_locale_name_default): New functions.
40761         (main): Invoke them all.
40762         * modules/localename-tests (configure.ac): Test for newlocale.
40763
40764 2009-12-23  Bruno Haible  <bruno@clisp.org>
40765
40766         unistd: Ensure getcwd gets declared before being overridden.
40767         * lib/unistd.in.h: Conditionally include <io.h>.
40768
40769 2009-12-22  Bruno Haible  <bruno@clisp.org>
40770
40771         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40772         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40773         (gl_WCHAR_H): Invoke it.
40774         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40775         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40776         Reported by Karl Berry <karl@freefriends.org>.
40777
40778 2009-12-22  Eric Blake  <ebb9@byu.net>
40779
40780         math, unistd: avoid redundant includes
40781         * lib/math.in.h (isnan): No need to re-include <math.h>.
40782         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40783
40784         getsubopt: work around cygwin bug
40785         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40786         avoid conflicting with system getsubopt.
40787         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40788         bug.
40789
40790         getopt: synchronize from glibc
40791         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40792         parameter order.  Adjust all callers.
40793         (_getopt_internal_r, main): Adjust quoting in error messages.
40794         Drop considerations for outdated POSIX 1003.2 error message.
40795         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40796         callers.
40797         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40798
40799         test-getopt: test stderr behavior
40800         * modules/getopt-posix-tests (Depends-on): Add dup2.
40801         * tests/test-getopt.c (ASSERT): Avoid stderr.
40802         (main): Move stderr to a temporary file.
40803         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40804         Instead, add parameter to inform caller if output occurred.
40805         (test_getopt): Adjust all existing tests to expect silence, and
40806         add new tests of leading ":".
40807         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40808         glibc shortcomings with leading "-:" or "+:" in optstring.
40809         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40810         Likewise.
40811         * doc/posix-functions/getopt.texi (getopt): Likewise.
40812
40813         test-getopt: enhance test
40814         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40815         supports optind=0.
40816         * tests/test-getopt.c (OPTIND_MIN): Move...
40817         * tests/test-getopt.h (OPTIND_MIN): ...here.
40818         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40819         Require that optind=0 works, since modern BSD supports it in
40820         addition to optreset, and since coreutils expects it.
40821         (test_getopt_long_only): New test.
40822         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40823         glibc shortcomings with 'W;', and enforcement of optind=0.
40824         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40825         Likewise.
40826
40827 2009-12-21  Bruno Haible  <bruno@clisp.org>
40828
40829         localename: Improvements for MacOS X and Cygwin.
40830         * lib/localename.h (gl_locale_name_environ): New declaration.
40831         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40832         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40833         (gl_locale_name_posix): Invoke it.
40834         (gl_locale_name_default): Add comments. Use Windows native API also on
40835         Cygwin.
40836
40837 2009-12-21  Bruno Haible  <bruno@clisp.org>
40838
40839         Update list of Win32 locale ids.
40840         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40841         (LANG_SAMI): Renamed from LANG_SAAMI.
40842         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40843         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40844         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40845         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40846         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40847         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40848         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40849         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40850         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40851         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40852         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40853         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40854         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40855         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40856         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40857         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40858         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40859         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40860         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40861         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40862         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40863         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40864         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40865         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40866         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40867         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40868         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40869         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40870         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40871         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40872         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40873         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40874         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40875         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40876         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40877         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40878         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40879         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40880         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40881         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40882         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40883         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40884         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40885         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40886         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40887         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40888         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40889         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40890         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40891         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40892         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40893         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40894         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40895         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40896         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40897         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40898         Add more languages and countries for Sami, Sorbian. Add more countries
40899         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40900         for Pashto. Change country for Syriac, Tswana.
40901
40902 2009-12-21  Eric Blake  <ebb9@byu.net>
40903
40904         test-utimens: avoid spurious failure
40905         * tests/test-chown.h (nap): Factor...
40906         * tests/nap.h: ...into new file.
40907         * tests/test-lchown.h (nap): Avoid duplication.
40908         * tests/test-utimens-common.h (nap): Use shared implementation,
40909         necessary on file systems with 1-second resolution.
40910         * modules/chown-tests (Files): Include new file.
40911         * modules/fdutimensat-tests (Files): Likewise.
40912         * modules/futimens-tests (Files): Likewise.
40913         * modules/lchown-tests (Files): Likewise.
40914         * modules/openat-tests (Files): Likewise.
40915         * modules/utimens-tests (Files): Likewise.
40916         * modules/utimensat-tests (Files): Likewise.
40917
40918 2009-12-19  Eric Blake  <ebb9@byu.net>
40919
40920         futimens, utimensat: work around Linux bug
40921         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40922         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40923         * lib/utimensat.c (rpl_utimensat): Work around it.
40924         * lib/futimens.c (rpl_futimens): Adjust comment.
40925
40926         utimens: work around Linux ctime bug
40927         * lib/utimens.c (detect_ctime_bug): New helper function.
40928         (update_timespec): Differentiate between workaround needed for
40929         this bug vs. what is needed for systems that lack utimensat.
40930         (fdutimens, lutimens): Work around bug.
40931
40932         utimens: check for ctime update
40933         * tests/test-utimens-common.h (check_ctime): Define.
40934         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40935         * tests/test-futimens.h (test_futimens): Likewise.
40936         * tests/test-lutimens.h (test_lutimens): Likewise.
40937         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40938         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40939
40940 2009-12-19  Bruno Haible  <bruno@clisp.org>
40941
40942         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40943         * tests/test-dprintf-posix2.sh: New file.
40944         * tests/test-dprintf-posix2.c: New file.
40945         * modules/dprintf-posix-tests (Files): Add them.
40946         (configure.ac): Check for getrlimit and setrlimit.
40947         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40948
40949 2009-12-19  Bruno Haible  <bruno@clisp.org>
40950
40951         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40952         * tests/test-fprintf-posix3.sh: New file.
40953         * tests/test-fprintf-posix3.c: New file.
40954         * modules/fprintf-posix-tests (Files): Add them.
40955         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40956
40957 2009-12-19  Eric Blake  <ebb9@byu.net>
40958
40959         dirfd: fix prototype
40960         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40961         * lib/dirfd.c (dirfd): Likewise.
40962
40963         canonicalize: reduce memory usage
40964         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40965         allocation to size.
40966         Reported by Solar Designer <solar@openwall.com>.
40967
40968 2009-12-19  Bruno Haible  <bruno@clisp.org>
40969
40970         New module attribute 'Applicability'.
40971         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40972         * gnulib-tool: New option --extract-applicability.
40973         (func_usage): Document it.
40974         (sed_extract_prog): Recognize it.
40975         (func_get_applicability): New function.
40976         (func_import): Generalize handling of 'link-warning' module.
40977         * modules/link-warning (Applicability): New section.
40978         * modules/arg-nonnull (Applicability): New section.
40979         Repoted by Simon Josefsson <simon@josefsson.org>.
40980
40981 2009-12-19  Bruno Haible  <bruno@clisp.org>
40982
40983         fflush: tweak
40984         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40985         * lib/fseeko.c (rpl_fseeko): Likewise.
40986
40987 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40988
40989         * lib/gl_list.h: Fix typo in comment.
40990
40991 2009-12-16  Eric Blake  <ebb9@byu.net>
40992
40993         fcntl: use to simplify other modules
40994         * modules/cloexec (Depends-on): Add fcntl.
40995         * modules/fchdir (Depends-on): Likewise.
40996         * modules/fd-safer-flag (Depends-on): Likewise.
40997         * modules/unistd-safer (Depends-on): Likewise.
40998         * modules/dup3 (configure.ac): Set module indicator.
40999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41000         missing.
41001         * lib/fchdir.c (_gl_register_dup): Fix comment.
41002         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41003         * lib/dup-safer.c (dup_safer): Likewise.
41004         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41005         * lib/dup3.c (dup3): Likewise.
41006         * tests/test-fchdir.c (main): Enhance test.
41007         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
41008
41009         fcntl: port portions of fcntl to mingw
41010         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41011         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41012         replacement for mingw.
41013         * modules/fcntl (Description): Update.
41014         (Depends-on): Add dup2.
41015         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41016         * modules/fcntl-h (Makefile.am): Substitute it.
41017         * lib/fcntl.in.h (fcntl): Update declaration.
41018         (F_DUPFD, F_GETFD): New macros, when needed.
41019         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41020         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41021         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41022         we now guarantee.
41023
41024         fcntl: work around cygwin bug in F_DUPFD
41025         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41026         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41027         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41028         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41029         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41030
41031         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41032         * modules/fcntl (Files): List new files.
41033         (configure.ac): Run a test.
41034         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41035         * lib/fcntl.c (rpl_fcntl): Likewise.
41036         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41037         (gl_FCNTL_H): Always replace fcntl.h.
41038         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41039         * lib/fcntl.in.h (fcntl): Declare replacement.
41040         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41041         needed, plus a witness.
41042         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41043         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41044         * tests/test-fcntl.c: New file.
41045         * modules/fcntl-tests: Likewise.
41046
41047         binary-io: avoid potential compilation warning
41048         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41049         directives.
41050
41051         fflush: avoid compilation error on NetBSD
41052         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41053         between off_t and fpos_t, since the latter is sometimes a struct.
41054         * lib/fseeko.c (rpl_fseeko): Likewise.
41055         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41056
41057 2009-12-15  Eric Blake  <ebb9@byu.net>
41058
41059         fcntl-h, stdio, sys_ioctl: fix declarations
41060         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41061         function must not take arguments.
41062         * lib/sys_ioctl.in.h (ioctl): Likewise.
41063         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41064         (open): Add a link warning.
41065
41066 2009-12-15  Jim Meyering  <meyering@redhat.com>
41067
41068         areadlink, areadlink-with-size: relax license to LGPLv2+
41069         * modules/areadlink (License): Relax to LGPLv2+.
41070         * modules/areadlink-with-size (License): Likewise.
41071
41072 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41073             Bruno Haible  <bruno@clisp.org>
41074
41075         *printf: Fix memory leak.
41076         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41077         * lib/vfprintf.c (vfprintf): Likewise.
41078         * lib/dprintf.c (dprintf): Likewise.
41079         * lib/vdprintf.c (vdprintf): Likewise.
41080
41081 2009-12-14  Eric Blake  <ebb9@byu.net>
41082
41083         accept4: adjust module dependencies
41084         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41085
41086         utimens: one more try at avoiding compiler warning
41087         * lib/utimens.c (lutimens): Lower scope of result.
41088
41089 2009-12-13  Bruno Haible  <bruno@clisp.org>
41090
41091         Move the malloc checking from module 'list' to new module 'xlist'.
41092         * modules/xlist: New file.
41093         * lib/gl_xlist.h: New file.
41094         * lib/gl_xlist.c: New file.
41095         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41096         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41097         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41098         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41099         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41100         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41101         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41102         gl_sortedlist_nx_add): New declarations.
41103         (struct gl_list_implementation): Rename and change methods accordingly.
41104         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41105         (gl_list_nx_create): Renamed from gl_list_create.
41106         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41107         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41108         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41109         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41110         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41111         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41112         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41113         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41114         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41115         gl_list_create_empty.
41116         (gl_list_nx_create): Renamed from gl_list_create.
41117         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41118         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41119         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41120         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41121         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41122         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41123         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41124         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41125         * lib/gl_array_list.c: Don't include xalloc.h.
41126         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41127         NULL upon out-of-memory.
41128         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41129         out-of-memory.
41130         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41131         Change return type to 'int'.
41132         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41133         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41134         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41135         upon out-of-memory.
41136         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41137         upon out-of-memory.
41138         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41139         upon out-of-memory.
41140         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41141         upon out-of-memory.
41142         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41143         out-of-memory.
41144         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41145         Update.
41146         (gl_array_list_implementation): Update.
41147         * lib/gl_carray_list.c: Don't include xalloc.h.
41148         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41149         Return NULL upon out-of-memory.
41150         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41151         out-of-memory.
41152         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41153         Change return type to 'int'.
41154         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41155         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41156         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41157         upon out-of-memory.
41158         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41159         upon out-of-memory.
41160         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41161         out-of-memory.
41162         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41163         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41164         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41165         Update.
41166         (gl_carray_list_implementation): Update.
41167         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41168         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41169         gl_linked_create_empty. Return NULL upon out-of-memory.
41170         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41171         out-of-memory.
41172         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41173         Change return type to 'int'. Return -1 upon out-of-memory.
41174         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41175         out-of-memory.
41176         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41177         upon out-of-memory.
41178         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41179         upon out-of-memory.
41180         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41181         NULL upon out-of-memory.
41182         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41183         upon out-of-memory.
41184         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41185         out-of-memory.
41186         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41187         Update.
41188         * lib/gl_linked_list.c: Don't include xalloc.h.
41189         (gl_linked_list_implementation): Update.
41190         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41191         (add_to_bucket): Change return type to 'int'.
41192         (gl_linkedhash_list_implementation): Update.
41193         * lib/gl_anytree_list1.h (free_subtree): New function.
41194         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41195         gl_tree_create_empty. Return NULL upon out-of-memory.
41196         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41197         Change return type to 'int'. Return -1 upon out-of-memory.
41198         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41199         out-of-memory.
41200         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41201         (gl_tree_remove_node): New function, moved here from
41202         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41203         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41204         Update.
41205         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41206         malloc, not xmalloc. Return NULL upon out-of-memory.
41207         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41208         out-of-memory.
41209         (gl_tree_remove_node_from_tree): New function, extracted from
41210         gl_tree_remove_node.
41211         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41212         upon out-of-memory.
41213         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41214         out-of-memory.
41215         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41216         upon out-of-memory.
41217         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41218         upon out-of-memory.
41219         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41220         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41221         not xmalloc. Return NULL upon out-of-memory.
41222         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41223         out-of-memory.
41224         (gl_tree_remove_node_from_tree): New function, extracted from
41225         gl_tree_remove_node.
41226         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41227         upon out-of-memory.
41228         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41229         out-of-memory.
41230         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41231         upon out-of-memory.
41232         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41233         upon out-of-memory.
41234         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41235         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41236         gl_anytree_list1.h before gl_anyavltree_list2.h.
41237         (gl_avltree_list_implementation): Update.
41238         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41239         gl_anytree_list1.h before gl_anyavltree_list2.h.
41240         (gl_rbtree_list_implementation): Update.
41241         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41242         Change return type to 'int'. Return -1 upon out-of-memory. Use
41243         __builtin_expect.
41244         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41245         (gl_avltreehash_list_implementation): Update.
41246         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41247         (gl_rbtreehash_list_implementation): Update.
41248         * modules/array-list (Depends-on): Remove xalloc.
41249         * modules/carray-list (Depends-on): Likewise.
41250         * modules/linked-list (Depends-on): Likewise.
41251         * modules/linkedhash-list (Depends-on): Likewise.
41252         * modules/avltree-list (Depends-on): Likewise.
41253         * modules/rbtree-list (Depends-on): Likewise.
41254         * modules/avltreehash-list (Depends-on): Likewise.
41255         * modules/rbtreehash-list (Depends-on): Likewise.
41256
41257         * modules/xsublist: New file.
41258         * lib/gl_xsublist.h: New file.
41259         * lib/gl_xsublist.c: New file.
41260         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41261         (gl_sublist_nx_create): New declaration.
41262         * lib/gl_sublist.c: Don't include xalloc.h.
41263         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41264         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41265         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41266         Change return type to 'int'. Return -1 upon out-of-memory.
41267         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41268         upon out-of-memory.
41269         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41270         NULL upon out-of-memory.
41271         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41272         upon out-of-memory.
41273         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41274         NULL upon out-of-memory.
41275         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41276         NULL upon out-of-memory.
41277         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41278         upon out-of-memory.
41279         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41280         (gl_sublist_list_implementation): Update.
41281         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41282         upon out-of-memory.
41283         * modules/sublist (Depends-on): Remove xalloc.
41284
41285         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41286         * tests/test-carray_list.c: Likewise.
41287         * tests/test-linked_list.c: Likewise.
41288         * tests/test-linkedhash_list.c: Likewise.
41289         * tests/test-avltree_list.c: Likewise.
41290         * tests/test-rbtree_list.c: Likewise.
41291         * tests/test-avltreehash_list.c: Likewise.
41292         * tests/test-rbtreehash_list.c: Likewise.
41293         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41294         * modules/carray-list-tests (Makefile.am): Likewise.
41295         * modules/linked-list-tests (Makefile.am): Likewise.
41296         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41297         * modules/avltree-list-tests (Makefile.am): Likewise.
41298         * modules/rbtree-list-tests (Makefile.am): Likewise.
41299         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41300         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41301
41302         * NEWS: Mention the changes.
41303
41304         * lib/clean-temp.c: Include gl_xlist.h.
41305         * modules/clean-temp (Depends-on): Add xlist.
41306
41307         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41308         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41309
41310         * tests/test-array_oset.c: Include gl_xlist.h.
41311         * modules/array-oset-tests (Depends-on): Add xlist.
41312
41313         Reported by José E. Marchesi <jemarch@gnu.org>.
41314
41315 2009-12-13  Bruno Haible  <bruno@clisp.org>
41316
41317         Move the malloc checking from module 'oset' to new module 'xoset'.
41318         * modules/xoset: New file.
41319         * lib/gl_xoset.h: New file.
41320         * lib/gl_xoset.c: New file.
41321         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41322         declarations.
41323         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41324         (struct gl_oset_implementation): Rename and change methods accordingly.
41325         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41326         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41327         'int'. Mark as __warn_unused_result__.
41328         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41329         gl_oset_create_empty.
41330         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41331         'int'.
41332         * lib/gl_array_oset.c: Don't include xalloc.h.
41333         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41334         malloc, not xmalloc.
41335         (grow): Change return type to 'int'. Don't call xalloc_die.
41336         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41337         to 'int'.
41338         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41339         'int'.
41340         (gl_array_oset_implementation): Update.
41341         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41342         gl_tree_create_empty.
41343         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41344         'int'.
41345         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41346         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41347         xmalloc.
41348         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41349         not xmalloc.
41350         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41351         xmalloc.
41352         (gl_avltree_oset_implementation): Update.
41353         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41354         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41355         xmalloc.
41356         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41357         not xmalloc.
41358         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41359         xmalloc.
41360         (gl_rbtree_oset_implementation): Update.
41361         * modules/array-oset (Depends-on): Remove xalloc.
41362         * modules/avltree-oset (Depends-on): Likewise.
41363         * modules/rbtree-oset (Depends-on): Likewise.
41364         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41365         * tests/test-avltree_oset.c: Likewise.
41366         * tests/test-rbtree_oset.c: Likewise.
41367         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41368         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41369         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41370         * NEWS: Mention the change.
41371
41372 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41373
41374         maint.mk: allow a project to override release-prep commands
41375         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41376         commands into a new rule.
41377         (release-prep): New rule.
41378         (release-prep-hook): New overridable variable.
41379
41380 2009-12-13  Bruno Haible  <bruno@clisp.org>
41381
41382         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41383
41384 2009-12-13  Jim Meyering  <meyering@redhat.com>
41385
41386         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41387         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41388
41389 2009-12-12  Bruno Haible  <bruno@clisp.org>
41390
41391         duplocale: Tweak.
41392         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41393
41394 2009-12-12  Karl Berry  <karl@gnu.org>
41395
41396         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41397
41398 2009-12-12  Bruno Haible  <bruno@clisp.org>
41399
41400         * m4/po.m4: Undo incorrect untabification.
41401
41402 2009-12-12  Bruno Haible  <bruno@clisp.org>
41403
41404         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41405         * modules/c-strtod (Depends-on): Add locale.
41406         * modules/c-strtold (Depends-on): Likewise.
41407
41408 2009-12-12  Bruno Haible  <bruno@clisp.org>
41409
41410         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41411
41412 2009-12-11  Eric Blake  <ebb9@byu.net>
41413
41414         setenv: relax requirement in light of POSIX ruling
41415         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41416         not NULL.
41417         * tests/test-setenv.c (main): Relax test.
41418         * tests/test-unsetenv.c (main): Likewise.
41419         * doc/posix-functions/setenv.texi (setenv): Document this.
41420         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41421
41422 2009-12-11  Bruno Haible  <bruno@clisp.org>
41423
41424         New module 'fd-safer-flag'.
41425         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41426         * lib/dup-safer.c (dup_safer_flag): Remove function.
41427         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41428         * lib/fd-safer.c (fd_safer_flag): Remove function.
41429         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41430         * modules/cloexec (configure.ac): Drop indicator macro.
41431         * modules/fd-safer-flag: New file.
41432         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41433         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41434         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41435
41436 2009-12-11  Bruno Haible  <bruno@clisp.org>
41437
41438         Tests for module 'nl_langinfo'.
41439         * modules/nl_langinfo-tests: New file.
41440         * tests/test-nl_langinfo.sh: New file.
41441         * tests/test-nl_langinfo.c: New file.
41442
41443         New module 'nl_langinfo'.
41444         * lib/nl_langinfo.c: New file.
41445         * m4/nl_langinfo.m4: New file.
41446         * modules/nl_langinfo: New file.
41447         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41448
41449 2009-12-11  Bruno Haible  <bruno@clisp.org>
41450
41451         Tests for module 'langinfo'.
41452         * modules/langinfo-tests: New file.
41453         * tests/test-langinfo.c: New file.
41454
41455         New module 'langinfo'.
41456         * lib/langinfo.in.h: New file.
41457         * m4/langinfo_h.m4: New file.
41458         * modules/langinfo: New file.
41459         * doc/posix-headers/langinfo.texi: Mention the new module.
41460
41461 2009-12-11  Bruno Haible  <bruno@clisp.org>
41462
41463         * lib/config.charset: Untabify.
41464
41465 2009-12-11  Bruno Haible  <bruno@clisp.org>
41466
41467         * modules/unistd-safer (configure.ac): Drop indicator macro.
41468
41469 2009-12-11  Bruno Haible  <bruno@clisp.org>
41470
41471         Move pipe2-safer code to its own file.
41472         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41473         * lib/pipe-safer.c (pipe2_safer): Remove function.
41474         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41475         (Makefile.am): Add it to lib_SOURCES.
41476
41477 2009-12-10  Bruno Haible  <bruno@clisp.org>
41478
41479         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41480
41481 2009-12-10  Bruno Haible  <bruno@clisp.org>
41482
41483         Declare which arguments expect non-NULL values, for GCC and clang.
41484         * build-aux/arg-nonnull.h: New file.
41485         * modules/arg-nonnull: New file.
41486         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41487         (inet_ntop, inet_pton): Use it.
41488         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41489         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41490         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41491         (open, openat): Use it.
41492         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41493         (fnmatch): Use it.
41494         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41495         (getopt, getopt_long, getopt_long_only): Use it.
41496         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41497         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41498         Use it.
41499         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41500         (iconv_open): Use it.
41501         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41502         (strtoimax, strtoumax): Use it.
41503         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41504         (duplocale): Use it.
41505         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41506         (frexp, frexpl): Use it.
41507         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41508         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41509         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41510         (tsearch, tfind, tdelete, twalk): Use it.
41511         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41512         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41513         sigpending): Use it.
41514         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41515         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41516         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41517         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41518         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41519         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41520         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41521         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41522         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41523         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41524         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41525         Use it.
41526         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41527         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41528         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41529         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41530         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41531         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41532         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41533         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41534         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41535         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41536         strtoull, unsetenv): Use it.
41537         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41538         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41539         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41540         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41541         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41542         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41543         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41544         (strcasecmp, strncasecmp): Use it.
41545         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41546         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41547         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41548         rpl_setsockopt): Use it.
41549         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41550         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41551         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41552         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41553         (gettimeofday): Use it.
41554         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41555         (times): Use it.
41556         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41557         (uname): Use it.
41558         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41559         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41560         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41561         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41562         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41563         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41564         unlinkat, write): Use it.
41565         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41566         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41567         * lib/argv-iter.h: Include arg-nonnull.h.
41568         (_ATTRIBUTE_NONNULL_): Remove macro.
41569         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41570         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41571         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41572         optimization.
41573         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41574         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41575         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41576         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41577         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41578         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41579         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41580         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41581         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41582         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41583         * modules/dirent (Depends-on): Add arg-nonnull.
41584         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41585         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41586         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41587         * modules/fnmatch (Depends-on): Add arg-nonnull.
41588         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41589         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41590         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41591         * modules/glob (Depends-on): Add arg-nonnull.
41592         (Makefile.am): Insert arg-nonnull.h into glob.h.
41593         * modules/iconv_open (Depends-on): Add arg-nonnull.
41594         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41595         * modules/inttypes (Depends-on): Add arg-nonnull.
41596         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41597         * modules/locale (Depends-on): Add arg-nonnull.
41598         (Makefile.am): Insert arg-nonnull.h into locale.h.
41599         * modules/math (Depends-on): Add arg-nonnull.
41600         (Makefile.am): Insert arg-nonnull.h into math.h.
41601         * modules/netdb (Depends-on): Add arg-nonnull.
41602         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41603         * modules/search (Depends-on): Add arg-nonnull.
41604         (Makefile.am): Insert arg-nonnull.h into search.h.
41605         * modules/signal (Depends-on): Add arg-nonnull.
41606         (Makefile.am): Insert arg-nonnull.h into signal.h.
41607         * modules/spawn (Depends-on): Add arg-nonnull.
41608         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41609         * modules/stdio (Depends-on): Add arg-nonnull.
41610         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41611         * modules/stdlib (Depends-on): Add arg-nonnull.
41612         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41613         * modules/string (Depends-on): Add arg-nonnull.
41614         (Makefile.am): Insert arg-nonnull.h into string.h.
41615         * modules/strings (Depends-on): Add arg-nonnull.
41616         (Makefile.am): Insert arg-nonnull.h into strings.h.
41617         * modules/sys_socket (Depends-on): Add arg-nonnull.
41618         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41619         * modules/sys_stat (Depends-on): Add arg-nonnull.
41620         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41621         * modules/sys_time (Depends-on): Add arg-nonnull.
41622         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41623         * modules/sys_times (Depends-on): Add arg-nonnull.
41624         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41625         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41626         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41627         * modules/time (Depends-on): Add arg-nonnull.
41628         (Makefile.am): Insert arg-nonnull.h into time.h.
41629         * modules/unistd (Depends-on): Add arg-nonnull.
41630         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41631         * modules/wchar (Depends-on): Add arg-nonnull.
41632         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41633         * modules/argv-iter (Depends-on): Add arg-nonnull.
41634         * tests/test-canonicalize.c (null_ptr): New function.
41635         (main): Use it.
41636         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41637         (main): Use it.
41638         * tests/test-memmem.c (null_ptr): New function.
41639         (main): Use it.
41640         Reported by Jim Meyering.
41641
41642 2009-12-10  Bruno Haible  <bruno@clisp.org>
41643
41644         Use spaces for indentation, not tabs.
41645         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41646         * m4/*.m4: Untabify.
41647         * build-aux/*.h: Untabify.
41648         * tests/**/*.[hc]: Untabify.
41649         * README: New section "Indent with spaces, not TABs", based on
41650         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41651         * NEWS: Mention the change.
41652
41653 2009-12-10  Bruno Haible  <bruno@clisp.org>
41654
41655         pty test: Fix link error.
41656         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41657         test_pty_LDADD.
41658
41659 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41660
41661         * modules/pty: New file.
41662         * modules/pty-tests: New file.
41663         * m4/pty.m4: New file.
41664         * tests/test-pty.c: New file.
41665         * doc/glibc-headers/pty.texi: Modified.
41666         * doc/glibc-functions/forkpty.texi: Modified.
41667         * doc/glibc-functions/openpty.texi: Modified.
41668
41669 2009-12-10  Bruno Haible  <bruno@clisp.org>
41670
41671         Avoid syntax error in C++ mode.
41672         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41673
41674 2009-12-10  Bruno Haible  <bruno@clisp.org>
41675
41676         Use sed with option -e.
41677         * gnulib-tool (func_version, func_emit_copyright_notice,
41678         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41679         option -e to sed.
41680         * modules/link-warning (Makefile.am): Likewise.
41681
41682 2009-12-10  Jim Meyering  <meyering@redhat.com>
41683
41684         mgetgroups: do not write bytes beyond end of malloc'd buffer
41685         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41686         username, we call getgroups with a one-element-shorter buffer,
41687         but still told it the length was original, max_n_groups.
41688
41689 2009-12-09  Eric Blake  <ebb9@byu.net>
41690
41691         cloexec: relax license
41692         * modules/cloexec (Maintainer): Add myself.
41693         (License): Use LGPL, not GPL.
41694
41695         link-warning: optimize generation
41696         * modules/link-warning (Makefile.am): Reduce process usage.
41697
41698 2009-12-09  Bruno Haible  <bruno@clisp.org>
41699
41700         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41701         workaround was added on 2009-11-17.
41702
41703 2009-12-09  Jim Meyering  <meyering@redhat.com>
41704             Bruno Haible  <bruno@clisp.org>
41705
41706         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41707         * modules/link-warning (Makefile.am): Make the comment-removing sed
41708         command more robust in the face of bootstrap-prepended comment lines.
41709
41710 2009-12-09  Bruno Haible  <bruno@clisp.org>
41711
41712         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41713         most one group.
41714
41715 2009-12-09  Simon Josefsson <simon@josefsson.org>
41716             Bruno Haible  <bruno@clisp.org>
41717
41718         * build-aux/link-warning.h: Add copyright notice.
41719         * modules/link-warning (Makefile.am): Generate link-warning.h from
41720         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41721         * NEWS: Mention change in link-warning module.
41722         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41723         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41724         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41725         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41726         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41727         * modules/math (Makefile.am): Add dependency to math.h.
41728         * modules/search (Makefile.am): Add dependency to search.h.
41729         * modules/signal (Makefile.am): Add dependency to signal.h.
41730         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41731         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41732         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41733         * modules/string (Makefile.am): Add dependency to string.h.
41734         * modules/strings (Makefile.am): Add dependency to strings.h.
41735         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41736         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41737         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41738         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41739         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41740         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41741         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41742         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41743         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41744
41745 2009-12-09  Bruno Haible  <bruno@clisp.org>
41746
41747         fchdir: Optimize away rpl_fstat when possible.
41748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41749         REPLACE_OPEN_DIRECTORY.
41750         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41751
41752 2009-12-09  Bruno Haible  <bruno@clisp.org>
41753
41754         * lib/fchdir.c: Update comment.
41755
41756 2009-12-09  Bruno Haible  <bruno@clisp.org>
41757
41758         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41759
41760 2009-12-08  Eric Blake  <ebb9@byu.net>
41761
41762         fchdir: avoid memory leak on re-registration.
41763         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41764
41765 2009-12-08  Jim Meyering  <meyering@redhat.com>
41766
41767         init.sh: avoid Solaris 10 /bin/sh portability problem
41768         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41769         sourced script:
41770           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41771           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41772           bar
41773         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41774         and two tests used that idiom.
41775         * tests/init.sh: Update suggested usage comments.
41776         (path_prepend_): New function, to be used in place
41777         of the --src-path=DIR option.
41778         (setup_): Move PATH-prepending code into path_prepend_.
41779         * tests/test-pread.sh: Adapt to new usage.
41780         * tests/test-xalloc-die.sh: Likewise.
41781
41782 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41783
41784         * doc/gnulib.texi (Glibc pty.h): Add.
41785         * doc/glibc-functions/forkpty.texi: Add.
41786         * doc/glibc-functions/openpty.texi: Add.
41787         Suggested by Bruno Haible.
41788
41789 2009-12-08  Eric Blake  <ebb9@byu.net>
41790
41791         fchdir: fix logic bugs
41792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41793         * tests/test-fchdir.c (main): Enhance test.
41794         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41795         is in use.
41796
41797         dup2: fix logic bugs
41798         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41799         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41800         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41801         exists.
41802         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41803
41804 2009-12-07  Eric Blake  <ebb9@byu.net>
41805
41806         unlink: fix m4 detection
41807         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41808
41809         unistd-safer: add unit test
41810         * modules/unistd-safer-tests: New file.
41811         * tests/test-dup-safer.c: Likewise.
41812         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41813         * tests/test-dup2.c (setmode): Likewise.
41814         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41815
41816         cloexec: preserve text vs. binary across dup_cloexec
41817         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41818         mode.
41819         * modules/dup2-tests (Depends-on): Add binary-io.
41820         * modules/cloexec-tests (Depends-on): Likewise.
41821         * tests/test-dup2.c (setmode, is_mode): New helpers.
41822         (main): Add tests that translation mode is preserved.
41823         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41824         Reported by Bruno Haible.
41825
41826         mgetgroups: reduce duplicate listings
41827         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41828         resulting array.
41829         * tests/test-chown.h (test_chown): Simplify client.
41830         * tests/test-lchown.h (test_lchown): Likewise.
41831
41832 2009-12-06  Bruno Haible  <bruno@clisp.org>
41833
41834         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41835         value.
41836
41837 2009-12-06  Bruno Haible  <bruno@clisp.org>
41838
41839         * lib/progname.c: Include stdio.h, stdlib.h.
41840         (set_program_name): Reject a NULL argument.
41841
41842 2009-12-05  Eric Blake  <ebb9@byu.net>
41843
41844         pipe2-safer: new module
41845         * modules/pipe2-safer: New file.
41846         * lib/unistd-safer.h (pipe2_safer): New prototype.
41847         * lib/unistd--.h (pipe2): New wrapper.
41848         * lib/pipe-safer.c (pipe2_safer): New function.
41849         * modules/pipe (Depends-on): Add pipe2-safer.
41850         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41851
41852         stdlib-safer: preserve cloexec flag for mkostemp[s]
41853         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41854         fd_safer_flag.
41855
41856         unistd-safer: allow preservation of cloexec status via flag
41857         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41858         prototypes.
41859         * lib/dup-safer.c (dup_safer_flag): New function.
41860         * lib/fd-safer.c (fd_safer_flag): Likewise.
41861         * modules/cloexec (configure.ac): Set witness.
41862
41863         test-dup2: enhance test
41864         * modules/dup2-tests (Depends-on): Add cloexec.
41865         * tests/test-dup2.c (main): Enhance test.
41866
41867         cloexec: add dup_cloexec
41868         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41869         header and comments.
41870         * lib/cloexec.c (set_cloexec_flag): Add comments.
41871         (dup_cloexec): New function, with mingw implementation borrowed
41872         from...
41873         * lib/w32spawn.h (dup_noinherit): ...here.
41874         * modules/execute (Depends-on): Add cloexec.
41875         * modules/pipe (Depends-on): Likewise.
41876         * modules/cloexec (Depends-on): Add dup2.
41877         * modules/cloexec-tests (Files): New file.
41878         * tests/test-cloexec.c: Likewise.
41879
41880         test-xalloc-die: fix test for mingw
41881         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41882         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41883         directory and .exe suffix off argv[0] output.
41884
41885         test-fseeko: fix test for mingw
41886         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41887         than undefining fseek, so test will pass on mingw.
41888
41889 2009-12-05  Bruno Haible  <bruno@clisp.org>
41890
41891         * lib/progname.h (set_program_name): Clarify specification.
41892         * lib/progname.c (set_program_name): Likewise.
41893         Reported by Jim Meyering.
41894
41895 2009-12-05  Jim Meyering  <meyering@redhat.com>
41896
41897         maint.mk: backslash-escape parens in default regexp
41898         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41899         backslash-escape the literal parentheses.
41900
41901         maint.mk: news-date-check: use grep -E
41902         * top/maint.mk (today): Define a Make variable, not a...
41903         (news-date-check): ...shell variable.
41904         (news-date-regexp): Use the Make variable.
41905         Use grep's -E option.  Change the failing diagnostic to mention
41906         the variable, $(news-date-regexp).
41907
41908 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41909
41910         maintainer-makefile: allow customization of NEWS entry format
41911         * top/maint.mk (news-date-regexp): New overridable variable.
41912         (news-date-check): Use it.
41913
41914 2009-12-04  Eric Blake  <ebb9@byu.net>
41915
41916         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41917         * lib/mgetgroups.h (xgetgroups): New prototype.
41918         * lib/mgetgroups.c (xgetgroups): New wrapper.
41919         (mgetgroups): Handle ENOSYS.
41920         * modules/mgetgroups (Depends-on): Add realloc.
41921         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41922
41923         mgetgroups: avoid argument promotion issues with -1
41924         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41925         for invalid gid_t.
41926         * tests/test-chown.h (getegid, test_chown): Likewise.
41927         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41928
41929 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41930
41931         exclude: Fix header file problems.
41932         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41933
41934 2009-12-01  Jim Meyering  <meyering@redhat.com>
41935
41936         fts: fts_open: do not let an empty string cause immediate failure
41937         This is required in support of GNU rm, for which the command
41938         "rm A '' B" must process and remove both A and B, in spite of
41939         the empty string argument.
41940         * lib/fts.c (fts_open): Do not let the presence of an empty string
41941         cause fts_open to fail immediately.  Most fts-using tools must be
41942         able to process all arguments, in order, and can be expected to
41943         diagnose such arguments themselves.
41944
41945 2009-11-30  Eric Blake  <ebb9@byu.net>
41946
41947         utimens: fix compilation error
41948         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41949         Declare variable at right scope.
41950
41951 2009-11-29  Jim Meyering  <meyering@redhat.com>
41952
41953         bootstrap: handle perl-5.11's changed --version output
41954         * build-aux/bootstrap (get_version): Handle perl separately,
41955         since perl-5.11's --version output is different.
41956
41957 2009-11-28  Jim Meyering  <meyering@redhat.com>
41958
41959         userspec: depend on the inttostr module, too
41960         * modules/userspec (Depends-on): Add inttostr.
41961
41962         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41963         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41964         number of MAXUID when it evaluates to (uid_t) -1.
41965         Likewise for group ID.  Reported by Matt McCutchen in
41966         <http://savannah.gnu.org/bugs/?28113>
41967
41968         userspec: reformat to use spaces, not TABs
41969         * lib/userspec.c: Expand TABs to spaces.
41970         Add Emacs' "indent-tabs-mode: nil" hint.
41971
41972 2009-11-27  Eric Blake  <ebb9@byu.net>
41973
41974         getopt-gnu: flush out another BSD bug
41975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41976         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41977         flush out BSD bug.
41978         * tests/test-getopt.h (test_getopt): End lists with NULL.
41979         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41980         (test_getopt_long_posix): Enhance test.
41981         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41982         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41983         getopt-gnu.
41984         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41985         Likewise.
41986
41987 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41988
41989         * modules/idpriv-droptemp-tests (Notice): Fix text.
41990
41991 2009-11-27  Jim Meyering  <meyering@redhat.com>
41992
41993         test-xalloc-die: avoid spurious failure due to libtool argv difference
41994         In a libtool-enabled project, this test would fail due to a difference
41995         in the emitted program name, e.g.,
41996         -test-xalloc-die: memory exhausted
41997         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41998         Use program to avoid that.
41999         * modules/xalloc-die-tests (Depends-on): Add progname.
42000         * tests/test-xalloc-die.c: Include progname.h".
42001         (program_name): Remove decl.
42002         (main): Call set_program_name.
42003         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42004
42005 2009-11-26  Richard Jones  <rjones@redhat.com>
42006
42007         w32sock: leave win32 error in place.
42008         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42009
42010 2009-11-26  Eric Blake  <ebb9@byu.net>
42011
42012         init.sh: suggest to use skip_ and fail_ functions in comments
42013         * tests/init.sh: Add a sentence.
42014
42015 2009-11-25  Bruno Haible  <bruno@clisp.org>
42016
42017         init.sh: add documentation in comments
42018         * tests/init.sh: Add some developer and user documentation.
42019
42020 2009-11-26  Jim Meyering  <meyering@redhat.com>
42021
42022         init.sh: accommodate even those who specify bogus srcdir manually
42023         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42024         configure-time tests to be sanitized, so that there is no need to
42025         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42026         (with no double quotes) suffices.  However, since tests may be
42027         invoked manually, and since you may explicitly set srcdir to the
42028         name of a directory containing spaces, do quote its uses here.
42029         * tests/test-pread.sh: Likewise.
42030         Suggested by Bruno Haible.
42031
42032         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42033         * tests/test-pread.sh: Write no data into the pipe, because
42034         test-pread actually reads none.  This avoids a diagnostic,
42035         "bash: echo: write error: Broken pipe", that arises in the unusual
42036         event something is ignoring SIGPIPE, and might be interpreted
42037         as some sort of failure.  Reported by Bruno Haible.
42038
42039 2009-11-25  Jim Meyering  <meyering@redhat.com>
42040
42041         test-pread: cover failure with ESPIPE and EINVAL
42042         * tests/test-pread.c (main): Test for failure, too.
42043         * tests/test-pread.sh: Invoke with stdin on a pipe.
42044         Suggested by Eric Blake.
42045
42046         pread: improvement and fix
42047         * modules/pread (Depends-on): Depend on lseek, for portability to
42048         e.g., mingw.  Suggested by Eric Blake.
42049         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42050
42051         unistd.in.h: correct declaration of pread
42052         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42053         Reported by Richard W.M. Jones.
42054
42055         test-pread.sh: distribute the test script
42056         * modules/pread-tests (Files): Include test-pread.sh.
42057
42058         test-pread.sh: clean up
42059         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42060         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42061         That is unnecessary, since it's always ".".
42062         Suggestion from Eric Blake.
42063
42064         test-pread.sh: make executable
42065         * tests/test-pread.sh: Set executable bit.
42066         Reported by Eric Blake.
42067
42068         correct typo in test-pread.sh
42069         * tests/test-pread.sh: Add #! line.
42070
42071         test pread
42072         * tests/test-pread.c: New file.
42073         * tests/test-pread.sh: Likewise.
42074         * modules/pread-tests: Likewise.
42075
42076         pread: new module
42077         * modules/pread: New file.
42078         * lib/unistd.in.h (pread): Define/declare.
42079         * lib/pread.c (pread): New file.
42080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42081         * modules/unistd (Makefile.am): Substitute witnesses.
42082         * doc/posix-functions/pread.texi (pread): Update.
42083         * MODULES.html.sh: Add pread.
42084
42085 2009-11-25  Jim Meyering  <meyering@redhat.com>
42086
42087         tests/init.sh: new file to be used via most *.sh tests
42088         * tests/init.sh: New file.
42089
42090 2009-11-25  Eric Blake  <ebb9@byu.net>
42091
42092         utimens: work around older Linux failure with symlinks
42093         * lib/utimens.c (lutimensat_works_really): New variable.
42094         (fdutimens, lutimens): Use it to manage kernels that support
42095         nanosecond times on files, but not on symlinks.
42096         Reported by OndÅ™ej Vašík.
42097
42098         utimes: fix configure grammar
42099         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42100
42101 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42102
42103         regex: Fix fastmap for multibyte character ranges.
42104         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42105         characters when a multibyte character range is included.
42106
42107 2009-11-22  Andy Wingo  <wingo@pobox.com>
42108
42109         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42110         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42111
42112 2009-11-24  Bruno Haible  <bruno@clisp.org>
42113
42114         doc: Most *_l functions exist in MacOS X 10.5.
42115         * doc/posix-functions/duplocale.texi: Update platforms list.
42116         * doc/posix-functions/freelocale.texi: Likewise.
42117         * doc/posix-functions/newlocale.texi: Likewise.
42118         * doc/posix-functions/uselocale.texi: Likewise.
42119         * doc/posix-functions/isalnum_l.texi: Likewise.
42120         * doc/posix-functions/isalpha_l.texi: Likewise.
42121         * doc/posix-functions/isblank_l.texi: Likewise.
42122         * doc/posix-functions/iscntrl_l.texi: Likewise.
42123         * doc/posix-functions/isdigit_l.texi: Likewise.
42124         * doc/posix-functions/isgraph_l.texi: Likewise.
42125         * doc/posix-functions/islower_l.texi: Likewise.
42126         * doc/posix-functions/isprint_l.texi: Likewise.
42127         * doc/posix-functions/ispunct_l.texi: Likewise.
42128         * doc/posix-functions/isspace_l.texi: Likewise.
42129         * doc/posix-functions/isupper_l.texi: Likewise.
42130         * doc/posix-functions/iswalnum_l.texi: Likewise.
42131         * doc/posix-functions/iswalpha_l.texi: Likewise.
42132         * doc/posix-functions/iswblank_l.texi: Likewise.
42133         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42134         * doc/posix-functions/iswctype_l.texi: Likewise.
42135         * doc/posix-functions/iswdigit_l.texi: Likewise.
42136         * doc/posix-functions/iswgraph_l.texi: Likewise.
42137         * doc/posix-functions/iswlower_l.texi: Likewise.
42138         * doc/posix-functions/iswprint_l.texi: Likewise.
42139         * doc/posix-functions/iswpunct_l.texi: Likewise.
42140         * doc/posix-functions/iswspace_l.texi: Likewise.
42141         * doc/posix-functions/iswupper_l.texi: Likewise.
42142         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42143         * doc/posix-functions/isxdigit_l.texi: Likewise.
42144         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42145         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42146         * doc/posix-functions/strcoll_l.texi: Likewise.
42147         * doc/posix-functions/strfmon_l.texi: Likewise.
42148         * doc/posix-functions/strftime_l.texi: Likewise.
42149         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42150         * doc/posix-functions/strxfrm_l.texi: Likewise.
42151         * doc/posix-functions/tolower_l.texi: Likewise.
42152         * doc/posix-functions/toupper_l.texi: Likewise.
42153         * doc/posix-functions/towctrans_l.texi: Likewise.
42154         * doc/posix-functions/towlower_l.texi: Likewise.
42155         * doc/posix-functions/towupper_l.texi: Likewise.
42156         * doc/posix-functions/wcscoll_l.texi: Likewise.
42157         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42158         * doc/posix-functions/wctrans_l.texi: Likewise.
42159         * doc/posix-functions/wctype_l.texi: Likewise.
42160         * doc/glibc-functions/strptime_l.texi: Likewise.
42161         * doc/glibc-functions/strtod_l.texi: Likewise.
42162         * doc/glibc-functions/strtof_l.texi: Likewise.
42163         * doc/glibc-functions/strtol_l.texi: Likewise.
42164         * doc/glibc-functions/strtold_l.texi: Likewise.
42165         * doc/glibc-functions/strtoll_l.texi: Likewise.
42166         * doc/glibc-functions/strtoul_l.texi: Likewise.
42167         * doc/glibc-functions/strtoull_l.texi: Likewise.
42168         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42169         * doc/glibc-functions/wcstod_l.texi: Likewise.
42170         * doc/glibc-functions/wcstof_l.texi: Likewise.
42171         * doc/glibc-functions/wcstol_l.texi: Likewise.
42172         * doc/glibc-functions/wcstold_l.texi: Likewise.
42173         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42174         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42175         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42176
42177 2009-11-24  Bruno Haible  <bruno@clisp.org>
42178
42179         duplocale: Fix logic bug.
42180         * lib/duplocale.c: Don't include <langinfo.h>.
42181         (_NL_LOCALE_NAME): Remove macro.
42182         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42183         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42184
42185 2009-11-23  Jim Meyering  <meyering@redhat.com>
42186
42187         test-update-copyright: don't hard-code /usr/bin/perl
42188         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42189         perl to print the current year.  Gilles Espinasse reported that
42190         the replaced use of perl was hard-coded as /usr/bin/perl.
42191
42192 2009-11-23  Bruno Haible  <bruno@clisp.org>
42193
42194         duplocale: Add support for glibc 2.3.x.
42195         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42196
42197 2009-11-22  Bruno Haible  <bruno@clisp.org>
42198
42199         vasnprintf: Tiny optimization.
42200         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42201         MacOS X.
42202
42203 2009-11-22  Bruno Haible  <bruno@clisp.org>
42204
42205         Tests for module 'duplocale'.
42206         * modules/duplocale-tests: New file.
42207         * tests/test-duplocale.c: New file.
42208
42209         New module 'duplocale'.
42210         * m4/duplocale.m4: New file.
42211         * lib/locale.in.h (duplocale): New declaration.
42212         * lib/duplocale.c: New file.
42213         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42214         gl_LOCALE_H_DEFAULTS): New macros.
42215         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42216         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42217         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42218         REPLACE_DUPLOCALE.
42219         * modules/duplocale: New file.
42220         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42221
42222 2009-11-22  Bruno Haible  <bruno@clisp.org>
42223
42224         * modules/locale-tests (configure.ac): Test for newlocale function.
42225         * tests/test-locale.c: When the system has extended locale functions,
42226         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42227
42228         locale: Make locale_t available when possible.
42229         * lib/locale.in.h: Include <xlocale.h> when it exists.
42230         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42231         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42232         * modules/locale (Depends-on): Add extensions.
42233         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42234         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42235
42236 2009-11-22  Bruno Haible  <bruno@clisp.org>
42237
42238         Add comments.
42239         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42240         invocation.
42241         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42242         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42243         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42244
42245 2009-11-22  Bruno Haible  <bruno@clisp.org>
42246
42247         error: account for the possibility of freopen (stdout).
42248         * lib/error.c: Include <unistd.h>.
42249         (flush_stdout): New function, extracted from error and error_at_line.
42250         Determine stdout's fd dynamically.
42251         (error, error_at_line): Invoke flush_stdout.
42252         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42253         * modules/error (Depends-on): Add unistd.
42254
42255 2009-11-22  Bruno Haible  <bruno@clisp.org>
42256
42257         diffseq: Add comment.
42258         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42259
42260 2009-11-22  Jim Meyering  <meyering@redhat.com>
42261
42262         c-stack: avoid defining an unused static function
42263         * lib/c-stack.c (find_stack_direction): Do not define this function
42264         when it will not be used.
42265
42266         diffseq: avoid spurious gcc warnings
42267         * lib/diffseq.h (IF_LINT2): Define.
42268         (compareseq): Use it to initialize two members of "part".
42269         This avoids two used-uninitialized warnings.
42270
42271 2009-11-21  Jim Meyering  <meyering@redhat.com>
42272
42273         c-stack: avoid "ignoring return value of `write'" warning
42274         * lib/c-stack.c: Include "ignore-value.h".
42275         (die): Explicitly ignore each write return value.
42276         * modules/c-stack (Depends-on): Add ignore-value.
42277
42278 2009-11-21  Bruno Haible  <bruno@clisp.org>
42279
42280         diffseq: reduce scope of variable 'best'.
42281         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42282         variable, earlier used for two different purposes.
42283
42284 2009-11-21  Jim Meyering  <meyering@redhat.com>
42285
42286         diffseq: remove useless assignment to "best"
42287         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42288         assignment.  At that point "best" is already guaranteed to be zero.
42289
42290 2009-11-20  Eric Blake  <ebb9@byu.net>
42291
42292         build: mention ftp redirector in release announcements
42293         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42294         values that used to come from cfg.mk; mention FTP redirect URL.
42295         * build-aux/announce-gen: Mention the mirror list.
42296         Suggested by Karl Berry.
42297
42298         nanosleep: improve port to mingw
42299         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42301         LIB_NANOSLEEP, but only when needed.
42302         * modules/select (Link): Document LIBSOCKET.
42303         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42304         enough.
42305
42306         nanosleep: work around cygwin bug
42307         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42308         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42309         bug.
42310         (getnow): Delete, not needed.
42311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42312         LIB_CLOCK_GETTIME.
42313         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42314         clock-time, gettime.
42315         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42316         bug.
42317         * modules/nanosleep-tests: New test.
42318         * tests/test-nanosleep.c: New file.
42319
42320         sleep: work around cygwin bug
42321         * lib/sleep.c (rpl_sleep): Work around the bug.
42322         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42323         (gl_PREREQ_SLEEP): Delete unused macro.
42324         * modules/sleep (Depends-on): Add verify.
42325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42326         * modules/unistd (Makefile.am): Substitute witness.
42327         * lib/unistd.in.h (sleep): Update prototype.
42328         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42329         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42330         * modules/sleep-tests (Depends-on): Check for alarm.
42331
42332 2009-11-20  Jim Meyering  <meyering@redhat.com>
42333
42334         maint.mk: improve sc_prohibit_magic_number_exit
42335         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42336         so it does not match uses like System.exit(1).
42337         Add comments showing how to correct all offenders.
42338
42339 2009-11-19  Eric Blake  <ebb9@byu.net>
42340
42341         xalloc-die-tests: add missing library
42342         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42343
42344         test-xvasprintf: silence compiler warnings
42345         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42346         empty string from gcc.
42347
42348 2009-11-19  Jim Meyering  <meyering@redhat.com>
42349
42350         xfreopen: new module, from coreutils
42351         * modules/xfreopen: New module.
42352         * lib/xfreopen.c: New file.
42353         * lib/xfreopen.h: New file.
42354         * MODULES.html.sh (File stream based Input/Output"): Add it.
42355
42356 2009-11-19  Eric Blake  <ebb9@byu.net>
42357
42358         manywarnings: depend on warnings
42359         * modules/manywarnings (Depends-on): Add warnings.
42360
42361         build: avoid compiler warnings
42362         * lib/select.c (rpl_select): Delete unused variable.
42363         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42364
42365 2009-11-18  Eric Blake  <ebb9@byu.net>
42366
42367         tests: avoid false negative with --with-packager
42368         * tests/test-version-etc.sh: Discard packager information.
42369         * tests/test-argp-version-etc-1.sh: Likewise.
42370         Reported by Mike Frysinger.
42371
42372         utimens: fix regression on Solaris
42373         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42374         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42375         can only change fd timestamps via futimesat.  Instead, use an
42376         additional witness macro to avoid BSD bug.
42377         Reported by Jim Meyering.
42378
42379 2009-11-17  Eric Blake  <ebb9@byu.net>
42380
42381         usleep: use it to simplify tests
42382         * modules/stat-time-tests (Depends-on): Add usleep.
42383         (configure.ac): Drop usleep check.
42384         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42385         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42386         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42387         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42388         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42389         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42390         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42391         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42392         Likewise.
42393         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42394         * tests/test-lchown.h (nap): Likewise.
42395         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42396         * tests/test-stat-time.c (nap): Likewise.
42397         * tests/test-utimens-common.h (nap): Update comments.
42398
42399         usleep: new module
42400         * modules/usleep: New file.
42401         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42402         * lib/usleep.c (usleep): Likewise.
42403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42404         * modules/unistd (Makefile.am): Substitute witnesses.
42405         * lib/unistd.in.h (usleep): Add declaration.
42406         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42407         * MODULES.html.sh (Date and time): Likewise.
42408         * modules/usleep-tests (Depends-on): New test.
42409         * tests/test-usleep.c: New file.
42410
42411         chown: work around OpenBSD bug
42412         * lib/chown.c (rpl_chown): Work around the bug.
42413         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42414         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42415         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42416         * modules/chown (Depends-on): Add stdbool.
42417         * modules/lchown (Depends-on): Likewise.
42418         * doc/posix-functions/chown.texi (chown): Document the bug.
42419         * doc/posix-functions/lchown.texi (lchown): Likewise.
42420         * tests/test-lchown.h (test_chown): Relax test.
42421
42422         mkstemp: avoid conflict with C++ keyword template
42423         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42424         * lib/mkostemp.c (mkostemp): Likewise.
42425         * lib/mkostemps.c (mkostemps): Likewise.
42426         * lib/mkstemp.c (mkstemp): Likewise.
42427         * lib/mkstemps.c (mkstemps): Likewise.
42428
42429         xalloc-die-tests: optimize
42430         * tests/test-xalloc-die.sh: Reduce number of processes.
42431
42432 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42433
42434         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42435         patch from ludo@gnu.org (Ludovic Courtès).
42436
42437 2009-11-17  Jim Meyering  <meyering@redhat.com>
42438
42439         version-etc: use proper license string
42440         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42441         * modules/version-etc-fsf: Likewise.
42442
42443 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42444
42445         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42446         printed to stdout.  Deal with EOL differences.
42447
42448 2009-11-17  Eric Blake  <ebb9@byu.net>
42449
42450         unsetenv: work around Solaris bug
42451         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42452         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42453         Reported by Jim Meyering.
42454
42455         vasnprintf: avoid compiler warnings
42456         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42457         variables.
42458         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42459
42460 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42461
42462         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42463         settings since xalloc-die is no longer the self test,
42464         xalloc-die.sh is.
42465
42466 2009-11-17  Jim Meyering  <meyering@redhat.com>
42467
42468         test-xalloc-die.sh: make the code agree with the commit log
42469         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42470         at the end, just in case you happen to have a test-xalloc-die
42471         program in some other PATH directory.
42472
42473         test-xalloc-die.sh: fix a portability bug
42474         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42475         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42476         Otherwise, argv[0] (as often seen in diagnostics) would be too
42477         system-dependent, sometimes with, and sometimes without the leading "./".
42478
42479         version-etc-fsf: relax license to LGPLv3+
42480         * modules/version-etc-fsf (License): Relax license.
42481
42482 2009-11-16  Eric Blake  <ebb9@byu.net>
42483
42484         xalloc-die-tests: avoid printing null pointer
42485         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42486         shell script.
42487         * tests/test-xalloc-die.c (program_name): Declare.
42488         * tests/test-xalloc-die.sh (tmpfiles): New file.
42489
42490         setenv, unsetenv: work around various bugs
42491         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42492         (setenv) [HAVE_SETENV]: Work around bugs.
42493         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42494         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42495         for bugs.
42496         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42497         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42499         * modules/stdlib (Makefile.am): Update substitutions.
42500         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42501         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42502         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42503         * modules/setenv-tests: New test.
42504         * modules/unsetenv-tests: Likewise.
42505         * tests/test-setenv.c: New file.
42506         * tests/test-unsetenv.c: Likewise.
42507
42508 2009-11-16  Jim Meyering  <meyering@redhat.com>
42509
42510         version-etc: relax license to LGPLv3+
42511         * modules/version-etc (License): Relax license.
42512
42513         better AC_REQUIRE expanded-before-required-warning avoidance
42514         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42515         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42516         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42517         which is no longer needed.
42518
42519 2009-11-16  Eric Blake  <ebb9@byu.net>
42520
42521         test-freading: clean up temporary file
42522         * tests/test-freading.c (main): Remove file on success, and use
42523         ASSERT more liberally.
42524         Reported by Jim Meyering.
42525
42526 2009-11-16  Jim Meyering  <meyering@redhat.com>
42527
42528         avoid new AC_REQUIRE expanded-before-required warnings
42529         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42530         merely using it.
42531         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42532         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42533
42534 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42535
42536         * tests/test-xalloc-die.c: New file.
42537         * modules/xalloc-die-tests: New file.
42538         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42539         XFAIL_TESTS so it can be appended by modules.
42540
42541 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42542
42543         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42544         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42545
42546 2009-11-14  Eric Blake  <ebb9@byu.net>
42547
42548         fnmatch: avoid compiler warning
42549         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42550         to silence compiler warning about mismatch signedness in ?:.
42551         Reported by Robert Millan.
42552
42553         intprops: add double-inclusion guard
42554         * lib/intprops.h: Allow idempotent includes.
42555         Suggested by Bruce Korb.
42556
42557         openat: detect Solaris fchownat bug
42558         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42559         penalizing glibc chownat when only lchownat is broken.
42560         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42561         trailing slash bugs.
42562         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42563         * modules/openat-tests (Files): Include more files.
42564         (Depends-on): Add mgetgroups, sleep, stat-time.
42565         (configure.ac): Add additional checks.
42566         (Makefile.am): Build new test.
42567         * tests/test-fchownat.c: New file.
42568
42569         lchown: detect Solaris and FreeBSD bug
42570         * lib/lchown.c (rpl_lchown): Work around bug.
42571         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42573         * modules/unistd (Makefile.am): Populate it.
42574         * lib/unistd.in.h (lchown): Update declaration.
42575         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42576         * modules/lchown-tests: New file.
42577         * tests/test-lchown.h (test_lchown): Likewise.
42578         * tests/test-lchown.c (main): Likewise.
42579
42580         chown: detect Solaris and FreeBSD bug
42581         * lib/chown.c (rpl_chown): Work around bug.
42582         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42583         (gl_PREREQ_CHOWN): Delete.
42584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42585         * modules/unistd (Makefile.am): Populate it.
42586         * lib/unistd.in.h (chown): Update declaration.
42587         * lib/lchown.c (chown): Update client.
42588         * modules/lchown (Depends-on): Add lstat.
42589         * doc/posix-functions/chown.texi (chown): Document the bug.
42590         * doc/posix-functions/getgroups.texi (getgroups): Document
42591         getgroups pitfall.
42592         * modules/chown-tests: New file.
42593         * tests/test-chown.h (test_chown): Likewise.
42594         * tests/test-chown.c (main): Likewise.
42595
42596 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42597
42598         gnulib-tool: correctly detect absence of m4 directories
42599         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42600
42601 2009-11-14  Jim Meyering  <meyering@redhat.com>
42602
42603         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42604         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42605
42606 2009-11-14  John W. Eaton  <jwe@gnu.org>
42607
42608         strftime.h: wrap function declaration in extern "C" block
42609         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42610
42611 2009-11-13  Eric Blake  <ebb9@byu.net>
42612
42613         getgroups: avoid compiler warning
42614         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42615
42616         getgroups: work around FreeBSD bug
42617         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42618         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42619         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42620         * tests/test-getgroups.c (main): Fix buffer overrun.
42621
42622         getgroups: avoid compilation failure
42623         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42624         * modules/getgroups (Depends-on): Add stdint.
42625
42626 2009-11-13  Jim Meyering  <meyering@redhat.com>
42627
42628         test-getgroups: avoid compilation failure
42629         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42630
42631 2009-11-13  Eric Blake  <ebb9@byu.net>
42632
42633         mgetgroups: new module, taken from coreutils
42634         * modules/mgetgroups: New file.
42635         * lib/mgetgroups.h: Likewise.
42636         * lib/mgetgroups.c (mgetgroups): Likewise.
42637         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42638         * MODULES.html.sh (Users and groups): Mention it.
42639
42640         getgroups: don't expose GETGROUPS_T to user
42641         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42642         an element at a time if GETGROUPS_T is wrong size.
42643         * lib/getugroups.h (getugroups): Change signature.
42644         * lib/unistd.in.h (getgroups): Likewise.
42645         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42646         signature needs fixing.
42647         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42648         AC_TYPE_GETGROUPS.
42649         * modules/group-member (Depends-on): Add getgroups.
42650         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42651         (group_member): Rely on getgroups replacement.
42652         * lib/getugroups.c (getugroups): Use gid_t.
42653         * tests/test-getgroups.c (main): Likewise.
42654         * NEWS: Mention the signature change.
42655         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42656         problem with signature.
42657         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42658         GETGROUPS_T is still useful for setgroups.
42659
42660         getgroups, getugroups: provide stubs for mingw
42661         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42662         * lib/getugroups.c (getugroups): Likewise.
42663         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42664         function.  Modernize replacement scheme.
42665         (gl_PREREQ_GETGROUPS): Delete.
42666         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42667         * modules/getgroups (configure.ac): Declare witness.
42668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42669         * modules/unistd (Depends-on): Substitute witness.
42670         * lib/unistd.in.h (getgroups): Declare replacement.
42671
42672         getgroups: avoid calling exit
42673         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42674         drop xalloc.
42675         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42676         dependencies.
42677         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42678         exiting, in the rare case of malloc failure.
42679
42680         getgroups: fix logic error
42681         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42682         has more than 20 groups.
42683         * modules/getgroups-tests: New test.
42684         * tests/test-getgroups.c: New file.
42685
42686 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42687
42688         * tests/test-base64.c: Improve.
42689
42690 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42691
42692         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42693         Blake <ebb9@byu.net>.
42694
42695 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42696
42697         * tests/test-xvasprintf.c: Add %s%s related checks.
42698
42699 2009-11-12  Eric Blake  <ebb9@byu.net>
42700
42701         version-etc: match standards.texi style
42702         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42703         and use <> only for URLs.
42704
42705 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42706
42707         fts: do not fail on a submount during traversal
42708         * lib/fts.c (fts_build): Read the stat info again after opening
42709         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42710         Original report at http://bugzilla.redhat.com/501848.
42711
42712 2009-11-12  Jim Meyering  <meyering@redhat.com>
42713
42714         bootstrap: sync from coreutils
42715         * build-aux/bootstrap (bootstrap_epilogue): New function.
42716         Use git_modules_config in one more place.  This make bootstrap's
42717         --gnulib-srcdir option more useful for testing.
42718
42719         bootstrap: generalize autoheader check
42720         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42721         AC_CONFIG_HEADERS.
42722
42723 2009-11-11  Eric Blake  <ebb9@byu.net>
42724
42725         mkfifoat: use new modules for Solaris and BSD bugs
42726         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42727         * lib/mkfifoat.c (mknodat): Split...
42728         * lib/mknodat.c (mknodat): ...into new file.
42729         * modules/mkfifoat (Files): Ship new file.
42730         (Depends-on): Add mkfifo, mknod.
42731         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42732         (Depends-on): Add symlink.
42733         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42734         redundant with test_mkfifo.h.
42735         (do_mkfifoat, do_mknodat): New helpers.
42736
42737         mknod: new module
42738         * modules/mknod: New file.
42739         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42740         * lib/mknod.c (mknod): Likewise.
42741         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42742         defaults.
42743         * modules/sys_stat (Makefile.am): Substitute them.
42744         * lib/sys_stat.in.h (mknod): Declare replacement.
42745         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42746         Document it.
42747         * doc/posix-functions/mknod.texi (mknod): Likewise.
42748         * modules/mknod-tests: New test.
42749         * tests/test-mknod.c: Likewise.
42750
42751         mkfifo: new module
42752         * modules/mkfifo: New file.
42753         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42754         * lib/mkfifo.c (mkfifo): Likewise.
42755         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42756         defaults.
42757         * modules/sys_stat (Makefile.am): Substitute them.
42758         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42759         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42760         Document it.
42761         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42762         * modules/mkfifo-tests: New test.
42763         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42764         from test-mkfifoat.c.
42765         * tests/test-mkfifo.c: New file.
42766
42767         readlink: detect FreeBSD bug
42768         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42769         slash on symlink.
42770         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42771         * tests/test-readlink.h (test_readlink): Enhance test.
42772
42773         symlink: detect FreeBSD bug
42774         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42775         slash on symlink.
42776         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42777         * tests/test-symlink.h (test_symlink): Enhance test.
42778
42779 2009-11-10  Eric Blake  <ebb9@byu.net>
42780
42781         link: detect FreeBSD bug
42782         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42783         symlink.
42784         * doc/posix-functions/link.texi (link): Document the bug.
42785         * tests/test-link.h (test_link): Enhance test.
42786         * tests/test-linkat.c (main): Update caller.
42787
42788         unlink, remove: detect FreeBSD bug
42789         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42790         slash on symlink.
42791         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42792         * doc/posix-functions/remove.texi (remove): Likewise.
42793         * tests/test-unlink.h (test_unlink): Enhance test.
42794         * tests/test-remove.c (main): Likewise.
42795
42796 2009-11-09  Eric Blake  <ebb9@byu.net>
42797
42798         rename: detect FreeBSD bug
42799         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42800         slash on symlink.
42801         * modules/renameat-tests (Depends-on): Add filenamecat.
42802         * tests/test-rename.h (test_rename): Allow one more errno.
42803         * tests/test-renameat.c (main): Likewise.
42804         * doc/posix-functions/rename.texi (rename): Document the bug.
42805
42806         open: detect FreeBSD bug
42807         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42808         symlink.
42809         * doc/posix-functions/open.texi (open): Document the bug.
42810         * doc/posix-functions/utimes.texi (utimes): Likewise.
42811         * tests/test-open.h (test_open): Add parameters, and test symlink
42812         handling.
42813         * tests/test-open.c (main): Adjust caller.
42814         * tests/test-fcntl-safer.c (main): Likewise.
42815         * modules/open-tests (Depends-on): Add stdbool, symlink.
42816         * modules/fcntl-safer-tests (Depends-on): Likewise.
42817         * tests/test-openat.c (main): Add test-open tests.
42818
42819         stat: detect FreeBSD bug
42820         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42821         symlink.
42822         * doc/posix-functions/stat.texi (stat): Document the bug.
42823         * tests/test-stat.h (test_stat_func): Add argument.
42824         * tests/test-stat.c (main): Adjust caller.
42825         * tests/test-fstatat.c (main): Likewise.
42826         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42827         Reported by Jim Meyering.
42828
42829 2009-11-09  James Youngman  <jay@gnu.org>
42830
42831         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42832         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42833
42834 2009-11-08  Jim Meyering  <meyering@redhat.com>
42835
42836         utimens: remove invalid futimesat call
42837         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42838         It used the file descriptor of the target file as the DIR_FD
42839         parameter and NULL as the file name.  That caused failure with
42840         errno == EFAULT on FreeBSD-8.0-rc2
42841
42842 2009-11-07  Eric Blake  <ebb9@byu.net>
42843
42844         fflush, freadseek: use fseeko, not fseek
42845         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42846         (clear_ungetc_buffer): Avoid potential problems on large files.
42847         * lib/freadseek.c (freadseek): Likewise.
42848         * modules/freadseek (Depends-on): Add fseeko.
42849         * modules/fseek (configure.ac): Set a witness.
42850         * tests/test-fflush.c (main): Use fseeko.
42851         * tests/test-fpurge.c (fseek): Disable link warning.
42852         * tests/test-freadable.c (fseek): Likewise.
42853         * tests/test-freading.c (fseek): Likewise.
42854         * tests/test-fseeko.c (fseek): Likewise.
42855         * tests/test-ftell.c (fseek): Likewise.
42856         * tests/test-ftello.c (fseek): Likewise.
42857         * tests/test-fwritable.c (fseek): Likewise.
42858         * tests/test-fwriting.c (fseek): Likewise.
42859
42860 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42861
42862         * modules/memchr (Depends-on): Drop getpagesize dependency.
42863
42864 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42865
42866         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42867         Reported by Ludovic Courtès.
42868         * build-aux/pmccabe2html: Improve example usage.
42869         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42870
42871 2009-11-06  Jim Meyering  <meyering@redhat.com>
42872
42873         do-release-commit-and-tag: New module.
42874         Automate the release-commit and tag process.
42875         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42876         * modules/do-release-commit-and-tag: New file.
42877         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42878
42879 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42880
42881         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42882         because test-select.c uses inet_pton.
42883
42884 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42885
42886         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42887         GETADDRINFO_LIB.  Bump serial number.
42888         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42889         Suggested by Eric Blake <ebb9@byu.net>.
42890
42891 2009-11-05  Eric Blake  <ebb9@byu.net>
42892
42893         strtod: detect darwin bug
42894         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42895         Reported by Leo Davis.
42896
42897         freopen-safer: new module
42898         * modules/freopen-safer: New module.
42899         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42900         * lib/freopen-safer.c (freopen_safer): New file.
42901         * lib/stdio-safer.h (freopen_safer): New declaration.
42902         * lib/stdio--.h (freopen): New override.
42903         * MODULES.html.sh (File stream based Input/Output): Mention it.
42904         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42905         freopen-safer module.
42906         * doc/posix-functions/stderr.texi (stderr): Likewise.
42907         * doc/posix-functions/stdin.texi (stdin): Likewise.
42908         * doc/posix-functions/stdout.texi (stdout): Likewise.
42909         * modules/freopen-safer-tests: New test.
42910         * tests/test-reopen-safer.c: New file.
42911
42912 2009-11-05  Jim Meyering  <meyering@redhat.com>
42913
42914         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42915         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42916
42917 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42918
42919         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42920
42921 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42922
42923         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42924
42925 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42926
42927         Fix link error.
42928         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42929         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42930
42931 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42932
42933         * tests/test-func.c: Also test value of __func__.
42934
42935 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42936
42937         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42938         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42939
42940 2009-11-05  Bruno Haible  <bruno@clisp.org>
42941
42942         Fix link error.
42943         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42944         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42945         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42946
42947 2009-11-05  Bruno Haible  <bruno@clisp.org>
42948
42949         Tests for module 'inet_pton'.
42950         * modules/inet_pton-tests: New file.
42951         * tests/test-inet_pton.c: New file.
42952
42953 2009-11-05  Bruno Haible  <bruno@clisp.org>
42954
42955         Tests for module 'inet_ntop'.
42956         * modules/inet_ntop-tests: New file.
42957         * tests/test-inet_ntop.c: New file.
42958
42959 2009-11-04  Eric Blake  <ebb9@byu.net>
42960
42961         stdlib-safer: wrap all mkstemp variants
42962         * modules/mkostemp (configure.ac): Set witness.
42963         * modules/mkostemps (configure.ac): Likewise.
42964         * modules/mkstemps (configure.ac): Likewise.
42965         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42966         (mkstemps_safer): Wrap more functions.
42967         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42968         wrapping.
42969         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42970         (mkstemps_safer): Implement the wrappers.
42971
42972         mkstemps, mkostemps: new modules
42973         * modules/mkostemps: New module.
42974         * modules/mkstemps: Likewise.
42975         * lib/mkostemps.c (mkostemps): New file.
42976         * lib/mkstemps.c (mkstemps): Likewise.
42977         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42978         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42980         * modules/stdlib (Makefile.am): Substitute them.
42981         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42982         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42983         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42984         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42985         * MODULES.html.sh (File system functions): Mention them.
42986
42987         tempname: resync from glibc
42988         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42989         same values for __GT_FILE as glibc.  Abort even when assertions
42990         are disabled.
42991         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42992         match its value otherwise.  Allow idempotent inclusion.
42993         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42994         * lib/mkostemp.c (mkostemp): Likewise.
42995         * lib/mkstemp.c (mkstemp): Likewise.
42996         * lib/tmpfile.c (tmpfile): Likewise.
42997         * NEWS: Document this.
42998
42999         utimens: fix use of futimens on older Linux
43000         * lib/utimens.c (fdutimens): Use updated, rather than original,
43001         timespec to avoid bug in older Linux kernel.
43002         Reported by Simon Josefsson.
43003
43004 2009-11-04  Bruno Haible  <bruno@clisp.org>
43005
43006         Make num_processors more flexible and consistent.
43007         * lib/nproc.h (enum nproc_query): New type.
43008         (num_processors): Add a 'query' argument.
43009         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43010         (num_processors): Add a 'query' argument. Test the value of the
43011         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43012         mingw, count the number of CPUs available for the current process.
43013         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43014         Check for sched_getaffinity and sched_getaffinity_np.
43015         * modules/nproc (Depends-on): Add c-ctype, extensions.
43016         * NEWS: Mention the change.
43017
43018 2009-11-03  Bruno Haible  <bruno@clisp.org>
43019
43020         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43021
43022 2009-11-03  Jim Meyering  <meyering@redhat.com>
43023
43024         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43025         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43026         if it is defined.
43027
43028 2009-11-02  Eric Blake  <ebb9@byu.net>
43029
43030         mktime, timegm: share common declaration
43031         * lib/mktime-internal.h: New file.
43032         * lib/mktime.c: Use it rather than open-coding a declaration.
43033         * lib/timegm.c: Likewise.
43034         * modules/mktime (Files): Ship it.
43035         * modules/timegm (Files): Likewise.
43036         Suggested by Bruno Haible.
43037
43038         test-update-copyright: update test to match script changes
43039         * tests/test-update-copyright.sh: Avoid hard-coding perl
43040         location.  Don't update *.bak created by earlier runs.
43041
43042 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43043             Simon Josefsson  <simon@josefsson.org>
43044             Bruno Haible  <bruno@clisp.org>
43045
43046         Fix link error on Solaris 8.
43047         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43048         also in libnsl. Define also INET_PTON_LIB.
43049         * modules/inet_pton (Link): New section.
43050
43051 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43052             Bruno Haible  <bruno@clisp.org>
43053
43054         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43055         * modules/inet_ntop (Link): New section.
43056         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43057
43058 2009-11-02  Eric Blake  <ebb9@byu.net>
43059
43060         maint: avoid compiler warnings in m4 macros
43061         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43062         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43063
43064 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43065
43066         * m4/pmccabe2html.m4: Remove file.
43067         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43068         function.  Change maintainer.
43069         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43070         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43071         Courtès).
43072
43073 2009-10-31  Eric Blake  <ebb9@byu.net>
43074
43075         fseeko: fix m4 regression
43076         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43077         regression from 2009-10-27.
43078         Reported by Ralf Wildenhues.
43079
43080 2009-10-31  Jim Meyering  <meyering@redhat.com>
43081
43082         inttostr: aesthetics and improved (compile-time) safety
43083         Define inttype_is_signed rather than inttype_is_unsigned,
43084         since the sole use is via "#if inttype_is_signed".
43085         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43086         inttype_is_unsigned.
43087         * lib/offtostr.c (inttype_is_signed): Likewise.
43088         * lib/uinttostr.c (inttype_is_signed): Likewise.
43089         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43090         * lib/inttostr.c (inttostr): Use verify to cross-check the
43091         inttype_is_signed value and the signedness of the actual type.
43092         * modules/inttostr (Depends-on): Add verify.
43093
43094 2009-10-30  Eric Blake  <ebb9@byu.net>
43095
43096         build: avoid compiler warnings
43097         * lib/fchmodat.c (lchmod): Mark unused variables.
43098         * lib/getopt.c (_getopt_initialize): Likewise.
43099         * lib/mktime.c (__mktime_internal): Provide prototype.
43100         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43101         older gcc that do not understand #pragma GCC diagnostic.
43102         * lib/uinttostr.c (inttype_is_unsigned): Define.
43103         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43104
43105 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43106
43107         stat: fix compilation on AIX
43108         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43109         only see struct stat64.
43110
43111 2009-10-30  Eric Blake  <ebb9@byu.net>
43112
43113         exclude: make more robust
43114         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43115         rather than masking a coding bug.
43116         Suggested by Bruno Haible.
43117
43118 2009-10-30  Jim Meyering  <meyering@redhat.com>
43119
43120         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43121         Rather than putting #!/usr/bin/perl on the first line,
43122         start with a variant of what's recommended by "man perlrun" that
43123         invokes the first "perl" program from your shell's search path.
43124         * build-aux/gitlog-to-changelog: Replace #!... as above.
43125         Add a "Local Variables" perl mode setting.
43126         Prompted by a patch from Ludovic Courtès.
43127         Improved by Eric Blake.
43128         * build-aux/useless-if-before-free: Likewise.
43129         * build-aux/announce-gen: Likewise.
43130         * build-aux/update-copyright: Likewise.
43131
43132 2009-10-29  Eric Blake  <ebb9@byu.net>
43133
43134         filenamecat-lgpl: adjust clients
43135         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43136         filenamecat.
43137         * modules/renameat (Depends-on): Likewise.
43138
43139         filenamecat: split into filenamecat-lgpl
43140         * modules/filenamecat-lgpl: New module.
43141         * modules/filenamecat (Files): Move library-safe files into
43142         filenamecat-lgpl.
43143         (Depends-on): Add filenamecat-lgpl.
43144         (configure.ac): Declare witness.
43145         * lib/filenamecat.h (file_name_concat): Only declare when using
43146         GPL module.
43147         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43148         Move...
43149         * lib/filenamecat-lgpl.c: ...into new file.
43150         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43151         (gl_FILE_NAME_CONCAT): Use it.
43152         * MODULES.html.sh (File system functions): Mention new module.
43153
43154         argp: avoid memory leak
43155         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43156         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43157         base_name, since the latter malloc()s and can call exit().
43158         Leak introduced 2006-07-03.
43159
43160         dirname-lgpl: adjust clients that don't need full dirname
43161         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43162         * modules/filenamecat (Depends-on): Likewise.
43163         * modules/linkat (Depends-on): Likewise.
43164         * modules/mkancesdirs (Depends-on): Likewise.
43165         * modules/mkdir (Depends-on): Likewise.
43166         * modules/openat (Depends-on): Likewise.
43167         * modules/savewd (Depends-on): Likewise.
43168         * modules/rename (Depends-on): Likewise.
43169         (License): Relax license.
43170         * modules/mkdir-tests (Depends-on): Drop progname.
43171         (Makefile.am): Delete unneeded LDADD.
43172         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43173
43174         dirname: split into dirname-lgpl
43175         * modules/dirname-lgpl: New module.
43176         * modules/dirname (Files): Move library-safe files into
43177         dirname-lgpl.
43178         (Depends-on): Add dirname-lgpl.
43179         (configure.ac): Declare witness.
43180         * modules/double-slash-root (License): Relax license.
43181         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43182         module.
43183         * lib/dirname.c (dir_len, mdir_name): Move...
43184         * lib/dirname-lgpl.c: ...into new file.
43185         * lib/basename.c (last_component, base_len): Move...
43186         * lib/basename-lgpl.c: ...into new file.
43187         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43188         (gl_DIRNAME): Use it.
43189         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43190         Mention new module.
43191         * modules/dirname-tests (Depends-on): Add progname.
43192         * tests/test-dirname.c (program_name): Delete.
43193
43194         mkdir: make safe for libraries
43195         * modules/mkdir (Depends-on): Drop xalloc.
43196         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43197         exit.
43198
43199         tests: avoid some compiler warnings
43200         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43201         literals.
43202         * tests/test-memchr.c (main): Avoid type mismatch.
43203         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43204         * tests/test-base64.c (main): Likewise.
43205         * tests/test-getdelim.c (main): Likewise.
43206         * tests/test-gethostname.c (main): Likewise.
43207         * tests/test-getline.c (main): Likewise.
43208         * tests/test-netinet_in.c (main): Likewise.
43209         * tests/test-select.c (open_server_socket, main): Likewise.
43210         * tests/test-select-stdin.c (main): Likewise.
43211         * tests/test-sockets.c (main): Likewise.
43212         * tests/test-strsignal.c (main): Likewise.
43213         * tests/test-sys_select.c (main): Likewise.
43214         * tests/test-sys_socket.c (main): Likewise.
43215         * tests/test-u64.c (main): Likewise.
43216         * tests/test-xfprintf-posix.c (main): Likewise.
43217         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43218
43219         sockets: avoid compiler warning
43220         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43221
43222         maint: detect usage(1) and other suspicious exits
43223         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43224
43225 2009-10-29  Jim Meyering  <meyering@redhat.com>
43226
43227         timespec: long-to-int truncation could make timespec_cmp malfunction
43228         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43229         a multiple of 2^32 nanoseconds as no difference.
43230
43231 2009-10-28  Jim Meyering  <meyering@redhat.com>
43232
43233         fprintftime: wrap macro code argument in "do {...} while(0)"
43234         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43235         cpy macro must be a statement that can be followed by a semicolon.
43236         Now that the else clause contains a comment and is hence longer
43237         than one line, I require curly braces.  That in turn requires
43238         that we wrap this code block in the standard do...while(0).
43239
43240         fprintftime: remove stray semicolon from previous change
43241         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43242
43243         fprintftime: avoid a warning about ignored fwrite return value
43244         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43245         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43246         that is unsafe.
43247         * modules/fprintftime (Depends-on): Add ignore-value.
43248
43249         exclude: avoid an unwarranted warning
43250         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43251
43252 2009-10-27  Eric Blake  <ebb9@byu.net>
43253
43254         fseek: avoid compilation failure when fflush is replaced
43255         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43256         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43257         module is in use.
43258         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43259         module is not in use; since REPLACE_FSEEK worked otherwise.
43260         (GNULIB_FTELLO): Likewise for ftell.
43261         Reported by Ian Beckwith and others.
43262
43263 2009-10-27  Bruno Haible  <bruno@clisp.org>
43264
43265         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43266         Reported by Jim Meyering.
43267
43268 2009-10-27  Jim Meyering  <jim@meyering.net>
43269             Bruno Haible  <bruno@clisp.org>
43270
43271         Avoid warning despite dropping the return value of fwrite.
43272         * lib/unicodeio.c: Include ignore-value.h.
43273         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43274         * modules/unicodeio (Depends-on): Add ignore-value.
43275
43276 2009-10-26  Eric Blake  <ebb9@byu.net>
43277
43278         areadlinkat: fix fallback path
43279         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43280         pointer and zero.
43281
43282 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43283
43284         Use a better IO block size for modern systems
43285         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43286         * lib/md2.c: Likewise.
43287         * lib/md4.c: Likewise.
43288         * lib/md5.c: Likewise.
43289         * lib/sha1.c: Likewise.
43290         * lib/sha256.c: Likewise.
43291         * lib/sha512.c: Likewise.
43292
43293 2009-10-22  Eric Blake  <ebb9@byu.net>
43294
43295         tests: avoid several compiler warnings
43296         * tests/test-getcwd.c (main): Avoid buffer underflow.
43297         * tests/test-getdate.c (main): String literals are not safe with
43298         putenv, so use setenv.  Declare unused argument.
43299         * modules/getdate-tests (Depends-on): Add setenv.
43300         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43301         problems with string literals in char *.
43302         * tests/test-hash.c (main): Avoid shadowing declaration.
43303         (insert_new): Treat string literals as char const *.
43304         * tests/test-getopt.h (test_getopt): Likewise.
43305         (getopt_loop): Alter types to minimize casting elsewhere.
43306         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43307         (test_getopt_long_posix): Likewise.
43308         (do_getopt_long): Add wrapper to minimize casting.
43309         * tests/test-atexit.c (clear_temp_file): Use void.
43310         * tests/test-areadlink-with-size.c (main): Declare unused
43311         arguments.
43312         * tests/test-areadlink.c (main): Likewise.
43313         * tests/test-areadlinkat-with-size.c (main): Likewise.
43314         * tests/test-areadlinkat.c (main): Likewise.
43315         * tests/test-canonicalize-lgpl.c (main): Likewise.
43316         * tests/test-canonicalize.c (main): Likewise.
43317         * tests/test-dirent-safer.c (main): Likewise.
43318         * tests/test-dirname.c (main): Likewise.
43319         * tests/test-dup2.c (main): Likewise.
43320         * tests/test-fchdir.c (main): Likewise.
43321         * tests/test-fcntl-h.c (main): Likewise.
43322         * tests/test-fcntl-safer.c (main): Likewise.
43323         * tests/test-fdopendir.c (main): Likewise.
43324         * tests/test-fdutimensat.c (main): Likewise.
43325         * tests/test-fflush.c (main): Likewise.
43326         * tests/test-filenamecat.c (main): Likewise.
43327         * tests/test-filevercmp.c (main): Likewise.
43328         * tests/test-fopen-safer.c (main): Likewise.
43329         * tests/test-fopen.c (main): Likewise.
43330         * tests/test-fpending.c (main): Likewise.
43331         * tests/test-fpurge.c (main): Likewise.
43332         * tests/test-freading.c (main): Likewise.
43333         * tests/test-fstatat.c (main): Likewise.
43334         * tests/test-fsync.c (main): Likewise.
43335         * tests/test-futimens.c (main): Likewise.
43336         * tests/test-getndelim2.c (main): Likewise.
43337         * tests/test-gettimeofday.c (main): Likewise.
43338         * tests/test-getopt.c (main): Likewise.
43339         * tests/test-i-ring.c (main): Likewise.
43340         * tests/test-inttypes.c (main): Likewise.
43341         * tests/test-link.c (main): Likewise.
43342         * tests/test-lstat.c (main): Likewise.
43343         * tests/test-math.c (main): Likewise.
43344         * tests/test-md5.c (main): Likewise.
43345         * tests/test-memchr2.c (main): Likewise.
43346         * tests/test-memrchr.c (main): Likewise.
43347         * tests/test-mkdir.c (main): Likewise.
43348         * tests/test-mkdirat.c (main): Likewise.
43349         * tests/test-mkfifoat.c (main): Likewise.
43350         * tests/test-open.c (main): Likewise.
43351         * tests/test-openat-safer.c (main): Likewise.
43352         * tests/test-openat.c (main): Likewise.
43353         * tests/test-quotearg.c (main): Likewise.
43354         * tests/test-rawmemchr.c (main): Likewise.
43355         * tests/test-readlink.c (main): Likewise.
43356         * tests/test-remove.c (main): Likewise.
43357         * tests/test-rename.c (main): Likewise.
43358         * tests/test-renameat.c (main): Likewise.
43359         * tests/test-rmdir.c (main): Likewise.
43360         * tests/test-sha1.c (main): Likewise.
43361         * tests/test-signal.c (main): Likewise.
43362         * tests/test-sigaction.c (main): Likewise.
43363         * tests/test-stat.c (main): Likewise.
43364         * tests/test-stat-time.c (main): Likewise.
43365         * tests/test-stddef.c (main): Likewise.
43366         * tests/test-stdint.c (main): Likewise.
43367         * tests/test-stdio.c (main): Likewise.
43368         * tests/test-stdlib.c (main): Likewise.
43369         * tests/test-strchrnul.c (main): Likewise.
43370         * tests/test-strerror.c (main): Likewise.
43371         * tests/test-string.c (main): Likewise.
43372         * tests/test-strtod.c (main): Likewise.
43373         * tests/test-strverscmp.c (main): Likewise.
43374         * tests/test-symlink.c (main): Likewise.
43375         * tests/test-symlinkat.c (main): Likewise.
43376         * tests/test-sys_stat.c (main): Likewise.
43377         * tests/test-sys_time.c (main): Likewise.
43378         * tests/test-time.c (main): Likewise.
43379         * tests/test-unistd.c (main): Likewise.
43380         * tests/test-unlink.c (main): Likewise.
43381         * tests/test-unlinkat.c (main): Likewise.
43382         * tests/test-utimens.c (main): Likewise.
43383         * tests/test-utimensat.c (main): Likewise.
43384         * tests/test-version-etc.c (main): Likewise.
43385         * tests/test-wchar.c (main): Likewise.
43386         * tests/test-wctype.c (main): Likewise.
43387         * tests/test-xprintf-posix.c (main): Likewise.
43388         * tests/test-posixtm.c (main): Likewise.
43389         (STREQ): Delete unused macro.
43390         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43391         shadowed variables.
43392         * tests/test-memchr.c (main): Likewise.
43393
43394 2009-10-21  Eric Blake  <ebb9@byu.net>
43395
43396         areadlinkat: avoid failure on older glibc
43397         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43398         rather than mis-comparing 0 against FUNC_RESULT of char*.
43399
43400 2009-10-21  Bruno Haible  <bruno@clisp.org>
43401
43402         * modules/stpncpy (License): Relicense under LGPLv2+.
43403         Reported by David Lutterkort <lutter@redhat.com>.
43404
43405 2009-10-20  Eric Blake  <ebb9@byu.net>
43406
43407         utimensat: work around Solaris 9 bug
43408         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43409         has trailing slash bugs.
43410         * tests/test-lutimens.h (test_lutimens): Enhance test.
43411         * tests/test-utimens.h (test_utimens): Likewise.
43412         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43413         * doc/posix-functions/utimes.texi (utimes): Likewise.
43414         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43415         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43416         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43417         * doc/posix-functions/futimens.texi (futimens): Likewise.
43418
43419         fdutimensat: new module
43420         * modules/fdutimensat: New file.
43421         * lib/fdutimensat.c (fdutimensat): Likewise.
43422         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43423         * MODULES.html.sh (File system functions): Mention module.
43424         * modules/fdutimensat-tests: New test.
43425         * tests/test-fdutimensat.c: Likewise.
43426
43427         doc: regenerate INSTALL
43428         * doc/INSTALL: Reflect recent autoconf update.
43429         * doc/INSTALL.ISO: Likewise.
43430         * doc/INSTALL.UTF-8: Likewise.
43431
43432 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43433
43434         acl: warn if ACL support is not detected
43435         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43436
43437 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43438
43439         * lib/nproc.h: Add extern "C" block for C++.
43440
43441 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43442             Bruno Haible  <bruno@clisp.org>
43443
43444         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43445         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43446         * doc/posix-functions/isalpha.texi: Likewise.
43447         * doc/posix-functions/isblank.texi: Likewise.
43448         * doc/posix-functions/iscntrl.texi: Likewise.
43449         * doc/posix-functions/isdigit.texi: Likewise.
43450         * doc/posix-functions/isgraph.texi: Likewise.
43451         * doc/posix-functions/islower.texi: Likewise.
43452         * doc/posix-functions/isprint.texi: Likewise.
43453         * doc/posix-functions/ispunct.texi: Likewise.
43454         * doc/posix-functions/isspace.texi: Likewise.
43455         * doc/posix-functions/isupper.texi: Likewise.
43456         * doc/posix-functions/isxdigit.texi: Likewise.
43457
43458 2009-10-18  Bruno Haible  <bruno@clisp.org>
43459
43460         Tests for module 'isblank'.
43461         * modules/isblank-tests: New file.
43462         * tests/test-isblank.c: New file.
43463
43464         New module 'isblank'.
43465         * lib/isblank.c: New file.
43466         * m4/isblank.m4: New file.
43467         * modules/isblank: New file.
43468         * doc/posix-functions/isblank.texi: Mention the new module.
43469
43470 2009-10-18  Bruno Haible  <bruno@clisp.org>
43471
43472         New module 'ctype'.
43473         * lib/ctype.in.h: New file.
43474         * m4/ctype.m4: New file.
43475         * modules/ctype: New file.
43476         * doc/posix-headers/ctype.texi: Mention the new module.
43477
43478 2009-10-18  Jim Meyering  <meyering@redhat.com>
43479
43480         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43481         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43482         right after its initialization, rather than farther down.
43483         Keeping these in close proximity makes it easier to ensure
43484         that each such variable is initialized.  E.g.,
43485
43486             LIB_CLOCK_GETTIME=
43487             AC_SUBST([LIB_CLOCK_GETTIME])
43488
43489         This change also increments these serial numbers.
43490         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43491         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43493
43494 2009-10-18  Bruno Haible  <bruno@clisp.org>
43495
43496         Don't let environment variables perturb build.
43497         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43498         (gl_PREREQ_GETHRXTIME): ... not here.
43499
43500 2009-10-18  Bruno Haible  <bruno@clisp.org>
43501
43502         Avoid symlink attack in localcharset module.
43503         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43504         (O_NOFOLLOW): Define fallback.
43505         (get_charset_aliases): Don't open the file if it is a symbolic link.
43506         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43507         gl_FCNTL_H.
43508         (gl_FCNTL_H): Require it.
43509         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43510         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43511         Reported by Fergal Glynn <fglynn@veracode.com>.
43512
43513 2009-10-18  Bruno Haible  <bruno@clisp.org>
43514
43515         Implement nproc for mingw.
43516         * lib/nproc.c: Include <windows.h>
43517         (num_processors): On native Windows platforms, try GetSystemInfo.
43518
43519 2009-10-18  Bruno Haible  <bruno@clisp.org>
43520
43521         Implement nproc for IRIX.
43522         * lib/nproc.c: Include <sys/sysmp.h>.
43523         (num_processors): On IRIX systems, try sysmp.
43524         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43525
43526 2009-10-18  Bruno Haible  <bruno@clisp.org>
43527
43528         Implement nproc for HP-UX.
43529         * lib/nproc.c: Include <sys/pstat.h>
43530         (num_processors): On HP-UX systems, try pstat_getdynamic.
43531         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43532         pstat_getdynamic.
43533
43534 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43535             Bruno Haible  <bruno@clisp.org>
43536
43537         Implement nproc for NetBSD, OpenBSD.
43538         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43539         (ARRAY_SIZE): New macro.
43540         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43541         * m4/nproc.m4: New file.
43542         * modules/nproc (Files): Add m4/nproc.m4.
43543         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43544         (Makefile.am): Instead, augment lib_SOURCES.
43545
43546 2009-10-18  Bruno Haible  <bruno@clisp.org>
43547
43548         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43549         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43550         sys/param.h.
43551
43552 2009-10-16  Eric Blake  <ebb9@byu.net>
43553
43554         utimensat: new module
43555         * modules/utimensat: New file.
43556         * lib/utimensat.c (utimensat): Likewise.
43557         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43558         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43559         so we can work around Linux bugs.
43560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43561         * modules/sys_stat (Makefile.am): Substitute them.
43562         * lib/sys_stat.in.h (utimensat): Declare it.
43563         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43564         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43565         * modules/utimensat-tests: New test.
43566         * tests/test-utimensat.c: Likewise.
43567
43568         utimens: let lutimens work on non-symlinks
43569         * lib/utimens.c (lutimens): Fall back to utimens rather than
43570         failing with ENOSYS, when file is not a symlink.
43571         (utimens): Reduce redirection.
43572         * tests/test-lutimens.h (test_lutimens): Update test to cover
43573         non-symlinks.
43574         * tests/test-utimens.h (test_utimens): Update test to cover
43575         symlinks.
43576         * tests/test-utimens.c (main): Update caller.
43577
43578         utimens: cache whether utimensat syscall works
43579         * lib/utimens.c (utimensat_works_really): New cache variable.
43580         (fdutimens, lutimens): Use it to avoid failing syscall.
43581
43582         test-stat-time, test-utimens: improve portability
43583         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43584         ext4 on alpha, and for cygwin.
43585         * tests/test-utimens-common.h: New file.
43586         (nap): Factor delays into single function.
43587         * tests/test-lutimens.h (test_lutimens): Use new header.
43588         * tests/test-futimens.h (test_futimens): Likewise.
43589         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43590         timestamps to occur from same machine, as was done previously for
43591         test_utimens.
43592         * modules/utimens-tests (Files): Ship new file.
43593         * modules/futimens-tests (Files): Likewise.
43594         Reported in part by Jim Meyering.
43595
43596         sys_stat: sort replacement declarations
43597         * lib/sys_stat.in.h: Sort declarations.
43598         * lib/futimens.c (futimens): Fix typo.
43599
43600 2009-10-15  Jim Meyering  <meyering@redhat.com>
43601
43602         don't let environment settings perturb build
43603         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43604         could cause a configure-time and/or build-time malfunction.
43605         Typically, a configure-time function-in-library test is performed
43606         via code like this:
43607
43608           LIB_VAR=
43609           AC_SUBST([LIB_VAR])
43610           prefix_saved_LIBS=$LIBS
43611             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43612                        [test "$ac_cv_search_FUNC" = "none required" ||
43613                         LIB_VAR=$ac_cv_search_FUNC])
43614           LIBS=$prefix_saved_LIBS
43615
43616         However, in each of the files affected by this change, the LIB_VAR=
43617         initialization was omitted.  Thus, when set in the environment, its
43618         value would propagate into generated Makefiles when FUNC is not found
43619         in LIB_NAME.
43620         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43621         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43623
43624 2009-10-14  Eric Blake  <ebb9@byu.net>
43625
43626         fchdir: avoid infinite recursion in mingw
43627         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43628         recursing.
43629
43630         test-stat-time: port to mingw
43631         * tests/test-stat-time.c (force_unlink): Return a value.
43632         (test_ctime) [W32]: Fix compilation error.
43633         (nap): Don't call usleep with too large an argument.  Use
43634         force_unlink.
43635         * doc/pastposix-functions/usleep.texi (usleep): Document the
43636         portability issue.
43637
43638 2009-10-13  Jim Meyering  <meyering@redhat.com>
43639
43640         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43641         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43642         * modules/pipe-filter-ii: Likewise.
43643         * modules/sys_socket-tests: Likewise.
43644         * modules/tsearch-tests: Likewise.
43645         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43646         (check): Depend on it.
43647
43648 2009-10-12  Eric Blake  <ebb9@byu.net>
43649
43650         utimens-tests: port to NFS file systems
43651         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43652         comparisons to avoid spurious failures from timestamp drift
43653         between NFS machines.
43654
43655 2009-10-12  Eric Blake  <ebb9@byu.net>
43656
43657         stat-time-tests: minor cleanups
43658         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43659         * tests/test-stat-time.c (nap): Separate assignment from call.
43660         Suggested by Paolo Bonzini and Bruno Haible.
43661
43662         sys_stat: guarantee struct timespec
43663         * lib/sys_stat.in.h (includes): Always include <time.h>
43664         * modules/sys_stat (Depends-on): Add time.
43665         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43666         mode_t permission values.
43667         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43668         get at subsecond timestamps.
43669
43670 2009-10-10  Eric Blake  <ebb9@byu.net>
43671
43672         futimens: new module
43673         * modules/futimens: New file.
43674         * lib/futimens.c (futimens): Likewise.
43675         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43676         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43677         we can work around Linux bugs.
43678         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43679         * modules/sys_stat (Makefile.am): Substitute them.
43680         * lib/sys_stat.in.h (futimens): Declare it.
43681         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43682         * doc/posix-functions/futimens.texi (futimens): Likewise.
43683         * modules/futimens-tests: New test.
43684         * tests/test-futimens.c: Likewise.
43685
43686         utimens: introduce fdutimens
43687         * lib/utimens.h (fdutimens): New prototype.
43688         * lib/utimens.c (gl_futimens): Move guts...
43689         (fdutimens): ...to new interface.
43690         * tests/test-utimens.c (do_fdutimens): Use it.
43691
43692         utimens: add UTIME_NOW and UTIME_OMIT support
43693         * lib/utimens.c (validate_timespec, update_timespec): New helper
43694         functions.
43695         (gl_futimens, lutimens): Use them.
43696         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43697         stdbool, sys_stat.
43698         (Link): Mention resulting library dependency.
43699         * modules/utimecmp (Link): Likewise.
43700         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43701         (Makefile.am): Pick up library dependency.
43702         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43703         definition.
43704         * tests/test-sys_stat.c: Test the definitions.
43705         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43706         * NEWS: Document library dependency.
43707
43708         utimecmp: support symlink timestamps
43709         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43710         hashing when possible.  Use pathconf when available.
43711         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43712         * modules/utimecmp (Depends-on): Add lstat.
43713
43714         utimens: add lutimens interface
43715         * lib/utimens.c (lutimens): New function.
43716         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43717         * lib/utimens.h (lutimens): Declare new interface.
43718         * tests/test-utimens.c (main): Enhance test.
43719         * tests/test-lutimens.h (test_lutimens): New file.
43720         * modules/utimens-tests (Files): Distribute it.
43721         (Depends-on): Add symlink.
43722         (configure.ac): Check for usleep.
43723
43724         utimens: validate futimens usage
43725         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43726         fewer syscalls on failure later on.  Avoid compiler warning on
43727         mingw.
43728         * modules/utimens (Depends-on): Add dup2.
43729
43730         utimens: add test
43731         * modules/utimens-tests: New test.
43732         * tests/test-utimens.h: New file.
43733         * tests/test-futimens.h: Likewise.
43734         * tests/test-utimens.c: Likewise.
43735
43736         doc: mention timestamp portability issues
43737         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43738         instead.
43739         * doc/posix-functions/utime.texi (utime): Likewise.
43740         * doc/posix-functions/utimes.texi (utimes): Likewise.
43741         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43742         instead.
43743         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43744         module.
43745         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43746         Mention weakness with symlink timestamps.
43747         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43748         to utimensat/futimens instead.
43749         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43750
43751         test-dup2: enhance test
43752         * tests/test-dup2.c (main): Also check AT_FDCWD.
43753
43754         test-stat-time: avoid more spurious failures
43755         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43756         xfs; and avoid race if the two timestamps cross quantization edge.
43757
43758         relocatable: prefer 'file system' over 'filesystem'
43759         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43760         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43761         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43762         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43763         * lib/relocatable.c (compute_curr_prefix): Likewise.
43764
43765 2009-10-10  Jim Meyering  <meyering@redhat.com>
43766
43767         stat-time-tests: check for the usleep function
43768         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43769
43770 2009-10-10  Bruno Haible  <bruno@clisp.org>
43771
43772         * modules/xnanosleep: Put the Link section after the Include section.
43773
43774 2009-10-09  Eric Blake  <ebb9@byu.net>
43775
43776         dup2: work around FreeBSD 6.1 bug
43777         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43778         * doc/posix-functions/dup2.texi (dup2): Document it.
43779         Reported by Nelson H. F. Beebe and Jim Meyering.
43780
43781         test-stat-time: port to buggy NFS clients
43782         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43783         (test_ctime): Also skip test if mtime and ctime are skewed.
43784
43785         maint: prefer 'file system' over 'filesystem'
43786         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43787         * doc/posix-functions/lstat.texi (lstat): Likewise.
43788         * lib/file-has-acl.c (file_has_acl): Likewise.
43789         * lib/fwriteerror.c [TEST]: Likewise.
43790         * tests/test-areadlink.h (test_areadlink): Likewise.
43791         * tests/test-areadlinkat-with-size.c (main): Likewise.
43792         * tests/test-areadlinkat.c (main): Likewise.
43793         * tests/test-canonicalize-lgpl.c (main): Likewise.
43794         * tests/test-canonicalize.c (main): Likewise.
43795         * tests/test-fstatat.c (main): Likewise.
43796         * tests/test-linkat.c (main): Likewise.
43797         * tests/test-lstat.h (test_lstat_func): Likewise.
43798         * tests/test-mkdir.h (test_mkdir): Likewise.
43799         * tests/test-readlink.h (test_readlink): Likewise.
43800         * tests/test-remove.c (main): Likewise.
43801         * tests/test-rename.h (test_rename): Likewise.
43802         * tests/test-renameat.c (main): Likewise.
43803         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43804         * tests/test-symlink.h (test_symlink): Likewise.
43805         * tests/test-symlinkat.c (main): Likewise.
43806         * tests/test-unlink.h (test_unlink_func): Likewise.
43807         * tests/test-unlinkat.c (main): Likewise.
43808
43809         maint: make realtime library usage explicit
43810         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43811         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43812         * modules/settime (Link): Likewise.
43813         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43814
43815         test-stat-time: speed up execution
43816         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43817         warning on mingw.
43818         (nap): New helper function.
43819         (prepare_test): Use it to reduce sleep time.
43820         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43821         execution.
43822         * modules/stat-time-tests (configure.ac): Check for usleep.
43823
43824 2009-10-09  Jim Meyering  <meyering@redhat.com>
43825
43826         selinux-h: always use getfilecon wrappers
43827         * lib/getfilecon.c: New file.
43828         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43829         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43830         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43831         (fgetfilecon): Provide a stub.
43832         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43833         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43834         file unconditionally.
43835         When <selinux/selinux.h> is found, arrange to use wrappers.
43836         * modules/selinux-h (Files): Add getfilecon.c.
43837         (Makefile.am): Substitute include-next-related bits
43838         into the now-always-generated selinux/selinux.h file.
43839         * doc/glibc-functions/lgetfilecon.texi: New file.
43840         * doc/glibc-functions/fgetfilecon.texi: New file.
43841         * doc/glibc-functions/getfilecon.texi: New file.
43842         * doc/glibc-functions/getfilecon-desc.texi: New file.
43843         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43844         which to pull in the new files.
43845         * MODULES.html.sh (Misc): Add selinux-h.
43846
43847 2009-10-08  Jim Meyering  <meyering@redhat.com>
43848
43849         unistd: fix comment typo
43850         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43851
43852 2009-10-08  Eric Blake  <ebb9@byu.net>
43853
43854         areadlink: use SIZE_MAX consistently
43855         * modules/areadlink (Depends-on): Add stdint.
43856         * modules/areadlink-with-size (Depends-on): Likewise.
43857         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43858         gives NULL; drop sys/types, since unistd gives size_t; and add
43859         stdint for SIZE_MAX.
43860         (SIZE_MAX): Rely on headers.
43861         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43862         and add stdint.
43863         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43864         (SIZE_MAX): Likewise.
43865         (INITIAL_BUF_SIZE): Turn into enum.
43866         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43867
43868 2009-10-08  Jim Meyering  <meyering@redhat.com>
43869
43870         areadlinkat: avoid compilation failure
43871         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43872         Fix typo in comment.
43873
43874 2009-10-07  Eric Blake  <ebb9@byu.net>
43875
43876         areadlinkat-with-size: new module
43877         * modules/areadlinkat-with-size: New module.
43878         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43879         * lib/areadlink.h (areadlinkat): Declare it.
43880         * MODULES.html.sh (File system functions): Mention it.
43881         * modules/areadlinkat-with-size-tests: New test.
43882         * tests/test-areadlinkat-with-size.c: New file.
43883
43884         xreadlinkat: new module
43885         * modules/xreadlinkat: New module.
43886         * lib/xreadlinkat.c (xreadlinkat): New file.
43887         * lib/xreadlink.h (xreadlinkat): Declare it.
43888         * MODULES.html.sh (File system functions): Mention it.
43889
43890         areadlinkat: new module
43891         * lib/at-func.c (FUNC_FAIL): New define.
43892         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43893         * modules/areadlinkat: New module.
43894         * lib/linkat.c (areadlinkat): Move...
43895         * lib/areadlinkat.c (areadlinkat): ...to new file.
43896         * lib/areadlink.h (areadlinkat): Declare it.
43897         * modules/linkat (Depends-on): Add areadlinkat.
43898         * MODULES.html.sh (File system functions): Mention it.
43899         * modules/areadlinkat-tests: New test.
43900         * tests/test-areadlinkat.c: New file.
43901
43902         areadlink, areadlink-with-size: add tests
43903         * modules/areadlink-tests: New test.
43904         * modules/areadlink-with-size-tests: Likewise.
43905         * tests/test-areadlink.h: New file.
43906         * tests/test-areadlink.c: Likewise.
43907         * tests/test-areadlink-with-size.c: Likewise.
43908
43909         maint: minor cleanups
43910         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43911         _UNUSED_PARAMETER_ instead.
43912         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43913         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43914         * modules/linkat-tests (Files): Distribute test-link.h.
43915
43916         openat, utimens: whitespace cleanup
43917         * lib/openat.c: Prefer space throughout, rather than mix of 8
43918         spaces vs. tabs.
43919         * lib/at-func.c: Likewise.
43920         * lib/utimens.c: Likewise.
43921
43922         openat: avoid using wrong fd
43923         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43924         working directory chooses same fd.
43925         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43926
43927         mkdir, mkdirat: fix cygwin 1.5.x bug
43928         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43929         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43930         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43931         bug.
43932         (gl_PREREQ_MKDIR): Delete unused macro.
43933         * modules/mkdir (Files): Track file rename.
43934         (configure.ac): Update macro name.
43935         * modules/openat (Depends-on): Add mkdir.
43936         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43937
43938         mkdir, mkdirat: add tests
43939         * modules/mkdir-tests: New test.
43940         * tests/test-mkdir.h: New file.
43941         * tests/test-mkdir.c: Likewise.
43942         * tests/test-mkdirat.c: Likewise.
43943         * modules/openat-tests (Files): Add new files.
43944         (Makefile.am): Run new test.
43945
43946 2009-10-06  Eric Blake  <ebb9@byu.net>
43947
43948         doc: tweak *at function documentation
43949         * doc/posix-functions/faccessat.texi (faccessat): Mention
43950         known issue with replacement.
43951         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43952         * doc/posix-functions/linkat.texi (linkat): Likewise.
43953         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43954         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43955         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43956         * doc/posix-functions/renameat.texi (renameat): Likewise.
43957         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43958
43959         openat: fix GNU/Hurd bug in unlinkat
43960         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43961         broken.
43962         * doc/posix-functions/unlink.texi (unlink): Document this.
43963         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43964
43965         fdopendir: fix GNU/Hurd bug
43966         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43967         allowing non-directory fds.
43968         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43969         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43970         * modules/dirent (Makefile.am): Substitute it.
43971         * lib/dirent.in.h (fdopendir): Declare replacement.
43972         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43973         * tests/test-fdopendir.c (main): Test something other than
43974         /dev/null, since on Hurd that behaves like a directory.
43975
43976         test-symlink: port to GNU/Hurd
43977         * tests/test-symlink.h (test_symlink): Relax expected errno.
43978
43979         doc: tweak more cygwin information
43980         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43981         now compatible with glibc.
43982         * doc/posix-functions/getopt.texi (getopt): Likewise.
43983
43984         getopt-gnu: add another test
43985         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43986         guarantee behavior relied on by m4.
43987         * tests/test-getopt.c (main): Use it.
43988         * modules/getopt-posix-tests (Depends-on): Add setenv.
43989         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43990
43991         getopt: fix compilation on darwin
43992         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43993         include.
43994         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43995         Reported by Ludovic Courtès.
43996
43997 2009-10-06  Bruno Haible  <bruno@clisp.org>
43998
43999         * modules/size_max (Description): Discourage its use.
44000         Reported by Simon Josefsson.
44001
44002 2009-10-06  Jim Meyering  <meyering@redhat.com>
44003
44004         linkat: avoid compilation failure
44005         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44006
44007 2009-10-05  Eric Blake  <ebb9@byu.net>
44008
44009         linkat: support Linux 2.6.17
44010         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44011         linkat on Linux, but allow cache variable override.
44012         * lib/linkat.c (rpl_linkat): Define override.
44013         * modules/linkat (Depends-on): Add symlinkat.
44014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44015         * modules/unistd (Makefile.am): Substitute it.
44016         * lib/unistd.in.h (linkat): Declare replacement.
44017         Reported by Pádraig Brady.
44018
44019         quotearg: port test to systems with C.UTF-8 locale
44020         * tests/test-quotearg.c (struct result_strings): Add another
44021         member, differentiating between C.ASCII and C.UTF-8 handling.
44022         (compare_strings): Add parameter.
44023         (main): Adjust all callers.
44024
44025         getopt: avoid clash with FreeBSD _getopt_internal
44026         * lib/getopt.in.h (_getopt_internal): Override the name.
44027         * lib/getopt_int.h (includes): Pick up any overrides.
44028         Reported by Reuben Thomas.
44029
44030         hash: allow C89 compilation
44031         * lib/hash.c (check_tuning): Move declaration before statement.
44032         Reported by Reuben Thomas.
44033
44034 2009-10-05  Karl Berry  <karl@gnu.org>
44035
44036         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44037
44038 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44039             Bruno Haible  <bruno@clisp.org>
44040
44041         * lib/uname.c (uname): Use a table-driven algorithm to compute
44042         Windows NT versions.
44043
44044 2009-10-04  Bruno Haible  <bruno@clisp.org>
44045
44046         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44047         program_invocation_short_name.
44048         * modules/progname (configure.ac): Test for presence of
44049         program_invocation_short_name.
44050         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44051
44052 2009-10-04  Bruno Haible  <bruno@clisp.org>
44053
44054         * lib/progname.c (set_program_name): Fix comment.
44055         Reported by Jim Meyering.
44056
44057 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44058             Bruno Haible  <bruno@clisp.org>
44059
44060         * lib/uname.c: Include <string.h>.
44061         (uname): Do only one call to GetVersionEx in the common case.
44062
44063 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44064             Bruno Haible  <bruno@clisp.org>
44065
44066         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44067         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44068         (uname): Add support for Windows CE and various non-x86 CPU types.
44069
44070 2009-10-03  Bruno Haible  <bruno@clisp.org>
44071
44072         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44073         invocation to tests/configure.ac.
44074         Reported by Ian Beckwith <ianb@erislabs.net>.
44075
44076 2009-10-02  Eric Blake  <ebb9@byu.net>
44077
44078         fchdir: avoid compiler warning
44079         * lib/fchdir.c (canonicalize_file_name)
44080         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44081
44082         test-open: support mingw errno values
44083         * tests/test-open.h (test_open): Relax test.
44084         * tests/test-fopen.h (test_fopen): Likewise.
44085         * tests/test-openat-safer.c (main): Likewise.
44086
44087         open: fix opening directory on mingw
44088         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44089
44090         test-open: on GNU/Hurd, /dev/null is a directory
44091         * tests/test-fopen.h (main): Rename...
44092         (test_fopen): ...to this.  Use a guaranteed non-directory when
44093         confirming open behavior on trailing slash.
44094         * tests/test-openat-safer.c (main): Likewise.
44095         * tests/test-open.h (main): Likewise....
44096         (test_open): ...to this.
44097         * tests/test-fopen.c (main): Adjust caller.
44098         * tests/test-fopen-safer.c (main): Likewise.
44099         * tests/test-open.c (main): Likewise.
44100         * tests/test-fcntl-safer.c (main): Likewise.
44101         Reported by Samuel Thibault.
44102
44103         rename, fchdir: don't ignore chdir failure
44104         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44105         * lib/rename.c (rpl_rename) [W32]: Likewise.
44106         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44107         an empty destination directory if source cannot be renamed,
44108         although there is still possibility for failure.
44109         * doc/posix-functions/rename.texi (rename): Document the race.
44110         Reported by Jim Meyering.
44111
44112         maint: cleanup whitespace in recent commits
44113         * lib/rename.c (rpl_rename): Remove tabs.
44114         * tests/test-link.h (test_link): Likewise.
44115         * lib/fchdir.c (get_name): Likewise.
44116         Reported by Jim Meyering.
44117
44118 2009-10-02  Ben Pfaff  <blp@gnu.org>
44119
44120         relocatable-prog-wrapper: Add missing dependency on
44121         double-slash-root.
44122         * modules/relocatable-prog-wrapper: Add dependency.
44123         Reported by Ian Beckwith <ianb@erislabs.net>.
44124
44125 2009-10-02  Eric Blake  <ebb9@byu.net>
44126
44127         renameat: fix Solaris bugs
44128         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44129         needed fixing.
44130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44131         * modules/stdio (Makefile.am): Substitute it.
44132         * lib/stdio.in.h (renameat): Declare replacement.
44133         * lib/renameat.c (rpl_renameat): Implement fix.
44134
44135         renameat: new module
44136         * modules/renameat: New file.
44137         * lib/renameat.c (renameat): Likewise.
44138         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44140         * modules/stdio (Makefile.am): Substitute them.
44141         * lib/stdio.in.h (renameat): Declare it.
44142         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44143         * doc/posix-functions/renameat.texi (renameat): Likewise.
44144         * modules/renameat-tests: New test.
44145         * tests/test-renameat.c: Likewise.
44146
44147         rename: fix mingw bugs
44148         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44149         directory overwrite bugs.
44150
44151         rename: fix another cygwin 1.5 bug
44152         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44153         checks.
44154         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44155         unnecessary cygwin workarounds.  Also work around bug with moving
44156         full directory onto an empty one.
44157         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44158
44159         rename-dest-slash: merge into rename module
44160         * modules/rename-dest-slash (Status): Mark obsolete.
44161         (Depends-on): Add rename.
44162         (Files): Let rename do it all.
44163         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44164         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44165         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44166         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44167         * lib/rename.c (rpl_rename): Update comments.
44168
44169         rename: fix cygwin 1.5.x bugs
44170         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44171         * lib/rename.c (rpl_rename): Work around them.
44172         * modules/rename (Depends-on): Add same-inode.
44173
44174         rename: fix Solaris 10 bug
44175         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44176         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44177         was the only bug.
44178
44179         rename: fix Solaris 9 bug
44180         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44181         on non-directory.  Avoid calling exit.
44182         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44183         strdup.
44184         * modules/rename-tests (Depends-on): Drop lstat.
44185         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44186         (gl_PREREQ_RENAME): Delete unused macro.
44187
44188         rename-dest-slash: fix NetBSD bug
44189         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44190         links.
44191         * modules/rename-dest-slash (Depends-on): Add same-inode.
44192
44193         rename-tests: new test, exposes several platform bugs
44194         * modules/rename-tests: New file.
44195         * tests/test-rename.h: Likewise.
44196         * tests/test-rename.c: Likewise.
44197         * doc/posix-functions/rename.texi (rename): Improve documentation,
44198         including bugs that will eventually be fixed in gnulib.
44199
44200 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44201
44202         * lib/uname.c: Include <stdlib.h>
44203         (uname): Assume version info is available.
44204
44205 2009-10-02  Jim Meyering  <meyering@redhat.com>
44206
44207         gnu-web-doc-update: correct --help output
44208         * build-aux/gnu-web-doc-update: Make --help output relevant.
44209
44210         gnu-web-doc-update: add standard options
44211         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44212
44213         gnu-web-doc-update: New module.
44214         Use this script to automatically update the on-line web documentation
44215         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44216         * modules/gnu-web-doc-update: New file, from coreutils.
44217         * build-aux/gnu-web-doc-update: New script.
44218
44219 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44220
44221         link: LoadLibrary is not needed.
44222         * lib/link.c: Use GetModuleHandle.
44223
44224 2009-10-01  Eric Blake  <ebb9@byu.net>
44225
44226         getopt: bump serial number
44227         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44228         change.
44229
44230         tests: tighten link, rmdir, and remove tests
44231         * tests/test-link.h (includes): No need to use <config.h> here.
44232         Clean up if directory hard link was created, otherwise test for
44233         trailing '.'.
44234         * tests/test-linkat.c (main): Simplify.
44235         * tests/test-remove.c (main): Enhance test for trailing '.'.
44236         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44237
44238 2009-10-01  Jim Meyering  <meyering@redhat.com>
44239
44240         maint.mk: requiring "make major" was annoying, for a "minor" release.
44241         What is intended is "stable", to contrast with alpha and beta,
44242         so require "make stable", not "make major".
44243         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44244         (get_tool_versions): Likewise.
44245         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44246
44247 2009-09-30  Ben Pfaff  <blp@gnu.org>
44248
44249         Fix broken build of replacement for Windows tmpfile().
44250         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44251         flags argument added along with the 'mkostemp' module.
44252
44253 2009-09-28  Bruno Haible  <bruno@clisp.org>
44254
44255         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44256         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44257         to 'remove_elt'.
44258         (gl_list_remove): Update.
44259         * lib/gl_list.c (gl_list_remove): Update.
44260         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44261         to 'remove_elt'.
44262         (gl_oset_remove): Update.
44263         * lib/gl_list.c (gl_oset_remove): Update.
44264         Reported by Eric Blake.
44265
44266 2009-09-28  Eric Blake  <ebb9@byu.net>
44267
44268         doc: mention yet more cygwin 1.7 status
44269         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44270         cygwin.
44271         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44272         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44273
44274         argp: fix test failure
44275         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44276         that are not upper-case.  Pass correct range to tolower.
44277
44278 2009-09-27  Jim Meyering  <meyering@redhat.com>
44279
44280         test-yesno: work around sparc-dash here-document infelicity
44281         Without this change, the literal \177 byte in a here document
44282         would make dash 0.5.5.1-3 access uninitialized memory.
44283         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44284         Instead, use a marker, "@", and filter through tr to create the desired
44285         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44286
44287 2009-09-27  Bruno Haible  <bruno@clisp.org>
44288
44289         Disable untested support for new flavours of ACLs on AIX.
44290         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44291         progress.
44292         * lib/set-mode-acl.c (qset_acl): Likewise.
44293
44294 2008-12-07  Bruno Haible  <bruno@clisp.org>
44295
44296         Add support for new flavours of ACLs on AIX. (Untested.)
44297         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44298         (file_has_acl): Add support for newer AIX.
44299         * lib/set-mode-acl.c (qset_acl): Likewise.
44300         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44301         Rainer Tammer <tammer@tammer.net>.
44302
44303 2009-09-26  Eric Blake  <ebb9@byu.net>
44304
44305         argp: fix compilation of getopt
44306         * lib/getopt.in.h (includes): Use different guard than glibc.
44307         Reported by Sergey Poznyakoff.
44308
44309         doc: mention more cygwin 1.7 status
44310         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44311         bug.
44312         * doc/posix-functions/execl.texi (execl): Likewise.
44313         * doc/posix-functions/execle.texi (execle): Likewise.
44314         * doc/posix-functions/execlp.texi (execlp): Likewise.
44315         * doc/posix-functions/execv.texi (execv): Likewise.
44316         * doc/posix-functions/execve.texi (execve): Likewise.
44317         * doc/posix-functions/execvp.texi (execvp): Likewise.
44318         * doc/glibc-functions/canonicalize_file_name.texi
44319         (canonicalize_file_name): Cygwin 1.7 now provides this.
44320         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44321         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44322         on AT_SYMLINK_NOFOLLOW.
44323
44324 2009-09-24  Eric Blake  <ebb9@byu.net>
44325
44326         test-linkat: make test more robust
44327         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44328
44329         getopt: fix inclusion guards for cygwin
44330         * modules/getopt-posix (Depends-on): Add include-next.
44331         (Makefile.am): Substitute more items in replacement header.
44332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44333         <getopt.h>.
44334         * lib/getopt.in.h (includes): Use split inclusion guard, and
44335         prefer <getopt.h> over include <unistd.h> when one is present.
44336         (option): Also override name of 'struct option'.
44337
44338         same-inode: revert prior change; it is not yet ready
44339         * NEWS: Undo mention of this change.
44340         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44341         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44342         * lib/cycle-check.c (cycle_check): Likewise.
44343         * lib/same.c (same_name): Likewise.
44344         * lib/at-func2.c (at_func2): Likewise.
44345
44346 2009-09-23  Eric Blake  <ebb9@byu.net>
44347
44348         linkat: new module
44349         * modules/linkat: New file.
44350         * lib/at-func2.c (at_func2): Likewise.
44351         * lib/linkat.c (linkat): Likewise.
44352         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44353         * lib/openat-priv.h (at_func2): Add declaration.
44354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44355         * modules/unistd (Makefile.am): Substitute them.
44356         * lib/unistd.in.h (linkat): Declare it.
44357         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44358         * doc/posix-functions/linkat.texi (linkat): Likewise.
44359         * doc/posix-functions/link.texi (link): Tweak wording.
44360         * tests/test-link.c (main): Move guts...
44361         * tests/test-link.h (test_link): ...into new file.
44362         * modules/linkat-tests: New test.
44363         * tests/test-linkat.c: Likewise.
44364         * modules/link-tests (Files): Ship new file.
44365         (Depends-on): Add stdbool.
44366
44367         dirname: add library-safe mdir_name
44368         * lib/dirname.h (mdir_name): New prototype.
44369         * lib/dirname.c (dir_name): Move guts...
44370         (mdir_name): ...to new function that avoids xalloc_die.
44371
44372         fchdir: another mingw fix
44373         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44374         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44375         on mingw (where it has not yet been ported), and make it optional
44376         elsewhere.
44377         (_gl_register_fd): Use it.
44378
44379         same-inode: make SAME_INODE tri-state, to port to mingw
44380         * NEWS: Mention this change.
44381         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44382         st_ino always being 0.
44383         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44384         * lib/cycle-check.c (cycle_check): Likewise.
44385         * lib/same.c (same_name): Likewise.
44386
44387         lstat: avoid mingw compilation error
44388         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44389         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44390         lstat ourselves.
44391         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44392         was adequate.
44393         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44394         the checks for lstat.
44395         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44396
44397         link: fix test failure on Solaris 9
44398         * lib/link.c (rpl_link): Don't assume link will catch bogus
44399         trailing slash on source.
44400
44401         test-symlinkat: enhance test
44402         * tests/test-readlink.c (main): Move guts...
44403         * tests/test-readlink.h (test_readlink): ...into new file.
44404         * tests/test-symlink.c (main): Move guts...
44405         * tests/test-symlink.h (test_symlink): ...into new file.
44406         * tests/test-symlinkat.c (main): Use new files for further
44407         coverage.
44408         (do_symlink, do_readlink): New helper functions.
44409         * modules/symlink-tests (Files): Ship new file.
44410         (Depends-on): Add stdbool.
44411         * modules/readlink-tests (Files): Ship new file.
44412         (Depends-on): Add stdbool.
44413         * modules/symlinkat-tests (Files): Use new files.
44414
44415 2009-09-23  Eric Blake  <ebb9@byu.net>
44416
44417         readlink: document portability issue with symlink length
44418         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44419         systems have bogus st_size on symlinks, and mention the
44420         areadlink-with-size module.
44421         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44422         * doc/posix-functions/readlink.texi (readlink): Mention the
44423         areadlink module, and ERANGE failure.
44424         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44425         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44426
44427         readlink: fix Solaris 9 bug with trailing slash
44428         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44429         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44430         * doc/posix-functions/readlink.texi (readlink): Document this.
44431         * modules/readlink-tests: New test.
44432         * tests/test-readlink.c: Likewise.
44433
44434         readlink: fix cygwin 1.5.x bug with return type
44435         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44436         * lib/unistd.in.h (readlink): Use ssize_t.
44437         * lib/readlink.c (readlink): Likewise.
44438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44439         * modules/unistd (Makefile.am): Substitute it.
44440         * lib/unistd.in.h (readlink): Declare replacement.
44441         * doc/posix-functions/readlink.texi (readlink): Document this.
44442
44443         symlink: use throughout gnulib
44444         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44445         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44446         symlink is not used.
44447         * modules/symlinkat (Depends-on): Add symlink.
44448         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44449         * modules/canonicalize-tests (Depends-on): Likewise.
44450         * modules/lstat-tests (Depends-on): Likewise.
44451         * modules/openat-tests (Depends-on): Likewise.
44452         * modules/remove-tests (Depends-on): Likewise.
44453         * modules/rmdir-tests (Depends-on): Likewise.
44454         * modules/unlink-tests (Depends-on): Likewise.
44455         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44456         * tests/test-canonicalize.c (symlink): Likewise.
44457         * tests/test-fstatat.c (symlink): Likewise.
44458         * tests/test-lstat.c (symlink): Likewise.
44459         * tests/test-remove.c (symlink): Likewise.
44460         * tests/test-rmdir.c (symlink): Likewise.
44461         * tests/test-unlink.c (symlink): Likewise.
44462         * tests/test-unlinkat.c (symlink): Likewise.
44463
44464         symlink: new module, for Solaris 9 bug
44465         * modules/symlink: New file.
44466         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44467         * lib/symlink.c: Likewise.
44468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44469         * modules/unistd (Makefile.am): Substitute them.
44470         * lib/unistd.in.h (symlink): Declare replacement.
44471         * MODULES.html.sh (File system functions): Mention it.
44472         * doc/posix-functions/symlink.texi (symlink): Likewise.
44473         * modules/symlink-tests: New test.
44474         * tests/test-symlink.c: Likewise.
44475
44476 2009-09-23  Bruno Haible  <bruno@clisp.org>
44477
44478         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44479         when needed.
44480         Test case: gnulib-tool --import --with-tests atexit inttypes.
44481         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44482
44483 2009-09-23  Bruno Haible  <bruno@clisp.org>
44484
44485         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44486         subcommand, not in a subshell.
44487
44488 2009-09-22  Eric Blake  <ebb9@byu.net>
44489
44490         unistd: sort replacement declarations
44491         * lib/unistd.in.h: Sort declarations.
44492
44493         open, openat: minor optimization
44494         * lib/open.c (open): If open succeeded, len is non-zero.
44495         * lib/openat.c (rpl_openat): Likewise.
44496
44497         link-follow: ensure correct result
44498         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44499         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44500         distinguish between possible failures.
44501
44502 2009-09-21  Eric Blake  <ebb9@byu.net>
44503
44504         fts: avoid compiler warning
44505         * lib/fts.c (dirent_inode_sort_may_be_useful)
44506         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44507
44508 2009-09-19  Bruno Haible  <bruno@clisp.org>
44509
44510         * lib/progreloc.c (canonicalize_file_name): New declaration.
44511
44512 2009-09-19  Eric Blake  <ebb9@byu.net>
44513
44514         link: fix quoting
44515         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44516
44517         openat: fix openat bugs on Solaris 9
44518         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44519         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44520         * modules/openat (Depends-on): Add open.
44521         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44522         * modules/fcntl-h (Makefile.am): Substitute it.
44523         * lib/fcntl.in.h (openat): Declare replacement.
44524         * doc/posix-functions/openat.texi (openat): Document this.
44525
44526         openat: move fstatat and unlinkat into correct files
44527         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44528         compiled.
44529         * lib/openat.c (fstatat, unlinkat): Move...
44530         * lib/fstatat.c (fstatat): ...into correct files.
44531         * lib/unlinkat.c (unlinkat): Likewise.
44532
44533         openat: fix unlinkat bugs on Solaris 9
44534         * lib/unlinkat.c (unlinkat): New file.
44535         * modules/openat (Depends-on): Add unlink.
44536         (Files): Distribute it.
44537         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44538         trailing slash behavior is broken.
44539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44540         * modules/unistd (Makefile.am): Substitute it.
44541         * lib/unistd.in.h (unlinkat): Declare replacement.
44542         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44543
44544         openat: fix fstatat bugs on Solaris 9
44545         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44546         stat.
44547         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44548
44549         test-unlinkat: enhance test, to expose Solaris 9 bug
44550         * tests/test-unlink.c (main): Factor guts...
44551         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44552         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44553         * tests/test-rmdir.c (main): Adjust caller.
44554         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44555         (unlinker): New helper function.
44556         (rmdirat): Enhance check.
44557         * modules/rmdir-tests (Depends-on): Add stdbool.
44558         * modules/unlink-tests (Depends-on): Likewise.
44559         (Files): Add test-unlink.h.
44560         * modules/openat-tests (Files): Likewise.
44561         (Depends-on): Add unlinkdir.
44562
44563         test-fstatat: new test, to expose Solaris 9 bugs
44564         * tests/test-stat.c (main): Factor guts...
44565         * tests/test-stat.h (test_stat_func): ...into new file.
44566         * tests/test-lstat.c (main): Factor guts...
44567         * tests/test-lstat.h (test_lstat_func): ...into new file.
44568         * tests/test-fstatat.c: New file.
44569         * modules/stat-tests (Files): Add test-stat.h.
44570         * modules/lstat-tests (Files): Add test-lstat.h.
44571         (Depends-on): Add stdbool.
44572         * modules/openat-tests (Depends-on): Add pathmax.
44573         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44574         (Makefile.am): Run new test.
44575
44576         remove: new module, for mingw and Solaris 9 bugs
44577         * modules/remove: New file.
44578         * lib/remove.c: Likewise.
44579         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44581         * modules/stdio (Makefile.am): Use them.
44582         * lib/stdio.in.h (remove): Declare replacement.
44583         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44584         * doc/posix-functions/remove.texi (remove): Likewise.
44585         * modules/remove-tests: New test.
44586         * tests/test-remove.c: Likewise.
44587
44588         unlink: new module, for Solaris 9 bug
44589         * modules/unlink: New file.
44590         * lib/unlink.c: Likewise.
44591         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44593         * modules/unistd (Makefile.am): Use them.
44594         * lib/unistd.in.h (stat): Declare replacement.
44595         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44596         * doc/posix-functions/unlink.texi (unlink): Likewise.
44597         * modules/unlink-tests: New test.
44598         * tests/test-unlink.c: Likewise.
44599
44600         lstat: fix Solaris 9 bug
44601         * lib/lstat.c (lstat): Also check for trailing slash on
44602         non-symlink, non-directories.  Use stat module to simplify logic.
44603         * doc/posix-functions/lstat.texi (lstat): Document it.
44604         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44605         (configure.ac): Check for symlink.
44606         * tests/test-lstat.c (main): Add more tests.
44607
44608         stat: add as dependency to other modules
44609         * modules/chown (Depends-on): Add stat.
44610         * modules/euidaccess (Depends-on): Likewise.
44611         * modules/fchdir (Depends-on): Likewise.
44612         * modules/isdir (Depends-on): Likewise.
44613         * modules/link (Depends-on): Likewise.
44614         * modules/lstat (Depends-on): Likewise.
44615         * modules/mkdir-p (Depends-on): Likewise.
44616         * modules/modechange (Depends-on): Likewise.
44617         * modules/open (Depends-on): Likewise.
44618         * modules/readlink (Depends-on): Likewise.
44619         * modules/same (Depends-on): Likewise.
44620
44621         stat: fix Solaris 9 bug
44622         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44623         slash.
44624         * lib/stat.c (rpl_stat): Work around it.
44625         * doc/posix-functions/stat.texi (stat): Update documentation.
44626
44627         stat: new module, for mingw bug
44628         * modules/stat: New file.
44629         * lib/stat.c: Likewise.
44630         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44631         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44632         * modules/sys_stat (Makefile.am): Use them.
44633         * lib/sys_stat.in.h (stat): Declare replacement.
44634         * lib/openat.c (fstatat): Deal with lstat and stat being function
44635         macros.
44636         * modules/openat (Depends-on): Add inline.
44637         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44638         * doc/posix-functions/stat.texi (stat): Likewise.
44639         * modules/stat-tests: New test.
44640         * tests/test-stat.c: Likewise.
44641
44642 2009-09-19  Jim Meyering  <meyering@redhat.com>
44643
44644         syntax-check: detect unnecessary inclusion of canonicalize.h
44645         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44646
44647 2009-09-19  Eric Blake  <ebb9@byu.net>
44648
44649         canonicalize-lgpl: adjust clients to use correct header
44650         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44651         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44652         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44653         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44654         * lib/progreloc.c (includes): Likewise.
44655
44656 2009-09-19  Jim Meyering  <meyering@redhat.com>
44657
44658         test-posixtm.c: correct a comment
44659         * tests/test-posixtm.c: Correct first-line comment.
44660         Spotted by Eric Blake.
44661
44662 2009-09-16  Jim Meyering  <meyering@redhat.com>
44663
44664         posixtm-tests: make T const-correct; add a test case
44665         * tests/test-posixtm.c (T): Declare const.
44666         Add a test for -(2^31+1).
44667         Remove useless can-succeed-only-in-2002 test.
44668
44669         posixtm-tests: adjust the sole failing test
44670         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44671         expected output matches what mktime now produces.  Cross-checked via
44672         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44673
44674         posixtm: move #ifdef'd tests into a new module
44675         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44676         * tests/test-posixtm.c: ... this new file.
44677         * modules/posixtm-tests: New module.
44678
44679 2009-09-19  Eric Blake  <ebb9@byu.net>
44680
44681         openat: simplify use of at-func.c
44682         * lib/at-func.c (includes): Include prerequisites here, to
44683         simplify requirements on client files.
44684         * lib/openat-priv.h: Add double-inclusion guard.
44685         * lib/faccessat.c (includes): Simplify.
44686         * lib/fchmodat.c (includes): Likewise.
44687         * lib/fchownat.c (includes): Likewise.
44688         * lib/mkdirat.c (includes): Likewise.
44689         * lib/mkfifoat.c (includes): Likewise.
44690         * lib/symlinkat.c (includes): Likewise.
44691
44692         openat: allow return of fd 0
44693         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44694         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44695         unistd-safer.
44696         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44697         <fcntl.h>; this module does not leak fds.
44698         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44699         must be allowed to return 0, leaving openat_safer to add the
44700         safety.
44701         (openat_permissive): Avoid writing to just-opened fd 2 if
44702         restoring the current directory fails.
44703         * lib/openat-die.c (openat_restore_fail): Add comment.
44704         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44705         (save_cwd): Guarantee safe fd, but without use of open_safer.
44706         * tests/test-openat.c: New test.
44707         * modules/openat-tests (Files, Makefile.am): Distribute and build
44708         new file.
44709
44710         relocatable-prog-wrapper: fix build
44711         * modules/relocatable-prog-wrapper (Files): Update name of
44712         canonicalize m4 file, broken on 2009-09-17.
44713         Reported by emad hajjar <aleppos@hotmail.com>.
44714
44715 2009-09-19  Bruno Haible  <bruno@clisp.org>
44716
44717         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44718         * lib/safe-alloc.c: Likewise.
44719         Reported by Ian Beckwith <ianb@erislabs.net>.
44720
44721 2009-09-18  Bruno Haible  <bruno@clisp.org>
44722
44723         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44724         Reported by <erobles@sensacd.com.mx>.
44725
44726 2009-09-17  Eric Blake  <ebb9@byu.net>
44727
44728         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44729         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44730         slashes when checking if last component is missing.
44731         * tests/test-canonicalize.c (main): Test this.
44732
44733         canonicalize, canonicalize-lgpl: honor // if distinct from /
44734         * modules/canonicalize (Files): Add double-slash-root.m4.
44735         * modules/canonicalize-lgpl (Files): Likewise.
44736         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44737         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44738         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44739         fallback definition.
44740         (canonicalize_filename_mode): Use it to protect //.
44741         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44742         (__realpath): Likewise.
44743         * tests/test-canonicalize.c (main): Test this.
44744         * tests/test-canonicalize-lgpl.c (main): Likewise.
44745         * modules/canonicalize-tests (Depends-on): Add same-inode.
44746         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44747
44748         canonicalize-lgpl: fix glibc bug with trailing slash
44749         * m4/canonicalize-lgpl.m4: Move contents...
44750         * m4/canonicalize.m4: ...here.
44751         (gl_CANONICALIZE_LGPL): Factor realpath check...
44752         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44753         glibc 2.3.5 bug, fixed 2005-04-27.
44754         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44755         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44756         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44757         * modules/canonicalize-lgpl (Files): Manage file rename.
44758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44759         * modules/stdlib (Makefile.am): Substitute witness.
44760         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44761         is needed.
44762         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44763         replacement is required.
44764         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44765         * doc/glibc-functions/canonicalize_file_name.texi
44766         (canonicalize_file_name): Document this.
44767         * doc/posix-functions/realpath.texi (realpath): Likewise.
44768
44769         canonicalize-lgpl: reject non-directory with trailing slash
44770         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44771         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44772         catches failures in glibc 2.3.5.
44773         * tests/test-canonicalize.c (main): Likewise.
44774
44775         canonicalize-lgpl: use native realpath if it works
44776         * lib/canonicalize-lgpl.c (realpath): Guard with
44777         FUNC_REALPATH_WORKS.
44778         * lib/stdlib.in.h (realpath): Make declaration optional based on
44779         HAVE_REALPATH.
44780         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44781         native realpath works.
44782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44783         * modules/stdlib (Makefile.am): Substitute witness.
44784
44785         canonicalize, canonicalize-lgpl: use <stdlib.h>
44786         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44787         (Include): Mention <stdlib.h>.
44788         (configure.ac): Mention functions we provide.
44789         * modules/canonicalize (configure.ac): Likewise.
44790         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44791         realpath if canonicalize_file_name is missing.
44792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44793         * modules/stdlib (Makefile.am): Substitute witnesses.
44794         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44795         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44796         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44797         * NEWS: Document this.
44798         * doc/glibc-functions/canonicalize_file_name.texi
44799         (canonicalize_file_name): Likewise.
44800         * doc/posix-functions/realpath.texi (realpath): Likewise.
44801         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44802
44803         test-canonicalize: consolidate into single C program
44804         * tests/test-canonicalize.sh: Delete; move setup into...
44805         * tests/test-canonicalize.c (main): ...the program, making it
44806         easier to run in debugger.  Add some tests.
44807         * modules/canonicalize-tests (Files): Remove unused file.
44808         (Depends-on): Add progname.
44809         (configure.ac, Makefile.am): Simplify.
44810
44811         test-canonicalize-lgpl: consolidate into single C program
44812         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44813         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44814         easier to run in debugger.  Add some tests.
44815         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44816         (configure.ac, Makefile.am): Simplify.
44817
44818         canonicalize: avoid resolvepath
44819         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44820         unnecessary checks.
44821         * lib/canonicalize.c (includes): Simplify.
44822         (canonicalize_file_name): Drop resolvepath implementation.
44823         * modules/canonicalize (Depends-on): Drop filenamecat.
44824
44825         canonicalize: don't lose errno
44826         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44827         over calls to free.
44828
44829         canonicalize: simplify errno handling
44830         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44831         assignment.
44832
44833         canonicalize, canonicalize-lgpl: update module dependencies
44834         * modules/canonicalize (Depends-on): Add extensions, lstat,
44835         pathmax, stdlib.
44836         (Files): Drop pathmax.h.
44837         (configure.ac): Adjust macro name.
44838         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44839         lstat, stdlib, sys_stat.
44840         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44841         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44842         extensions.
44843         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44844         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44845         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44846         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44847         declaration, if available.
44848         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44849         we can rely on the readlink module.
44850         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44851         (includes): Use <unistd.h> unconditionally.
44852
44853 2009-09-17  Eric Blake  <ebb9@byu.net>
44854
44855         maint: make Include sections of modules consistent
44856         * modules/alloca: Use only header name; no need to list #include.
44857         * modules/alloca-opt: Likewise.
44858         * modules/arpa_inet: Likewise.
44859         * modules/canon-host: Likewise.
44860         * modules/configmake: Likewise.
44861         * modules/dirent: Likewise.
44862         * modules/eealloc: Likewise.
44863         * modules/environ: Likewise.
44864         * modules/fchdir: Likewise.
44865         * modules/fcntl: Likewise.
44866         * modules/fcntl-h: Likewise.
44867         * modules/gethrxtime: Likewise.
44868         * modules/gettime: Likewise.
44869         * modules/ignore-value: Likewise.
44870         * modules/inet_ntop: Likewise.
44871         * modules/inet_pton: Likewise.
44872         * modules/inttypes: Likewise.
44873         * modules/isnand-nolibm: Likewise.
44874         * modules/isnanf-nolibm: Likewise.
44875         * modules/mbchar: Likewise.
44876         * modules/mbfile: Likewise.
44877         * modules/mbiter: Likewise.
44878         * modules/mbuiter: Likewise.
44879         * modules/netdb: Likewise.
44880         * modules/netinet_in: Likewise.
44881         * modules/nproc: Likewise.
44882         * modules/pagealign_alloc: Likewise.
44883         * modules/poll: Likewise.
44884         * modules/printf-frexp: Likewise.
44885         * modules/pthread: Likewise.
44886         * modules/putenv: Likewise.
44887         * modules/random_r: Likewise.
44888         * modules/relocatable-prog: Likewise.
44889         * modules/search: Likewise.
44890         * modules/select: Likewise.
44891         * modules/selinux-h: Likewise.
44892         * modules/settime: Likewise.
44893         * modules/signal: Likewise.
44894         * modules/size_max: Likewise.
44895         * modules/socklen: Likewise.
44896         * modules/ssize_t: Likewise.
44897         * modules/stdarg: Likewise.
44898         * modules/stdbool: Likewise.
44899         * modules/stddef: Likewise.
44900         * modules/stdint: Likewise.
44901         * modules/stdio: Likewise.
44902         * modules/stdlib: Likewise.
44903         * modules/string: Likewise.
44904         * modules/strings: Likewise.
44905         * modules/sys_file: Likewise.
44906         * modules/sys_ioctl: Likewise.
44907         * modules/sys_select: Likewise.
44908         * modules/sys_socket: Likewise.
44909         * modules/sys_stat: Likewise.
44910         * modules/sys_time: Likewise.
44911         * modules/sys_times: Likewise.
44912         * modules/sys_utsname: Likewise.
44913         * modules/sys_wait: Likewise.
44914         * modules/sysexits: Likewise.
44915         * modules/time: Likewise.
44916         * modules/times: Likewise.
44917         * modules/tmpfile: Likewise.
44918         * modules/trim: Likewise.
44919         * modules/unistd: Likewise.
44920         * modules/wchar: Likewise.
44921         * modules/wctype: Likewise.
44922
44923 2009-09-17  Bruno Haible  <bruno@clisp.org>
44924
44925         Make getdate.y compile on QNX and NetBSD 5 / i386.
44926         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44927         TIME_T_FITS_IN_LONG_INT.
44928         * lib/getdate.y (long_time_t): New type.
44929         (relative_time): Change type of 'seconds' field to long_time_t.
44930         (get_date): Update types of local variables. Check against overflow
44931         during conversion from long_time_t to time_t.
44932         Reported by Matt Kraai <kraai@ftbfs.org>
44933         and Hasso Tepper <hasso@netbsd.org>.
44934
44935 2009-09-17  Bruno Haible  <bruno@clisp.org>
44936
44937         * modules/COPYING: Update copyright years.
44938         * modules/README: Likeiwse.
44939         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44940         Reported by Ian Beckwith <ianb@erislabs.net>.
44941
44942 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44943
44944         * users.txt: Update references for gnuit package.
44945
44946 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44947
44948         * m4/getdelim.m4: Fix typo in copyright line.
44949
44950 2009-09-17  Bruno Haible  <bruno@clisp.org>
44951
44952         * lib/atoll.c: Use the standard header with GPL copyright.
44953         * lib/argz.in.h: Likewise.
44954         * lib/glob.c: Likewise.
44955         * lib/glob-libc.h: Likewise.
44956         * lib/random_r.c: Likewise.
44957         * lib/siglist.h: Likewise.
44958         * lib/strsignal.c: Likewise.
44959         Reported by Ian Beckwith <ianb@erislabs.net>.
44960
44961 2009-09-17  Eric Blake  <ebb9@byu.net>
44962
44963         rmdir: ensure correct dependency order
44964         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44965
44966 2009-09-17  Bruno Haible  <bruno@clisp.org>
44967
44968         Disable assertion that fails on NetBSD 5 / i386.
44969         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44970         Reported by Sam Steingold <sds@gnu.org>
44971         and Hasso Tepper <hasso@netbsd.org>.
44972
44973 2009-09-16  Eric Blake  <ebb9@byu.net>
44974
44975         unlinkdir: port to mingw
44976         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44977         on which no one can unlink a directory.
44978
44979         stdlib: sort witness names
44980         * modules/stdlib (Makefile.am): Sort replacements.
44981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44982         * lib/stdlib.in.h: Likewise.
44983
44984         parse-duration-tests: avoid link failure
44985         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44986         LIBINTL.
44987         Reported by Tom G. Christensen.
44988
44989         openat-tests: ensure unlinkat behaves like rmdir
44990         * tests/test-rmdir.c (main): Factor guts...
44991         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44992         * modules/rmdir-tests (Files): Ship new file.
44993         * modules/openat-tests: New test.
44994         * tests/test-unlinkat.c: Likewise.
44995
44996         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44997         * modules/rmdir-errno (Status, Notice): Now obsolete.
44998
44999         rmdir: work around cygwin 1.5.x and mingw bugs
45000         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45001         * lib/rmdir.c (rmdir): Work around it.
45002         * modules/rmdir (Status, Notice): No longer obsolete.
45003         (Files): Add dos.m4.
45004         (Depends-on): Add unistd.
45005         (configure.ac): Set witnesses.
45006         (License): Relax to LGPLv2+.
45007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45008         * modules/unistd (Makefile.am): Substitute witnesses.
45009         * lib/unistd.in.h (rmdir): Declare replacement.
45010         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45011         * modules/rmdir-tests: New tests.
45012         * tests/test-rmdir.c: Likewise.
45013
45014 2009-09-15  Eric Blake  <ebb9@byu.net>
45015
45016         fchdir: improve use of replacement functions
45017         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45018         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45019         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45020         REPLACE_CLOSEDIR.
45021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45022         * modules/sys_stat (Makefile.am): Substitute correct witness.
45023         * modules/dirent (Makefile.am): Likewise.
45024         * modules/unistd (Makefile.am): Likewise.
45025         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45026         * lib/unistd.in.h (dup): Likewise.
45027         * lib/sys_stat.in.h (fstat): Likewise.
45028
45029         maint: ignore gnulib-tool temp files
45030         * .gitignore: Ignore files created during gnulib-tool --test.
45031
45032 2009-09-13  Jim Meyering  <meyering@redhat.com>
45033
45034         posixtm: don't reject a time that specify "60" as the number of seconds
45035         * lib/posixtm.c (posixtime): The code to reject invalid dates
45036         would also reject a time specified with the .60 suffix.
45037         But POSIX allows that, in order to accommodate leap seconds.
45038         So don't reject it.
45039         (main): Adjust tests accordingly.
45040         * modules/posixtm (Depends-on): Add stpcpy.
45041
45042 2009-09-11  Jim Meyering  <meyering@redhat.com>
45043
45044         announce-gen: include [$release_type] in emitted Subject:
45045         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45046         e.g., [stable] in the emitted Subject: line.
45047
45048 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45049
45050         Remove obsolete macros from several modules.
45051         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45052         obsolete Autoconf macros with their modern counterparts.
45053         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45054         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45056         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45057         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45058         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45060         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45061         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45062         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45063         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45064         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45065         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45066         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45067         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45068         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45069         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45070         * m4/time_r.m4 (gl_TIME_R): Likewise.
45071         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45072         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45073         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45074
45075         Fix copyright header in build-aux scripts.
45076         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45077         recommendation.
45078         * build-aux/ncftpput-ftp: Likewise.
45079         * build-aux/update-copyright: Likewise.
45080
45081 2009-09-09  Eric Blake  <ebb9@byu.net>
45082
45083         test-link: allow Linux choice of errno
45084         * tests/test-link.c (main): Relax test for alternate error.
45085
45086         strndup: fix improper m4 caching
45087         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45088         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45089         (gl_PREREQ_STRNDUP): Delete.
45090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45091         * modules/string (Makefile.am): Substitute it.
45092         * lib/string.in.h (strndup): Modernize prototype.
45093
45094         getcwd: port to mingw
45095         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45096         different from the POSIX assumptions made throughout the getcwd
45097         module; fortunately, the mingw getcwd does not need replacement.
45098         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45099         * modules/getcwd-tests: New test.
45100         * tests/test-getcwd.c: Likewise.
45101
45102         link: fix platform bugs
45103         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45104         * lib/link.c (link): Work around them.  Fix related mingw bug.
45105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45106         * modules/unistd (Makefile.am): Substitute it.
45107         * lib/unistd.in.h (link): Declare replacement.
45108         * doc/posix-functions/link.texi (link): Document this.
45109         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45110
45111         test-link: consolidate into single C program, test more cases
45112         * tests/test-link.sh: Delete.
45113         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45114         at least Cygwin and Solaris.
45115         * modules/link-tests (Files): Remove unused file.
45116         (Depends-on): Add errno, sys_stat.
45117         (Makefile.am): Simplify.
45118
45119 2009-09-08  Bruno Haible  <bruno@clisp.org>
45120
45121         Work around towlower, towupper bug on mingw.
45122         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45123         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45124         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45125         * doc/posix-functions/towupper.texi: Likewise.
45126         Reported by Eric Blake.
45127
45128 2009-09-08  Jim Meyering  <meyering@redhat.com>
45129
45130         build: don't try to run autoheader if we don't use it
45131         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45132         is not used in configure.ac.
45133
45134 2009-09-08  Eric Blake  <ebb9@byu.net>
45135
45136         euidaccess: fix compilation error
45137         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45138
45139         rawmemchr: relax license
45140         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45141         okay.
45142         Reported by Jim Meyering.
45143
45144         mkfifoat: new module
45145         * modules/mkfifoat: New file.
45146         * lib/mkfifoat.c: Likewise.
45147         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45148         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45149         * modules/sys_stat (Makefile.am): Use them.
45150         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45151         * MODULES.html.sh (File system functions): Mention module.
45152         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45153         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45154         * modules/mkfifoat-tests: New test.
45155         * tests/test-mkfifoat.c: Likewise.
45156
45157         strchrnul: relax license
45158         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45159         okay.
45160         Reported by Jim Meyering.
45161
45162 2009-09-08  Eric Blake  <ebb9@byu.net>
45163
45164         fstatat: fix compilation on Solaris
45165         * lib/fstatat.c (includes): Add fcntl.h.
45166         Reported by Pádraig Brady.
45167
45168 2009-09-07  Eric Blake  <ebb9@byu.net>
45169
45170         rename: modernize replacement
45171         * modules/rename (Depends-on): Add stdio.
45172         (configure.ac): Declare witness.
45173         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45174         stdio take care of replacement.
45175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45176         * modules/stdio (Makefile.am): Substitute them.
45177         * lib/stdio.in.h (rename): Declare replacement.
45178         * lib/rename.c (includes): Allow cross-compilation to non-windows
45179         machines.
45180         * doc/posix-functions/rename.texi (rename): Improve
45181         documentation.
45182
45183         stdio: sort witness names
45184         * modules/stdio (Makefile.am): Sort replacements.
45185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45186         * lib/stdio.in.h: Likewise.
45187
45188         getcwd: minor cleanups
45189         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45190         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45191
45192         openat: provide more convenience names
45193         * modules/faccessat (configure.ac): Add C witness.
45194         * lib/unistd.in.h (readlinkat): Fix typo.
45195         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45196         convenience wrappers.
45197         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45198         wrappers in syntax checks.
45199
45200 2009-09-06  Eric Blake  <ebb9@byu.net>
45201
45202         doc: fix comments in recent patches
45203         * lib/faccessat.c: Mention correct function.
45204         * lib/fchmodat.c: Likewise.
45205         * lib/fchownat.c: Likewise.
45206         * lib/symlinkat.c: Likewise.
45207         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45208         constants.
45209
45210         faccessat, symlinkat: continue cleanup of previous patch
45211         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45212         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45213         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45215         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45216         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45217         set.
45218
45219 2009-09-06  Bruno Haible  <bruno@clisp.org>
45220
45221         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45222         (fstatat): Declare if GNULIB_FSTATAT is set.
45223         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45224         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45225         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45226         * modules/fcntl-h (Files): Remove m4/openat.m4.
45227         * modules/sys_stat (Files): Remove m4/openat.m4.
45228         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45229         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45230         * modules/unistd (Files): Remove m4/openat.m4.
45231         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45232         GNULIB_OPENAT.
45233         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45234         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45235         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45236         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45237         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45238         gl_OPENAT_DEFAULTS.
45239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45240         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45241         Don't require gl_OPENAT_DEFAULTS.
45242         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45243         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45244         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45245         (gl_OPENAT_DEFAULTS): Remove macro.
45246
45247 2009-09-06  Bruno Haible  <bruno@clisp.org>
45248
45249         * modules/openat (configure.ac): Remove unneeded witness.
45250
45251 2009-09-06  Bruno Haible  <bruno@clisp.org>
45252
45253         Set errno to ENOSYS when a function is entirely unsupported.
45254         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45255         EOPNOTSUPP.
45256         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45257         * modules/chown (Depends-on): Remove errno.
45258
45259 2009-09-06  Bruno Haible  <bruno@clisp.org>
45260
45261         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45262
45263 2009-09-06  Bruno Haible  <bruno@clisp.org>
45264
45265         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45266
45267 2009-09-06  Ben Pfaff  <blp@gnu.org>
45268             Bruno Haible  <bruno@clisp.org>
45269
45270         Work around a glibc bug in strtok_r.
45271         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45272         Undefine if UNDEFINE_STRTOK_R is set.
45273         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45275         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45276         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45277         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45278         UNDEFINE_STRTOK_R.
45279         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45280
45281 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45282
45283         exclude: minor fix
45284         * lib/exclude.c: Include wctype.h
45285
45286 2009-09-06  Akim Demaille  <demaille@gostai.com>
45287
45288         bootstrap: improve error message
45289         * build-aux/bootstrap (find_tool): Upon failure, report the list
45290         of candidates.
45291         Honor the initial value of the envvar.
45292
45293 2009-09-05  Eric Blake  <ebb9@byu.net>
45294
45295         symlinkat: new module
45296         * modules/symlinkat: New file.
45297         * lib/symlinkat.c: Likewise.
45298         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45300         * modules/unistd (Makefile.am): Use them.
45301         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45302         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45303         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45304         * MODULES.html.sh (File system functions): Mention module.
45305         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45306         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45307         * modules/symlinkat-tests: New test.
45308         * tests/test-symlinkat.c: Likewise.
45309
45310         test-openat-safer: add more checks
45311         * tests/test-openat-safer.c (main): Check more code paths.
45312
45313 2009-09-05  Jim Meyering  <meyering@redhat.com>
45314
45315         syntax-check: detect unnecessary inclusion of openat.h
45316         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45317
45318 2009-09-05  Bruno Haible  <bruno@clisp.org>
45319
45320         Support towlower, towupper.
45321         * doc/posix-functions/towlower.texi: Mention module wctype.
45322         * doc/posix-functions/towupper.texi: Likewise.
45323         * lib/wctype.in.h (towlower, towupper): New functions.
45324         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45325         (ASSERT): New macro.
45326         (e): New variable.
45327         (main): Test also towlower, towupper. Test WEOF argument.
45328         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45329
45330 2009-09-05  Bruno Haible  <bruno@clisp.org>
45331
45332         Fix conversion behaviour when the input is invalid.
45333         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45334         mark occurring in first pass of indirect conversion.
45335         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45336         input.
45337         Found by clang's static analyzer.
45338
45339 2009-09-05  Bruno Haible  <bruno@clisp.org>
45340
45341         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45342         where direct conversion is possible.
45343
45344 2009-09-04  Eric Blake  <ebb9@byu.net>
45345
45346         openat: fail with ENOENT on empty name
45347         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45348         buffer.
45349
45350         link-follow: fix logic bug in prior patch
45351         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45352         reversed sense of yes and no in prior patch.  Avoid confusing
45353         compilation failure with desired semantics.
45354
45355         link-follow: accommodate mingw and cross-compilation
45356         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45357         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45358         cross-compilation results to -1, to make linkat easier to
45359         implement when cross-compiling.  Trivially support mingw.
45360         * modules/link-follow (configure.ac): Call new name.
45361         * NEWS: Mention this.
45362
45363 2009-09-03  Eric Blake  <ebb9@byu.net>
45364
45365         faccessat: compile replacement
45366         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45367         needed.
45368
45369         fts: fix compilation error
45370         * lib/fts.c (includes): Re-add "openat.h", for
45371         openat_needs_fchdir.
45372
45373         faccessat: new module
45374         * modules/faccessat: New file.
45375         * lib/faccessat.c: Likewise.
45376         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45378         * modules/unistd (Makefile.am): Use it.
45379         * lib/unistd.in.h (faccessat): Declare it.
45380         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45381         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45382         * MODULES.html.sh (File system functions): Mention it.
45383         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45384         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45385
45386         euidaccess: prefer POSIX over non-standard implementation
45387         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45388         * lib/euidaccess.c (euidaccess): Use it if available.
45389
45390         openat: make template easier to use
45391         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45392         AT_FUNC_F2 to be undefined.
45393         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45394         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45395         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45396         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45397         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45398         Likewise.
45399         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45400         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45401         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45402         Likewise.
45403
45404         openat: declare in POSIX headers
45405         * NEWS: Mention this.
45406         * modules/openat (configure.ac): Declare witnesses.
45407         (Depends-on): Add fcntl-h, sys_stat, unistd.
45408         (Include): Mention correct headers.
45409         * modules/fcntl-h (Depends-on): Add link-warning.
45410         (Files): Add openat.m4.
45411         (Makefile.am): Substitute witnesses.
45412         * modules/sys_stat (Files, Makefile.am): Likewise.
45413         * modules/unistd (Files, Makefile.am): Likewise.
45414         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45415         (gl_OPENAT_DEFAULTS): New macro.
45416         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45418         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45419         (SYS_STAT_H): Remove unused variable.
45420         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45421         * lib/fcntl--.h (includes): Remove unneeded header.
45422         * lib/openat-safer.c (includes): Likewise.
45423         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45424         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45425         appropriate headers.
45426         (__OPENAT_PREFIX): Delete.
45427         * lib/fcntl.in.h (openat): Provide declaration.
45428         (AT_FDCWD): Fix Solaris bug.
45429         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45430         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45431         * lib/fchmodat.c (includes):  Adjust to find declaration.
45432         * lib/fchownat.c (includes): Likewise.
45433         * lib/mkdirat.c (includes): Likewise.
45434         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45435         still visible.
45436
45437 2009-09-02  Eric Blake  <ebb9@byu.net>
45438
45439         errno: use consistently
45440         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45441         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45442         * lib/canonicalize.c (ELOOP): Likewise.
45443         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45444         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45445         * lib/lchown.c (EOPNOTSUPP): Likewise.
45446         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45447         * lib/savewd.c (ESTALE): Likewise.
45448         * lib/settime.c (ENOSYS): Likewise.
45449         * lib/utimens.c (ENOSYS): Likewise.
45450         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45451         * lib/chdir-safer.c (ELOOP): Likewise.
45452         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45453         * modules/c-stack (Depends-on): Add errno.
45454         * modules/canonicalize (Depends-on): Likewise.
45455         * modules/chdir-safer (Depends-on): Likewise.
45456         * modules/fdopendir (Depends-on): Likewise.
45457         * modules/inet_ntop (Depends-on): Likewise.
45458         * modules/inet_pton (Depends-on): Likewise.
45459         * modules/lchown (Depends-on): Likewise.
45460         * modules/openat (Depends-on): Likewise.
45461         * modules/savewd (Depends-on): Likewise.
45462         * modules/settime (Depends-on): Likewise.
45463         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45464
45465         fts: avoid leaking fds
45466         * modules/fts (Depends-on): Add cloexec.
45467         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45468         flag.
45469
45470         fts: make directory fds more robust
45471         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45472         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45473
45474         backupfile, chdir-long, fts, savedir: make safer
45475         * lib/backupfile.c (includes): Use "dirent--.h", since
45476         numbered_backup can write to stderr during readdir.
45477         * lib/savedir.c (includes): Likewise.
45478         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45479         emulation can write to stderr on failure.
45480         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45481         * lib/getcwd.c: Document why opendir_safer is unused.
45482         * lib/glob.c: Likewise.
45483         * lib/scandir.c: Likewise.
45484         * lib/openat-proc.c: Likewise, for open_safer.
45485         * modules/backupfile (Depends-on): Add dirent-safer.
45486         * modules/savedir (Depends-on): Likewise.
45487         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45488         * modules/chdir-long (Depends-on): Add openat-safer.
45489
45490         openat-safer: new module
45491         * modules/openat-safer: New file.
45492         * lib/openat-safer.c: Likewise.
45493         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45494         * lib/fcntl-safer.h (openat_safer): Declare.
45495         * lib/fcntl--.h (openat): Override.
45496         * MODULES.html.sh (File descriptor based I/O): Mention it.
45497         * lib/openat.h: Add double-inclusion guards.
45498         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45499         "fcntl--.h", so we can implement openat.
45500         * modules/openat-safer-tests: New test.
45501         * tests/test-openat-safer.c: New file.
45502
45503         dirent-safer: new module
45504         * modules/dirent-safer: New file.
45505         * lib/dirent--.h: Likewise.
45506         * lib/dirent-safer.h: Likewise.
45507         * lib/opendir-safer.c: Likewise.
45508         * m4/dirent-safer.m4: Likewise.
45509         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45510         * modules/dirent-safer-tests: New test.
45511         * tests/test-dirent-safer.c: New file.
45512         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45513
45514         fdopendir: optimize on mingw
45515         * lib/unistd.in.h (_gl_directory_name): New prototype.
45516         * lib/fchdir.c (_gl_directory_name): Implement it.
45517         (fchdir): Use it to simplify implementation.
45518         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45519         fchdir, when available, to avoid calling [f]chdir().
45520
45521         fdopendir: split into its own module
45522         * lib/openat.c (fdopendir): Move...
45523         * lib/fdopendir.c: ...into new file.
45524         * modules/fdopendir: New module.
45525         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45526         * modules/openat (Depends-on): Add fdopendir.
45527         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45528         fdopendir here.
45529         * modules/savedir (Depends-on): Only need fdopendir, not full
45530         openat.
45531         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45532         * lib/openat.h (fdopendir): Drop prototype.
45533         * lib/dirent.in.h (fdopendir): Provide prototype.
45534         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45535         * modules/dirent (Makefile.am): Substitute them.
45536         * MODULES.html.sh (File system functions): Mention it.
45537         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45538         * modules/fdopendir-tests: New file.
45539         * tests/test-fdopendir.c: Likewise.
45540
45541         fchdir: use more consistent macro convention
45542         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45543         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45544         REPLACE_FCHDIR, rather than relying on config.h macros.
45545         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45546         inside a single make-time REPLACE_FCHDIR block, rather than using
45547         the config.h FCHDIR_REPLACEMENT.
45548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45549         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45550         Manage fstat replacement.
45551         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45552         REPLACE_FCHDIR.
45553         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45554         (Makefile.am): Substitute REPLACE_FCHDIR.
45555         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45556         FCHDIR_REPLACEMENT.
45557         * lib/dup-safer.c (dup_safer): Likewise.
45558         * lib/dup2.c (rpl_dup2): Likewise.
45559         * lib/dup3.c (rpl_dup3): Likewise.
45560         * lib/open.c (rpl_open): Likewise.
45561
45562         fchdir: simplify error handling, and support dup3
45563         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45564         stdbool, malloc-posix, realloc-posix.
45565         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45566         (ensure_dirs_slot): Return false on allocation failure.
45567         (rpl_dup2): Delete.
45568         (_gl_register_dup): New function.
45569         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45570         (_gl_register_fd): Close fd on allocation failure.
45571         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45572         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45573         prototype.
45574         (rpl_dup2_fchdir): Delete prototype.
45575         * lib/open.c (open): Update caller.
45576         * lib/dup2.c (dup2): Track fchdir metadata.
45577         * lib/dup3.c (dup3): Likewise.
45578         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45580
45581 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45582
45583         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45584         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45585         don't pass arguments to AC_OUTPUT.
45586
45587 2009-09-02  Bruno Haible  <bruno@clisp.org>
45588
45589         * modules/mkdtemp (License): Relicense under LGPLv2+.
45590         Reported by Paolo Bonzini.
45591
45592 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45593
45594         Replace uses of obsolete autoconf macros in Jim's modules.
45595         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45596         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45597         can evoke a warning from autoconf when run with -Wobsolete
45598         enabled.  They were declared obsolete for good reasons (see
45599         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45600         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45601         should not continue using the deprecated macros.
45602         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45603         obsolete Autoconf macros with modern counterparts.
45604         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45605         * m4/dos.m4 (gl_AC_DOS): Likewise.
45606         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45607         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45608         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45609         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45610         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45611         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45612         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45613         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45614         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45615         Likewise.
45616         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45617         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45618         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45619         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45620         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45621         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45622
45623 2009-09-01  Eric Blake  <ebb9@byu.net>
45624
45625         fchdir: fix off-by-one bug in previous patch
45626         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45627         (_gl_unregister_fd): Delete useless if.
45628
45629 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45630
45631         maint.mk: sort the list of syntax-check rules
45632         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45633         easier to get a sense of progress when the rules are run sequentially
45634         and take a long time.
45635
45636 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45637
45638         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45639         * modules/netinet_in: Likewise.
45640         * modules/sys_file: Likewise.
45641         * modules/sys_ioctl: Likewise.
45642         * modules/sys_select: Likewise.
45643         * modules/sys_socket: Likewise.
45644         * modules/sys_stat: Likewise.
45645         * modules/sys_time: Likewise.
45646         * modules/sys_times: Likewise.
45647         * modules/sys_utsname: Likewise.
45648         * modules/sys_wait: Likewise.
45649
45650 2009-09-01  Jim Meyering  <meyering@redhat.com>
45651
45652         fts: help ensure that return values are not ignored
45653         * lib/fts_.h (__GNUC_PREREQ): Define.
45654         (__attribute_warn_unused_result__): Define.
45655         (fts_children, fts_close, fts_open, fts_read): Declare with
45656         __attribute_warn_unused_result__.
45657
45658         fts: fts_close now fails also when closing a dir file descriptor fails
45659         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45660         and propagate to caller, along with errno.
45661
45662         announce-gen: correct formatting in --help output
45663         * build-aux/announce-gen (usage): Move the one-line description in
45664         --help output "up", to where it belongs, just after Usage:.
45665
45666 2009-08-31  Eric Blake  <ebb9@byu.net>
45667
45668         fchdir: port to mingw
45669         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45670         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45671         opened, then use a substitute.
45672         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45673         replacement.
45674         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45675         (_gl_register_fd): No need to check stat if open already filters
45676         all directories.
45677         (fchdir): Fix error condition to match POSIX.
45678         * modules/fchdir (Depends-on): Add sys_stat.
45679         * doc/posix-functions/open.texi (open): Document the limitation.
45680         * modules/fchdir-tests: New file.
45681         * tests/test-fchdir.c: Likewise.
45682
45683         canonicalize: allow cross-testing from cygwin to mingw
45684         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45685         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45686         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45687         Likewise.
45688         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45689         target does not support symlinks.
45690         * tests/test-canonicalize-lgpl.sh: Likewise.
45691
45692         chown: avoid compilation warning on mingw
45693         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45694         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45695         mingw.
45696         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45697         * modules/chown (Depends-on): Add errno.
45698
45699 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45700
45701         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45702         command.
45703
45704 2009-08-31  Jim Meyering  <meyering@redhat.com>
45705
45706         canonicalize: remove useless initialization
45707         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45708         initialization of local, "end".
45709
45710 2009-08-30  Bruno Haible  <bruno@clisp.org>
45711
45712         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45713         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45714         ENOSYS.
45715
45716 2009-08-30  Bruno Haible  <bruno@clisp.org>
45717
45718         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45719         /usr/xpg4/bin/tr when it exists.
45720         * tests/test-pipe-filter-gi1.sh: Likewise.
45721
45722 2009-08-30  Bruno Haible  <bruno@clisp.org>
45723
45724         Work around deficient /usr/bin/id program on Solaris.
45725         * tests/test-file-has-acl.sh (ID): New variable.
45726         * tests/test-set-mode-acl.sh (ID): Likewise.
45727         * tests/test-copy-acl.sh (ID): Likewise.
45728         * tests/test-copy-file.sh (ID): Likewise.
45729
45730 2009-08-30  Bruno Haible  <bruno@clisp.org>
45731
45732         New module 'xstriconveh'.
45733         * lib/xstriconveh.h: New file.
45734         * lib/xstriconveh.c: New file.
45735         * modules/xstriconveh: New file.
45736
45737 2009-08-30  Bruno Haible  <bruno@clisp.org>
45738
45739         Make it easier to use mem_cd_iconveh.
45740         * lib/striconveh.h (iconveh_t): New type.
45741         (iconveh_open, iconveh_close): New declarations.
45742         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45743         with a single 'const iconveh_t *' argument.
45744         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45745         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45746         with a single 'const iconveh_t *' argument.
45747         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45748         * tests/test-striconveh.c (main): Update.
45749         * NEWS: Mention the change.
45750
45751 2009-08-30  Bruno Haible  <bruno@clisp.org>
45752
45753         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45754         problem.
45755
45756 2009-08-30  Bruno Haible  <bruno@clisp.org>
45757
45758         Work around iconv_open problem on Solaris.
45759         * lib/iconv_open-solaris.gperf: New file.
45760         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45761         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45762         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45763         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45764         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45765         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45766
45767 2009-08-29  Jim Meyering  <meyering@redhat.com>
45768
45769         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45770         * top/maint.mk (cvs-check): Remove target; it was just an alias
45771         to the better-named vc-diff-check.
45772         (maintainer-distcheck): Remove rule.  It was used only from
45773         the (alpha/beta/major) target, and all of its commands but one
45774         were coreutils-specific.
45775         (vc-dist): Remove rule.
45776         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45777         Run vc-diff-check, not vc-dist.
45778         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45779
45780 2009-08-27  Bruno Haible  <bruno@clisp.org>
45781
45782         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45783         of 0.
45784
45785 2009-08-27  Bruno Haible  <bruno@clisp.org>
45786
45787         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45788         compilers.
45789         * doc/func.texi: Document the SunPRO C bug.
45790
45791 2009-08-27  Bruno Haible  <bruno@clisp.org>
45792
45793         Fix link error on Solaris.
45794         * tests/test-parse-duration.c (xstrdup): Remove function.
45795
45796 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45797
45798         ignore-value: handle pointer types, too
45799         * lib/ignore-value.h (__attribute__): Remove definition.
45800         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45801         of a more concise and more-often effective "(void) i" statement.
45802         (ignore_ptr): New function to suppress warnings from functions that
45803         return pointers, and to make it explicit that one function doesn't
45804         handle all cases.
45805
45806 2009-08-25  Bruno Haible  <bruno@clisp.org>
45807
45808         dup2: work around a Linux bug.
45809         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45810         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45811         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45812         Reported by Simon Josefsson.
45813
45814 2009-08-25  Jim Meyering  <meyering@redhat.com>
45815
45816         libguestfs uses gnulib
45817         * users.txt: Add libguestfs.
45818
45819 2009-08-24  Eric Blake  <ebb9@byu.net>
45820
45821         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45822         * lib/pipe2.c (includes): Add binary-io.h.
45823         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45824
45825 2009-08-24  Bruno Haible  <bruno@clisp.org>
45826
45827         Tolerate declared but missing accept4 syscall.
45828         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45829         available.
45830         * lib/sys_socket.in.h (accept4): If the function is already present,
45831         override it.
45832         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45833         * modules/accept4 (Makefile.am): Compile accept4.c always.
45834         Reported by Paolo Bonzini and Eric Blake.
45835
45836 2009-08-23  Bruno Haible  <bruno@clisp.org>
45837
45838         New module 'accept4'.
45839         * lib/sys_socket.in.h (accept4): New declaration.
45840         * lib/accept4.c: New file.
45841         * m4/accept4.m4: New file.
45842         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45843         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45844         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45845         HAVE_ACCEPT4.
45846         * modules/accept4: New file.
45847         * doc/glibc-functions/accept4.texi: Mention the new module.
45848
45849 2009-08-24  Jim Meyering  <meyering@redhat.com>
45850
45851         progname: also set global program_invocation_name, when possible
45852         Before this change, a libtool-enabled program that calls glibc's
45853         error function would report the program name as
45854         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45855         * modules/progname (configure.ac): Check for a declaration of
45856         program_invocation_name.
45857         * lib/progname.c:  Include <errno.h>.
45858         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45859         Set program_invocation_name.
45860
45861 2009-08-23  Bruno Haible  <bruno@clisp.org>
45862
45863         * lib/dup3.c: Include <string.h>.
45864
45865 2009-08-23  Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45868         * lib/pipe2.c (pipe2): Likewise.
45869         Suggested by Eric Blake.
45870
45871 2009-08-23  Bruno Haible  <bruno@clisp.org>
45872
45873         Tolerate declared but missing dup3 syscall.
45874         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45875         * lib/unistd.in.h (dup3): If the function is already present,
45876         override it.
45877         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45878         * modules/dup3 (Makefile.am): Compile dup3.c always.
45879         Reported by Paolo Bonzini.
45880
45881 2009-08-23  Bruno Haible  <bruno@clisp.org>
45882
45883         Tolerate declared but missing pipe2 syscall.
45884         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45885         available.
45886         * lib/unistd.in.h (pipe2): If the function is already present,
45887         override it.
45888         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45889         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45890         Reported by Paolo Bonzini.
45891
45892 2009-08-23  Bruno Haible  <bruno@clisp.org>
45893
45894         * lib/pipe2.c (pipe2): Move #ifs inside function.
45895
45896 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45897
45898         quotearg: document limitations of quote_these_too
45899         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45900         those limitations are created.
45901         * lib/quotearg.h (set_char_quoting): Document that digits and
45902         letters that are special after backslash are not permitted.
45903         (quotearg_char): Cross-reference set_char_quoting documentation.
45904
45905 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45906
45907         quotearg: implement custom_quoting_style
45908         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45909         right_quote fields.
45910         (set_custom_quoting): New public function.
45911         (quotearg_buffer_restyled): Add left_quote and right_quote
45912         arguments, handle them very much like locale quoting, and update
45913         all uses.
45914         (quotearg_n_custom): New public function.
45915         (quotearg_n_custom_mem): New public function.
45916         (quotearg_custom): New public function.
45917         (quotearg_custom_mem): New public function.
45918         * lib/quotearg.h: Prototype and document new public functions.
45919         (enum quoting_style): For escape_quoting_style and
45920         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45921         ignored even though they're otherwise like c_quoting_style.
45922         Add custom_quoting_style member and document with comparison to
45923         clocale_quoting_style.
45924         * tests/test-quotearg.c (custom_quotes): New array.
45925         (custom_results): New array.
45926         (main): Extend to test custom quoting.
45927
45928 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45929
45930         quotearg: fix right quote escaping when it's in quote_these_too
45931         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45932         quote, be sure to prepend only one backslash.
45933         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45934         (main): Test it.
45935
45936 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45937
45938         quotearg-tests: test escaping of embedded locale quotes
45939         * tests/test-quotearg.c (struct result_strings): Add member for
45940         new input.
45941         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45942         (inputs): Add new input.
45943         (results_g): Add expected results.
45944         (flag_results): Likewise.
45945         (locale_results): Likewise.
45946         (compare_strings): Check those.
45947
45948 2009-08-23  Bruno Haible  <bruno@clisp.org>
45949
45950         Tests for module 'dup3'.
45951         * modules/dup3-tests: New file.
45952         * tests/test-dup3.c: New file.
45953
45954         New module 'dup3'.
45955         * lib/unistd.in.h (dup3): New declaration.
45956         * lib/dup3.c: New file.
45957         * m4/dup3.m4: New file.
45958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45959         HAVE_DUP3.
45960         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45961         * modules/dup3: New file.
45962         * doc/glibc-functions/dup3.texi: Mention the new module.
45963
45964 2009-08-23  Bruno Haible  <bruno@clisp.org>
45965
45966         Tweak the dup2 test.
45967         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45968         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45969         the test file is still empty. Fix argument order of lseek.
45970
45971 2009-08-23  Bruno Haible  <bruno@clisp.org>
45972
45973         Avoid test link errors when the modules getopt-gnu, gettext are used.
45974         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45976
45977 2009-08-23  Bruno Haible  <bruno@clisp.org>
45978
45979         Fix getdtablesize() on mingw.
45980         * lib/getdtablesize.c (getdtablesize): Implement differently.
45981         * lib/unistd.in.h (getdtablesize): Improve comment.
45982
45983 2009-08-23  Bruno Haible  <bruno@clisp.org>
45984
45985         New module 'mkostemp'.
45986         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45987         * lib/stdlib.in.h (mksotemp): New declaration.
45988         * lib/mkostemp.c: New file, from glibc with modifications.
45989         * lib/tempname.h (GT_FILE): Remove outdated comment.
45990         (gen_tempname): Add flags argument.
45991         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45992         (__GT_FILE): Map to 1.
45993         (small_open, large_open): Remove macros.
45994         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45995         * lib/mkstemp.c (mkstemp): Update.
45996         * lib/mkdtemp.c (mkdtemp): Likewise.
45997         * m4/mkostemp.m4: New file.
45998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45999         HAVE_MKOSTEMP.
46000         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46001         HAVE_MKOSTEMP.
46002         * modules/mkostemp: New file, based on modules/mkstemp.
46003         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46004         * NEWS: Mention the change.
46005
46006 2009-08-23  Bruno Haible  <bruno@clisp.org>
46007
46008         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46009         Reported by Eric Blake.
46010
46011 2009-08-23  Bruno Haible  <bruno@clisp.org>
46012
46013         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46014         Reported by Eric Blake.
46015
46016 2009-08-23  Bruno Haible  <bruno@clisp.org>
46017
46018         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46019         * modules/pipe2 (Depends-on): Likewise.
46020
46021 2009-08-23  Eric Blake  <ebb9@byu.net>
46022
46023         fcntl-h: add O_TTY_INIT support
46024         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46025         * tests/test-fcntl-h.c (o): Test it.
46026         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46027
46028         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46029         * modules/fcntl: Move <fcntl.h> header replacement...
46030         * modules/fcntl-h: ...to new name, so as not to collide with
46031         like-named function.
46032         * tests/test-fcntl.c: Rename...
46033         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46034         * modules/fcntl-tests: Rename...
46035         * modules/fcntl-h-tests: ...to this.  Update test file name.
46036         * modules/chdir-long (Depends-on): Update clients.
46037         * modules/chdir-safer (Depends-on): Likewise.
46038         * modules/fcntl-safer (Depends-on): Likewise.
46039         * modules/fts (Depends-on): Likewise.
46040         * modules/mkancesdirs (Depends-on): Likewise.
46041         * modules/mkdir-p (Depends-on): Likewise.
46042         * modules/open (Depends-on): Likewise.
46043         * modules/savewd (Depends-on): Likewise.
46044         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46045         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46046
46047 2009-08-22  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/binary-io (License): Relicense under LGPL.
46050         * modules/pipe2 (License): Likewise.
46051
46052 2009-08-22  Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46055         return value.
46056         * lib/pipe-filter-gi.c (filter_init): Likewise.
46057         Reported by Eric Blake.
46058
46059 2009-08-22  Bruno Haible  <bruno@clisp.org>
46060
46061         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46062         * modules/pipe (Depends-on): Add pipe2.
46063
46064 2009-08-22  Bruno Haible  <bruno@clisp.org>
46065
46066         Tests for module 'pipe2'.
46067         * modules/pipe2-tests: New file.
46068         * tests/test-pipe2.c: New file.
46069
46070         New module 'pipe2'.
46071         * lib/unistd.in.h (pipe2): New declaration.
46072         * lib/pipe2.c: New file.
46073         * m4/pipe2.m4: New file.
46074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46075         HAVE_PIPE2.
46076         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46077         * modules/pipe2: New file.
46078         * doc/glibc-functions/pipe2.texi: Mention the new module.
46079
46080 2009-08-22  Bruno Haible  <bruno@clisp.org>
46081
46082         Reference some new glibc functions.
46083         * doc/glibc-functions/accept4.texi: New file.
46084         * doc/glibc-functions/dup3.texi: New file.
46085         * doc/glibc-functions/mkostemp.texi: New file.
46086         * doc/glibc-functions/pipe2.texi: New file.
46087         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46088         (Glibc sys/socket.h): Refer to accept4.
46089         (Glibc unistd.h): Refer to dup3, pipe2.
46090         Reported by Eric Blake.
46091
46092 2009-08-22  Jim Meyering  <meyering@redhat.com>
46093             Bruno Haible  <bruno@clisp.org>
46094
46095         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46096         This makes it so packages using automake-1.11's silent-rules option
46097         can print e.g., a single "GEN    configmake.h" line, rather than
46098         the 30+ statements that perform the job.  If you want to see the
46099         actual commands, you can still run "make V=1".
46100         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46101         so that make output is abbreviated when those variables are defined
46102         appropriately.
46103         * modules/argz: Likewise.
46104         * modules/arpa_inet: Likewise.
46105         * modules/byteswap: Likewise.
46106         * modules/configmake: Likewise.
46107         * modules/dirent: Likewise.
46108         * modules/errno: Likewise.
46109         * modules/fcntl: Likewise.
46110         * modules/float: Likewise.
46111         * modules/fnmatch: Likewise.
46112         * modules/getopt-posix: Likewise.
46113         * modules/glob: Likewise.
46114         * modules/iconv_open: Likewise.
46115         * modules/inttypes: Likewise.
46116         * modules/localcharset: Likewise.
46117         * modules/locale: Likewise.
46118         * modules/math: Likewise.
46119         * modules/netdb: Likewise.
46120         * modules/netinet_in: Likewise.
46121         * modules/poll: Likewise.
46122         * modules/posix_spawnp-tests: Likewise.
46123         * modules/sched: Likewise.
46124         * modules/search: Likewise.
46125         * modules/selinux-h: Likewise.
46126         * modules/signal: Likewise.
46127         * modules/spawn: Likewise.
46128         * modules/stdarg: Likewise.
46129         * modules/stdbool: Likewise.
46130         * modules/stddef: Likewise.
46131         * modules/stdint: Likewise.
46132         * modules/stdio: Likewise.
46133         * modules/stdlib: Likewise.
46134         * modules/string: Likewise.
46135         * modules/strings: Likewise.
46136         * modules/sys_file: Likewise.
46137         * modules/sys_ioctl: Likewise.
46138         * modules/sys_select: Likewise.
46139         * modules/sys_socket: Likewise.
46140         * modules/sys_stat: Likewise.
46141         * modules/sys_time: Likewise.
46142         * modules/sys_times: Likewise.
46143         * modules/sys_utsname: Likewise.
46144         * modules/sys_wait: Likewise.
46145         * modules/sysexits: Likewise.
46146         * modules/time: Likewise.
46147         * modules/unistd: Likewise.
46148         * modules/wchar: Likewise.
46149         * modules/wctype: Likewise.
46150
46151 2009-08-22  Jim Meyering  <meyering@redhat.com>
46152
46153         announce-gen: detect write failure
46154         * build-aux/announce-gen: Add Coda at end.
46155         Remove equivalent-but-more-verbose block at top.
46156
46157 2009-08-19  Akim Demaille  <demaille@gostai.com>
46158
46159         bootstrap: --help to stdout.
46160         * bootstrap (usage): Don't send --help to stderr.
46161         Use a here doc instead of a long string.
46162
46163 2009-08-21  Eric Blake  <ebb9@byu.net>
46164
46165         test-popen-safer: split from test-popen
46166         * tests/test-popen.c (main): Move...
46167         * tests/test-popen.h: ...into new file.
46168         * tests/test-popen-safer2.c: New file.
46169         * modules/popen-tests (Files): Add test-popen.h.
46170         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46171         Suggested by Bruno Haible.
46172
46173         test-fcntl-safer: split from test-open
46174         * tests/test-open.c (main): Move...
46175         * tests/test-open.h: ...into new file.
46176         * tests/test-fcntl-safer.c: New file.
46177         * modules/open-tests (Files): Add test-open.h.
46178         * modules/fcntl-safer-tests: New file.
46179         Suggested by Bruno Haible.
46180
46181         test-fopen-safer: split from test-fopen
46182         * tests/test-fopen.c (main): Move...
46183         * tests/test-fopen.h: ...into new file.
46184         * tests/test-fopen-safer.c: New file.
46185         * modules/fopen-tests (Files): Add test-fopen.h.
46186         * modules/fopen-safer-tests: New file.
46187         Suggested by Bruno Haible.
46188
46189 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46190
46191         popen-safer: test O_CLOEXEC at run-time.
46192         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46193
46194 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46195
46196         fcntl: move more flags to the header
46197         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46198         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46199         * lib/fcntl.in.h: Do both things here.
46200
46201 2009-08-21  Jim Meyering  <meyering@redhat.com>
46202
46203         consistently remove $@-t before redirecting to it
46204         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46205         * modules/alloca-opt: Likewise.
46206         * modules/byteswap: Likewise.
46207         * modules/fnmatch: Likewise.
46208         * modules/getopt-posix: Likewise.
46209         * modules/glob: Likewise.
46210         * modules/poll: Likewise.
46211         * modules/posix_spawnp-tests: Likewise.
46212         * modules/sys_socket: Likewise.
46213         * modules/sysexits: Likewise.
46214
46215 2009-08-21  Eric Blake  <ebb9@byu.net>
46216
46217         popen: simplify access to original popen
46218         * lib/popen.c (rpl_popen): No need to worry about popen being a
46219         macro.
46220         Reported by Bruno Haible.
46221
46222 2009-08-20  Eric Blake  <ebb9@byu.net>
46223
46224         build: avoid some compiler warnings
46225         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46226         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46227         type.
46228         (new_exclude_segment, excluded_file_pattern_p)
46229         (excluded_file_name_p): Reduce scope.
46230         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46231         old-style declaration.
46232
46233 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46234
46235         * tests/test-exclude1.sh: Handle Windows EOL.
46236         * tests/test-exclude2.sh: Likewise.
46237         * tests/test-exclude3.sh: Likewise.
46238         * tests/test-exclude4.sh: Likewise.
46239         * tests/test-exclude5.sh: Likewise.
46240         * tests/test-exclude6.sh: Likewise.
46241         * tests/test-exclude7.sh: Likewise.
46242
46243 2009-08-19  Akim Demaille  <demaille@gostai.com>
46244
46245         bootstrap: find sha1sum when named gsha1sum.
46246         * bootstrap (find_tool): New.
46247         ($SHA1SUM): New.
46248         Use it.
46249
46250 2009-08-20  Jim Meyering  <meyering@redhat.com>
46251
46252         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46253         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46254         expression that converts "." in a file name to "\." in the resulting
46255         regexp.  Start with a dummy statement, so that prior shell variable
46256         definitions are expanded portably.  Reported by Simon Josefsson.
46257
46258 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46259
46260         Fix polling for writeability of a screen buffer.
46261         * lib/poll.c: Distinguish input and screen buffers for the
46262         Win32 implementation.
46263         * lib/select.c: Likewise.
46264
46265 2009-08-19  Eric Blake  <ebb9@byu.net>
46266
46267         popen-safer: prevent popen from clobbering std descriptors
46268         * modules/popen-safer: New file.
46269         * lib/popen-safer.c: Likewise.
46270         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46271         * lib/stdio--.h (popen): Provide override.
46272         * lib/stdio-safer.h (popen_safer): Provide declaration.
46273         * tests/test-popen.c (includes): Partially test this.
46274         * modules/popen-safer-tests: New file, for more tests.
46275         * tests/test-popen-safer.c: Likewise.
46276         * MODULES.html.sh (file stream based Input/Output): Mention it.
46277
46278         tests: test some of the *-safer modules
46279         * modules/fopen-safer (Depends-on): Add fopen.
46280         * modules/fcntl-safer (Depends-on): Add fcntl.
46281         * modules/stdlib-safer (Depends-on): Add stdlib.
46282         (configure.ac): Set indicator.
46283         * modules/unistd-safer (configure.ac): Likewise.
46284         * modules/tmpfile-safer (configure.ac): Likewise.
46285         (Depends-on): Add tmpfile.
46286         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46287         active.
46288         * tests/test-fopen.c (includes): Test safer versions when they are
46289         in use.
46290         * tests/test-open.c (includes): Likewise.
46291
46292         popen: fix cygwin 1.5 bug when stdin closed
46293         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46294         * modules/popen: New file.
46295         * modules/popen-tests: Likewise.
46296         * tests/test-popen.c: Likewise.
46297         * m4/popen.m4: Likewise.
46298         * lib/popen.c: Likewise.
46299         * lib/stdio.in.h (popen): New declaration.
46300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46301         * modules/stdio (Makefile.am): Likewise.
46302         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46303
46304 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46305
46306         maint.mk: give full control over update-copyright exclusions
46307         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46308         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46309         (update-copyright): Don't force inclusion of top-level
46310         ChangeLog.  Don't force exclusion of all COPYING files, but make
46311         them the default exclusion instead.
46312
46313 2009-08-16  Bruno Haible  <bruno@clisp.org>
46314
46315         Fix test failures on Solaris 10.
46316         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46317         tests when Solaris iconv() is used.
46318         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46319         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46320         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46321         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46322         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46323
46324 2009-08-16  Bruno Haible  <bruno@clisp.org>
46325
46326         Fix test failures on Solaris 10.
46327         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46328         'tr' program and pass it as first argument.
46329         * tests/test-pipe-filter-gi1.sh: Likewise.
46330         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46331         program as first argument.
46332         * tests/test-pipe-filter-gi1.c (main): Likewise.
46333
46334 2009-08-16  Eric Blake  <ebb9@byu.net>
46335
46336         fpurge: fix previous commits
46337         * modules/fpurge (Makefile.am): Make replacement conditional,
46338         partially reverting 2007-04-29 change; missed in previous
46339         attempt.
46340         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46341         is missing.
46342
46343 2009-08-16  Bruno Haible  <bruno@clisp.org>
46344
46345         Clarify fpurge's effect on the file position.
46346         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46347         * tests/test-fpurge.c (main): Make a second pass for checking the file
46348         position.
46349
46350 2009-08-16  Bruno Haible  <bruno@clisp.org>
46351
46352         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46353         declaration of fpurge is missing.
46354         * tests/test-fpurge.c (main): Check that the file has not more contents
46355         than expected. Close the file before removing it.
46356
46357 2009-08-15  Eric Blake  <ebb9@byu.net>
46358
46359         fpurge: don't wrap working cygwin implementation
46360         * lib/fpurge.c (fpurge): Fix comment typo.
46361         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46362         1.7 to avoid replacement.
46363         * tests/test-fpurge.c (main): Enhance test.
46364
46365 2009-08-15  Eric Blake  <ebb9@byu.net>
46366         and Jim Meyering  <meyering@redhat.com>
46367
46368         test-update-copyright: skip if perl is insufficient
46369         * tests/test-update-copyright.sh: Failure to run maintainer tool
46370         should not cause testsuite failure on cygwin 1.5.
46371
46372 2009-08-14  Eric Blake  <ebb9@byu.net>
46373
46374         doc: mention more functions added in cygwin 1.7.0
46375         * doc/posix-headers/limits.texi (limits.h): Update for recent
46376         cygwin additions.
46377         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46378         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46379         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46380         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46381         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46382
46383 2009-08-14  Eric Blake  <ebb9@byu.net>
46384
46385         maint.mk: simplify update-copyright rule
46386         * top/maint.mk (update-copyright-local): Delete, and document how
46387         to do it in cfg.mk instead.
46388         (update-copyright-exclude-regexp): Delete, and document how to do
46389         it in .x-update-copyright instead.
46390         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46391         exclude ChangeLog.
46392
46393 2009-08-14  Bruno Haible  <bruno@clisp.org>
46394
46395         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46396
46397 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46398
46399         maint.mk: support update-copyright-env
46400         * top/maint.mk (update-copyright-env): Define place-holder.
46401         (update-copyright): Expand $(update-copyright-env) before
46402         invoking update-copyright.
46403
46404 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46405
46406         update-copyright: implement forced reformatting
46407         * build-aux/update-copyright: Implement and document
46408         UPDATE_COPYRIGHT_FORCE.
46409         * tests/test-update-copyright.sh: Test it.
46410
46411 2009-08-14  Eric Blake  <ebb9@byu.net>
46412         and Bruno Haible  <bruno@clisp.org>
46413
46414         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46415         * tests/test-locale.c: Revert previous patch related to NULL.
46416         * tests/test-stdio.c: Likewise.
46417         * tests/test-stdlib.c: Likewise.
46418         * tests/test-string.c: Likewise.
46419         * tests/test-unistd.c: Likewise.
46420         * modules/time-tests (Depends-on): Add verify.
46421         * modules/wchar-tests (Depends-on): Likewise.
46422         * tests/test-time.c: Test for NULL compliance.
46423         * tests/test-wchar.c: Likewise.
46424         * modules/locale (Depends-on): Add stddef.
46425         * modules/stdio (Depends-on): Likewise.
46426         * modules/stdlib (Depends-on): Likewise.
46427         * modules/string (Depends-on): Likewise.
46428         * modules/time (Depends-on): Likewise.
46429         * modules/unistd (Depends-on): Likewise.
46430         * modules/wchar (Depends-on): Likewise.
46431         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46432         * lib/stdlib.in.h (includes): Likewise.
46433         * lib/string.in.h (includes): Likewise.
46434         * lib/time.in.h (includes): Likewise.
46435         * lib/unistd.in.h (includes): Likewise.
46436         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46437         replaced.
46438         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46439         * m4/stddef_h.m4: New file.
46440         * modules/stddef: Likewise.
46441         * lib/stddef.in.h: Likewise.
46442         * modules/stddef-tests: Likewise.
46443         * tests/test-stddef.c: Likewise.
46444         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46445         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46446         * doc/posix-headers/locale.texi (locale.h): Likewise.
46447         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46448         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46449         * doc/posix-headers/string.texi (string.h): Likewise.
46450         * doc/posix-headers/time.texi (time.h): Likewise.
46451         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46452         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46453
46454 2009-08-14  Eric Blake  <ebb9@byu.net>
46455
46456         doc: improve git diff of texinfo files
46457         * .gitattributes: Add rule for *.texi files, with hint on how to
46458         use it.
46459         Copied from m4, and based on a report by Bruno Haible.
46460
46461 2009-08-14  Bruno Haible  <bruno@clisp.org>
46462
46463         Disable multithread support by default on Cygwin 1.5.x for real.
46464         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46465
46466 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46467
46468         update-copyright: much ado about intervals
46469         * build-aux/update-copyright: Implement and document
46470         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46471         of copyright year intervals.
46472         Also, document UPDATE_COPYRIGHT_YEAR.
46473         * tests/test-update-copyright.sh: Test it.
46474
46475         update-copyright: convert 2-digit to 4-digit years
46476         * build-aux/update-copyright: Implement and document.
46477         * tests/test-update-copyright.sh: Update.
46478
46479 2009-08-14  Jim Meyering  <meyering@redhat.com>
46480
46481         test-exclude: avoid coreutils "make check" failure
46482         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46483         just as in test-argmatch.c.
46484
46485 2009-08-13  Eric Blake  <ebb9@byu.net>
46486
46487         test-dup2: fix bad assumption
46488         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46489         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46490
46491         test-version-etc: fix CRLF portability issue
46492         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46493         recognize \r.
46494         * tests/test-argp-version-etc-1.sh: Likewise.
46495
46496         getopt: update client modules
46497         * modules/argp (Depends-on): Use getopt-gnu.
46498         * modules/git-merge-changelog (Depends-on): Likewise.
46499         * modules/long-options (Depends-on): Likewise.
46500         * modules/xstrtol (Depends-on): Likewise.
46501
46502 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46503
46504         * tests/test-version-etc.sh: Don't fail on different
46505         project/version.  Don't fail on CRLF differences.  Rewrite to use
46506         multiple -e instead of multiple sed forks, suggested by Eric Blake
46507         <ebb9@byu.net>.
46508         * tests/test-argp-version-etc-1.sh: Likewise.
46509
46510 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46511
46512         * tests/test-version-etc.sh: Don't fail on different
46513         project/version.
46514
46515 2009-08-12  Bruno Haible  <bruno@clisp.org>
46516
46517         Tests for modules 'getopt-posix', 'getopt-gnu'.
46518         * modules/getopt-posix-tests: New file.
46519         * tests/test-getopt.c: New file.
46520         * tests/test-getopt.h: New file.
46521         * tests/test-getopt_long.h: New file.
46522
46523         New modules 'getopt-posix', 'getopt-gnu'.
46524         * modules/getopt-gnu: New file, renamed from modules/getopt.
46525         * modules/getopt-posix: New file.
46526         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46527         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46528         (gl_GETOPT): Remove macro.
46529         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46530         Disable the test against BSD systems that declare optreset. Test
46531         against mingw bug. Test against lack of support of optional arguments
46532         on many platforms.
46533         * doc/glibc-headers/getopt.texi: Update module name and list of
46534         relevant platforms.
46535         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46536         'getopt-gnu' and more portability problems.
46537         * NEWS: Mention the changes.
46538
46539 2009-08-12  Bruno Haible  <bruno@clisp.org>
46540
46541         Ensure that optarg etc. get declared by <unistd.h>.
46542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46543         AC_USE_SYSTEM_EXTENSIONS.
46544         * modules/getopt (Depends-on): Add 'extensions'.
46545
46546 2009-08-12  Bruno Haible  <bruno@clisp.org>
46547
46548         Avoid test link errors.
46549         * modules/pipe-filter-ii-tests (Makefile.am): Define
46550         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46551         * modules/pipe-filter-gi-tests (Makefile.am): Define
46552         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46554
46555 2009-08-12  Bruno Haible  <bruno@clisp.org>
46556
46557         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46558         gl_GETOPT_SUBSTITUTE before.
46559         (gl_GETOPT): Use it.
46560         * m4/argp.m4 (gl_ARGP): Update.
46561         Reported by Sergey Poznyakoff.
46562
46563         * m4/getopt.m4: Reorder macros.
46564         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46565         (gl_GETOPT_SUBSTITUTE): Remove macro.
46566
46567 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46568
46569         Minor improvement in gitlog-to-changelog
46570
46571         * build-aux/gitlog-to-changelog: New option `--format' makes
46572         output format string configurable.
46573
46574 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46575
46576         Optimize exclude: use hash tables for non-wildcard patterns.
46577
46578         * lib/exclude.c: Include hash.h and mbuiter.h
46579         (struct exclude_pattern, exclude_segment): New data types.
46580         (struct exclude): Rewrite.
46581         (fnmatch_pattern_has_wildcards): New function.
46582         (new_exclude_segment, free_exclude_segment): New functions.
46583         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46584         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46585         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46586         * modules/exclude: Depend on hash and mbuiter.
46587
46588         * modules/exclude-tests: New file.
46589         * tests/test-exclude.c: New file.
46590         * tests/test-exclude1.sh: New file.
46591         * tests/test-exclude2.sh: New file.
46592         * tests/test-exclude3.sh: New file.
46593         * tests/test-exclude4.sh: New file.
46594         * tests/test-exclude5.sh: New file.
46595         * tests/test-exclude6.sh: New file.
46596         * tests/test-exclude7.sh: New file.
46597
46598 2009-08-12  Bruno Haible  <bruno@clisp.org>
46599
46600         Ensure that getopt() gets declared by <unistd.h>.
46601         * lib/unistd.in.h: Conditionally include getopt.h.
46602         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46603         Set GNULIB_UNISTD_H_GETOPT.
46604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46605         GNULIB_UNISTD_H_GETOPT.
46606         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46607
46608 2009-08-12  Bruno Haible  <bruno@clisp.org>
46609
46610         Clarify logic.
46611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46612         gl_replace_getopt instead of GETOPT_H.
46613
46614 2009-08-12  Bruno Haible  <bruno@clisp.org>
46615
46616         * m4/getopt.m4: Add comments.
46617
46618 2009-08-12  Bruno Haible  <bruno@clisp.org>
46619
46620         Disable multithread support by default on Cygwin 1.5.x.
46621         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46622         set gl_use_threads=no if not specified otherwise.
46623
46624 2009-08-11  Bruno Haible  <bruno@clisp.org>
46625
46626         Avoid compilation error on NetBSD 5.0.
46627         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46628         * tests/test-stdio.c: Likewise.
46629         * tests/test-stdlib.c: Likewise.
46630         * tests/test-string.c: Likewise.
46631         * tests/test-unistd.c: Likewise.
46632         Reported by Greg Troxel <gdt@ir.bbn.com>
46633         at <https://savannah.gnu.org/support/?106973>.
46634
46635 2009-08-11  Bruno Haible  <bruno@clisp.org>
46636
46637         * modules/dup2-tests (Depends-on): Remove close.
46638
46639         Undo 2009-07-19 commit.
46640         * modules/acl-tests (Depends-on): Remove close.
46641         * modules/binary-io-tests (Depends-on): Likewise.
46642         * modules/closein-tests (Depends-on): Likewise.
46643         * modules/flock-tests (Depends-on): Likewise.
46644         * modules/fsync-tests (Depends-on): Likewise.
46645         * modules/lseek-tests (Depends-on): Likewise.
46646         * modules/pipe-tests (Depends-on): Likewise.
46647         * modules/posix_spawn-tests (Depends-on): Likewise.
46648         * modules/posix_spawnp-tests (Depends-on): Likewise.
46649         * modules/stat-time-tests (Depends-on): Likewise.
46650         * modules/yesno-tests (Depends-on): Likewise.
46651
46652 2009-08-10  Bruno Haible  <bruno@clisp.org>
46653
46654         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46655
46656 2009-08-10  Bruno Haible  <bruno@clisp.org>
46657
46658         Fix a gcc warning.
46659         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46660
46661 2009-08-10  Bruno Haible  <bruno@clisp.org>
46662
46663         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46664         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46665         not only the first time.
46666         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46667         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46668         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46669         is 1, not only the the first time.
46670
46671 2009-08-10  Bruno Haible  <bruno@clisp.org>
46672
46673         Make it possible to use module 'gethostname' without module 'close'.
46674         * lib/unistd.in.h (close): Evoke a link error only if
46675         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46677         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46678         * modules/unistd (Makefile.am): Substitute
46679         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46680         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46681         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46682         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46683         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46684         * modules/sys_ioctl (Makefile.am): Substitute
46685         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46686         * modules/socket (configure.ac): On native Windows, set
46687         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46688         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46689         Reported by Sam Steingold <sds@gnu.org>.
46690
46691 2009-08-10  Bruno Haible  <bruno@clisp.org>
46692
46693         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46694         * modules/ioctl (configure.ac): Likewise.
46695
46696 2009-08-10  Bruno Haible  <bruno@clisp.org>
46697
46698         Avoid collision between gnulib wrapper and libintl wrapper.
46699         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46700         already defined in intl/printf.c.
46701         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46702         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46703
46704 2009-08-09  Bruno Haible  <bruno@clisp.org>
46705
46706         Make <sys/select.h> really self-contained, also on Solaris 10.
46707         * lib/sys_select.in.h: Include <string.h>.
46708         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46709         Solaris 10 problem.
46710         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46711         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46712         Reported by Jim Meyering.
46713
46714 2009-08-09  Bruno Haible  <bruno@clisp.org>
46715
46716         Avoid warnings from 'aclocal' that are due to a use of macro name
46717         AM_XGETTEXT_OPTION that is not defined in automake.
46718         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46719         automake.
46720         * modules/error (configure.ac): Likewise.
46721         * modules/propername (configure.ac): Likewise.
46722         * modules/vasprintf (configure.ac): Likewise.
46723         * modules/verror (configure.ac): Likewise.
46724         * modules/xprintf (configure.ac): Likewise.
46725         * modules/xvasprintf (configure.ac): Likewise.
46726
46727 2009-08-08  Bruno Haible  <bruno@clisp.org>
46728
46729         Avoid compilation error in C++ mode.
46730         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46731         Reported by Sam Steingold <sds@gnu.org>.
46732
46733 2009-08-08  Bruno Haible  <bruno@clisp.org>
46734
46735         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46736         for the various Unix platforms.
46737         * doc/posix-headers/limits.texi: Update platforms list regarding
46738         HOST_NAME_MAX.
46739         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46740
46741 2009-08-07  Jim Meyering  <meyering@redhat.com>
46742
46743         selinux-at: fix typo in a comment
46744         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46745         Spotted by Paolo Bonzini.
46746
46747         selinux-at: remove redundant m4 code, add documentation
46748         * modules/selinux-at (configure.ac): Remove redundant code.
46749         LIB_SELINUX is already set via the dependent module, selinux-h.
46750         (Include): Add quotes around selinux-at.h.
46751         * lib/selinux-at.h: Add documentation.
46752         Reported by Bruno Haible in
46753         http://marc.info/?l=gnulib-bug&m=124958988300749
46754
46755 2009-08-07  Bruno Haible  <bruno@clisp.org>
46756
46757         Avoid link error on MacOS X 10.3 and 10.4.
46758         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46759         on non-ELF systems.
46760         * lib/argp-pv.c (argp_program_version): Likewise.
46761         Reported by Simon Josefsson.
46762
46763 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46764
46765         * tests/test-version-etc.sh: Use $EXEEXT.
46766
46767 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46768
46769         update-copyright: update documentation to point to maint.mk
46770         * build-aux/update-copyright: Here.
46771
46772 2009-08-06  Jim Meyering  <meyering@redhat.com>
46773
46774         maint.mk: support update-copyright-local
46775         * top/maint.mk (update-copyright-local): Define place-holder.
46776         (update-copyright): Depend on $(update-copyright-local).
46777
46778 2009-08-06  Jim Meyering  <meyering@redhat.com>
46779
46780         selinux-at: new module
46781         Initially written for coreutils, this module will soon be
46782         used by findutils, too.
46783         * MODULES.html.sh [Misc]: Add selinux-at.
46784         * lib/selinux-at.h: New file, from coreutils.
46785         * lib/selinux-at.c: Likewise.
46786         * modules/selinux-at: Likewise.
46787         (License): Change from LGPL to GPL, since it depends
46788         on the GPL'd openat module.
46789
46790         doc: update README
46791         * README: Remove references to cogito.
46792         Remove cvs-repo-updating instructions from 2007.
46793         Don't imply that CVS is better if you have limited disk space.
46794
46795 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46796
46797         update-copyright: support C-style comments
46798         * build-aux/update-copyright: Implement and document.
46799         * tests/test-update-copyright.sh: Test.
46800
46801 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46802
46803         update-copyright: support omitted "(C)"
46804         * build-aux/update-copyright: Implement and document.  Also,
46805         allow variable whitespace before "(C)".
46806         * tests/test-update-copyright.sh: Test.
46807
46808 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46809
46810         update-copyright: don't trip on non-FSF copyright statements
46811         * build-aux/update-copyright: Fix so that the first correctly
46812         formatted FSF copyright statement is recognized no matter what
46813         appears before it.  Update documentation.
46814         * tests/test-update-copyright.sh: Test that.
46815
46816 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46817
46818         update-copyright: clean up code a little
46819         * build-aux/update-copyright: Append "_re" to the name of any
46820         variable holding a regular expression.
46821         Replace "old" and "new" with "stmt" in variable names.
46822         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46823         handled correctly.
46824         Format code more consistently.
46825
46826 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46827
46828         update-copyright-tests: improve portability
46829         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46830         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46831
46832 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46833
46834         update-copyright: support @copyright{} and &copy;
46835         * build-aux/update-copyright: Implement and document.
46836         * tests/test-update-copyright.sh: Test.
46837
46838 2009-08-04  Jim Meyering  <meyering@redhat.com>
46839
46840         update-copyright-tests: correctly test EOL=\r\n handling
46841         * tests/test-update-copyright.sh: Put \r at the end of some lines
46842         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46843
46844         maint.mk: make update-copyright exclusion list more configurable
46845         * top/maint.mk (update-copyright): Default to excluding COPYING,
46846         but allow an override, in case someone does want to update that file.
46847
46848         maint.mk: don't update copyright date in COPYING
46849         * top/maint.mk (update-copyright): Exclude COPYING.
46850
46851         maint.mk: add a copyright-updating rule
46852         * top/maint.mk (update-copyright): New rule.
46853         Derived from coreutils/Makefile.am.
46854
46855         update-copyright: rename some variables
46856         * build-aux/update-copyright: Rename a few variables for clarity.
46857         Tweak syntax.  List Joel E. Denny as coauthor.
46858
46859 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46860
46861         update-copyright: fix bug for 2-digit last year and add tests
46862         * build-aux/update-copyright: Fix bug.
46863         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46864         specified.
46865         * modules/update-copyright-tests: New
46866         * tests/test-update-copyright.sh: New.
46867
46868 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46869
46870         update-copyright: handle leading tabs in line prefix
46871         * build-aux/update-copyright: Count leading tabs as 8 spaces
46872         when computing margin.  This helps with the formatting of
46873         ChangeLogs, for example.
46874         Fix documentation a little.
46875
46876 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46877
46878         update-copyright: support EOL=\r\n
46879         * build-aux/update-copyright: Implement that.
46880
46881 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46882
46883         update-copyright: automatically format copyright statements
46884         * build-aux/update-copyright: Implement that.
46885         Also, be a little more predictable and safer by always failing
46886         when the full copyright format is not perfectly recognized as an
46887         unbroken whole.  Discussed at
46888         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46889         Rewrite documentation.
46890
46891 2009-08-03  Bruno Haible  <bruno@clisp.org>
46892
46893         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46894
46895 2009-08-02  Bruno Haible  <bruno@clisp.org>
46896
46897         Tests for module 'uname'.
46898         * modules/uname-tests: New file.
46899         * tests/test-uname.c: New file.
46900
46901         New module 'uname'.
46902         * lib/uname.c: New file.
46903         * m4/uname.m4: New file.
46904         * modules/uname: New file.
46905         * doc/posix-functions/uname.texi: Mention the new module.
46906
46907 2009-08-02  Bruno Haible  <bruno@clisp.org>
46908
46909         Tests for module 'sys_utsname'.
46910         * modules/sys_utsname-tests: New file.
46911         * tests/test-sys_utsname.c: New file.
46912
46913         New module 'sys_utsname'.
46914         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46915         * m4/sys_utsname_h.m4: New file.
46916         * modules/sys_utsname: New file.
46917         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46918
46919 2009-08-02  Bruno Haible  <bruno@clisp.org>
46920
46921         Implicitly initialize the sockets library.
46922         * lib/gethostname.c: Include sockets.h.
46923         (rpl_gethostname): Invoke gl_sockets_startup.
46924         * lib/socket.c: Include sockets.h.
46925         (rpl_socket): Invoke gl_sockets_startup.
46926         * modules/gethostname (Depends-on): Add sockets.
46927         * modules/socket (Depends-on): Likewise.
46928         * tests/test-poll.c: Don't include sockets.h.
46929         (main): Don't invoke gl_sockets_startup.
46930         * tests/test-select.c: Don't include sockets.h.
46931         (main): Don't invoke gl_sockets_startup.
46932
46933 2009-08-02  Bruno Haible  <bruno@clisp.org>
46934
46935         Allow multiple calls to gl_sockets_startup.
46936         * lib/sockets.c (initialized_sockets_version): New variable.
46937         (gl_sockets_startup): Do nothing if already called for this or a higher
46938         version.
46939         (gl_sockets_cleanup): Reset initialized_sockets_version.
46940
46941 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46942
46943         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46944         different project/version.
46945
46946 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46947             Bruno Haible  <bruno@clisp.org>
46948
46949         Tests for module 'pipe-filter-gi'.
46950         * modules/pipe-filter-gi-tests: New file.
46951         * tests/test-pipe-filter-gi1.sh: New file.
46952         * tests/test-pipe-filter-gi1.c: New file.
46953         * tests/test-pipe-filter-gi2.sh: New file.
46954         * tests/test-pipe-filter-gi2-main.c: New file.
46955         * tests/test-pipe-filter-gi2-child.c: New file.
46956
46957         New module 'pipe-filter-gi'.
46958         * lib/pipe-filter-gi.c: New file.
46959         * modules/pipe-filter-gi: New file.
46960
46961 2009-08-02  Bruno Haible  <bruno@clisp.org>
46962             Paolo Bonzini  <bonzini@gnu.org>
46963
46964         Tests for module 'pipe-filter-ii'.
46965         * modules/pipe-filter-ii-tests: New file.
46966         * tests/test-pipe-filter-ii1.sh: New file.
46967         * tests/test-pipe-filter-ii1.c: New file.
46968         * tests/test-pipe-filter-ii2.sh: New file.
46969         * tests/test-pipe-filter-ii2-main.c: New file.
46970         * tests/test-pipe-filter-ii2-child.c: New file.
46971
46972         New module 'pipe-filter-ii'.
46973         * lib/pipe-filter.h: New file.
46974         * lib/pipe-filter-ii.c: New file.
46975         * lib/pipe-filter-aux.h: New file.
46976         * modules/pipe-filter-ii: New file.
46977
46978 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46979
46980         * lib/gc-libgcrypt.c: Change copyright to FSF.
46981         * lib/gc-gnulib.c: Likewise.
46982
46983 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46984
46985         * lib/gethostname.c: Include limits.h.
46986
46987 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46988             Bruno Haible  <bruno@clisp.org>
46989
46990         Ensure HOST_NAME_MAX as part of the gethostname module.
46991         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46992         define also HOST_NAME_MAX.
46993         * tests/test-gethostname.c: Include <limits.h>.
46994         (main): Check also HOST_NAME_MAX.
46995         * doc/posix-headers/limits.texi: Document the mingw problem.
46996
46997 2009-08-02  Bruno Haible  <bruno@clisp.org>
46998
46999         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47000         Add comments.
47001
47002 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47003
47004         * lib/gethostname.c: Add Windows wrapper.
47005         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47006         * modules/gethostname: Depend on sys_socket & errno, for also
47007         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47008         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47009
47010 2009-07-31  Jim Meyering  <meyering@redhat.com>
47011
47012         getloadavg: fix symbol name in comment
47013         * lib/getloadavg.c: Correct a typo I introduced when adding
47014         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47015         Matt Kraai spotted the problem.
47016
47017 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47018
47019         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47020         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47021         code also if ! defined N_NAME_POINTER.
47022         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47023         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47024         but the n_name member is a 12-byte array.
47025
47026 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47027
47028         update-copyright: generalize comment handling
47029         * build-aux/update-copyright: Handle copyright statements
47030         within more comment styles.
47031         Document usage.
47032         Report any file with an external copyright holder or parse failure.
47033
47034 2009-07-29  Jim Meyering  <meyering@redhat.com>
47035
47036         mktime: correct setting of REPLACE_MKTIME
47037         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47038
47039         update-copyright: new module
47040         * modules/update-copyright: New file.
47041         * build-aux/update-copyright: New file.
47042         * MODULES.html.sh (maint+release support): Add update-copyright.
47043
47044 2009-07-27  Bruno Haible  <bruno@clisp.org>
47045
47046         Fix compilation error when <ctime> is used and mktime is replaced.
47047         * lib/time.in.h (mktime): New declaration.
47048         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47049         REPLACE_MKTIME instead of defining mktime in config.h.
47050         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47051         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47052         Reported by Ross McFarland <rwmcfa1@neces.com>.
47053
47054 2009-07-27  Bruno Haible  <bruno@clisp.org>
47055
47056         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47057         Reported by Matt Kraai <mkraai@beckman.com>.
47058
47059 2009-07-25  Jim Meyering  <meyering@redhat.com>
47060
47061         maint.mk: avoid warnings about missing files
47062         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47063         diagnostic when .prev-version does not exist.
47064         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47065         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47066         nonexistent cfg.mk.
47067         Suggestions from Simon Josefsson.
47068
47069 2009-07-25  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47072         defined as macros. Needed on QNX 6.4.1.
47073         Reported by Matt Kraai <mkraai@beckman.com>.
47074
47075 2009-07-23  Jim Meyering  <meyering@redhat.com>
47076
47077         maint.mk: invoke "make dist" with a working value of XZ_OPT
47078         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47079
47080 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47081
47082         Make fseeko.c compile on QNX.
47083         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47084
47085 2009-07-22  Peter Simons  <simons@cryp.to>
47086
47087         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47088         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47089         * lib/md4.h: Likewise.
47090         * lib/md5.h: Likewise.
47091         * lib/sha1.h: Likewise.
47092         * lib/sha256.h: Likewise.
47093         * lib/sha512.h: Likewise.
47094
47095         tests-sha1: don't assign literal string to 'char *' variable
47096         * tests/test-sha1.c (main): Declare locals with "const" to match
47097         attributes of the right hand side.
47098
47099 2009-07-21  Eric Blake  <ebb9@byu.net>
47100
47101         dup2: fix more mingw problems
47102         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47103         fd to itself.
47104         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47105         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47106         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47107         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47108         care of mingw bugs.
47109
47110 2009-07-21  Jim Meyering  <meyering@redhat.com>
47111
47112         vc-list-files: avoid failure when /bin/sh is dash
47113         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47114         On some Debian based systems, /bin/sh is a symlink to dash, and running
47115         this command would omit the "/" following each 'tests' prefix:
47116           dash -x build-aux/vc-list-files -C . tests
47117         That is because bash and dash work differently:
47118           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47119           bash ok
47120           dash odd
47121
47122 2009-07-21  Eric Blake  <ebb9@byu.net>
47123
47124         dup2-tests: test previous patch
47125         * modules/dup2-tests: New file.
47126         * tests/test-dup2.c: Likewise.
47127         * tests/test-open.c (main): Avoid unspecified behavior.
47128         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47129         test.
47130
47131         dup2: work around mingw and cygwin 1.5 bug
47132         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47134         * modules/unistd (Makefile.am): Substitute it.
47135         * lib/unistd.in.h (dup2): Declare the replacement.
47136         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47137         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47138         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47139         * modules/execute (Depends-on): Add dup2.
47140         * modules/fseterr (Depends-on): Likewise.
47141         * modules/pipe (Depends-on): Likewise.
47142         * modules/posix_spawn-internal (Depends-on): Likewise.
47143
47144 2009-07-21  Bruno Haible  <bruno@clisp.org>
47145
47146         * modules/.gitattributes: New file.
47147
47148 2009-07-20  Bruno Haible  <bruno@clisp.org>
47149
47150         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47151         (main): Use it.
47152
47153 2009-07-20  Eric Blake  <ebb9@byu.net>
47154
47155         test-pipe: make a bit more robust.
47156         * tests/test-pipe.c (myerr): Allow error messages regardless of
47157         what we do to stderr.
47158         (test_pipe): Rearrange to avoid deadlock.
47159         (child_main): Try a larger read, to ensure we avoided deadlock.
47160         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47161         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47162         if misused.
47163
47164 2009-07-19  Jim Meyering  <meyering@redhat.com>
47165
47166         fts: avoid false-positive cycle-detection
47167         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47168         for each new command line argument.
47169
47170 2009-07-19  Bruno Haible  <bruno@clisp.org>
47171
47172         Fix build error on mingw with the modules sys_select and unistd.
47173         * modules/acl-tests (Depends-on): Add close.
47174         * modules/binary-io-tests (Depends-on): Likewise.
47175         * modules/closein-tests (Depends-on): Likewise.
47176         * modules/flock-tests (Depends-on): Likewise.
47177         * modules/fsync-tests (Depends-on): Likewise.
47178         * modules/lseek-tests (Depends-on): Likewise.
47179         * modules/pipe-tests (Depends-on): Likewise.
47180         * modules/posix_spawn-tests (Depends-on): Likewise.
47181         * modules/posix_spawnp-tests (Depends-on): Likewise.
47182         * modules/stat-time-tests (Depends-on): Likewise.
47183         * modules/yesno-tests (Depends-on): Likewise.
47184
47185 2009-07-19  Bruno Haible  <bruno@clisp.org>
47186
47187         Unify conditionals.
47188         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47189         macros, not at the compiler macros.
47190         * lib/pipe.c: Likewise.
47191         * lib/execute.c: Likewise.
47192         * lib/spawni.c: Likewise.
47193
47194 2009-07-19  Bruno Haible  <bruno@clisp.org>
47195
47196         Fix handling of closed stdin/stdout/stderr on mingw.
47197         * lib/w32spawn.h: Include unistd.h.
47198         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47199         file descriptor with O_NOINHERIT flag.
47200         (fd_safer_noinherit): New function, based on fd-safer.c.
47201         (dup_safer_noinherit): New function, based on dup-safer.c.
47202         (undup_safer_noinherit): New function.
47203         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47204         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47205         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47206         instead of fd_safer.
47207         * tests/test-pipe.c: Include <windows.h>.
47208         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47209         result.
47210
47211         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47212         from main.
47213         (test_pipe): Pass an extra argument for disambiguation.
47214         (main): Invoke parent_main or child_main.
47215
47216         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47217         consistently.
47218
47219 2009-07-18  Eric Blake  <ebb9@byu.net>
47220
47221         test-pipe: fix mingw build
47222         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47223
47224 2009-07-18  Bruno Haible  <bruno@clisp.org>
47225
47226         * modules/pipe-tests (Makefile.am): Fix typo.
47227
47228 2009-07-18  Eric Blake  <ebb9@byu.net>
47229
47230         error: fix mingw build
47231         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47232         Reported by Bruno Haible.
47233
47234         error: avoid undefined use of stdout
47235         * lib/error.c (error, error_at_line): Check that fd 1 is open
47236         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47237         is handling faults and the close_stdout module wants to report the
47238         detection of closed stdout as an error.
47239
47240 2009-07-17  Eric Blake  <ebb9@byu.net>
47241
47242         pipe: be robust in face of closed fds
47243         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47244         should cause child to misbehave.
47245         * modules/pipe-tests: New module.
47246         * tests/test-pipe.c: New file.
47247         * tests/test-pipe.sh: New file.
47248         Reported by Akim Demaille.
47249
47250 2009-07-14  Bruno Haible  <bruno@clisp.org>
47251
47252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47253         Reported by anonymous kc.
47254
47255 2009-07-07  Jim Meyering  <meyering@redhat.com>
47256
47257         maint.mk: don't look for translatable strings in *.m4 or *.mk
47258         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47259         when searching for translatable strings.
47260
47261 2009-07-05  Jim Meyering  <meyering@redhat.com>
47262
47263         remove superfluous parentheses in STREQ definition
47264         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47265         * lib/getugroups.c (STREQ): Likewise.
47266         * lib/fnmatch.c (STREQ): Likewise.
47267         Spotted by Bruno Haible.
47268
47269 2009-07-04  Jim Meyering  <meyering@redhat.com>
47270
47271         argv-iter: new module
47272         * MODULES.html.sh: Add argv-iter.
47273         * lib/argv-iter.c, lib/argv-iter.h: New files.
47274         * modules/argv-iter: New file.
47275         * modules/argv-iter-tests: New file.
47276         * tests/test-argv-iter.c: Test it.
47277
47278 2009-07-04  Bruno Haible  <bruno@clisp.org>
47279
47280         Fix assertion.
47281         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47282         contains more exact copies of a given entry than file2, leave the extra
47283         copies unpaired rather than aborting.
47284         Reported by Eric Blake.
47285
47286 2009-07-02  Bruno Haible  <bruno@clisp.org>
47287
47288         Speedup git-merge-changelog for git cherry-pick.
47289         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47290         (entries_mapping_get): New function, extracted from compute_mapping.
47291         (entries_mapping_reverse_get): New function.
47292         (compute_mapping): Add a 'full' argument. Return the result in a
47293         'struct entries_mapping'.
47294         (main): Update. Access the mappings through entries_mapping_get.
47295         Reported by Eric Blake.
47296
47297 2009-07-02  Bruno Haible  <bruno@clisp.org>
47298
47299         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47300         best_i.
47301
47302 2009-07-02  Bruno Haible  <bruno@clisp.org>
47303
47304         Speed up approximate search for matching ChangeLog entries.
47305         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47306         argument. Call fstrcmp_bounded instead of fstrcmp.
47307         (compute_mapping, try_split_merged_entry, main): Update callers.
47308
47309 2009-07-02  Bruno Haible  <bruno@clisp.org>
47310
47311         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47312
47313 2009-06-30  Bruno Haible  <bruno@clisp.org>
47314
47315         Reduce the number of uc_is_cased calls.
47316         * lib/unicase.h (casing_suffix_context_t): Add
47317         'first_char_except_ignorable' field.
47318         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47319         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47320         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47321         Update initializer.
47322         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47323         case-ignorable characters.
47324         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47325         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47326         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47327         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47328         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47329
47330 2009-06-30  Bruno Haible  <bruno@clisp.org>
47331
47332         Tests for module 'unicase/ignorable'.
47333         * modules/unicase/ignorable-tests: New file.
47334         * tests/unicase/test-ignorable.c: New file, generated by
47335         gen-uni-tables.
47336
47337         Tests for module 'unicase/cased'.
47338         * modules/unicase/cased-tests: New file.
47339         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47340         * tests/unicase/test-predicate-part1.h: New file, derived from
47341         tests/unictype/test-predicate-part1.h.
47342         * tests/unicase/test-predicate-part2.h: New file, same as
47343         tests/unictype/test-predicate-part2.h.
47344
47345         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47346         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47347         (output_casing_properties): New function.
47348         (main): Call it.
47349         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47350         * lib/unicase/cased.c: Include unictype/bitmap.h.
47351         (uc_is_cased): Define through a bitmap lookup.
47352         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47353         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47354         (uc_is_case_ignorable): Define through a bitmap lookup.
47355         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47356         lib/unictype/bitmap.h.
47357         (Depends-on): Add inline. Clean up.
47358         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47359         lib/unictype/bitmap.h.
47360         (Depends-on): Add inline. Clean up.
47361         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47362         recognition.
47363         * tests/unicase/test-u16-tolower.c (main): Likewise.
47364         * tests/unicase/test-u32-tolower.c (main): Likewise.
47365
47366 2009-06-30  Bruno Haible  <bruno@clisp.org>
47367
47368         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47369         * lib/unicase/u16-casemap.c: Likewise.
47370         * lib/unicase/u32-casemap.c: Likewise.
47371
47372 2009-06-29  Bruno Haible  <bruno@clisp.org>
47373
47374         Define u32_casefold as a wrapper around u32_ct_casefold.
47375         * lib/unicase/u32-casefold.c: Update.
47376         * modules/unicase/u32-casefold (Depends-on): Add
47377         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47378         unicase/empty-suffix-context. Clean up.
47379
47380         Define u16_casefold as a wrapper around u16_ct_casefold.
47381         * lib/unicase/u16-casefold.c: Update.
47382         * modules/unicase/u16-casefold (Depends-on): Add
47383         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47384         unicase/empty-suffix-context. Clean up.
47385
47386         Define u8_casefold as a wrapper around u8_ct_casefold.
47387         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47388         * lib/unicase/u8-casefold.c: Update.
47389         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47390         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47391
47392         Define u32_totitle as a wrapper around u32_ct_totitle.
47393         * lib/unicase/u32-totitle.c: Update.
47394         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47395         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47396
47397         Define u16_totitle as a wrapper around u16_ct_totitle.
47398         * lib/unicase/u16-totitle.c: Update.
47399         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47400         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47401
47402         Define u8_totitle as a wrapper around u8_ct_totitle.
47403         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47404         functions.
47405         (FUNC): Delegate to U_CT_TOTITLE.
47406         * lib/unicase/u8-totitle.c: Update.
47407         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47408         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47409
47410         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47411         invocation.
47412         * modules/unicase/u32-tolower (Depends-on): Add
47413         unicase/empty-prefix-context, unicase/empty-suffix-context.
47414
47415         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47416         invocation.
47417         * modules/unicase/u16-tolower (Depends-on): Add
47418         unicase/empty-prefix-context, unicase/empty-suffix-context.
47419
47420         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47421         * modules/unicase/u8-tolower (Depends-on): Add
47422         unicase/empty-prefix-context, unicase/empty-suffix-context.
47423
47424         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47425         invocation.
47426         * modules/unicase/u32-toupper (Depends-on): Add
47427         unicase/empty-prefix-context, unicase/empty-suffix-context.
47428
47429         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47430         invocation.
47431         * modules/unicase/u16-toupper (Depends-on): Add
47432         unicase/empty-prefix-context, unicase/empty-suffix-context.
47433
47434         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47435         * modules/unicase/u8-toupper (Depends-on): Add
47436         unicase/empty-prefix-context, unicase/empty-suffix-context.
47437
47438         New module 'unicase/u32-ct-casefold'.
47439         * lib/unicase/u32-ct-casefold.c: New file.
47440         * modules/unicase/u32-ct-casefold: New file.
47441
47442         New module 'unicase/u16-ct-casefold'.
47443         * lib/unicase/u16-ct-casefold.c: New file.
47444         * modules/unicase/u16-ct-casefold: New file.
47445
47446         New module 'unicase/u8-ct-casefold'.
47447         * lib/unicase/u8-ct-casefold.c: New file.
47448         * lib/unicase/u-ct-casefold.h: New file, derived from
47449         lib/unicase/u-casefold.h.
47450         * modules/unicase/u8-ct-casefold: New file.
47451
47452         New module 'unicase/u32-ct-totitle'.
47453         * lib/unicase/u32-ct-totitle.c: New file.
47454         * modules/unicase/u32-ct-totitle: New file.
47455
47456         New module 'unicase/u16-ct-totitle'.
47457         * lib/unicase/u16-ct-totitle.c: New file.
47458         * modules/unicase/u16-ct-totitle: New file.
47459
47460         New module 'unicase/u8-ct-totitle'.
47461         * lib/unicase/u8-ct-totitle.c: New file.
47462         * lib/unicase/u-ct-totitle.h: New file, derived from
47463         lib/unicase/u-totitle.h.
47464         * modules/unicase/u8-ct-totitle: New file.
47465
47466         New module 'unicase/u32-ct-tolower'.
47467         * lib/unicase/u32-ct-tolower.c: New file.
47468         * modules/unicase/u32-ct-tolower: New file.
47469
47470         New module 'unicase/u16-ct-tolower'.
47471         * lib/unicase/u16-ct-tolower.c: New file.
47472         * modules/unicase/u16-ct-tolower: New file.
47473
47474         New module 'unicase/u8-ct-tolower'.
47475         * lib/unicase/u8-ct-tolower.c: New file.
47476         * modules/unicase/u8-ct-tolower: New file.
47477
47478         New module 'unicase/u32-ct-toupper'.
47479         * lib/unicase/u32-ct-toupper.c: New file.
47480         * modules/unicase/u32-ct-toupper: New file.
47481
47482         New module 'unicase/u16-ct-toupper'.
47483         * lib/unicase/u16-ct-toupper.c: New file.
47484         * modules/unicase/u16-ct-toupper: New file.
47485
47486         New module 'unicase/u8-ct-toupper'.
47487         * lib/unicase/u8-ct-toupper.c: New file.
47488         * modules/unicase/u8-ct-toupper: New file.
47489
47490         Add context arguments to u*_casemap functions.
47491         * lib/unicase/unicasemap.h: Include unicase.h.
47492         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47493         suffix_context arguments.
47494         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47495         functions.
47496         (FUNC): Add prefix_context and suffix_context arguments. Use
47497         uc_is_cased and uc_is_case_ignorable.
47498         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47499         * lib/unicase/u16-casemap.c: Likewise.
47500         * lib/unicase/u32-casemap.c: Likewise.
47501         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47502         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47503         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47504         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47505         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47506         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47507
47508         New module 'unicase/u32-suffix-context'.
47509         * lib/unicase/u32-suffix-context.c: New file.
47510         * modules/unicase/u32-suffix-context: New file.
47511
47512         New module 'unicase/u16-suffix-context'.
47513         * lib/unicase/u16-suffix-context.c: New file.
47514         * modules/unicase/u16-suffix-context: New file.
47515
47516         New module 'unicase/u8-suffix-context'.
47517         * lib/unicase/u8-suffix-context.c: New file.
47518         * lib/unicase/u-suffix-context.h: New file.
47519         * modules/unicase/u8-suffix-context: New file.
47520
47521         New module 'unicase/empty-suffix-context'.
47522         * lib/unicase/empty-suffix-context.c: New file.
47523         * modules/unicase/empty-suffix-context: New file.
47524
47525         New module 'unicase/u32-prefix-context'.
47526         * lib/unicase/u32-prefix-context.c: New file.
47527         * modules/unicase/u32-prefix-context: New file.
47528
47529         New module 'unicase/u16-prefix-context'.
47530         * lib/unicase/u16-prefix-context.c: New file.
47531         * modules/unicase/u16-prefix-context: New file.
47532
47533         New module 'unicase/u8-prefix-context'.
47534         * lib/unicase/u8-prefix-context.c: New file.
47535         * lib/unicase/u-prefix-context.h: New file.
47536         * lib/unicase/context.h: New file.
47537         * modules/unicase/u8-prefix-context: New file.
47538
47539         New module 'unicase/empty-prefix-context'.
47540         * lib/unicase/empty-prefix-context.c: New file.
47541         * modules/unicase/empty-prefix-context: New file.
47542
47543         New module 'unicase/ignorable'.
47544         * lib/unicase/ignorable.c: New file.
47545         * modules/unicase/ignorable: New file.
47546
47547         New module 'unicase/cased'.
47548         * lib/unicase/caseprop.h: New file.
47549         * lib/unicase/cased.c: New file.
47550         * modules/unicase/cased: New file.
47551
47552         New functions for case mapping of substrings.
47553         * lib/unicase.h (casing_prefix_context_t): New type.
47554         (unicase_empty_prefix_context): New variable.
47555         (u8_casing_prefix_context, u16_casing_prefix_context,
47556         u32_casing_prefix_context, u8_casing_prefixes_context,
47557         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47558         declarations.
47559         (casing_suffix_context_t): New type.
47560         (unicase_empty_suffix_context): New variable.
47561         (u8_casing_suffix_context, u16_casing_suffix_context,
47562         u32_casing_suffix_context, u8_casing_suffixes_context,
47563         u16_casing_suffixes_context, u32_casing_suffixes_context,
47564         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47565         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47566         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47567         declarations.
47568
47569 2009-06-28  Jim Meyering  <meyering@redhat.com>
47570
47571         boostrap: indent only with spaces
47572         * build-aux/bootstrap: Indent only with spaces, never TABs.
47573
47574         bootstrap: split long lines
47575         * build-aux/bootstrap: Keep line length < 80.
47576
47577         bootstrap: sync from coreutils
47578         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47579         just as autoreconf does.  Verify a list of prerequisite
47580         package-name,version-number pairs if defined in bootstrap.conf.
47581         Refer to README-prereq, if prerequisites are not satisfied.
47582
47583 2009-06-27  Eric Blake  <ebb9@byu.net>
47584
47585         tests: add test for bogus NULL definition
47586         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47587         * tests/test-stdlib.c: Likewise.
47588         * tests/test-string.c: Likewise.
47589         * tests/test-locale.c: Likewise.
47590         * tests/test-unistd.c: Likewise.
47591         * modules/stdio-tests (Depends-on): Add verify.
47592         * modules/stdlib-tests (Depends-on): Likewise.
47593         * modules/string-tests (Depends-on): Likewise.
47594         * modules/locale-tests (Depends-on): Likewise.
47595         * modules/unistd-tests (Depends-on): Likewise.
47596
47597 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47598
47599         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47600         self-explaining comment.
47601         * m4/selinux-selinux-h: Update serial.
47602         (gl_LIBSELINUX): New macro, adding a warning for missing development
47603         packages to code extracted from...
47604         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47605         Add warning for missing development packages here, too.
47606
47607 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47608
47609         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47610
47611 2009-06-25  Eric Blake  <ebb9@byu.net>
47612
47613         version-etc: fix regression
47614         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47615         gcc.
47616         (version_etc): Use it, to catch bugs with trailing NULL.
47617         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47618         (version_etc_va): Fix logic bug.
47619         * modules/version-etc-tests: Add test.
47620         * tests/test-version-etc.c: New file.
47621         * tests/test-version-etc.sh: Likewise.
47622
47623 2009-06-25  Sam Steingold  <sds@gnu.org>
47624
47625         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47626         mbtowc declaration.
47627
47628 2009-06-25  Eric Blake  <ebb9@byu.net>
47629
47630         fpurge: migrate into <stdio.h>
47631         * lib/fpurge.h: Delete...
47632         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47633         * lib/fpurge.c (fpurge): Change declaring header.
47634         * modules/fpurge (Files): Drop deleted file.
47635         (Depends-on): Add stdio.
47636         (configure.ac): Set witness.
47637         * modules/stdio (Makefile.am): Support fpurge macros.
47638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47639         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47640         * lib/fflush.c: Update client.
47641         * tests/test-fpurge.c: Likewise.
47642         * NEWS: Mention the change.
47643
47644 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47645
47646         * lib/argp-version-etc.c (program_authors): Add const
47647         qualifier.
47648         * lib/version-etc.c: Fix typos in the comments.
47649         * modules/argp-version-etc: Depends on version-etc.
47650
47651 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47652
47653         argp-version-etc: new module.
47654
47655         * lib/argp-version-etc.c: New file.
47656         * lib/argp-version-etc.h: New file.
47657         * modules/argp-version-etc: New file.
47658         * modules/argp-version-etc-tests: New file.
47659         * tests/test-argp-version-etc.c: New test.
47660         * tests/test-argp-version-etc-1.sh: New test.
47661
47662 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47663
47664         Provide additional interfaces and documentation for version-etc
47665         module.
47666
47667         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47668         interfaces.
47669         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47670         prototypes.
47671
47672 2009-06-24  Bruno Haible  <bruno@clisp.org>
47673
47674         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47675         HAVE_LIB${NAME} macro.
47676         Reported by Sam Steingold <sds@gnu.org>.
47677
47678 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47679
47680         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47681         needed.
47682
47683 2009-06-21  Bruno Haible  <bruno@clisp.org>
47684
47685         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47686         work.
47687         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47688         together with LIB${NAME}, LTLIB${NAME}.
47689         Reported by Sam Steingold <sds@gnu.org>.
47690
47691 2009-06-20  Jim Meyering  <meyering@redhat.com>
47692
47693         tests: make sc_require_test_exit_idiom more generic
47694         * top/maint.mk (Exit_witness_file): New overridable variable.
47695         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47696         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47697
47698 2009-06-19  Jim Meyering  <meyering@redhat.com>
47699
47700         hash: reverse order of src/dst parameters in an internal interface
47701         * lib/hash.c (transfer_entries): Reverse order of parameters to
47702         put DST before SRC.  Adjust callers.
47703
47704         tests: test-hash: avoid wholesale duplication
47705         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47706         Instead, use a loop and add a single conditional.
47707
47708         tests: test-hash: allow seed selection via a command line argument
47709         * tests/test-hash.c (get_seed): New function.
47710         (main): Use it.
47711
47712 2009-06-19  Eric Blake  <ebb9@byu.net>
47713
47714         hash: avoid memory leak on allocation failure
47715         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47716         failure.  Factor repeated algorithm...
47717         (transfer_entries): ...into new helper routine.
47718         (hash_delete): React to hash_rehash return value.
47719
47720         hash: reduce memory pressure in hash_rehash no-op case
47721         * lib/hash.c (next_prime): Avoid overflow.
47722         (hash_initialize): Factor bucket size computation...
47723         (compute_bucket_size): ...into new helper function.
47724         (hash_rehash): Use new function and open coding to reduce memory
47725         pressure, and avoid a memory leak in USE_OBSTACK code.
47726         Reported by Jim Meyering.
47727
47728 2009-06-18  Eric Blake  <ebb9@byu.net>
47729
47730         hash: make rotation more obvious
47731         * modules/hash (Depends-on): Add bitrotate and stdint.
47732         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47733         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47734         (SIZE_MAX): Rely on headers for definition.
47735         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47736         (raw_hasher): Use rotr_sz.
47737         Suggested by Jim Meyering.
47738
47739         hash: fix memory leak in last patch
47740         * lib/hash.c (hash_rehash): Avoid memory leak.
47741
47742         hash: avoid no-op rehashing
47743         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47744
47745         hash: provide default callback functions
47746         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47747         (hash_initialize): Use them as defaults.
47748         * tests/test-hash.c (main): Test this.
47749
47750         hash: minor optimization
47751         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47752         when possible.
47753         (hash_initialize): Document this promise.
47754         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47755         * tests/test-hash.c (hash_compare_strings): Test this.
47756
47757 2009-06-18  Bruno Haible  <bruno@clisp.org>
47758
47759         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47760         going to be replaced anyway.
47761
47762 2009-06-18  Bruno Haible  <bruno@clisp.org>
47763
47764         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47765         in one place.
47766         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47767         be replaced anyway.
47768
47769 2009-06-18  Eric Blake  <ebb9@byu.net>
47770
47771         hash: check for resize before insertion
47772         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47773         threshold before insertion, so that a pathological hash_rehash
47774         that fills every bucket can still trigger another rehash.
47775
47776 2009-06-18  Jim Meyering  <meyering@redhat.com>
47777
47778         hash-tests: add a loop around the small tests
47779         * tests/test-hash.c (main): Repeat small tests with selected
47780         small initial table sizes.
47781
47782 2009-06-17  Eric Blake  <ebb9@byu.net>
47783
47784         hash: minor cleanups
47785         * lib/hash.h (hash_entry): Make opaque, by moving...
47786         * lib/hash.c (hash_entry): ...here.
47787         (hash_insert): Clarify restrictions on what can be inserted.
47788         (hash_get_next): Clarify when it is safe to remove an element
47789         during traversal.
47790         (check_tuning): Skip verification when tuning is known safe.
47791         (hash_initialize): Clarify restrictions on tuning.
47792
47793 2009-06-17  Jim Meyering  <jim@meyering.net>
47794         and Eric Blake  <ebb9@byu.net>
47795
47796         hash-tests: new module
47797         * modules/hash-tests: New file.
47798         * tests/test-hash.c: New file.
47799
47800 2009-06-17  Eric Blake  <ebb9@byu.net>
47801
47802         strstr-simple: document new module
47803         * MODULES.html.sh: Document new module.
47804
47805         strstr, strcasestr: replace on platforms with broken memchr
47806         * modules/strstr: Split into...
47807         * modules/strstr-simple: ...new module that does not care about
47808         performance, but does care about glibc bug.
47809         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47810         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47811         if platform memchr is broken, per Debian bug 521737.
47812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47813         memchr.
47814         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47815         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47816         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47817         * modules/mountlist (Depends-on): Add strstr-simple.
47818         * modules/gen-uni-tables (Depends-on): Likewise.
47819         * modules/argz (Depends-on): Add strstr.
47820
47821 2009-06-17  Bruno Haible  <bruno@clisp.org>
47822
47823         * modules/posix_spawn-internal (Depends-on): Add errno.
47824
47825 2009-06-17  Bruno Haible  <bruno@clisp.org>
47826
47827         Define missing ESTALE on Interix 3.5.
47828         * lib/errno.in.h (ESTALE): Assign a value if missing.
47829         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47830         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47831         missing.
47832         * doc/posix-headers/errno.texi: Mention the Interix bug.
47833         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47834
47835 2009-06-15  Eric Blake  <ebb9@byu.net>
47836
47837         memchr, memchr2: add valgrind exception
47838         * lib/memchr.valgrind: New file.
47839         * lib/memchr2.valgrind: New file.
47840         * modules/memchr (Files): Distribute valgrind file.
47841         * modules/memchr2 (Files): Likewise.
47842
47843         docs: memchr is no longer obsolete
47844         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47845         * lib/string.in.h (memchr): Simplify logic.
47846
47847 2009-06-14  Jim Meyering  <meyering@redhat.com>
47848
47849         link-follow: fix the "checking..." message to not mention trailing slash
47850         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47851         never considered trailing slashes.
47852
47853 2009-06-14  Bruno Haible  <bruno@clisp.org>
47854
47855         * m4/memchr.m4: Mention also the bug on IA-64.
47856         * doc/posix-functions/memchr.texi: Likewise.
47857
47858 2009-06-12  Eric Blake  <ebb9@byu.net>
47859
47860         memchr: detect broken x86_64 and alpha implementations
47861         * modules/memchr-tests (Depends-on): Move mmap detection...
47862         * modules/memchr (Depends-on): ...here.
47863         (configure.ac): Set indicator.
47864         * lib/string.in.h (memchr): Declare replacement.
47865         * modules/string (Makefile.am): Trigger replacement.
47866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47867         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47868         bugs.
47869         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47870         * modules/getpagesize (License): Relax license.
47871
47872 2009-06-11  Bruno Haible  <bruno@clisp.org>
47873
47874         * lib/idpriv.h: Add more references.
47875
47876 2009-06-08  Bruno Haible  <bruno@clisp.org>
47877
47878         Tests for module 'idpriv-droptemp'.
47879         * modules/idpriv-droptemp-tests: New file.
47880         * tests/test-idpriv-droptemp.sh: New file.
47881         * tests/test-idpriv-droptemp.su.sh: New file.
47882         * tests/test-idpriv-droptemp.c: New file.
47883
47884         New module 'idpriv-droptemp'.
47885         * lib/idpriv-droptemp.c: New file.
47886         * modules/idpriv-droptemp: New file.
47887
47888 2009-06-08  Bruno Haible  <bruno@clisp.org>
47889
47890         Tests for module 'idpriv-drop'.
47891         * modules/idpriv-drop-tests: New file.
47892         * tests/test-idpriv-drop.sh: New file.
47893         * tests/test-idpriv-drop.su.sh: New file.
47894         * tests/test-idpriv-drop.c: New file.
47895
47896         New module 'idpriv-drop'.
47897         * lib/idpriv.h: New file.
47898         * lib-idpriv-drop.c: New file.
47899         * m4/idpriv.m4: New file.
47900         * modules/idpriv-drop: New file.
47901
47902 2009-06-08  Bruno Haible  <bruno@clisp.org>
47903
47904         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47905         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47906         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47907         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47908         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47909         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47910         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47911
47912 2009-06-08  Eric Blake  <ebb9@byu.net>
47913
47914         test-strstr: use memory fence, when possible
47915         * tests/test-strstr.c (main): Use memory fence, in order to be
47916         more likely to trigger Debian bug 521737.
47917         * modules/strstr-tests (Files): Pull in additional files.
47918
47919         memchr: no longer obsolete, for wider field testing
47920         * modules/memchr (Status, Notice): Delete, this module is no
47921         longer obsolete.
47922         * modules/vasnprintf (Depends-on): Add memchr.
47923
47924 2009-06-07  Jim Meyering  <meyering@redhat.com>
47925
47926         hash: declare some functions with the warn_unused_result attribute
47927         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47928
47929 2009-06-07  Bruno Haible  <bruno@clisp.org>
47930
47931         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47932         Reported by Eric Blake.
47933
47934 2009-06-06  Eric Blake  <ebb9@byu.net>
47935
47936         test-alignof: fix typo with long double
47937         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47938         compiler error.
47939
47940 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47941
47942         Escape non-texinfo { and }s.
47943         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47944         markup error.
47945
47946 2009-06-04  Jim Meyering  <meyering@redhat.com>
47947
47948         gitlog-to-changelog: don't infloop on an empty commit log
47949         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47950         Reported by Boris Petersen <transacid@centerim.org>.
47951
47952 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47953
47954         version-etc: extend for packagers
47955         Add three new configure options, intended for packagers:
47956           --with-packager="packager name"
47957           --with-packager-version="packager-specific version"
47958           --with-packager-bug-reports="packager bug reporting"
47959         An example with coreutils:
47960           $ ./configure \
47961             --with-packager=Gentoo \
47962             --with-packager-bug-report=http://bugs.gentoo.org/ \
47963             --with-packager-version="patchset 1.6"
47964           $ ./src/ls --version | head -n2
47965           ls (GNU coreutils) 7.1-dirty
47966           Packaged by Gentoo (patchset 1.6)
47967         Note that the bug reporting info via --help doesn't show up because
47968         coreutils uses its own custom emit_bug_reporting_address() implementation
47969         in src/system.h.  If it didn't, it'd look like:
47970           $ ./src/ls --help | tail -n4
47971           Report bugs to <bug-coreutils@gnu.org>.
47972           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47973           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47974           General help using GNU software: <http://www.gnu.org/gethelp/>.
47975         * lib/version-etc.c: Print new information, if provided.
47976         * m4/version-etc.m4: New file.
47977         * modules/version-etc (Files): Add m4/version-etc.m4.
47978         (configure.ac): Add gl_VERSION_ETC.
47979
47980 2009-05-31  Bruno Haible  <bruno@clisp.org>
47981
47982         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47983         and 'int64_t'.
47984         * modules/alignof-tests (Dependencies): Add stdint.
47985         Reported by Eric Blake.
47986
47987 2009-05-31  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47990         restriction due to compiler bugs.
47991         Reported by Eric Blake.
47992
47993 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47994             Bruno Haible  <bruno@clisp.org>
47995
47996         Fix test-alignof failure.
47997         * lib/alignof.h (alignof_slot): New macro.
47998         (alignof_type): New macro, with the same semantics as the previous
47999         'alignof'.
48000         (alignof): Alias to alignof_slot.
48001         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48002         check that the results are usable as constant expressions.
48003
48004 2009-05-31  Bruno Haible  <bruno@clisp.org>
48005
48006         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48007         * tests/test-memchr.c (main): Check that memchr does not read past the
48008         first occurrence of the byte.
48009         * tests/test-strstr.c (main): Update comment.
48010         Suggested by Eric Blake.
48011
48012 2009-05-30  Bruno Haible  <bruno@clisp.org>
48013
48014         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48015         detail how to use dumpbin.
48016         Reported by David Byron <dbyron@dbyron.com>.
48017
48018 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48019
48020         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48021
48022 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48023
48024         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48025
48026 2009-05-28  Bruno Haible  <bruno@clisp.org>
48027
48028         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48029         build-aux/ files.
48030
48031 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48032
48033         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48034
48035 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48036
48037         * gnulib-tool (sed_transform_main_lib_file)
48038         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48039         regexps.
48040
48041 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48042
48043         * tests/test-strstr.c: Add another self-test.
48044         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48045         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48046
48047 2009-05-23  Bruno Haible  <bruno@clisp.org>
48048
48049         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48050         change.
48051
48052 2009-05-21  Bruno Haible  <bruno@clisp.org>
48053
48054         Simplify use of mode_t varargs.
48055         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48056         uses 'mode_t' or 'int'.
48057         * lib/openat.c (openat): Likewise.
48058         * lib/open-safer.c (open_safer): Likewise.
48059         * m4/mode_t.m4: New file.
48060         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48061         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48062         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48063         * modules/open (Files): Add m4/mode_t.m4.
48064         * modules/openat (Files): Likewise.
48065         * modules/fcntl-safer (Files): Likewise.
48066         Suggested by Eric Blake.
48067
48068 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48069
48070         * doc/glibc-functions/fallocate.texi: New file.
48071         * doc/gnulib.texi: Include it.
48072
48073 2009-05-21  Eric Blake  <ebb9@byu.net>
48074             Bruno Haible  <bruno@clisp.org>
48075
48076         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48077         invocations.
48078         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48079
48080 2009-05-21  Eric Blake  <ebb9@byu.net>
48081             Bruno Haible  <bruno@clisp.org>
48082
48083         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48084         include_next. Fix of 2008-11-20 commit.
48085         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48086         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48087         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48088         NEXT_MATH_H.
48089         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48090         instead of NEXT_MATH_H.
48091
48092 2009-05-21  Bruno Haible  <bruno@clisp.org>
48093
48094         Avoid redefinition warnings for SIZE_MAX.
48095         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48096         Reported by Simon Josefsson.
48097
48098 2009-05-21  Bruno Haible  <bruno@clisp.org>
48099
48100         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48101         AC_CACHE_VAL.
48102
48103 2009-05-20  Bruno Haible  <bruno@clisp.org>
48104
48105         Make zeroptr.h work on mingw.
48106         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48107         mprotect.
48108         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48109         * modules/memchr2-tests (configure.ac): Likewise.
48110         * modules/memcmp-tests (configure.ac): Likewise.
48111         * modules/memmem-tests (configure.ac): Likewise.
48112         * modules/memrchr-tests (configure.ac): Likewise.
48113         Reported by Simon Josefsson.
48114
48115 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48116
48117         * tests/test-glob.c: Include string.h for strcmp prototype.
48118
48119 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48120
48121         * modules/getdelim (Depends-on): Add explicit stdint, although it
48122         was implicitly already pulled in via realloc-posix.
48123         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48124
48125 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48126
48127         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48128         G. Christensen" <tgc@jupiterrise.com>.
48129         * m4/sys_socket_h.m4: Check for sa_family_t.
48130         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48131         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48132         * tests/test-sys_socket.c: Check that sa_family_t works.
48133
48134 2009-05-18  Eric Blake  <ebb9@byu.net>
48135
48136         maint.mk: allow gnulib_dir in VPATH build
48137         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48138
48139 2009-05-15  Jim Meyering  <meyering@redhat.com>
48140
48141         maint.mk: Give gnulib_dir a default definition.
48142         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48143         Thus, most packages no longer need to specify this variable in cfg.mk
48144
48145 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48146
48147         rename.m4: fix typos that would make non-mingw cross-configure fail
48148         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48149
48150 2009-05-13  Eric Blake  <ebb9@byu.net>
48151
48152         mmap-anon: avoid out-of-order autoconf expansion
48153         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48154         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48155         * modules/memchr-tests (Depends-on): Add extensions.
48156         * modules/memchr2-tests (Depends-on): Add extensions.
48157         * modules/memcmp-tests (Depends-on): Add extensions.
48158         * modules/memmem-tests (Depends-on): Add extensions.
48159         * modules/memrchr-tests (Depends-on): Add extensions.
48160
48161 2009-05-13  Bruno Haible  <bruno@clisp.org>
48162
48163         Make some tests ISO C 99 compliant.
48164         * tests/zerosize-ptr.h: New file.
48165         * tests/test-memchr.c: Include zerosize-ptr.h.
48166         (main): Use a zero-size object pointer instead of NULL.
48167         * tests/test-memchr2.c: Include zerosize-ptr.h.
48168         (main): Use a zero-size object pointer instead of NULL.
48169         * tests/test-memcmp.c: Include zerosize-ptr.h.
48170         (main): Use a zero-size object pointer instead of NULL.
48171         * tests/test-memmem.c: Include zerosize-ptr.h.
48172         (main): Use a zero-size object pointer instead of NULL.
48173         * tests/test-memrchr.c: Include zerosize-ptr.h.
48174         (main): Use a zero-size object pointer instead of NULL.
48175         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48176         m4/mmap-anon.m4.
48177         (Depends-on): Add getpagesize.
48178         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48179         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48180         m4/mmap-anon.m4.
48181         (Depends-on): Add getpagesize.
48182         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48183         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48184         m4/mmap-anon.m4.
48185         (Depends-on): Add getpagesize.
48186         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48187         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48188         m4/mmap-anon.m4.
48189         (Depends-on): Add getpagesize.
48190         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48191         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48192         m4/mmap-anon.m4.
48193         (Depends-on): Add getpagesize.
48194         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48195
48196 2009-05-12  Bruno Haible  <bruno@clisp.org>
48197
48198         Tests for module 'alignof'.
48199         * modules/alignof-tests: New file.
48200         * tests/test-alignof.c: New file.
48201
48202 2009-05-12  Bruno Haible  <bruno@clisp.org>
48203
48204         Fix alignof macro.
48205         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48206         vendor compilers that are always correct.
48207
48208 2009-05-12  Bruno Haible  <bruno@clisp.org>
48209
48210         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48211         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48212         not whether its fully works.
48213
48214 2009-05-12  Bruno Haible  <bruno@clisp.org>
48215
48216         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48217
48218 2009-05-12  Jim Meyering  <meyering@redhat.com>
48219
48220         * top/maint.mk: Adjust backslash alignment.
48221
48222 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48223
48224         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48225
48226 2009-05-11  Eric Blake  <ebb9@byu.net>
48227
48228         argp: avoid undefined behavior
48229         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48230         macros.
48231
48232 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48233
48234         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48235         user.name to prevent git commit from complaining.
48236
48237 2009-05-10  Bruno Haible  <bruno@clisp.org>
48238
48239         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48240         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48241         it rewrites every file name only once.
48242         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48243
48244 2009-05-08  Bruno Haible  <bruno@clisp.org>
48245
48246         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48247         instead of 'max'.
48248
48249 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48250
48251         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48252         sockaddr_storage test.
48253
48254 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48255
48256         * modules/sys_socket (Makefile.am): Substitute
48257         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48258         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48259         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48260         * tests/test-sys_socket.c: Check sockaddr_storage.
48261
48262 2009-05-08  Bruno Haible  <bruno@clisp.org>
48263
48264         New module 'alignof'.
48265         * lib/alignof.h: New file.
48266         * modules/alignof: New file.
48267
48268 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48269             Bruno Haible  <bruno@clisp.org>
48270
48271         Fix test-file-has-acl on FreeBSD.
48272         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48273         mask is implicitly added.
48274         * tests/test-file-has-acl.c: Include <signal.h>.
48275         (main): Terminate the test after 5 seconds.
48276         * modules/acl-tests (configure.ac): Check for alarm function.
48277
48278 2009-05-04  Bruno Haible  <bruno@clisp.org>
48279
48280         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48281         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48282         * modules/errno (configure.ac): Drop AC_REQUIRE.
48283         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48284         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48285
48286 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48287
48288         * modules/glob-tests: New module.
48289         * tests/test-glob.c: Add.
48290
48291 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48292
48293         * modules/fnmatch-tests: New module.
48294         * tests/test-fnmatch.c: Add.
48295
48296 2009-05-04  Eric Blake  <ebb9@byu.net>
48297
48298         maint: make the new no-submodule-changes rule VPATH-safe
48299         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48300
48301 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48302             Bruno Haible  <bruno@clisp.org>
48303
48304         acl: Fix infinite loop on FreeBSD.
48305         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48306         of return value from acl_get_entry.
48307         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48308         Likewise.
48309
48310 2009-05-03  Bruno Haible  <bruno@clisp.org>
48311
48312         * lib/acl-internal.h (acl_entries): Clarify return value.
48313         * lib/acl_entries.c (acl_entries): Likewise.
48314
48315 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48316
48317         Bug fix in acl module.
48318         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48319
48320 2009-05-03  Bruno Haible  <bruno@clisp.org>
48321
48322         Create gperf-generated file in the source dir, not in the build dir.
48323         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48324         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48325         * modules/unicase/locale-language (unicase/locale-languages.h):
48326         Likewise.
48327         * modules/unicase/special-casing (unicase/special-casing-table.h):
48328         Likewise.
48329         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48330         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48331         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48332         Reported by Ralf Wildenhues.
48333
48334 2009-05-03  Bruno Haible  <bruno@clisp.org>
48335
48336         * modules/fnmatch (Description, configure.ac): Taken from
48337         fnmatch-posix.
48338         * modules/fnmatch-posix: Turn into a symbolic reference to the
48339         'fnmatch' module, and deprecate.
48340         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48341
48342 2009-05-03  Bruno Haible  <bruno@clisp.org>
48343
48344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48345         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48346         Reported by Ralf Wildenhues.
48347
48348 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48349
48350         * m4/fnmatch.m4: Fix fnmatch re-define.
48351
48352 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48353
48354         priv-set: new module and tests; adapt write-any-file
48355         * lib/priv-set.c: New file.
48356         * lib/priv-set.h: New file.
48357         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48358         * lib/write-any-file.c: Simplify by using priv-set module.
48359         * m4/priv-set.m4: New file.
48360         * modules/priv-set: New file.
48361         * modules/unlinkdir: Add dependency on priv-set module.
48362         * modules/write-any-file: Likewise.
48363
48364         Tests for module 'priv-set'.
48365         * modules/priv-set-tests: New file.
48366         * tests/test-priv-set.c: New file.
48367
48368 2009-05-03  Jim Meyering  <meyering@redhat.com>
48369             Bruno Haible  <bruno@clisp.org>
48370
48371         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48372         use the converted UTF-8 variant of the name instead.
48373
48374 2009-05-03  Jim Meyering  <meyering@redhat.com>
48375
48376         tests: tighten some getdate tests
48377         * tests/test-getdate.c (main): Tighten tests: require equality,
48378         not just greater than.  Set TZ envvar to UTC0.
48379
48380 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48381
48382         getdate: correctly interpret "next monday" when run on a Monday
48383         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48384         that e.g., "next tues" (when run on a tuesday) results in a date
48385         that is one week in the future, and not today's date.
48386         I.e., add a week when the wday is the same as the current one.
48387         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48388         and earlier by Martin Bernreuther and Jan Minář.
48389         * tests/test-getdate.c (main): Check that "next DAY" is always in
48390         the future and that "last DAY" is always in the past.
48391
48392 2009-05-02  Jim Meyering  <meyering@redhat.com>
48393
48394         build: ensure that a release build fails when a submodule is unclean
48395         * top/maint.mk (no-submodule-changes): New rule.
48396         (alpha beta major): Depend on it.
48397
48398 2009-05-02  Bruno Haible  <bruno@clisp.org>
48399
48400         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48401         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48402         shell variable gl_fnmatch_required to detect which variant is
48403         requested.
48404         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48405         gl_FUNC_FNMATCH_POSIX.
48406         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48407         exclude fnmatch-posix.
48408
48409 2009-05-02  Bruno Haible  <bruno@clisp.org>
48410
48411         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48412         * modules/mbsrtowcs (License): Change to LGPLv2+.
48413         * modules/strnlen1 (License): Likewise.
48414         Reported by Simon Josefsson.
48415
48416 2009-05-02  Bruno Haible  <bruno@clisp.org>
48417
48418         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48419         "cross".
48420         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48421         gnulib-tool was called with option --source-base=lib.
48422
48423 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48424
48425         Use automake *-local hooks without commands, for extensibility.
48426         * modules/localcharset (Makefile.am): Rename install-exec-local
48427         rule to install-exec-localcharset, and make it a prerequisite of
48428         install-exec-local.  Likewise, rename the uninstall-local rule to
48429         uninstall-localcharset, and make it a prerequisite of the former.
48430
48431 2009-05-01  Bruno Haible  <bruno@clisp.org>
48432
48433         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48434         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48435         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48437         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48438         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48439         m4/locale-zh.m4, m4/codeset.m4.
48440
48441         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48442         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48443         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48444         m4/locale-zh.m4.
48445
48446         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48447         REPLACE_WCRTOMB if mbstate_t must be replaced.
48448         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48449         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48450
48451 2009-05-01  Bruno Haible  <bruno@clisp.org>
48452
48453         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48454         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48455         dngettext, dcngettext, textdomain, bindtextdomain,
48456         bind_textdomain_codeset): Undefine before redefining.
48457
48458 2009-04-30  Bruno Haible  <bruno@clisp.org>
48459
48460         Fix bug introduced on 2009-04-25.
48461         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48462         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48463         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48464         is defined.
48465         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48466         is defined.
48467         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48468         is defined.
48469         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48470
48471 2009-04-28  Bruno Haible  <bruno@clisp.org>
48472
48473         Comment tweaks.
48474         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48475         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48476         * lib/unicase.h (u*_casexfrm): Likewise.
48477         Reported by Paolo Bonzini.
48478
48479 2009-04-28  Bruno Haible  <bruno@clisp.org>
48480
48481         Fix a compilation error.
48482         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48483         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48484         Reported by Jim Meyering.
48485
48486 2009-04-27  Bruno Haible  <bruno@clisp.org>
48487
48488         New module 'libunistring'.
48489         * modules/libunistring: New file.
48490         * m4/libunistring.m4: New file.
48491         * MODULES.html.sh (Unicode string functions): Add it.
48492
48493 2009-04-27  Eric Blake  <ebb9@byu.net>
48494
48495         maint.mk: allow package-specific header to provide <config.h>
48496         * top/maint.mk (sc_require_config_h): New variable.
48497         (sc_require_config_h, sc_require_config_h_first): Use it.
48498
48499 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48500
48501         * top/maint.mk (sc_avoid_if_before_free): Except
48502         useless-if-before-free script.
48503
48504 2009-04-27  Eric Blake  <ebb9@byu.net>
48505
48506         maintainer-makefile: depend on all required helper scripts
48507         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48508         useless-if-before-free.
48509         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48510         version, rather than assuming gnulib checkout is available.
48511         Reported by Simen Josefsson.
48512
48513 2009-04-26  Bruno Haible  <bruno@clisp.org>
48514
48515         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48516         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48517         "../" or "..".
48518
48519 2009-04-26  Bruno Haible  <bruno@clisp.org>
48520
48521         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48522         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48523         AC_LIB_HAVE_LINKFLAGS.
48524
48525 2009-04-26  Bruno Haible  <bruno@clisp.org>
48526
48527         Simplify calling convention of u*_conv_from_encoding.
48528         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48529         u32_conv_from_encoding): Expect a resultbuf argument and return the
48530         result directly as a pointer.
48531         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48532         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48533         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48534         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48535         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48536         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48537         Update.
48538         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48539         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48540         * lib/vasnprintf.c (VASNPRINTF): Update.
48541         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48542         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48543         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48544         * NEWS: Mention the change.
48545
48546 2009-04-26  Bruno Haible  <bruno@clisp.org>
48547
48548         Simplify calling convention of u*_conv_to_encoding.
48549         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48550         u32_conv_to_encoding): Expect a resultbuf argument and return the
48551         result directly as a pointer.
48552         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48553         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48554         freeing scaled_offsets if mem_iconveha failed.
48555         * lib/unicase/u-casexfrm.h (FUNC): Update.
48556         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48557         * lib/vasnprintf.c (VASNPRINTF): Update.
48558         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48559         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48560         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48561         * NEWS: Mention the change.
48562
48563 2009-04-26  Bruno Haible  <bruno@clisp.org>
48564
48565         Avoid test failures on AIX and OSF/1.
48566         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48567         malloc(0).
48568         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48569         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48570         Likewise.
48571         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48572         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48573         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48574         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48575         * doc/posix-functions/malloc.texi: Document the portability problem
48576         related to malloc(0).
48577
48578 2009-04-26  Bruno Haible  <bruno@clisp.org>
48579
48580         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48581         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48582         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48583
48584 2009-04-25  Bruno Haible  <bruno@clisp.org>
48585
48586         Avoid link error when creating a namespace clean library.
48587         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48588         as macro with arguments if already defined as an alias.
48589         * lib/signbitf.c (gl_signbitf): Don't undefine.
48590         * lib/signbitd.c (gl_signbitd): Don't undefine.
48591         * lib/signbitl.c (gl_signbitl): Don't undefine.
48592
48593 2009-04-25  Jim Meyering  <meyering@redhat.com>
48594
48595         vc-list-files: fix another quoting bug
48596         * build-aux/vc-list-files: Avoid sed backslash expansion
48597         of pathological directory names.
48598
48599 2009-04-25  Eric Blake  <ebb9@byu.net>
48600
48601         vc-list-files: fix shell quoting error
48602         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48603         timestamp.
48604
48605 2009-04-25  Jim Meyering  <meyering@redhat.com>
48606
48607         vc-list-files: restore lost functionality with subdir argument
48608         * build-aux/vc-list-files: When given a non-"." sub-directory
48609         argument, substitute the $dir/ prefix back onto each resulting name.
48610         Otherwise, coreutils' root_tests check would fail.
48611
48612 2009-04-24  Eric Blake  <ebb9@byu.net>
48613
48614         vc-list-files: ignore git symlinks
48615         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48616         than ls-files, to ignore git symlinks.
48617
48618         maint.mk: import improvements from m4
48619         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48620         (move_if_change): Delete unused macro.
48621         (news-date-check, vc-diff-check): Support VPATH builds.
48622         (announcement): Likewise.  Split --bootstrap-tools list...
48623         (boostrap-tools): ...into separate list, which can be overridden
48624         in cfg.mk.
48625         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48626         requiring dependency on useless-if-before-free module.
48627         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48628         Support VPATH builds.
48629
48630 2009-04-24  Jim Meyering  <meyering@redhat.com>
48631
48632         maint.mk: remove coreutils-specific rules and variables
48633         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48634         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48635         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48636
48637         maint.mk: remove obsolete rule
48638         * top/maint.mk (rel-check): Remove rule.
48639         (WGET, WGETFLAGS): Remove now-unused variables.
48640
48641 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48642
48643         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48644         consistency.
48645
48646         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48647         '$(PATH_SEPARATOR)' instead of ':'.
48648
48649 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48650
48651         * lib/getopt1.c (main): Use 'const' for static array.
48652
48653 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48654
48655         * top/maint.mk: Sync with coreutils.
48656         * NEWS: Explain incompatibilities.
48657
48658 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48659             Bruno Haible  <bruno@clisp.org>
48660
48661         Fix cross-compilation results.
48662         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48663         statement, as third argument of AC_TRY_RUN.
48664         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48665         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48666         Likewise.
48667         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48668         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48669         Likewise.
48670         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48671         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48672         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48673
48674 2009-04-20  Bruno Haible  <bruno@clisp.org>
48675
48676         Avoid test failure on mingw.
48677         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48678
48679 2009-04-20  Bruno Haible  <bruno@clisp.org>
48680
48681         Avoid compilation error on mingw.
48682         * modules/localename-tests (Depends-on): Add locale.
48683
48684 2009-04-19  Bruno Haible  <bruno@clisp.org>
48685
48686         Support for building a shared library on Windows platforms.
48687         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48688         (main): Test the presence of UNINORM_NFC here.
48689         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48690         (main): Test the presence of UNINORM_NFD here.
48691         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48692         (main): Test the presence of UNINORM_NFKC here.
48693         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48694         (main): Test the presence of UNINORM_NFKD here.
48695
48696 2009-04-19  Bruno Haible  <bruno@clisp.org>
48697
48698         Avoid a compiler warning.
48699         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48700         Change type of variable 'sequence'.
48701
48702 2009-04-19  Bruno Haible  <bruno@clisp.org>
48703
48704         * modules/configmake (Makefile.am): When the contents of configmake.h
48705         does not change, arrange to preserve its modification time.
48706
48707 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48708
48709         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48710         gettext domain.
48711
48712 2009-04-16  Jim Meyering  <meyering@redhat.com>
48713
48714         useless-if-before-free: improve conversion code
48715         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48716         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48717
48718 2009-04-14  Bruno Haible  <bruno@clisp.org>
48719
48720         * modules/fcntl (Depends-on): Add extensions.
48721         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48722
48723 2009-04-12  Ben Pfaff  <blp@gnu.org>
48724
48725         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48726         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48727
48728 2009-03-20  Ben Pfaff  <blp@gnu.org>
48729
48730         Make rename replace existing destinations on Windows.
48731         * m4/rename.m4: Add test for Mingw.
48732         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48733         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48734         * doc/posix-functions/rename.texi: Document.
48735
48736 2009-04-10  Bruno Haible  <bruno@clisp.org>
48737
48738         New include file "iconveh.h".
48739         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48740         * lib/striconveh.h: Include it.
48741         (enum iconv_ilseq_handler): Remove definition.
48742         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48743         striconveh.h.
48744         * lib/striconveha.c: Include striconveh.h.
48745         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48746         * modules/striconveh (Files): Add lib/iconveh.h.
48747         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48748         lib/striconveh.h.
48749
48750 2009-04-10  Bruno Haible  <bruno@clisp.org>
48751
48752         * lib/uniconv.h: Update comment.
48753
48754 2009-04-10  Bruno Haible  <bruno@clisp.org>
48755
48756         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48757         always.
48758         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48759         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48760         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48761         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48762         "unistring-notinline.h", so that the function gets defined always.
48763         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48764         * lib/unistr/u8-uctomb.c: Likewise.
48765         * lib/unistr/u16-mbtouc.c: Likewise.
48766         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48767         * lib/unistr/u16-uctomb.c: Likewise.
48768         * lib/unistr/u32-mbtouc.c: Likewise.
48769         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48770         * lib/unistr/u32-uctomb.c: Likewise.
48771
48772 2009-04-10  Bruno Haible  <bruno@clisp.org>
48773
48774         Mark 'utime' obsolete.
48775         * modules/utime (Status, Notice): New sections.
48776         Suggested by Jim Meyering.
48777
48778         Fix cross-compile guess for utime test.
48779         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48780         autoconf.
48781         * doc/posix-functions/utime.texi: Give more precisions.
48782         Reported by Jan <ipif@ymail.com>.
48783
48784 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48785
48786         filevercmp: correct today's change
48787         * lib/filevercmp.c: Also handle coreutils' test inputs.
48788         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48789
48790         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48791         for reporting it.
48792         * lib/filevercmp.c: Special handle for "", "." and "..".
48793         * tests/test-filevercmp.c: Enlarge the set suite.
48794
48795 2009-04-07  Jim Meyering  <meyering@redhat.com>
48796
48797         useless-if-before-free: show how to remove braced useless free, too
48798         * build-aux/useless-if-before-free: still only in a comment, though.
48799
48800 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48801
48802         maint.mk: import changes to syntax-check macros from coreutils
48803         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48804         Use them in the relevant macros.
48805
48806 2009-04-06  Bruno Haible  <bruno@clisp.org>
48807
48808         Fix unportable use of bit-fields.
48809         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48810         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48811         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48812
48813 2009-04-06  Bruno Haible  <bruno@clisp.org>
48814
48815         Avoid test failures on AIX and OSF/1.
48816         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48817         that malloc(0) = NULL.
48818         * tests/unicase/test-u8-tolower.c (check): Likewise.
48819         * tests/unicase/test-u8-totitle.c (check): Likewise.
48820         * tests/unicase/test-u8-toupper.c (check): Likewise.
48821         * tests/unicase/test-u16-casefold.c (check): Likewise.
48822         * tests/unicase/test-u16-tolower.c (check): Likewise.
48823         * tests/unicase/test-u16-totitle.c (check): Likewise.
48824         * tests/unicase/test-u16-toupper.c (check): Likewise.
48825         * tests/unicase/test-u32-casefold.c (check): Likewise.
48826         * tests/unicase/test-u32-tolower.c (check): Likewise.
48827         * tests/unicase/test-u32-totitle.c (check): Likewise.
48828         * tests/unicase/test-u32-toupper.c (check): Likewise.
48829         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48830         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48831         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48832         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48833         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48834         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48835         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48836         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48837         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48838         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48839         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48840         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48841
48842 2009-04-05  Bruno Haible  <bruno@clisp.org>
48843
48844         Work around an autoconf limitation.
48845         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48846         comment line if it would be longer than 3 KB.
48847
48848 2009-04-05  Bruno Haible  <bruno@clisp.org>
48849
48850         Avoid test failure with libiconv-1.13.
48851         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48852         of the expected test results.
48853
48854 2009-04-05  Bruno Haible  <bruno@clisp.org>
48855
48856         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48857         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48858         that it should be installed.
48859
48860 2009-04-05  Bruno Haible  <bruno@clisp.org>
48861
48862         * gnulib-tool: New option --copy-file.
48863         (func_usage): Document it.
48864         (func_dest_tmpfilename): Moved out of func_import.
48865         (func_add_file, func_update_file): New functions, extracted from
48866         func_import.
48867         (func_import): Update.
48868
48869 2009-04-05  Karl Berry  <karl@gnu.org>
48870
48871         * README: prominently mention gnulib-tool.
48872         Rearrange sections so getting the code is near the top.
48873
48874 2009-04-05  Bruno Haible  <bruno@clisp.org>
48875
48876         * lib/unicase.h: Mention u*_cmp2.
48877         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48878         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48879         * lib/unicase/ulc-casecmp.c: Likewise.
48880         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48881         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48882         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48883         unistr/u8-cmp.
48884         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48885         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48886         unistr/u16-cmp.
48887         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48888         unistr/u32-cmp.
48889
48890         * lib/uninorm.h: Mention u*_cmp2.
48891         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48892         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48893         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48894         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48895         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48896         unistr/u8-cmp.
48897         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48898         unistr/u16-cmp.
48899         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48900         unistr/u32-cmp.
48901
48902         New module 'unistr/u32-cmp2'.
48903         * lib/unistr/u32-cmp2.c: New file.
48904         * modules/unistr/u32-cmp2: New file.
48905
48906         New module 'unistr/u16-cmp2'.
48907         * lib/unistr/u16-cmp2.c: New file.
48908         * modules/unistr/u16-cmp2: New file.
48909
48910         New module 'unistr/u8-cmp2'.
48911         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48912         * lib/unistr/u8-cmp2.c: New file.
48913         * lib/unistr/u-cmp2.h: New file.
48914         * modules/unistr/u8-cmp2: New file.
48915
48916 2009-04-05  Bruno Haible  <bruno@clisp.org>
48917
48918         * lib/unictype.h (uc_property_is_valid): New macro.
48919         * tests/unictype/test-pr_byname.c (main): Use it.
48920
48921         * lib/unistr.h: Doc fixes.
48922         * lib/uniconv.h: Doc fixes.
48923         * lib/unictype.h: Doc fixes.
48924
48925 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48926
48927         Port coreutils 7.2 to Solaris 8.
48928
48929         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48930         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48931         for Solaris 8.  This is a bit of a hack, as it means it's the
48932         caller's responsibility to add -lnsl if needed, but most likely it
48933         won't be needed since only getaddrinfo uses this and getaddrinfo
48934         isn't needed on Solaris 8.
48935
48936         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48937         problem to Solaris 8 encountered with coreutils 7.2, which
48938         resulted in a message "fnmatch.c:292: warning: passing argument 4
48939         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48940         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48941
48942 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48943
48944         * m4/ld-version-script.m4: Add FIXME comment.
48945
48946 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48947
48948         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48949         SOVERSION variable.
48950
48951 2009-04-02  Bruno Haible  <bruno@clisp.org>
48952
48953         * Makefile (info, html, dvi, pdf): Combine the rules.
48954         Suggested by Jim Meyering.
48955
48956 2009-04-01  Bruno Haible  <bruno@clisp.org>
48957
48958         * Makefile (info, html, dvi, pdf): New targets.
48959         Reported by Reuben Thomas <rrt@sc3d.org>.
48960
48961 2009-04-01  Bruno Haible  <bruno@clisp.org>
48962
48963         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48964         can be put into PATH.
48965         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48966
48967 2009-04-01  Bruno Haible  <bruno@clisp.org>
48968
48969         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48970
48971 2009-04-01  Bruno Haible  <bruno@clisp.org>
48972
48973         Rename module 'visibility'.
48974         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48975         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48976         * doc/gnulib.texi: Update.
48977         * MODULES.html.sh (Misc): Update.
48978         * NEWS: Mention the change.
48979
48980 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48981
48982         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48983         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48984         Eric Blake <ebb9@byu.net> for review.
48985         * MODULES.html.sh: Add lib-msvc-compat.
48986         * doc/gnulib.texi: Link to new section.
48987         * m4/ld-output-def.m4: New file.
48988         * doc/ld-output-def.texi: New file.
48989
48990 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48991
48992         Rename ld-version-script to lib-symbol-versions.  Suggested by
48993         Bruno Haible <bruno@clisp.org>.
48994         * modules/ld-version-script: Renamed to lib-symbol-versions.
48995         * doc/ld-version-script.texi: Fix module name.
48996         * MODULES.html.sh: Add lib-symbol-versions.
48997
48998 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48999
49000         * modules/u64-tests: New file.
49001         * tests/test-u64.c: New file.
49002
49003 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49004
49005         * MODULES.html.sh: Mention u64.
49006         * modules/u64: New module.
49007         * modules/crypto/sha512: Depend on u64 module instead of providing
49008         u64.h.
49009
49010 2009-03-27  Eric Blake  <ebb9@byu.net>
49011
49012         test-strerror: make debugging EAI_SYSTEM easier
49013         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49014         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49015         failure was EAI_SYSTEM.
49016
49017 2009-03-25  Bruno Haible  <bruno@clisp.org>
49018
49019         Fix a problem with --enable-relocatable on Solaris 7.
49020         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49021         since 2008-02-24.
49022
49023 2009-03-25  Eric Blake  <ebb9@byu.net>
49024
49025         test-sockets: avoid gcc warning
49026         * tests/test-sockets.c (main): Silence compiler warning.
49027
49028 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49029
49030         New modules nproc, pthread, contributed by Glen Lenker.
49031
49032         * MODULES.html.sh: Add pthread, nproc.
49033         * lib/nproc.c: New file.
49034         * lib/nproc.h: New file.
49035         * lib/pthread.in.h: New file.
49036         * m4/pthread.m4: New file.
49037         * modules/nproc: New file.
49038         * modules/pthread: New file.
49039
49040 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49041
49042         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49043         New variable.
49044
49045 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49046
49047         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49048         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49049         * tests/test-filevercmp.c: Add tests for backup suffixes.
49050
49051 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49052
49053         * modules/stdlib (Depends-on): Add stdint, needed when defining
49054         struct random_data on, for example, HP-UX 10.20.  Reported by
49055         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49056
49057 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49058
49059         * lib/readline.c (readline): Call fflush on stdout after printing
49060         prompt.
49061
49062 2009-03-20  Bruno Haible  <bruno@clisp.org>
49063
49064         Remove dependency from 'close' module to -lws2_32 on native Windows.
49065         * lib/close-hook.h: New file.
49066         * lib/close-hook.c: New file.
49067         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49068         w32sock.h.
49069         (_gl_close_fd_maybe_socket): Remove function.
49070         (rpl_close): Invoke execute_all_close_hooks instead of
49071         _gl_close_fd_maybe_socket.
49072         * lib/sockets.c: Include close-hook.h, w32sock.h.
49073         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49074         (close_sockets_hook): New variable.
49075         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49076         (gl_sockets_cleanup): Unregister it.
49077         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49078         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49079         * modules/close-hook: New file.
49080         * modules/close (Files): Remove lib/w32sock.h.
49081         (Depends-on): Add close-hook.
49082         (Link): Remove section.
49083         * modules/sockets (Files): Add lib/w32sock.h.
49084         (Depends-on): Add close-hook.
49085         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49086         invocation.
49087         * NEWS: Mention that LIB_CLOSE is gone.
49088
49089 2009-03-23  Eric Blake  <ebb9@byu.net>
49090
49091         signal-tests: test previous patch
49092         * tests/test-signal.c: New file.
49093         * modules/signal-tests: Likewise.
49094
49095         signal.h: always support 'volatile sig_atomic_t'
49096         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49097         (gl_SIGNAL_H_DEFAULTS): Add a default.
49098         * modules/signal (Makefile.am): Substitute if needed.
49099         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49100         users can blindly add volatile.
49101         * doc/posix-headers/signal.texi (signal.h): Document it.
49102         Reported by Matthew Woehlke.
49103
49104 2009-03-23  Jim Meyering  <meyering@redhat.com>
49105
49106         pathmax: PATH_MAX: use pathconf only when available
49107         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49108         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49109         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49110         This avoids a link failure in a PSP cross-compilation environment
49111         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49112
49113         * lib/vasnprintf.c (divide): Fix typo in comment.
49114
49115 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49116
49117         * gnulib-tool (func_filter_filelist): Fix comment.
49118
49119 2009-03-20  Bruno Haible  <bruno@clisp.org>
49120
49121         Make sockets.h self-contained.
49122         * lib/sockets.c: Include sockets.h first.
49123         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49124
49125 2009-03-19  Eric Blake  <ebb9@byu.net>
49126
49127         doc: mention more functions added in cygwin 1.7.0
49128         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49129         addition.
49130         * doc/posix-functions/log2f.texi: Likewise.
49131
49132 2009-03-19  Jim Meyering  <meyering@redhat.com>
49133
49134         fsusage: avoid syntax error due to statement-before-declaration
49135         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49136         after all declarations.  Reported by Matthew Woehlke in
49137         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49138
49139 2009-03-18  Eric Blake  <ebb9@byu.net>
49140
49141         build-aux/compile: sync from automake
49142         * build-aux/compile: New file, from automake.
49143         * config/srclist.txt: Mention build-aux/compile.
49144
49145 2009-03-17  Bruno Haible  <bruno@clisp.org>
49146
49147         * lib/git-merge-changelog.c: Fix typo in comment.
49148         Reported by Reuben Thomas <rrt@sc3d.org>.
49149
49150 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49151
49152         * m4/regex.m4: update and improve help for
49153         --without-included-regex.
49154
49155 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49156
49157         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49158         failure on missing include files.
49159
49160 2009-03-17  Eric Blake  <ebb9@byu.net>
49161
49162         doc: mention more functions added in cygwin 1.7.0
49163         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49164         addition.
49165         * doc/posix-functions/fwscanf.texi: Likewise.
49166         * doc/posix-functions/swprintf.texi: Likewise.
49167         * doc/posix-functions/swscanf.texi: Likewise.
49168         * doc/posix-functions/vfwprintf.texi: Likewise.
49169         * doc/posix-functions/vfwscanf.texi: Likewise.
49170         * doc/posix-functions/vswprintf.texi: Likewise.
49171         * doc/posix-functions/vswscanf.texi: Likewise.
49172         * doc/posix-functions/vwprintf.texi: Likewise.
49173         * doc/posix-functions/vwscanf.texi: Likewise.
49174         * doc/posix-functions/wcscasecmp.texi: Likewise.
49175         * doc/posix-functions/wcsdup.texi: Likewise.
49176         * doc/posix-functions/wcsftime.texi: Likewise.
49177         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49178         * doc/posix-functions/wprintf.texi: Likewise.
49179         * doc/posix-functions/wscanf.texi: Likewise.
49180         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49181
49182 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49183
49184         maint.mk: really add $(AM_MAKEFLAGS)
49185         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49186         was inadvertently omitted in the last commit.
49187         Spotted by Bruno Haible.
49188
49189         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49190         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49191         $(AM_MAKEFLAGS)' rather than plain `make'.
49192
49193         gnulib-tool: execute $MAKE not make
49194         * gnulib-tool: Default $MAKE to 'make'.
49195         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49196         than make.  Initialize $MAKE in the do-autobuild script.
49197
49198         gnulib-tool: use $MAKE not make in generated files
49199         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49200         make, in generated files.  Initialize $MAKE in the do-autobuild
49201         script.
49202
49203         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49204
49205         GNUmakefile: disable parallelism only for multiple, recursive targets
49206         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49207         additions in the Makefile.
49208         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49209         by Automake.
49210         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49211         are listed on the command line and at least one of them is
49212         listed in $(ALL_RECURSIVE_TARGETS).
49213
49214 2009-03-14  Bruno Haible  <bruno@clisp.org>
49215
49216         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49217         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49218         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49219         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49220         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49221         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49222         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49223         unistr/u8-uctomb.
49224         * modules/unistr/u8-strchr (Depends-on): Likewise.
49225         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49226         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49227         unistr/u16-uctomb.
49228         * modules/unistr/u16-strchr (Depends-on): Likewise.
49229         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49230
49231 2009-03-12  Bruno Haible  <bruno@clisp.org>
49232
49233         Work around select() bug on Interix 3.5.
49234         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49235         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49236         * m4/select.m4: New file.
49237         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49238         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49239         * modules/select (Files): Add m4/select.m4.
49240         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49241         * modules/nanosleep (Depends-on): Add select.
49242         * modules/poll (Depends-on): Likewise.
49243         * doc/posix-functions/select.texi: Mention the Interix bug.
49244         Reported by Markus Duft <mduft@gentoo.org>.
49245
49246         * lib/select.c: Renamed from lib/winsock-select.c.
49247         * modules/select (Files): Add lib/select.c, remove
49248         lib/winsock-select.c.
49249         (configure.ac): Update.
49250
49251 2009-03-12  Jim Meyering  <meyering@redhat.com>
49252
49253         avoid gcc warnings about unused macro definitions
49254         * lib/readtokens.c (STREQ): Remove unused definition.
49255         * lib/xmalloc.c (SIZE_MAX): Likewise.
49256         * lib/openat-die.c (N_): Likewise.
49257         * lib/mountlist.c (SIZE_MAX): Remove definition.
49258         Instead, include <stdint.h>.
49259         * lib/readutmp.c: Likewise.
49260         * modules/readutmp (Depends-on): Add stdint.
49261         * modules/mountlist (Depends-on): Add stdint.
49262         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49263
49264 2009-03-10  Bruno Haible  <bruno@clisp.org>
49265
49266         Tests for module 'mbmemcasecoll'.
49267         * modules/mbmemcasecoll-tests: New file.
49268         * tests/test-mbmemcasecoll1.sh: New file.
49269         * tests/test-mbmemcasecoll2.sh: New file.
49270         * tests/test-mbmemcasecoll3.sh: New file.
49271         * tests/test-mbmemcasecoll.c: New file.
49272
49273         New module 'mbmemcasecoll'.
49274         * lib/mbmemcasecoll.h: New file.
49275         * lib/mbmemcasecoll.c: New file.
49276         * modules/mbmemcasecoll: New file.
49277
49278         * tests/test-mbmemcasecmp.h: New file, extracted from
49279         tests/test-mbmemcasecmp.c.
49280         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49281         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49282         (main): Update.
49283         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49284
49285 2009-03-09  Bruno Haible  <bruno@clisp.org>
49286
49287         Tests for module 'mbmemcasecmp'.
49288         * modules/mbmemcasecmp-tests: New file.
49289         * tests/test-mbmemcasecmp1.sh: New file.
49290         * tests/test-mbmemcasecmp2.sh: New file.
49291         * tests/test-mbmemcasecmp3.sh: New file.
49292         * tests/test-mbmemcasecmp.c: New file.
49293
49294         New module 'mbmemcasecmp'.
49295         * lib/mbmemcasecmp.h: New file.
49296         * lib/mbmemcasecmp.c: New file.
49297         * modules/mbmemcasecmp: New file.
49298
49299 2009-03-09  Bruno Haible  <bruno@clisp.org>
49300
49301         Tests for module 'unicase/ulc-casecoll'.
49302         * modules/unicase/ulc-casecoll-tests: New file.
49303         * tests/unicase/test-ulc-casecoll1.sh: New file.
49304         * tests/unicase/test-ulc-casecoll2.sh: New file.
49305         * tests/unicase/test-ulc-casecoll.c: New file.
49306
49307         New module 'unicase/ulc-casecoll'.
49308         * lib/unicase.h (ulc_casecoll): New declaration.
49309         * lib/unicase/ulc-casecoll.c: New file.
49310         * modules/unicase/ulc-casecoll: New file.
49311
49312         New module 'unicase/ulc-casexfrm'.
49313         * lib/unicase.h (ulc_casexfrm): New declaration.
49314         * lib/unicase/ulc-casexfrm.c: New file.
49315         * modules/unicase/ulc-casexfrm: New file.
49316
49317 2009-03-09  Bruno Haible  <bruno@clisp.org>
49318
49319         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49320         invocations.
49321
49322         * m4/mbscasecmp.m4: Remove file.
49323         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49324         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49325
49326         * m4/mbscasestr.m4: Remove file.
49327         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49328         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49329
49330         * m4/mbschr.m4: Remove file.
49331         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49332         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49333
49334         * m4/mbscspn.m4: Remove file.
49335         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49336         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49337
49338         * m4/mbslen.m4: Remove file.
49339         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49340         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49341
49342         * m4/mbsncasecmp.m4: Remove file.
49343         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49344         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49345
49346         * m4/mbsnlen.m4: Remove file.
49347         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49348         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49349
49350         * m4/mbspbrk.m4: Remove file.
49351         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49352         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49353
49354         * m4/mbspcasecmp.m4: Remove file.
49355         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49356         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49357
49358         * m4/mbsrchr.m4: Remove file.
49359         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49360         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49361
49362         * m4/mbssep.m4: Remove file.
49363         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49364         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49365
49366         * m4/mbsspn.m4: Remove file.
49367         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49368         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49369
49370         * m4/mbsstr.m4: Remove file.
49371         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49372         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49373
49374         * m4/mbstok_r.m4: Remove file.
49375         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49376         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49377
49378         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49379
49380         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49381         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49382
49383         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49384
49385 2009-03-08  Bruno Haible  <bruno@clisp.org>
49386
49387         Tests for module 'unicase/ulc-casecmp'.
49388         * modules/unicase/ulc-casecmp-tests: New file.
49389         * tests/unicase/test-ulc-casecmp1.sh: New file.
49390         * tests/unicase/test-ulc-casecmp2.sh: New file.
49391         * tests/unicase/test-ulc-casecmp.c: New file.
49392
49393         New module 'unicase/ulc-casecmp'.
49394         * lib/unicase.h (ulc_casecmp): New declaration.
49395         * lib/unicase/ulc-casecmp.c: New file.
49396         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49397         'const SRC_UNIT *'.
49398         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49399         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49400         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49401         * modules/unicase/ulc-casecmp: New file.
49402
49403         Tests for module 'unicase/u32-is-cased'.
49404         * modules/unicase/u32-is-cased-tests: New file.
49405         * tests/unicase/test-u32-is-cased.c: New file.
49406
49407         Tests for module 'unicase/u16-is-cased'.
49408         * modules/unicase/u16-is-cased-tests: New file.
49409         * tests/unicase/test-u16-is-cased.c: New file.
49410
49411         Tests for module 'unicase/u8-is-cased'.
49412         * modules/unicase/u8-is-cased-tests: New file.
49413         * tests/unicase/test-u8-is-cased.c: New file.
49414         * tests/unicase/test-is-cased.h: New file.
49415
49416         New module 'unicase/u32-is-cased'.
49417         * lib/unicase/u32-is-cased.c: New file.
49418         * modules/unicase/u32-is-cased: New file.
49419
49420         New module 'unicase/u16-is-cased'.
49421         * lib/unicase/u16-is-cased.c: New file.
49422         * modules/unicase/u16-is-cased: New file.
49423
49424         New module 'unicase/u8-is-cased'.
49425         * lib/unicase/u8-is-cased.c: New file.
49426         * lib/unicase/u-is-cased.h: New file.
49427         * modules/unicase/u8-is-cased: New file.
49428
49429         Tests for module 'unicase/u32-is-casefolded'.
49430         * modules/unicase/u32-is-casefolded-tests: New file.
49431         * tests/unicase/test-u32-is-casefolded.c: New file.
49432
49433         Tests for module 'unicase/u16-is-casefolded'.
49434         * modules/unicase/u16-is-casefolded-tests: New file.
49435         * tests/unicase/test-u16-is-casefolded.c: New file.
49436
49437         Tests for module 'unicase/u8-is-casefolded'.
49438         * modules/unicase/u8-is-casefolded-tests: New file.
49439         * tests/unicase/test-u8-is-casefolded.c: New file.
49440         * tests/unicase/test-is-casefolded.h: New file.
49441
49442         New module 'unicase/u32-is-casefolded'.
49443         * lib/unicase/u32-is-casefolded.c: New file.
49444         * modules/unicase/u32-is-casefolded: New file.
49445
49446         New module 'unicase/u16-is-casefolded'.
49447         * lib/unicase/u16-is-casefolded.c: New file.
49448         * modules/unicase/u16-is-casefolded: New file.
49449
49450         New module 'unicase/u8-is-casefolded'.
49451         * lib/unicase/u8-is-casefolded.c: New file.
49452         * modules/unicase/u8-is-casefolded: New file.
49453
49454         Tests for module 'unicase/u32-is-titlecase'.
49455         * modules/unicase/u32-is-titlecase-tests: New file.
49456         * tests/unicase/test-u32-is-titlecase.c: New file.
49457
49458         Tests for module 'unicase/u16-is-titlecase'.
49459         * modules/unicase/u16-is-titlecase-tests: New file.
49460         * tests/unicase/test-u16-is-titlecase.c: New file.
49461
49462         Tests for module 'unicase/u8-is-titlecase'.
49463         * modules/unicase/u8-is-titlecase-tests: New file.
49464         * tests/unicase/test-u8-is-titlecase.c: New file.
49465         * tests/unicase/test-is-titlecase.h: New file.
49466
49467         New module 'unicase/u32-is-titlecase'.
49468         * lib/unicase/u32-is-titlecase.c: New file.
49469         * modules/unicase/u32-is-titlecase: New file.
49470
49471         New module 'unicase/u16-is-titlecase'.
49472         * lib/unicase/u16-is-titlecase.c: New file.
49473         * modules/unicase/u16-is-titlecase: New file.
49474
49475         New module 'unicase/u8-is-titlecase'.
49476         * lib/unicase/u8-is-titlecase.c: New file.
49477         * modules/unicase/u8-is-titlecase: New file.
49478
49479         Tests for module 'unicase/u32-is-lowercase'.
49480         * modules/unicase/u32-is-lowercase-tests: New file.
49481         * tests/unicase/test-u32-is-lowercase.c: New file.
49482
49483         Tests for module 'unicase/u16-is-lowercase'.
49484         * modules/unicase/u16-is-lowercase-tests: New file.
49485         * tests/unicase/test-u16-is-lowercase.c: New file.
49486
49487         Tests for module 'unicase/u8-is-lowercase'.
49488         * modules/unicase/u8-is-lowercase-tests: New file.
49489         * tests/unicase/test-u8-is-lowercase.c: New file.
49490         * tests/unicase/test-is-lowercase.h: New file.
49491
49492         New module 'unicase/u32-is-lowercase'.
49493         * lib/unicase/u32-is-lowercase.c: New file.
49494         * modules/unicase/u32-is-lowercase: New file.
49495
49496         New module 'unicase/u16-is-lowercase'.
49497         * lib/unicase/u16-is-lowercase.c: New file.
49498         * modules/unicase/u16-is-lowercase: New file.
49499
49500         New module 'unicase/u8-is-lowercase'.
49501         * lib/unicase/u8-is-lowercase.c: New file.
49502         * modules/unicase/u8-is-lowercase: New file.
49503
49504         Tests for module 'unicase/u32-is-uppercase'.
49505         * modules/unicase/u32-is-uppercase-tests: New file.
49506         * tests/unicase/test-u32-is-uppercase.c: New file.
49507
49508         Tests for module 'unicase/u16-is-uppercase'.
49509         * modules/unicase/u16-is-uppercase-tests: New file.
49510         * tests/unicase/test-u16-is-uppercase.c: New file.
49511
49512         Tests for module 'unicase/u8-is-uppercase'.
49513         * modules/unicase/u8-is-uppercase-tests: New file.
49514         * tests/unicase/test-u8-is-uppercase.c: New file.
49515         * tests/unicase/test-is-uppercase.h: New file.
49516
49517         New module 'unicase/u32-is-uppercase'.
49518         * lib/unicase/u32-is-uppercase.c: New file.
49519         * modules/unicase/u32-is-uppercase: New file.
49520
49521         New module 'unicase/u16-is-uppercase'.
49522         * lib/unicase/u16-is-uppercase.c: New file.
49523         * modules/unicase/u16-is-uppercase: New file.
49524
49525         New module 'unicase/u8-is-uppercase'.
49526         * lib/unicase/u8-is-uppercase.c: New file.
49527         * modules/unicase/u8-is-uppercase: New file.
49528
49529         New module 'unicase/u32-is-invariant'.
49530         * lib/unicase/u32-is-invariant.c: New file.
49531         * modules/unicase/u32-is-invariant: New file.
49532
49533         New module 'unicase/u16-is-invariant'.
49534         * lib/unicase/u16-is-invariant.c: New file.
49535         * modules/unicase/u16-is-invariant: New file.
49536
49537         New module 'unicase/u8-is-invariant'.
49538         * lib/unicase/u8-is-invariant.c: New file.
49539         * lib/unicase/invariant.h: New file.
49540         * lib/unicase/u-is-invariant.h: New file.
49541         * modules/unicase/u8-is-invariant: New file.
49542
49543         Tests for module 'unicase/u32-casecoll'.
49544         * modules/unicase/u32-casecoll-tests: New file.
49545         * tests/unicase/test-u32-casecoll.c: New file.
49546
49547         Tests for module 'unicase/u16-casecoll'.
49548         * modules/unicase/u16-casecoll-tests: New file.
49549         * tests/unicase/test-u16-casecoll.c: New file.
49550
49551         Tests for module 'unicase/u8-casecoll'.
49552         * modules/unicase/u8-casecoll-tests: New file.
49553         * tests/unicase/test-u8-casecoll.c: New file.
49554
49555         New module 'unicase/u32-casecoll'.
49556         * lib/unicase/u32-casecoll.c: New file.
49557         * modules/unicase/u32-casecoll: New file.
49558
49559         New module 'unicase/u16-casecoll'.
49560         * lib/unicase/u16-casecoll.c: New file.
49561         * modules/unicase/u16-casecoll: New file.
49562
49563         New module 'unicase/u8-casecoll'.
49564         * lib/unicase/u8-casecoll.c: New file.
49565         * lib/unicase/u-casecoll.h: New file.
49566         * modules/unicase/u8-casecoll: New file.
49567
49568         New module 'unicase/u32-casexfrm'.
49569         * lib/unicase/u32-casexfrm.c: New file.
49570         * modules/unicase/u32-casexfrm: New file.
49571
49572         New module 'unicase/u16-casexfrm'.
49573         * lib/unicase/u16-casexfrm.c: New file.
49574         * modules/unicase/u16-casexfrm: New file.
49575
49576         New module 'unicase/u8-casexfrm'.
49577         * lib/unicase/u8-casexfrm.c: New file.
49578         * lib/unicase/u-casexfrm.h: New file.
49579         * modules/unicase/u8-casexfrm: New file.
49580
49581         Tests for module 'unicase/u32-casecmp'.
49582         * modules/unicase/u32-casecmp-tests: New file.
49583         * tests/unicase/test-u32-casecmp.c: New file.
49584
49585         Tests for module 'unicase/u16-casecmp'.
49586         * modules/unicase/u16-casecmp-tests: New file.
49587         * tests/unicase/test-u16-casecmp.c: New file.
49588
49589         Tests for module 'unicase/u8-casecmp'.
49590         * modules/unicase/u8-casecmp-tests: New file.
49591         * tests/unicase/test-u8-casecmp.c: New file.
49592         * tests/unicase/test-casecmp.h: New file.
49593
49594         New module 'unicase/u32-casecmp'.
49595         * lib/unicase/u32-casecmp.c: New file.
49596         * modules/unicase/u32-casecmp: New file.
49597
49598         New module 'unicase/u16-casecmp'.
49599         * lib/unicase/u16-casecmp.c: New file.
49600         * modules/unicase/u16-casecmp: New file.
49601
49602         New module 'unicase/u8-casecmp'.
49603         * lib/unicase/u8-casecmp.c: New file.
49604         * lib/unicase/u-casecmp.h: New file.
49605         * modules/unicase/u8-casecmp: New file.
49606
49607         Tests for module 'unicase/u32-casefold'.
49608         * modules/unicase/u32-casefold-tests: New file.
49609         * tests/unicase/test-u32-casefold.c: New file.
49610
49611         Tests for module 'unicase/u16-casefold'.
49612         * modules/unicase/u16-casefold-tests: New file.
49613         * tests/unicase/test-u16-casefold.c: New file.
49614
49615         Tests for module 'unicase/u8-casefold'.
49616         * modules/unicase/u8-casefold-tests: New file.
49617         * tests/unicase/test-u8-casefold.c: New file.
49618
49619         New module 'unicase/u32-casefold'.
49620         * lib/unicase/u32-casefold.c: New file.
49621         * modules/unicase/u32-casefold: New file.
49622
49623         New module 'unicase/u16-casefold'.
49624         * lib/unicase/u16-casefold.c: New file.
49625         * modules/unicase/u16-casefold: New file.
49626
49627         New module 'unicase/u8-casefold'.
49628         * lib/unicase/u8-casefold.c: New file.
49629         * lib/unicase/u-casefold.h: New file.
49630         * modules/unicase/u8-casefold: New file.
49631
49632         New module 'unicase/tocasefold'.
49633         * lib/unicase/casefold.h: New file.
49634         * lib/unicase/tocasefold.c: New file.
49635         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49636         * modules/unicase/tocasefold: New file.
49637
49638         Tests for module 'unicase/u32-totitle'.
49639         * modules/unicase/u32-totitle-tests: New file.
49640         * tests/unicase/test-u32-totitle.c: New file.
49641
49642         Tests for module 'unicase/u16-totitle'.
49643         * modules/unicase/u16-totitle-tests: New file.
49644         * tests/unicase/test-u16-totitle.c: New file.
49645
49646         Tests for module 'unicase/u8-totitle'.
49647         * modules/unicase/u8-totitle-tests: New file.
49648         * tests/unicase/test-u8-totitle.c: New file.
49649
49650         New module 'unicase/u32-totitle'.
49651         * lib/unicase/u32-totitle.c: New file.
49652         * modules/unicase/u32-totitle: New file.
49653
49654         New module 'unicase/u16-totitle'.
49655         * lib/unicase/u16-totitle.c: New file.
49656         * modules/unicase/u16-totitle: New file.
49657
49658         New module 'unicase/u8-totitle'.
49659         * lib/unicase/u8-totitle.c: New file.
49660         * lib/unicase/u-totitle.h: New file.
49661         * modules/unicase/u8-totitle: New file.
49662
49663         Tests for module 'unicase/u32-tolower'.
49664         * modules/unicase/u32-tolower-tests: New file.
49665         * tests/unicase/test-u32-tolower.c: New file.
49666
49667         Tests for module 'unicase/u16-tolower'.
49668         * modules/unicase/u16-tolower-tests: New file.
49669         * tests/unicase/test-u16-tolower.c: New file.
49670
49671         Tests for module 'unicase/u8-tolower'.
49672         * modules/unicase/u8-tolower-tests: New file.
49673         * tests/unicase/test-u8-tolower.c: New file.
49674
49675         New module 'unicase/u32-tolower'.
49676         * lib/unicase/u32-tolower.c: New file.
49677         * modules/unicase/u32-tolower: New file.
49678
49679         New module 'unicase/u16-tolower'.
49680         * lib/unicase/u16-tolower.c: New file.
49681         * modules/unicase/u16-tolower: New file.
49682
49683         New module 'unicase/u8-tolower'.
49684         * lib/unicase/u8-tolower.c: New file.
49685         * modules/unicase/u8-tolower: New file.
49686
49687         Tests for module 'unicase/u32-toupper'.
49688         * modules/unicase/u32-toupper-tests: New file.
49689         * tests/unicase/test-u32-toupper.c: New file.
49690
49691         Tests for module 'unicase/u16-toupper'.
49692         * modules/unicase/u16-toupper-tests: New file.
49693         * tests/unicase/test-u16-toupper.c: New file.
49694
49695         Tests for module 'unicase/u8-toupper'.
49696         * modules/unicase/u8-toupper-tests: New file.
49697         * tests/unicase/test-u8-toupper.c: New file.
49698
49699         New module 'unicase/u32-toupper'.
49700         * lib/unicase/u32-toupper.c: New file.
49701         * modules/unicase/u32-toupper: New file.
49702
49703         New module 'unicase/u16-toupper'.
49704         * lib/unicase/u16-toupper.c: New file.
49705         * modules/unicase/u16-toupper: New file.
49706
49707         New module 'unicase/u8-toupper'.
49708         * lib/unicase/u8-toupper.c: New file.
49709         * modules/unicase/u8-toupper: New file.
49710
49711         New module 'unicase/u32-casemap'.
49712         * lib/unicase/u32-casemap.c: New file.
49713         * modules/unicase/u32-casemap: New file.
49714
49715         New module 'unicase/u16-casemap'.
49716         * lib/unicase/u16-casemap.c: New file.
49717         * modules/unicase/u16-casemap: New file.
49718
49719         New module 'unicase/u8-casemap'.
49720         * lib/unicase/unicasemap.h: New file.
49721         * lib/unicase/u8-casemap.c: New file.
49722         * lib/unicase/u-casemap.h: New file.
49723         * modules/unicase/u8-casemap: New file.
49724
49725         New module 'unicase/special-casing'.
49726         * lib/unicase/special-casing.h: New file.
49727         * lib/unicase/special-casing.c: New file.
49728         * lib/unicase/special-casing-table.gperf: New file, generated by
49729         gen-uni-tables.c.
49730         * modules/unicase/special-casing: New file.
49731
49732         Tests for module 'unicase/locale-language'.
49733         * modules/unicase/locale-language-tests: New file.
49734         * tests/unicase/test-locale-language.sh: New file.
49735         * tests/unicase/test-locale-language.c: New file.
49736
49737         New module 'unicase/locale-language'.
49738         * lib/unicase/locale-language.c: New file.
49739         * lib/unicase/locale-languages.gperf: New file.
49740         * modules/unicase/locale-language: New file.
49741
49742         Generate more tables for case conversion and case folding.
49743         * lib/gen-uni-tables.c (SCC_*): New enum items.
49744         (struct special_casing_rule): New type.
49745         (casing_rules, num_casing_rules, allocated_casing_rules): New
49746         variables.
49747         (add_casing_rule, fill_casing_rules): New functions.
49748         (struct casefold_rule): New type.
49749         (casefolding_rules, num_casefolding_rules,
49750         allocated_casefolding_rules): New variables.
49751         (fill_casefolding_rules): New function.
49752         (unicode_casefold): New variable.
49753         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49754         sort_casing_rules, output_casing_rules): New functions.
49755         (main): Accept to more arguments: SpecialCasing.txt and
49756         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49757         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49758         Output mapping for casefolding.
49759
49760         * lib/unicase.h: Include stdbool.h, uninorm.h.
49761         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49762         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49763         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49764         arguments.
49765         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49766         resultp arguments.
49767         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49768         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49769         resultp arguments.
49770         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49771         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49772         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49773         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49774         declarations.
49775         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49776
49777 2009-03-08  Bruno Haible  <bruno@clisp.org>
49778
49779         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49780         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49781         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49782         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49783
49784 2009-03-07  Bruno Haible  <bruno@clisp.org>
49785
49786         Adjust u*_normcmp, u*_normcoll API.
49787         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49788         u16_normcoll, u32_normcoll): Change failure conventions.
49789         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49790         errno and return -1.
49791         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49792
49793 2009-03-07  Bruno Haible  <bruno@clisp.org>
49794
49795         Tests for module 'uninorm/u32-normcoll'.
49796         * modules/uninorm/u32-normcoll-tests: New file.
49797         * tests/uninorm/test-u32-normcoll.c: New file.
49798
49799         Tests for module 'uninorm/u16-normcoll'.
49800         * modules/uninorm/u16-normcoll-tests: New file.
49801         * tests/uninorm/test-u16-normcoll.c: New file.
49802
49803         Tests for module 'uninorm/u8-normcoll'.
49804         * modules/uninorm/u8-normcoll-tests: New file.
49805         * tests/uninorm/test-u8-normcoll.c: New file.
49806
49807 2009-03-07  Bruno Haible  <bruno@clisp.org>
49808
49809         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49810         tests/uninorm/test-u32-normcmp.c.
49811         * tests/uninorm/test-u32-normcmp.c: Include it.
49812         (test_nonascii): New function, extracted from main. Add some more
49813         tests.
49814         (main): Invoke test_ascii and test_nonascii.
49815         * modules/uninorm/u32-normcmp-tests (Files): Add
49816         tests/uninorm/test-u32-normcmp.h.
49817         (Depends-on): Remove uninorm/u32-normcmp.
49818
49819         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49820         tests/uninorm/test-u16-normcmp.c.
49821         * tests/uninorm/test-u16-normcmp.c: Include it.
49822         (test_nonascii): New function, extracted from main. Add some more
49823         tests.
49824         (main): Invoke test_ascii and test_nonascii.
49825         * modules/uninorm/u16-normcmp-tests (Files): Add
49826         tests/uninorm/test-u16-normcmp.h.
49827         (Depends-on): Remove uninorm/u16-normcmp.
49828
49829         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49830         tests/uninorm/test-u8-normcmp.c.
49831         * tests/uninorm/test-u8-normcmp.c: Include it.
49832         (test_nonascii): New function, extracted from main. Add some more
49833         tests.
49834         (main): Invoke test_ascii and test_nonascii.
49835         * modules/uninorm/u8-normcmp-tests (Files): Add
49836         tests/uninorm/test-u8-normcmp.h.
49837         (Depends-on): Remove uninorm/u8-normcmp.
49838
49839 2009-03-07  Bruno Haible  <bruno@clisp.org>
49840
49841         New module 'uninorm/u32-normcoll'.
49842         * lib/uninorm/u32-normcoll.c: New file.
49843         * modules/uninorm/u32-normcoll: New file.
49844
49845         New module 'uninorm/u16-normcoll'.
49846         * lib/uninorm/u16-normcoll.c: New file.
49847         * modules/uninorm/u16-normcoll: New file.
49848
49849         New module 'uninorm/u8-normcoll'.
49850         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49851         declarations.
49852         * lib/uninorm/u8-normcoll.c: New file.
49853         * lib/uninorm/u-normcoll.h: New file.
49854         * modules/uninorm/u8-normcoll: New file.
49855
49856         New module 'uninorm/u32-normxfrm'.
49857         * lib/uninorm/u32-normxfrm.c: New file.
49858         * modules/uninorm/u32-normxfrm: New file.
49859
49860         New module 'uninorm/u16-normxfrm'.
49861         * lib/uninorm/u16-normxfrm.c: New file.
49862         * modules/uninorm/u16-normxfrm: New file.
49863
49864         New module 'uninorm/u8-normxfrm'.
49865         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49866         declarations.
49867         * lib/uninorm/u8-normxfrm.c: New file.
49868         * lib/uninorm/u-normxfrm.h: New file.
49869         * modules/uninorm/u8-normxfrm: New file.
49870
49871 2009-03-07  Bruno Haible  <bruno@clisp.org>
49872
49873         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49874         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49875         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49876
49877 2009-03-07  Bruno Haible  <bruno@clisp.org>
49878
49879         New module 'memxfrm'.
49880         * lib/memxfrm.h: New file.
49881         * lib/memxfrm.c: New file.
49882         * modules/memxfrm: New file.
49883
49884 2009-03-07  Bruno Haible  <bruno@clisp.org>
49885
49886         New module 'memcmp2'.
49887         * lib/memcmp2.h: New file.
49888         * lib/memcmp2.c: New file.
49889         * modules/memcmp2: New file.
49890
49891 2009-03-07  Bruno Haible  <bruno@clisp.org>
49892
49893         Tests for module 'uninorm/decomposing-form'.
49894         * modules/uninorm/decomposing-form-tests: New file.
49895         * tests/uninorm/test-decomposing-form.c: New file.
49896
49897         New module 'uninorm/decomposing-form'.
49898         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49899         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49900         Add 'decomposing_variant' field.
49901         * lib/uninorm/decomposing-form.c: New file.
49902         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49903         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49904         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49905         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49906         * modules/uninorm/decomposing-form: New file.
49907         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49908         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49909
49910 2009-03-07  Bruno Haible  <bruno@clisp.org>
49911
49912         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49913         strings.
49914
49915 2009-03-06  Bruno Haible  <bruno@clisp.org>
49916
49917         Tests for module 'uninorm/u32-normcmp'.
49918         * tests/uninorm/test-u32-normcmp.c: New file.
49919         * modules/uninorm/u32-normcmp-tests: New file.
49920
49921         Tests for module 'uninorm/u16-normcmp'.
49922         * tests/uninorm/test-u16-normcmp.c: New file.
49923         * modules/uninorm/u16-normcmp-tests: New file.
49924
49925         Tests for module 'uninorm/u8-normcmp'.
49926         * tests/uninorm/test-u8-normcmp.c: New file.
49927         * modules/uninorm/u8-normcmp-tests: New file.
49928
49929         New module 'uninorm/u32-normcmp'.
49930         * lib/uninorm/u32-normcmp.c: New file.
49931         * modules/uninorm/u32-normcmp: New file.
49932
49933         New module 'uninorm/u16-normcmp'.
49934         * lib/uninorm/u16-normcmp.c: New file.
49935         * modules/uninorm/u16-normcmp: New file.
49936
49937         New module 'uninorm/u8-normcmp'.
49938         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49939         declarations.
49940         * lib/uninorm/u8-normcmp.c: New file.
49941         * lib/uninorm/u-normcmp.h: New file.
49942         * modules/uninorm/u8-normcmp: New file.
49943
49944 2009-03-06  Bruno Haible  <bruno@clisp.org>
49945
49946         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49947         Reported by Eric Blake.
49948
49949 2009-03-06  Eric Blake  <ebb9@byu.net>
49950             Bruno Haible  <bruno@clisp.org>
49951
49952         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49953         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49954         condition.
49955         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49956         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49957         condition.
49958         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49959
49960 2009-03-06  Eric Blake  <ebb9@byu.net>
49961
49962         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49963         to avoid compiler warnings.
49964         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49965
49966 2009-03-05  Bruno Haible  <bruno@clisp.org>
49967
49968         * tests/test-ftell.c (main): Disable test beyond end of file on
49969         FreeMiNT.
49970         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49971
49972 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49973
49974         * lib/filevercmp.c: Move hidden files up in ordering.
49975         * tests/test-filevercmp.c: Add tests for hidden files.
49976
49977 2009-03-04  Bruno Haible  <bruno@clisp.org>
49978
49979         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49980         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49981         AM_CFLAGS.
49982         Reported by Simon Josefsson.
49983
49984 2009-03-03  Bruno Haible  <bruno@clisp.org>
49985
49986         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49987         Reported by Simon Josefsson.
49988
49989         * doc/ld-version-script.texi: Update node reference.
49990
49991 2009-03-03  Bruno Haible  <bruno@clisp.org>
49992
49993         * modules/visibility (License): Change to 'unlimited'.
49994         Suggested by Simon Josefsson.
49995
49996 2009-03-03  Jim Meyering  <meyering@redhat.com>
49997
49998         unlinkdir: cannot_unlink_dir may modify process state
49999         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50000         it's neither thread-safe nor appropriate for use in a library.
50001
50002 2009-03-03  Eric Blake  <ebb9@byu.net>
50003
50004         test-closein: silence test under Darwin
50005         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50006         care if it dies from EPIPE or EBADF.
50007
50008 2009-03-03  Bruno Haible  <bruno@clisp.org>
50009
50010         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50011         earlier.
50012         * doc/visibility.texi: Fix @node and @section.
50013
50014 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50015
50016         * doc/gnulib.texi: Link to sections for ld version script and
50017         visibility.
50018         * doc/visibility.texi: Add @node and @section.
50019         * modules/ld-version-script: New module.
50020         * m4/ld-version-script.m4: New file.
50021         * doc/ld-version-script.texi: New file.
50022
50023 2009-03-02  David Lutterkort  <lutter@redhat.com>
50024
50025         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50027
50028 2009-03-02  Bruno Haible  <bruno@clisp.org>
50029
50030         * doc/visibility.texi: Mention libtool's -export-symbols option.
50031
50032 2009-03-02  Jim Meyering  <meyering@redhat.com>
50033
50034         announce-gen: new option: --no-print-checksums
50035         * build-aux/announce-gen (usage): Describe it.
50036         (print_checksums): Print a newline here, not in the [*] footnote.
50037         (main): Honor it.
50038
50039 2009-03-01  Bruno Haible  <bruno@clisp.org>
50040
50041         Use socklen_t in the native Windows replacements prototypes.
50042         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50043         instead of 'int'.
50044         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50045         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50046         * modules/getsockopt (Depends-on): Add socklen.
50047         * modules/setsockopt (Depends-on): Add socklen.
50048
50049 2009-03-01  Bruno Haible  <bruno@clisp.org>
50050
50051         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50052         least 4.2.
50053
50054 2009-03-01  Eric Blake  <ebb9@byu.net>
50055             Bruno Haible  <bruno@clisp.org>
50056
50057         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50058         error messages.
50059         * lib/wait-process.c (wait_subprocess): Omit error message about
50060         deadly signal sent to the child of termsigp != NULL.
50061
50062 2009-03-01  Eric Blake  <ebb9@byu.net>
50063
50064         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50065
50066 2009-03-01  Bruno Haible  <bruno@clisp.org>
50067
50068         Avoid a gcc warning.
50069         * tests/test-sched.c (b): Make global.
50070         Reported by Eric Blake.
50071
50072 2009-01-19  Martin Lambers  <marlam@marlam.de>
50073
50074         Provide POSIX semantics for socket timeout options on W32.
50075         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50076         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50077         * modules/setsockopt: Depend on sys_time module for struct timeval.
50078         * modules/getsockopt: Depend on sys_time module for struct timeval.
50079
50080 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50081
50082         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50083         __USE_GNU, for consistency with netdb.in.h.
50084         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50085
50086 2009-03-01  Bruno Haible  <bruno@clisp.org>
50087
50088         More support for FreeMiNT.
50089         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50090         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50091
50092 2009-03-01  Bruno Haible  <bruno@clisp.org>
50093
50094         More support for FreeMiNT.
50095         * lib/fpurge.c (fpurge): Correct last commit.
50096         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50097
50098 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50099
50100         Fix unportable awk script in vc-list-files.
50101         * build-aux/vc-list-files: In the replacement awk script, use
50102         substr with a second argument of 1, not zero.
50103         Report by Simon Josefsson.
50104
50105 2009-02-28  Bruno Haible  <bruno@clisp.org>
50106
50107         More support for FreeMiNT.
50108         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50109         to FreeMiNT today.
50110         * lib/fwriting.c (fwriting): Likewise.
50111         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50112
50113 2009-02-28  Bruno Haible  <bruno@clisp.org>
50114
50115         * tests/test-freadseek.c (main): Disable test beyond end of file on
50116         FreeMiNT.
50117         * tests/test-ftello.c (main): Likewise.
50118         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50119
50120 2009-02-28  Bruno Haible  <bruno@clisp.org>
50121
50122         Add tentative support for FreeMiNT.
50123         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50124         * lib/fpurge.c (fpurge): Likewise.
50125         * lib/freadable.c (freadable): Likewise.
50126         * lib/freading.c (freading): Likewise.
50127         * lib/freadptr.c (freadptr): Likewise.
50128         * lib/freadseek.c (freadptrinc): Likewise.
50129         * lib/fseeko.c (rpl_fseeko): Likewise.
50130         * lib/fseterr.c (fseterr): Likewise.
50131         * lib/fwritable.c (fwritable): Likewise.
50132         * lib/fwriting.c (fwriting): Likewise.
50133         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50134         Hourihane.
50135         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50136
50137 2009-02-28  Bruno Haible  <bruno@clisp.org>
50138
50139         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50140         SIGCHLD.
50141         Reported by Jim Meyering.
50142
50143 2009-02-28  Bruno Haible  <bruno@clisp.org>
50144
50145         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50146         Mention the results of these tests on various platforms.
50147         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50148         order.
50149         * doc/posix-functions/printf.texi: Likewise.
50150         * doc/posix-functions/snprintf.texi: Likewise.
50151         * doc/posix-functions/sprintf.texi: Likewise.
50152         * doc/posix-functions/vfprintf.texi: Likewise.
50153         * doc/posix-functions/vprintf.texi: Likewise.
50154         * doc/posix-functions/vsnprintf.texi: Likewise.
50155         * doc/posix-functions/vsprintf.texi: Likewise.
50156         * doc/glibc-functions/obstack_printf.texi: Likewise.
50157         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50158
50159 2009-02-28  Bruno Haible  <bruno@clisp.org>
50160
50161         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50162         Reported by Loïc Minier <lool@dooz.org>.
50163
50164 2009-02-27  Bruno Haible  <bruno@clisp.org>
50165
50166         * gnulib-tool (func_import): Make the sed expression used to create the
50167         sed script for updating the .gitignore file POSIX compliant.
50168         Reported by Eric Blake.
50169
50170 2009-02-27  Bruno Haible  <bruno@clisp.org>
50171
50172         * gnulib-tool (sed): Don't alias as "sed --posix".
50173         Reported by Eric Blake.
50174
50175 2009-02-27  Bruno Haible  <bruno@clisp.org>
50176
50177         Avoid test link errors.
50178         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50179         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50180         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50181         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50183
50184 2009-02-27  Bruno Haible  <bruno@clisp.org>
50185
50186         Avoid spurious "(cached)" in configure output.
50187         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50188         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50189         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50190         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50191         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50192         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50193         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50194         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50195         Reported by Eric Blake.
50196
50197 2009-02-27  Eric Blake  <ebb9@byu.net>
50198
50199         printf: fix regression in previous patch
50200         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50201
50202 2009-02-27  Bruno Haible  <bruno@clisp.org>
50203
50204         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50205         value.
50206         * lib/stdint.in.h: Likewise.
50207         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50208
50209 2009-02-27  Eric Blake  <ebb9@byu.net>
50210
50211         doc: mention more functions added in cygwin 1.7.0
50212         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50213         addition.
50214         * doc/posix-functions/open_wmemstream.texi: Likewise.
50215         * doc/posix-functions/wcsnlen.texi: Likewise.
50216         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50217         * doc/posix-functions/wcstod.texi: Likewise.
50218         * doc/posix-functions/wcstof.texi: Likewise.
50219         * doc/posix-functions/wcstoimax.texi: Likewise.
50220         * doc/posix-functions/wcstok.texi: Likewise.
50221         * doc/posix-functions/wcstoumax.texi: Likewise.
50222
50223         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50225         * doc/posix-functions/fprintf.texi: Update.
50226         * doc/posix-functions/printf.texi: Update.
50227         * doc/posix-functions/snprintf.texi: Update.
50228         * doc/posix-functions/sprintf.texi: Update.
50229         * doc/posix-functions/vfprintf.texi: Update.
50230         * doc/posix-functions/vprintf.texi: Update.
50231         * doc/posix-functions/vsnprintf.texi: Update.
50232         * doc/posix-functions/vsprintf.texi: Update.
50233         * doc/glibc-functions/obstack_printf.texi: Update.
50234         * doc/glibc-functions/obstack_vprintf.texi: Update.
50235
50236 2009-02-26  Eric Blake  <ebb9@byu.net>
50237
50238         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50239         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50240         compilation bug by using runtime conversion.
50241         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50242         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50243         * modules/ceill-tests (Files): Use nan.h.
50244         * modules/floorl-tests (Files): Likewise.
50245         * modules/frexpl-tests (Files): Likewise.
50246         * modules/isnanl-tests (Files): Likewise.
50247         * modules/ldexpl-tests (Files): Likewise.
50248         * modules/roundl-tests (Files): Likewise.
50249         * modules/truncl-tests (Files): Likewise.
50250         * tests/test-ceill.c (main): Use a working NaN.
50251         * tests/test-floorl.c (main): Likewise.
50252         * tests/test-frexpl.c (main): Likewise.
50253         * tests/test-isnan.c (test_long_double): Likewise.
50254         * tests/test-isnanl.h (main): Likewise.
50255         * tests/test-ldexpl.h (main): Likewise.
50256         * tests/test-roundl.h (main): Likewise.
50257         * tests/test-truncl.h (main): Likewise.
50258         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50259
50260 2009-02-26  Eric Blake  <ebb9@byu.net>
50261             Bruno Haible  <bruno@clisp.org>
50262
50263         Work around a *printf bug with %ls on Solaris.
50264         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50265         precision is specified, sprintf stops converting the wide string
50266         argument when the number of bytes that have been produced by this
50267         conversion equals or exceeds the precision.
50268         * doc/posix-functions/fprintf.texi: Update.
50269         * doc/posix-functions/printf.texi: Update.
50270         * doc/posix-functions/snprintf.texi: Update.
50271         * doc/posix-functions/sprintf.texi: Update.
50272         * doc/posix-functions/vfprintf.texi: Update.
50273         * doc/posix-functions/vprintf.texi: Update.
50274         * doc/posix-functions/vsnprintf.texi: Update.
50275         * doc/posix-functions/vsprintf.texi: Update.
50276         * doc/glibc-functions/obstack_printf.texi: Update.
50277         * doc/glibc-functions/obstack_vprintf.texi: Update.
50278
50279 2009-02-26  Eric Blake  <ebb9@byu.net>
50280
50281         stdlib: favor compiler check of random.h
50282         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50283         to avoid an ObjC random.h installed by Swarm.
50284
50285 2009-02-26  Bruno Haible  <bruno@clisp.org>
50286
50287         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50288         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50289         Reported by Gary V. Vaughan <gary@gnu.org>.
50290
50291 2009-02-26  Bruno Haible  <bruno@clisp.org>
50292
50293         Fix *printf behaviour regarding the %ls directive.
50294         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50295         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50296         NEED_PRINTF_DIRECTIVE_LS.
50297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50298         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50300         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50301         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50302         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50303         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50305         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50308         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50309         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50310         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50311         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50312         * doc/posix-functions/fprintf.texi: Update.
50313         * doc/posix-functions/printf.texi: Update.
50314         * doc/posix-functions/snprintf.texi: Update.
50315         * doc/posix-functions/sprintf.texi: Update.
50316         * doc/posix-functions/vfprintf.texi: Update.
50317         * doc/posix-functions/vprintf.texi: Update.
50318         * doc/posix-functions/vsnprintf.texi: Update.
50319         * doc/posix-functions/vsprintf.texi: Update.
50320         * doc/glibc-functions/obstack_printf.texi: Update.
50321         * doc/glibc-functions/obstack_vprintf.texi: Update.
50322         Reported by Eric Blake.
50323
50324 2009-02-25  Bruno Haible  <bruno@clisp.org>
50325
50326         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50327         with known value.
50328         Reported by Gary V. Vaughan <gary@gnu.org>.
50329
50330 2009-02-25  Bruno Haible  <bruno@clisp.org>
50331
50332         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50333         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50334         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50335         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50336         Reported by Gary V. Vaughan <gary@gnu.org>.
50337
50338 2009-02-25  Bruno Haible  <bruno@clisp.org>
50339
50340         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50341         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50342         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50343         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50344         Reported by Gary V. Vaughan <gary@gnu.org>.
50345
50346 2009-02-25  Eric Blake  <ebb9@byu.net>
50347
50348         tests: skip fseek/ftell tests if ungetc is broken
50349         * m4/ungetc.m4: New file.
50350         * modules/fseek-tests: Split test, so ungetc dependency is
50351         separate from rest of test.
50352         * modules/fseeko-tests: Likewise.
50353         * modules/ftell-tests: Likewise.
50354         * modules/ftello-tests: Likewise.
50355         * tests/test-fseek.c (main): Isolate ungetc dependency.
50356         * tests/test-fseeko.c (main): Likewise.
50357         * tests/test-ftell.c (main): Likewise.
50358         * tests/test-ftello.c (main): Likewise.
50359         * tests/test-fseek2.sh: New file.
50360         * tests/test-fseeko2.sh: Likewise.
50361         * tests/test-ftell2.sh: Likewise.
50362         * tests/test-ftello2.sh: Likewise.
50363
50364 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50365
50366         test-getaddrinfo: fix usage of skip return code 77
50367         * tests/test-gettaddrinfo.c: Return skip code 77 only
50368         for first occurrence of skip (4x77 is not 77)
50369
50370 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50371
50372         strtod: avoid C99 decl-after-statement
50373         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50374
50375 2009-02-24  Eric Blake  <ebb9@byu.net>
50376
50377         strtod: detect HP-UX 11.31 bug
50378         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50379         Reported by Gary V. Vaughan.
50380
50381 2009-02-23  Bruno Haible  <bruno@clisp.org>
50382
50383         Fix invalid read past end of memory block.
50384         * lib/vasnprintf.c (DCHAR_SET): Define.
50385         (local_wcslen): Define only when needed.
50386         (local_strnlen, local_wcsnlen): New functions.
50387         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50388         directives that involve a conversion ourselves.
50389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50390         wcsnlen, mbrtowc, wcrtomb.
50391         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50392         * tests/test-vasprintf-posix.c (test_function): Likewise.
50393         * tests/test-snprintf-posix.h (test_function): Likewise.
50394         * tests/test-sprintf-posix.h (test_function): Likewise.
50395         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50396
50397 2009-02-22  Bruno Haible  <bruno@clisp.org>
50398
50399         Implement new clarified decomposition of Hangul syllables.
50400         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50401         of type LTV, return only a pairwise decomposition.
50402         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50403         Likewise.
50404         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50405         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50406         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50407
50408 2009-02-22  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50411         zero-length results and shrink excess allocated memory.
50412         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50413         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50414         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50415         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50416         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50417         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50418         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50419         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50420         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50421         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50422         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50423         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50424
50425 2009-02-21  Bruno Haible  <bruno@clisp.org>
50426
50427         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50428         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50429         spaces after a period. Put a space between a macro name and its
50430         argument list. Trivial rewordings.
50431         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50432         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50433         (main): Return 0 explicitly.
50434
50435 2009-02-21  Bruno Haible  <bruno@clisp.org>
50436
50437         Tests for module 'uninorm/filter'.
50438         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50439         * modules/uninorm/filter-tests: New file.
50440
50441         New module 'uninorm/filter'.
50442         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50443         uninorm_filter_flush, uninorm_filter_free): New declarations.
50444         * lib/uninorm/uninorm-filter.c: New file.
50445         * modules/uninorm/filter: New file.
50446
50447 2009-02-21  Bruno Haible  <bruno@clisp.org>
50448
50449         Tests for module 'uninorm/nfkc'.
50450         * tests/uninorm/test-nfkc.c: New file.
50451         * tests/uninorm/test-u8-nfkc.c: New file.
50452         * tests/uninorm/test-u16-nfkc.c: New file.
50453         * tests/uninorm/test-u32-nfkc.c: New file.
50454         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50455         * tests/uninorm/test-u32-nfkc-big.c: New file.
50456         * modules/uninorm/nfkc-tests: New file.
50457
50458         New module 'uninorm/nfkc'.
50459         * lib/uninorm/nfkc.c: New file.
50460         * modules/uninorm/nfkc: New file.
50461
50462         Tests for module 'uninorm/nfkd'.
50463         * tests/uninorm/test-nfkd.c: New file.
50464         * tests/uninorm/test-u8-nfkd.c: New file.
50465         * tests/uninorm/test-u16-nfkd.c: New file.
50466         * tests/uninorm/test-u32-nfkd.c: New file.
50467         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50468         * tests/uninorm/test-u32-nfkd-big.c: New file.
50469         * modules/uninorm/nfkd-tests: New file.
50470
50471         New module 'uninorm/nfkd'.
50472         * lib/uninorm/nfkd.c: New file.
50473         * modules/uninorm/nfkd: New file.
50474
50475         Tests for module 'uninorm/nfc'.
50476         * tests/uninorm/test-nfc.c: New file.
50477         * tests/uninorm/test-u8-nfc.c: New file.
50478         * tests/uninorm/test-u16-nfc.c: New file.
50479         * tests/uninorm/test-u32-nfc.c: New file.
50480         * tests/uninorm/test-u32-nfc-big.sh: New file.
50481         * tests/uninorm/test-u32-nfc-big.c: New file.
50482         * modules/uninorm/nfc-tests: New file.
50483
50484         New module 'uninorm/nfc'.
50485         * lib/uninorm/nfc.c: New file.
50486         * modules/uninorm/nfc: New file.
50487
50488         Tests for module 'uninorm/nfd'.
50489         * tests/uninorm/test-nfd.c: New file.
50490         * tests/uninorm/test-u8-nfd.c: New file.
50491         * tests/uninorm/test-u16-nfd.c: New file.
50492         * tests/uninorm/test-u32-nfd.c: New file.
50493         * tests/uninorm/test-u32-nfd-big.sh: New file.
50494         * tests/uninorm/test-u32-nfd-big.c: New file.
50495         * tests/uninorm/test-u32-normalize-big.h: New file.
50496         * tests/uninorm/test-u32-normalize-big.c: New file.
50497         * tests/uninorm/NormalizationTest.txt: New file, created from
50498         Unicode 5.1.0 NormalizationTest.txt.
50499         * modules/uninorm/nfd-tests: New file.
50500
50501         New module 'uninorm/nfd'.
50502         * lib/uninorm/nfd.c: New file.
50503         * modules/uninorm/nfd: New file.
50504
50505         New module 'uninorm/u32-normalize'.
50506         * lib/uninorm/u32-normalize.c: New file.
50507         * modules/uninorm/u32-normalize: New file.
50508
50509         New module 'uninorm/u16-normalize'.
50510         * lib/uninorm/u16-normalize.c: New file.
50511         * modules/uninorm/u16-normalize: New file.
50512
50513         New module 'uninorm/u8-normalize'.
50514         * lib/uninorm/u8-normalize.c: New file.
50515         * lib/uninorm/normalize-internal.h: New file.
50516         * lib/uninorm/u-normalize-internal.h: New file.
50517         * modules/uninorm/u8-normalize: New file.
50518
50519         New module 'uninorm/decompose-internal'.
50520         * lib/uninorm/decompose-internal.c: New file.
50521         * modules/uninorm/decompose-internal: New file.
50522
50523         Tests for module 'uninorm/composition'.
50524         * tests/uninorm/test-composition.c: New file.
50525         * modules/uninorm/composition-tests: New file.
50526
50527         New module 'uninorm/composition'.
50528         * lib/uninorm/composition.c: New file.
50529         * lib/uninorm/composition-table.gperf: New file, generated by
50530         gen-uni-tables.
50531         * modules/uninorm/composition: New file.
50532
50533         Tests for module 'uninorm/compat-decomposition'.
50534         * tests/uninorm/test-compat-decomposition.c: New file.
50535         * modules/uninorm/compat-decomposition-tests: New file.
50536
50537         New module 'uninorm/compat-decomposition'.
50538         * lib/uninorm/decompose-internal.h: New file.
50539         * lib/uninorm/compat-decomposition.c: New file.
50540         * modules/uninorm/compat-decomposition: New file.
50541
50542         Tests for module 'uninorm/canonical-decomposition'.
50543         * tests/uninorm/test-canonical-decomposition.c: New file.
50544         * modules/uninorm/canonical-decomposition-tests: New file.
50545
50546         New module 'uninorm/canonical-decomposition'.
50547         * lib/uninorm/canonical-decomposition.c: New file.
50548         * modules/uninorm/canonical-decomposition: New file.
50549
50550         Tests for module 'uninorm/decomposition'.
50551         * tests/uninorm/test-decomposition.c: New file.
50552         * modules/uninorm/decomposition-tests: New file.
50553
50554         New module 'uninorm/decomposition'.
50555         * lib/uninorm/decomposition.c: New file.
50556         * modules/uninorm/decomposition: New file.
50557
50558         New module 'uninorm/decomposition-table'.
50559         * lib/uninorm/decomposition-table.h: New file.
50560         * lib/uninorm/decomposition-table.c: New file.
50561         * lib/uninorm/decomposition-table1.h: New file, generated by
50562         gen-uni-tables.
50563         * lib/uninorm/decomposition-table2.h: New file, generated by
50564         gen-uni-tables.
50565         * modules/uninorm/decomposition-table: New file.
50566
50567         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50568         (UC_DECOMP_*): New enumeration items.
50569         (get_decomposition): New function.
50570         (struct decomp_table): New type.
50571         (output_decomposition, output_decomposition_tables): New functions.
50572         (unicode_composition_exclusions): New variable.
50573         (fill_composition_exclusions, debug_output_composition_tables): New
50574         functions.
50575         (main): Accept one more argument. Invoke fill_composition_exclusions.
50576         Output decomposition and composition tables.
50577
50578         New module 'uninorm/base'.
50579         * lib/uninorm.h: New file.
50580         * lib/unictype.h: Update comment.
50581         * modules/uninorm/base: New file.
50582
50583 2009-02-21  David Lutterkort  <lutter@redhat.com>
50584
50585         Tests for module 'safe-alloc'.
50586         * tests/test-safe-alloc.c: New file.
50587         * modules/safe-alloc-tests: New file.
50588
50589         New module 'safe-alloc'.
50590         * lib/safe-alloc.h: New file.
50591         * lib/safe-alloc.c: New file.
50592         * m4/safe-alloc.m4: New file.
50593         * modules/safe-alloc: New file.
50594         * doc/safe-alloc.texi: New file.
50595         * doc/gnulib.texi: Include it.
50596         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50597         safe-alloc.
50598
50599 2009-02-18  Bruno Haible  <bruno@clisp.org>
50600
50601         Fix link error on non-glibc systems.
50602         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50603         variable.
50604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50605
50606 2009-02-18  Jim Meyering  <meyering@redhat.com>
50607
50608         fts: avoid used-uninitialized error due to recent change
50609         * lib/fts.c (fts_read): Guard uses of the new member,
50610         parent->fts_n_dirs_remaining, since it's not relevant for
50611         the parent of a directory specified on the command-line.
50612
50613 2009-02-17  James Youngman  <jay@gnu.org>
50614             Bruno Haible  <bruno@clisp.org>
50615
50616         * m4/include_next.m4: Reformulate comment.
50617
50618 2009-02-16  Jim Meyering  <meyering@redhat.com>
50619
50620         fts: add #if guards so that the fts_lgpl module still builds
50621         * lib/fts.c: Guard just-added hash-table-using parts with
50622         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50623         Reported by Simon Josefsson.
50624
50625 2009-02-15  Bruno Haible  <bruno@clisp.org>
50626
50627         * modules/array-mergesort-tests: New file.
50628         * tests/test-array-mergesort.c: New file.
50629
50630         New module 'array-mergesort'.
50631         * modules/array-mergesort: New file.
50632         * lib/array-mergesort.h: New file.
50633
50634 2009-02-15  Bruno Haible  <bruno@clisp.org>
50635
50636         Fix 2009-02-07 commit.
50637         * lib/gen-uni-tables.c (output_predicate, output_category,
50638         output_combclass, output_bidi_category, output_decimal_digit,
50639         output_digit, output_numeric, output_mirror, output_scripts,
50640         output_ident_category, output_simple_mapping): Fix format directives.
50641         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50642
50643 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50644
50645         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50646         fixes are available from IBM.
50647
50648 2009-02-13  Jim Meyering  <meyering@redhat.com>
50649
50650         fts: arrange not to stat non-directories in more cases
50651         This makes GNU find (when it doesn't need to stat each file)
50652         *much* more efficient at traversing reiserfs file systems.
50653         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50654         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50655         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50656         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50657         (leaf_optimization_applies): New function.
50658         (LCO_hash, LCO_compare): New helper functions.
50659         (link_count_optimize_ok): New function.
50660         (fts_stat): Initialize new member (if dir).
50661         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50662         we've just stat'ed a directory.  Skip the stat call when possible.
50663         ---
50664         Note this AFS-related exchange:
50665         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50666         and note find's pioctl call in find/fstype.c.
50667         But that is necessary only if you want to enable the
50668         optimization for AFS, and for now, I don't.
50669
50670         fts: move a function definition "up" (no semantic change)
50671         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50672         "up" to precede upcoming use of a related function.
50673
50674 2009-02-11  Jim Meyering  <meyering@redhat.com>
50675
50676         fts: correct internal computation of nlinks (optimization-related)
50677         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50678         whether the current entry is a directory, so don't test it.
50679
50680 2009-02-10  Bruno Haible  <bruno@clisp.org>
50681
50682         Tests for module 'uniwbrk/ulc-wordbreaks'.
50683         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50684         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50685         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50686
50687         Tests for module 'uniwbrk/u32-wordbreaks'.
50688         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50689         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50690
50691         Tests for module 'uniwbrk/u16-wordbreaks'.
50692         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50693         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50694
50695         Tests for module 'uniwbrk/u8-wordbreaks'.
50696         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50697         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50698
50699 2009-02-10  Bruno Haible  <bruno@clisp.org>
50700
50701         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50702         property.
50703         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50704         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50705         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50706
50707 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50708
50709         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50710         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50711
50712 2009-02-10  Bruno Haible  <bruno@clisp.org>
50713
50714         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50715         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50716         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50717         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50718         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50719         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50720
50721 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50722
50723         * lib/sockets.h (gl_fd_to_handle): New function.
50724
50725         * tests/test-sockets.c: Call gl_fd_to_handle.
50726
50727 2009-02-09  Bruno Haible  <bruno@clisp.org>
50728
50729         * doc/havelib.texi: Document the conventions on bi-arch systems.
50730
50731 2009-02-08  Bruno Haible  <bruno@clisp.org>
50732
50733         Document the AC_LIB_LINKFLAGS macro.
50734         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50735         * doc/gnulib.texi: Include it.
50736
50737 2009-02-08  Bruno Haible  <bruno@clisp.org>
50738
50739         Fix wrong order of sections, compared to TOC.
50740         * doc/gnulib.texi: Include relocatable-maint.texi after the
50741         "Regular expressions" node, not before.
50742
50743 2009-02-08  Bruno Haible  <bruno@clisp.org>
50744
50745         Tests for module 'unicase/totitle'.
50746         * modules/unicase/totitle-tests: New file.
50747
50748         Tests for module 'unicase/tolower'.
50749         * modules/unicase/tolower-tests: New file.
50750
50751         Tests for module 'unicase/toupper'.
50752         * modules/unicase/toupper-tests: New file.
50753         * tests/unicase/test-mapping-part1.h: New file.
50754         * tests/unicase/test-mapping-part2.h: New file.
50755
50756         New module 'unicase/totitle'.
50757         * modules/unicase/totitle: New file.
50758         * lib/unicase/totitle.c: New file.
50759
50760         New module 'unicase/tolower'.
50761         * modules/unicase/tolower: New file.
50762         * lib/unicase/tolower.c: New file.
50763
50764         New module 'unicase/toupper'.
50765         * modules/unicase/toupper: New file.
50766         * lib/unicase/toupper.c: New file.
50767         * lib/unicase/simple-mapping.h: New file.
50768
50769         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50770         (mapping_table): New structure.
50771         (output_simple_mapping): New function.
50772         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50773         * modules/gen-uni-tables (Description): Update.
50774         * lib/unicase/toupper.h: New file, automatically generated by
50775         gen-uni-tables.
50776         * lib/unicase/tolower.h: New file, automatically generated by
50777         gen-uni-tables.
50778         * lib/unicase/totitle.h: New file, automatically generated by
50779         gen-uni-tables.
50780         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50781         gen-uni-tables.
50782         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50783         gen-uni-tables.
50784         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50785         gen-uni-tables.
50786
50787         New module 'unicase/base'.
50788         * modules/unicase/base: New file.
50789         * lib/unicase.h: New file.
50790
50791 2009-02-08  Bruno Haible  <bruno@clisp.org>
50792
50793         New module 'uniwbrk/ulc-wordbreaks'.
50794         * modules/uniwbrk/ulc-wordbreaks: New file.
50795         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50796
50797         New module 'uniwbrk/u32-wordbreaks'.
50798         * modules/uniwbrk/u32-wordbreaks: New file.
50799         * lib/uniwbrk/u32-wordbreaks.c: New file.
50800
50801         New module 'uniwbrk/u16-wordbreaks'.
50802         * modules/uniwbrk/u16-wordbreaks: New file.
50803         * lib/uniwbrk/u16-wordbreaks.c: New file.
50804
50805         New module 'uniwbrk/u8-wordbreaks'.
50806         * modules/uniwbrk/u8-wordbreaks: New file.
50807         * lib/uniwbrk/u8-wordbreaks.c: New file.
50808         * lib/uniwbrk/u-wordbreaks.h: New file.
50809
50810         New module 'uniwbrk/table'.
50811         * modules/uniwbrk/table: New file.
50812         * lib/uniwbrk/wbrktable.h: New file.
50813         * lib/uniwbrk/wbrktable.c: New file.
50814
50815         New module 'uniwbrk/wordbreak-property'.
50816         * modules/uniwbrk/wordbreak-property: New file.
50817         * lib/uniwbrk/wordbreak-property.c: New file.
50818
50819         * lib/gen-uni-tables.c (WBP_*): New enum items.
50820         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50821         (unicode_org_wbp): New variable.
50822         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50823         New functions.
50824         (wbp_table): New structure.
50825         (output_wbp, output_wbrk_tables): New functions.
50826         (main): Accept additional argument. Invoke fill_org_wbp,
50827         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50828         output_wbrk_tables.
50829         * modules/gen-uni-tables (Description): Update.
50830         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50831         gen-uni-tables.
50832
50833         New module 'uniwbrk/base'.
50834         * modules/uniwbrk/base: New file.
50835         * lib/uniwbrk.h: New file.
50836
50837 2009-02-08  Bruno Haible  <bruno@clisp.org>
50838
50839         Update to Unicode 5.1.0.
50840         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50841         U+2185..U+2188.
50842         (is_property_default_ignorable_code_point): Don't include characters
50843         of category Cc or Cs and not-a-characters.
50844         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50845         U+0D79, U+109E, U+109F, U+A60C.
50846         * lib/unictype/bidi_of.h: Regenerated.
50847         * lib/unictype/blocks.h: Regenerated.
50848         * lib/unictype/categ_C.h: Regenerated.
50849         * lib/unictype/categ_Cf.h: Regenerated.
50850         * lib/unictype/categ_Cn.h: Regenerated.
50851         * lib/unictype/categ_L.h: Regenerated.
50852         * lib/unictype/categ_Ll.h: Regenerated.
50853         * lib/unictype/categ_Lm.h: Regenerated.
50854         * lib/unictype/categ_Lo.h: Regenerated.
50855         * lib/unictype/categ_Lu.h: Regenerated.
50856         * lib/unictype/categ_M.h: Regenerated.
50857         * lib/unictype/categ_Mc.h: Regenerated.
50858         * lib/unictype/categ_Me.h: Regenerated.
50859         * lib/unictype/categ_Mn.h: Regenerated.
50860         * lib/unictype/categ_N.h: Regenerated.
50861         * lib/unictype/categ_Nd.h: Regenerated.
50862         * lib/unictype/categ_Nl.h: Regenerated.
50863         * lib/unictype/categ_No.h: Regenerated.
50864         * lib/unictype/categ_P.h: Regenerated.
50865         * lib/unictype/categ_Pd.h: Regenerated.
50866         * lib/unictype/categ_Pe.h: Regenerated.
50867         * lib/unictype/categ_Pf.h: Regenerated.
50868         * lib/unictype/categ_Pi.h: Regenerated.
50869         * lib/unictype/categ_Po.h: Regenerated.
50870         * lib/unictype/categ_Ps.h: Regenerated.
50871         * lib/unictype/categ_S.h: Regenerated.
50872         * lib/unictype/categ_Sk.h: Regenerated.
50873         * lib/unictype/categ_Sm.h: Regenerated.
50874         * lib/unictype/categ_So.h: Regenerated.
50875         * lib/unictype/categ_of.h: Regenerated.
50876         * lib/unictype/combining.h: Regenerated.
50877         * lib/unictype/ctype_alnum.h: Regenerated.
50878         * lib/unictype/ctype_alpha.h: Regenerated.
50879         * lib/unictype/ctype_graph.h: Regenerated.
50880         * lib/unictype/ctype_lower.h: Regenerated.
50881         * lib/unictype/ctype_print.h: Regenerated.
50882         * lib/unictype/ctype_punct.h: Regenerated.
50883         * lib/unictype/ctype_upper.h: Regenerated.
50884         * lib/unictype/decdigit.h: Regenerated.
50885         * lib/unictype/digit.h: Regenerated.
50886         * lib/unictype/mirror.h: Regenerated.
50887         * lib/unictype/numeric.h: Regenerated.
50888         * lib/unictype/pr_alphabetic.h: Regenerated.
50889         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50890         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50891         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50892         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50893         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50894         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50895         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50896         * lib/unictype/pr_combining.h: Regenerated.
50897         * lib/unictype/pr_dash.h: Regenerated.
50898         * lib/unictype/pr_decimal_digit.h: Regenerated.
50899         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50900         * lib/unictype/pr_deprecated.h: Regenerated.
50901         * lib/unictype/pr_diacritic.h: Regenerated.
50902         * lib/unictype/pr_extender.h: Regenerated.
50903         * lib/unictype/pr_format_control.h: Regenerated.
50904         * lib/unictype/pr_grapheme_base.h: Regenerated.
50905         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50906         * lib/unictype/pr_grapheme_link.h: Regenerated.
50907         * lib/unictype/pr_id_continue.h: Regenerated.
50908         * lib/unictype/pr_id_start.h: Regenerated.
50909         * lib/unictype/pr_ideographic.h: Regenerated.
50910         * lib/unictype/pr_ignorable_control.h: Regenerated.
50911         * lib/unictype/pr_lowercase.h: Regenerated.
50912         * lib/unictype/pr_math.h: Regenerated.
50913         * lib/unictype/pr_numeric.h: Regenerated.
50914         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50915         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50916         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50917         * lib/unictype/pr_other_id_continue.h: Regenerated.
50918         * lib/unictype/pr_other_lowercase.h: Regenerated.
50919         * lib/unictype/pr_other_math.h: Regenerated.
50920         * lib/unictype/pr_punctuation.h: Regenerated.
50921         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50922         * lib/unictype/pr_soft_dotted.h: Regenerated.
50923         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50924         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50925         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50926         * lib/unictype/pr_uppercase.h: Regenerated.
50927         * lib/unictype/pr_xid_continue.h: Regenerated.
50928         * lib/unictype/pr_xid_start.h: Regenerated.
50929         * lib/unictype/pr_zero_width.h: Regenerated.
50930         * lib/unictype/scripts.h: Regenerated.
50931         * lib/unictype/scripts_byname.gperf: Regenerated.
50932         * lib/unictype/sy_java_ident.h: Regenerated.
50933         * lib/unilbrk/lbrkprop1.h: Regenerated.
50934         * lib/unilbrk/lbrkprop2.h: Regenerated.
50935         * tests/unictype/test-categ_C.c: Regenerated.
50936         * tests/unictype/test-categ_Cf.c: Regenerated.
50937         * tests/unictype/test-categ_Cn.c: Regenerated.
50938         * tests/unictype/test-categ_L.c: Regenerated.
50939         * tests/unictype/test-categ_Ll.c: Regenerated.
50940         * tests/unictype/test-categ_Lm.c: Regenerated.
50941         * tests/unictype/test-categ_Lo.c: Regenerated.
50942         * tests/unictype/test-categ_Lu.c: Regenerated.
50943         * tests/unictype/test-categ_M.c: Regenerated.
50944         * tests/unictype/test-categ_Mc.c: Regenerated.
50945         * tests/unictype/test-categ_Me.c: Regenerated.
50946         * tests/unictype/test-categ_Mn.c: Regenerated.
50947         * tests/unictype/test-categ_N.c: Regenerated.
50948         * tests/unictype/test-categ_Nd.c: Regenerated.
50949         * tests/unictype/test-categ_Nl.c: Regenerated.
50950         * tests/unictype/test-categ_No.c: Regenerated.
50951         * tests/unictype/test-categ_P.c: Regenerated.
50952         * tests/unictype/test-categ_Pd.c: Regenerated.
50953         * tests/unictype/test-categ_Pe.c: Regenerated.
50954         * tests/unictype/test-categ_Pf.c: Regenerated.
50955         * tests/unictype/test-categ_Pi.c: Regenerated.
50956         * tests/unictype/test-categ_Po.c: Regenerated.
50957         * tests/unictype/test-categ_Ps.c: Regenerated.
50958         * tests/unictype/test-categ_S.c: Regenerated.
50959         * tests/unictype/test-categ_Sk.c: Regenerated.
50960         * tests/unictype/test-categ_Sm.c: Regenerated.
50961         * tests/unictype/test-categ_So.c: Regenerated.
50962         * tests/unictype/test-ctype_alnum.c: Regenerated.
50963         * tests/unictype/test-ctype_alpha.c: Regenerated.
50964         * tests/unictype/test-ctype_graph.c: Regenerated.
50965         * tests/unictype/test-ctype_lower.c: Regenerated.
50966         * tests/unictype/test-ctype_print.c: Regenerated.
50967         * tests/unictype/test-ctype_punct.c: Regenerated.
50968         * tests/unictype/test-ctype_upper.c: Regenerated.
50969         * tests/unictype/test-decdigit.h: Regenerated.
50970         * tests/unictype/test-digit.h: Regenerated.
50971         * tests/unictype/test-numeric.h: Regenerated.
50972         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50973         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50974         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50975         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50976         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50977         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50978         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50979         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50980         * tests/unictype/test-pr_combining.c: Regenerated.
50981         * tests/unictype/test-pr_dash.c: Regenerated.
50982         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50983         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50984         * tests/unictype/test-pr_deprecated.c: Regenerated.
50985         * tests/unictype/test-pr_diacritic.c: Regenerated.
50986         * tests/unictype/test-pr_extender.c: Regenerated.
50987         * tests/unictype/test-pr_format_control.c: Regenerated.
50988         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50989         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50990         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50991         * tests/unictype/test-pr_id_continue.c: Regenerated.
50992         * tests/unictype/test-pr_id_start.c: Regenerated.
50993         * tests/unictype/test-pr_ideographic.c: Regenerated.
50994         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50995         * tests/unictype/test-pr_lowercase.c: Regenerated.
50996         * tests/unictype/test-pr_math.c: Regenerated.
50997         * tests/unictype/test-pr_numeric.c: Regenerated.
50998         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50999         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51000         Regenerated.
51001         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51002         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51003         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51004         * tests/unictype/test-pr_other_math.c: Regenerated.
51005         * tests/unictype/test-pr_punctuation.c: Regenerated.
51006         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51007         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51008         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51009         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51010         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51011         * tests/unictype/test-pr_uppercase.c: Regenerated.
51012         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51013         * tests/unictype/test-pr_xid_start.c: Regenerated.
51014         * tests/unictype/test-pr_zero_width.c: Regenerated.
51015
51016         Update to Unicode 5.1.0.
51017         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51018         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51019         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51020         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51021         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51022         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51023         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51024         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51025         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51026         (nonspacing_table_ind): Update.
51027         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51028
51029         Update to Unicode 5.1.0.
51030         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51031         code transform.
51032         * lib/uniname/uniname.c (unicode_character_name,
51033         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51034         * lib/uniname/uninames.h: Regenerated.
51035         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51036
51037 2009-02-07  Bruno Haible  <bruno@clisp.org>
51038
51039         Merge gen-ctype and gen-lbrk into a single program.
51040         * lib/gen-uni-tables.c: New file, incorporating
51041         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51042         Add directory prefixes to the names of the generated files.
51043         * lib/unictype/gen-ctype.c: Remove file.
51044         * lib/unilbrk/gen-lbrk.c: Remove file.
51045         * modules/gen-uni-tables: New file.
51046         * modules/unictype/gen-ctype: Remove file.
51047         * modules/unilbrk/gen-lbrk: Remove file.
51048
51049 2009-02-07  Bruno Haible  <bruno@clisp.org>
51050
51051         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51052
51053         New module 'unistr/u32-strcoll'.
51054         * modules/unistr/u32-strcoll: New file.
51055         * lib/unistr/u32-strcoll.c: New file.
51056
51057         New module 'unistr/u16-strcoll'.
51058         * modules/unistr/u16-strcoll: New file.
51059         * lib/unistr/u16-strcoll.c: New file.
51060
51061         New module 'unistr/u8-strcoll'.
51062         * modules/unistr/u8-strcoll: New file.
51063         * lib/unistr/u8-strcoll.c: New file.
51064         * lib/unistr/u-strcoll.h: New file.
51065
51066 2009-02-07  Bruno Haible  <bruno@clisp.org>
51067
51068         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51069         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51070         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51071         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51072         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51073         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51074
51075 2009-02-07  Bruno Haible  <bruno@clisp.org>
51076
51077         Make 64-bit clean.
51078         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51079         output_combclass, output_bidi_category, output_decimal_digit,
51080         output_digit, output_numeric, output_mirror, output_scripts,
51081         output_ident_category): Use proper width specifier in format strings.
51082
51083 2009-02-07  Bruno Haible  <bruno@clisp.org>
51084
51085         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51086         failure behaviour.
51087
51088 2009-02-07  Jim Meyering  <meyering@redhat.com>
51089
51090         regex: avoid compilation failure with upcoming gcc-4.4
51091         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51092         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51093         "... error: integer overflow in preprocessor expression".
51094
51095 2009-02-05  Ben Pfaff  <blp@gnu.org>
51096
51097         Fix link errors on Windows when close module is used.
51098         * modules/close: Add $(LIB_CLOSE) to Link section.
51099         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51100         $(LIB_CLOSE) on Windows.
51101
51102 2009-02-05  Jim Meyering  <meyering@redhat.com>
51103
51104         still avoid unused-parameter warnings, but do it cleanly
51105         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51106         (get_fs_usage): Cast to void instead.
51107         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51108         (dev_from_mount_options, read_file_system_list): Cast to void.
51109         Prompted by Bruno Haible.
51110
51111 2009-02-04  Jim Meyering  <meyering@redhat.com>
51112
51113         fsusage.c: correct copyright year
51114         * lib/fsusage.c: Reflect year in which the change is pushed into
51115
51116         avoid misc. warnings
51117         * lib/fsusage.c (UNUSED_PARAM): Define.
51118         (get_fs_usage): Mark parameter "disk" as unused.
51119         * lib/getugroups.c (getgrent): Use "void" in prototype.
51120         * lib/mountlist.c: Mark unused parameters.
51121         (read_file_system_list): Declare a local with "const".
51122         * lib/nanosleep.c (getnow): Declare static.
51123         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51124
51125         dirfd: set errno upon failure
51126         * lib/dirfd.c: Include <errno.h>.
51127         Set errno to ENOTSUP when returning -1.
51128         * modules/dirfd (Depends-on): Add errno.
51129         Suggested by John Kodis <kodis@comcast.net>.
51130
51131 2009-02-01  Bruno Haible  <bruno@clisp.org>
51132
51133         Don't assume sizeof (long) >= sizeof (void *).
51134         * lib/memcmp.c: Include stdint.h.
51135         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51136         srcp2 to 'const byte *'.
51137         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51138         types to uintptr_t.
51139         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51140         * modules/memcmp (Depends-on): Add stdint.
51141         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51142
51143 2009-01-30  Eric Blake  <ebb9@byu.net>
51144
51145         fix more require-before-expand issues
51146         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51147         expand, AC_PROG_AWK.
51148         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51149
51150 2009-01-28  Eric Blake  <ebb9@byu.net>
51151
51152         version-etc: use consistent URL formatting
51153         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51154         Improve formatting.  Use fputs for string without %.
51155
51156 2009-01-28  Jim Meyering  <meyering@redhat.com>
51157
51158         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51159         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51160         "underquoted definition of NAME" from autoconf-2.59.
51161
51162 2009-01-28  Bruno Haible  <bruno@clisp.org>
51163
51164         * doc/gnulib.texi: Add "Obsolete modules" to index.
51165
51166 2009-01-28  Jim Meyering  <meyering@redhat.com>
51167
51168         useless-if-before-free: recognize more variants
51169         * build-aux/useless-if-before-free: Also recognize e.g.,
51170         if (NULL != p) free (p);
51171
51172 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51173
51174         test-getaddrinfo: skip (don't fail) this test when there's no network
51175         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51176         on the presumption that it means you lack network access.
51177
51178 2009-01-26  Jim Meyering  <meyering@redhat.com>
51179
51180         fflush: avoid warnings on modern systems
51181         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51182         pos and result, into scopes where they're used.
51183
51184 2009-01-26  Eric Blake  <ebb9@byu.net>
51185
51186         Silence warning reintroduced by recent extensions patch.
51187         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51188         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51189         autoconf.
51190
51191         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51192         * m4/00gnulib.m4: New file.
51193         * gnulib-tool (func_get_filelist): Always use it.
51194         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51195         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51196
51197 2009-01-25  Bruno Haible  <bruno@clisp.org>
51198
51199         Make test-quotearg work on MacOS X and AIX.
51200         * tests/test-quotearg.sh: New file.
51201         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51202         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51203         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51204         include <libintl.h>.
51205         (fake_locale): Remove variable.
51206         (gettext, dgettext, dcgettext): Remove functions.
51207         (main): Instead of setting a fake locale, set a real locale. Call
51208         textdomain and bindtextdomain.
51209         * modules/quotearg-tests (Files): Add the new files.
51210         (Depends-on): Add gettext, setenv, unsetenv.
51211         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51212         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51213         Augment TESTS_ENVIRONMENT.
51214
51215 2009-01-25  Bruno Haible  <bruno@clisp.org>
51216
51217         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51218         fr_FR.ISO8859-1 locale on MacOS X.
51219         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51220         ja_JP.eucJP locale on MacOS X.
51221         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51222         zh_CN.GB18030 locale on MacOS X.
51223
51224 2009-01-25  Bruno Haible  <bruno@clisp.org>
51225
51226         Avoid link errors on MacOS X 10.3.
51227         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51228         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51229
51230 2009-01-25  Bruno Haible  <bruno@clisp.org>
51231
51232         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51233         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51234         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51235         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51236         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51237         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51238         posix_spawnattr_init, posix_spawnattr_setsigmask,
51239         posix_spawnattr_setflags, posix_spawnattr_destroy.
51240
51241         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51242         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51243         * modules/execute (Files): Remove m4/posix_spawn.m4.
51244         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51245         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51246         posix_spawnattr_init, posix_spawnattr_setsigmask,
51247         posix_spawnattr_setflags, posix_spawnattr_destroy.
51248
51249 2009-01-25  Bruno Haible  <bruno@clisp.org>
51250
51251         * lib/glthread/threadlib.c: Include <stdlib.h>.
51252
51253 2009-01-25  Bruno Haible  <bruno@clisp.org>
51254
51255         * lib/glthread/threadlib.c (dummy): New declaration.
51256
51257 2009-01-25  Bruno Haible  <bruno@clisp.org>
51258
51259         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51260         multibyte characters also for the GB18030 encoding. Don't crash when
51261         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51262
51263 2009-01-25  Bruno Haible  <bruno@clisp.org>
51264
51265         Avoid redefining 'struct random_data' on OSF/1 5.1.
51266         * lib/stdlib.in.h: Include <random.h> if it exists.
51267         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51268         HAVE_RANDOM_H. Include <random.h> when testing whether
51269         'struct random_data' exists.
51270         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51271
51272 2009-01-25  Bruno Haible  <bruno@clisp.org>
51273
51274         Don't install charset.alias on MacOS X >= 10.3.
51275         * lib/localcharset.c (DARWIN7): New macro.
51276         (get_charset_aliases): Hardcode the result for Darwin7.
51277         * modules/localcharset (install-exec-local): Don't install
51278         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51279
51280 2009-01-25  Bruno Haible  <bruno@clisp.org>
51281
51282         Don't install charset.alias on mingw and Cygwin.
51283         * modules/localcharset (install-exec-local): Don't install
51284         charset.alias on mingw and Cygwin, if the file does not yet exist.
51285         The result for these platforms is hardcoded in localcharset.c.
51286
51287 2009-01-25  Bruno Haible  <bruno@clisp.org>
51288
51289         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51290         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51291         before requiring AC_USE_SYSTEM_EXTENSIONS.
51292
51293 2009-01-25  Jim Meyering  <meyering@redhat.com>
51294
51295         c-strtod: avoid warnings
51296         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51297         "assignment discards qualifiers from pointer target type" warnings.
51298
51299 2009-01-24  Bruno Haible  <bruno@clisp.org>
51300
51301         Add support for non-UTF-8 locales on MacOS X.
51302         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51303         canonical encodings. For Darwin 7 and newer, don't map traditional
51304         encodings to UTF-8.
51305         Reported by Vincent Lefevre <vincent@vinc17.org>
51306         at <http://savannah.gnu.org/bugs/?25235>.
51307
51308 2009-01-24  Bruno Haible  <bruno@clisp.org>
51309
51310         * doc/gnulib.texi (Obsolete modules): New section.
51311         Reported by Mike Frysinger <vapier@gentoo.org>.
51312
51313 2009-01-24  Bruno Haible  <bruno@clisp.org>
51314
51315         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51316         (%.dvi): New rule.
51317
51318 2009-01-24  Bruno Haible  <bruno@clisp.org>
51319
51320         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51321         Reported by Eric Blake.
51322
51323 2009-01-24  Bruno Haible  <bruno@clisp.org>
51324
51325         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51326         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51327         Reported by Gary V. Vaughan <gary@gnu.org>.
51328
51329 2009-01-24  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51332
51333 2009-01-23  Bruno Haible  <bruno@clisp.org>
51334
51335         Make c-strtod, c-strtold usable in libraries.
51336         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51337         (C_STRTOD): Call strdup instead of xstrdup.
51338         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51339         * modules/c-strtold (Depends-on): Likewise.
51340         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51341         * NEWS: Mention the change.
51342         Reported by Michael Gold <mgold@ncf.ca>.
51343
51344 2009-01-23  Jim Meyering  <meyering@redhat.com>
51345
51346         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51347         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51348         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51349
51350 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51351
51352         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51353         GNU CoreUtils.
51354         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51355         * modules/version-etc (Description): Update.
51356
51357 2009-01-22  Bruno Haible  <bruno@clisp.org>
51358
51359         Cache the C locale object.
51360         * lib/c-strtod.c (c_locale_cache): New variable.
51361         (c_locale): New function.
51362         (C_STRTOD): Use it, and don't call freelocale.
51363         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51364         Suggested by Paolo Bonzini.
51365
51366 2009-01-21  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51369         conditions other than overflow.
51370
51371 2009-01-21  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/c-strtod.c: Include errno.h.
51374         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51375         value from STRTOD_L and STRTOD.
51376
51377 2009-01-21  Bruno Haible  <bruno@clisp.org>
51378         and Jim Meyering  <meyering@redhat.com>
51379
51380         nanosleep: skip configure test (fail it) for apple universal builds
51381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51382         universal builds, assume that nanosleep does not work.
51383         * modules/nanosleep (Depends-on): Add multiarch.
51384
51385         mktime: skip configure test (fail it) for apple universal builds
51386         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51387         universal builds, assume that mktime does not work.
51388         * modules/mktime (Depends-on): Add multiarch.
51389
51390 2009-01-21  Eric Blake  <ebb9@byu.net>
51391
51392         multiarch: avoid expand-before-require warning
51393         * modules/multiarch (configure.ac): Require, rather than expand,
51394         gl_MULTIARCH.
51395         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51396         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51397         enforce that all clients require it.  Partial reversion of
51398         2008-12-29 patch.
51399
51400         error: avoid expand-before-require warning
51401         * modules/errno (configure.ac): Require, rather than expand,
51402         gl_HEADER_ERRNO_H.
51403         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51404         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51405         enforce that all clients require it.
51406
51407         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51408         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51409         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51410         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51411
51412 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51413
51414         Revert:
51415         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51416
51417         regex: do not depend on obsolete modules.
51418         * modules/regex: Remove memcmp and memmove.
51419
51420 2009-01-20  Bruno Haible  <bruno@clisp.org>
51421
51422         Make the 'link' module link on Windows NT 4.
51423         * lib/link.c (_WIN32_WINNT): Don't define.
51424         (CreateHardLinkFuncType): New type.
51425         (CreateHardLinkFunc, initialized): New variables.
51426         (initialize): New function.
51427         (link): Invoke CreateHardLink indirectly through the function pointer.
51428
51429 2009-01-20  Bruno Haible  <bruno@clisp.org>
51430
51431         Fix compilation failure on mingw.
51432         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51433
51434 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51435
51436         * doc/c-strtod.texi: Mention a couple of restrictions.
51437
51438 2009-01-20  Jim Meyering  <meyering@redhat.com>
51439
51440         gettimeofday: move more declarations out of functions
51441         * lib/gettimeofday.c: Move extern declarations of tzset and
51442         gmtime out of containing functions.  Prompted by Bruno Haible.
51443
51444 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51445
51446         regex: do not depend on obsolete modules.
51447         * modules/regex: Remove memcmp and memmove.
51448
51449 2009-01-19  Bruno Haible  <bruno@clisp.org>
51450
51451         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51452         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51453         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51454         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51455         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51456
51457 2009-01-19  Bruno Haible  <bruno@clisp.org>
51458
51459         * tests/test-link.c: Include <errno.h>.
51460         (main): Exit with code 77 when a hard link cannot be created due to
51461         the file system.
51462         * tests/test-link.sh: Skip test when a hard link cannot be created due
51463         to the file system.
51464         Suggested by Eric Blake.
51465
51466 2009-01-19  Martin Lambers  <marlam@marlam.de>
51467
51468         * modules/link-tests: New file.
51469         * tests/test-link.sh: New file.
51470         * tests/test-link.c: New file.
51471
51472 2009-01-19  Eric Blake  <ebb9@byu.net>
51473
51474         doc: mention another function added in cygwin 1.7.0
51475         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51476         Another new function in cygwin 1.7.
51477
51478 2009-01-19  Bruno Haible  <bruno@clisp.org>
51479
51480         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51481         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51482         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51483         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51484         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51485         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51486         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51487         * m4/md4.m4 (gl_MD4): Likewise.
51488         * m4/md5.m4 (gl_MD5): Likewise.
51489         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51490         * m4/sha1.m4 (gl_SHA1): Likewise.
51491         * m4/sha256.m4 (gl_SHA256): Likewise.
51492         * m4/sha512.m4 (gl_SHA512): Likewise.
51493
51494 2009-01-19  Bruno Haible  <bruno@clisp.org>
51495
51496         * modules/uniname/uniname-tests (Depends-on): Add progname.
51497         * tests/uniname/test-uninames.c: Include progname.h.
51498         (main): Call set_program_name.
51499
51500         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51501         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51502         (main): Call set_program_name.
51503
51504         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51505         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51506         (main): Call set_program_name.
51507
51508         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51509         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51510         (main): Call set_program_name.
51511
51512         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51513         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51514         (main): Call set_program_name.
51515
51516         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51517         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51518         (main): Call set_program_name.
51519
51520         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51521         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51522         (main): Call set_program_name.
51523
51524         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51525         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51526         (main): Call set_program_name.
51527
51528         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51529         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51530         (main): Call set_program_name.
51531
51532 2009-01-19  Eric Blake  <ebb9@byu.net>
51533
51534         test-unistd: test previous patch
51535         * tests/test-unistd.c: Test *_FILENO macros.
51536
51537         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51538         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51539         Guarantee a definition.
51540         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51541         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51542         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51543         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51544         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51545         Likewise.
51546         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51547         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51548         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51549         Likewise.
51550         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51551         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51552         (STDERR_FILENO): Likewise.
51553         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51554         (STDERR_FILENO): Likewise.
51555         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51556         (STDERR_FILENO): Likewise.
51557         Reported by Elbert Pol.
51558
51559 2009-01-19  Eric Blake  <ebb9@byu.net>
51560
51561         doc: mention more functions added in cygwin 1.7.0
51562         * doc/posix-functions/abort.texi (abort): Update wording related
51563         to cygwin.
51564         * doc/posix-functions/daylight.texi (daylight): Likewise.
51565         * doc/posix-functions/optarg.texi (optarg): Likewise.
51566         * doc/posix-functions/optarg.texi (opterr): Likewise.
51567         * doc/posix-functions/optarg.texi (optind): Likewise.
51568         * doc/posix-functions/optarg.texi (optopt): Likewise.
51569         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51570         worked in 1.5.x, and was withdrawn in 1.7.
51571         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51572         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51573         cygwin versions.
51574         * doc/posix-functions/perror.texi (perror): Likewise.
51575         * doc/posix-functions/printf.texi (printf): Likewise.
51576         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51577         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51578         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51579         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51580         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51581         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51582         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51583         Likewise.
51584         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51585         Likewise.
51586         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51587         this function.
51588         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51589         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51590         Likewise.
51591         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51592         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51593         * doc/posix-functions/confstr.texi (confstr): Likewise.
51594         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51595         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51596         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51597         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51598         * doc/posix-functions/fputws.texi (fputws): Likewise.
51599         * doc/posix-functions/fwide.texi (fwide): Likewise.
51600         * doc/posix-functions/getwc.texi (getwc): Likewise.
51601         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51602         * doc/posix-functions/putwc.texi (putwc): Likewise.
51603         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51604         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51605         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51606         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51607         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51608         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51609         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51610         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51611         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51612         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51613         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51614
51615 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51616
51617         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51618         * lib/ioctl.c: Include <sys/ioctl.h>.
51619
51620 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51621
51622         * modules/getdate-tests (Depends-on): Add progname.
51623         * tests/test-getdate.c: Use progname module, to avoid link errors
51624         on non-glibc systems.
51625
51626 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51627
51628         * modules/filenamecat-tests (Depends-on): Add progname.
51629         * modules/fstrcmp-tests (Depends-on): Likewise.
51630
51631         * tests/test-filenamecat.c: Use progname module, to avoid link
51632         errors on non-glibc systems.
51633         * tests/test-fstrcmp.c: Likewise.
51634
51635 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51636
51637         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51638         * lib/gettimeofday.c: Move extern declaration out of function.
51639
51640 2009-01-18  Bruno Haible  <bruno@clisp.org>
51641
51642         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51643         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51644         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51645
51646 2009-01-18  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/strftime.c (MEMPCPY): Remove unused macro.
51649         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51650
51651 2009-01-18  Martin Lambers  <marlam@marlam.de>
51652
51653         New module 'link'.
51654         * lib/unistd.in.h (link): New declaration.
51655         * lib/link.c: New file.
51656         * m4/link.m4: New file.
51657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51658         HAVE_LINK.
51659         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51660         * modules/link: New file.
51661         * doc/posix-functions/link.texi: Mention the new module.
51662
51663 2009-01-18  Bruno Haible  <bruno@clisp.org>
51664
51665         * tests/test-avltree_list.c (main): Call set_program_name.
51666         * tests/test-avltree_oset.c (main): Likewise.
51667         * tests/test-obstack-printf.c: Include progname.h.
51668         (main): Call set_program_name.
51669         * tests/test-quotearg.c: Include progname.h.
51670         (main): Call set_program_name.
51671         * tests/test-xmemdup0.c: Include progname.h.
51672         (main): Call set_program_name.
51673
51674 2009-01-18  Bruno Haible  <bruno@clisp.org>
51675
51676         New module 'alphasort'.
51677         * lib/dirent.in.h (alphasort): New declaration.
51678         * lib/alphasort.c: New file, from glibc with modifications.
51679         * m4/alphasort.m4: New file.
51680         * modules/alphasort: New file.
51681         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51682         HAVE_ALPHASORT.
51683         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51684         HAVE_ALPHASORT.
51685         * doc/posix-functions/alphasort.texi: Mention the new module and the
51686         portability problems.
51687
51688 2009-01-18  Bruno Haible  <bruno@clisp.org>
51689
51690         New module 'scandir'.
51691         * lib/dirent.in.h (scandir): New declaration.
51692         * lib/scandir.c: New file, from glibc with modifications.
51693         * m4/scandir.m4: New file.
51694         * modules/scandir: New file.
51695         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51696         HAVE_SCANDIR.
51697         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51698         HAVE_SCANDIR.
51699         * doc/posix-functions/scandir.texi: Mention the new module and the
51700         portability problems.
51701
51702 2009-01-17  Bruno Haible  <bruno@clisp.org>
51703
51704         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51705         Update documentation.
51706         (func_remove_suffix): Escape all dots in the suffix. Update
51707         documentation.
51708         (func_filter_filelist): Update documentation.
51709         Reported by Ralf Wildenhues.
51710
51711 2009-01-17  Bruno Haible  <bruno@clisp.org>
51712
51713         * modules/dprintf-posix-tests: New file.
51714         * tests/test-dprintf-posix.sh: New file.
51715         * tests/test-dprintf-posix.c: New file.
51716
51717         New modules 'dprintf', 'dprintf-posix'.
51718         * lib/stdio.in.h (dprintf): New declaration.
51719         * lib/dprintf.c: New file.
51720         * m4/dprintf.m4: New file.
51721         * m4/dprintf-posix.m4: New file.
51722         * modules/dprintf: New file.
51723         * modules/dprintf-posix: New file.
51724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51725         HAVE_DPRINTF, REPLACE_DPRINTF.
51726         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51727         HAVE_DPRINTF, REPLACE_DPRINTF.
51728         * doc/posix-functions/dprintf.texi: Mention the new modules.
51729
51730 2009-01-17  Bruno Haible  <bruno@clisp.org>
51731
51732         * modules/vdprintf-posix-tests: New file.
51733         * tests/test-vdprintf-posix.sh: New file.
51734         * tests/test-vdprintf-posix.c: New file.
51735
51736         New modules 'vdprintf', 'vdprintf-posix'.
51737         * lib/stdio.in.h (vdprintf): New declaration.
51738         * lib/vdprintf.c: New file.
51739         * m4/vdprintf.m4: New file.
51740         * m4/vdprintf-posix.m4: New file.
51741         * modules/vdprintf: New file.
51742         * modules/vdprintf-posix: New file.
51743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51744         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51745         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51746         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51747         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51748
51749 2009-01-17  Bruno Haible  <bruno@clisp.org>
51750
51751         Fix replacement of fopen on mingw.
51752         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51753         mingw.
51754
51755 2009-01-17  Bruno Haible  <bruno@clisp.org>
51756
51757         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51758         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51759
51760 2009-01-17  Bruno Haible  <bruno@clisp.org>
51761
51762         Avoid test-fflush2.sh failure on mingw.
51763         * tests/test-fflush2.c: Include binary-io.h.
51764         (main): Put standard input into binary mode.
51765         * modules/fflush-tests (Depends-on): Add binary-io.
51766
51767 2009-01-17  Bruno Haible  <bruno@clisp.org>
51768
51769         * lib/wchar.in.h: In another particular situation, include only the
51770         system's <wchar.h> file.
51771         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51772         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51773         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51774
51775 2009-01-17  Bruno Haible  <bruno@clisp.org>
51776
51777         Support for stripping executables in --enable-relocatable.
51778         * build-aux/install-reloc: Expect one more argument, or an environment
51779         variable RELOC_STRIP_PROG. If set, strip the destination program and
51780         its wrapper.
51781         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51782         RELOC_STRIP_PROG.
51783         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51784         to set RELOCATABLE_STRIP.
51785         * NEWS: Mention the new Makefile requirement.
51786
51787 2009-01-17  Bruno Haible  <bruno@clisp.org>
51788
51789         * build-aux/install-reloc: Remove debugging information left over by
51790         C compiler on MacOS X.
51791
51792 2009-01-17  Bruno Haible  <bruno@clisp.org>
51793
51794         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51795         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51796         _NSGetExecutablePath.
51797
51798 2009-01-16  Jim Meyering  <meyering@redhat.com>
51799
51800         strerror: avoid warnings about discarding "const"
51801         * lib/strerror.c (rpl_strerror): Instead of returning a const
51802         string from each and every "case", use a variable, and add a single
51803         cast after the switch.
51804
51805 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51806
51807         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51808
51809 2009-01-16  Bruno Haible  <bruno@clisp.org>
51810
51811         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51812         array initializer syntax that also works in C++ mode.
51813         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51814
51815 2009-01-16  Jim Meyering  <meyering@redhat.com>
51816
51817         poll: suppress a warning
51818         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51819         to ignore "...unsigned expression < 0 is always false" warnings.
51820
51821 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51822
51823         poll: remove declarations of unused variables
51824         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51825         sockbuf and optlen.
51826
51827 2009-01-15  Bruno Haible  <bruno@clisp.org>
51828
51829         Make fflush-after-ungetc POSIX compliant on BSD systems.
51830         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51831         (clear_ungetc_buffer): Implement also for other systems.
51832         (rpl_fflush): On glibc systems, invoke
51833         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51834         clear_ungetc_buffer after fetching the stream's position, not before.
51835
51836 2009-01-15  Bruno Haible  <bruno@clisp.org>
51837
51838         Make fflush-after-ungetc POSIX compliant on glibc systems.
51839         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51840         after ungetc.
51841         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51842         (rpl_fflush): On glibc systems, simply call the system's fflush
51843         function after clearing the ungetc buffer.
51844         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51845         Instead, lseek only to the end of file, then use the system's fseeko
51846         for the rest. On glibc systems, reset the EOF indicator bit.
51847
51848 2009-01-15  Jim Meyering  <meyering@redhat.com>
51849
51850         openmp.m4: revert quote-adding change, for portability to older autoconf
51851         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51852         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51853         Simon Josefsson noticed the problem when using autoconf-2.61.
51854
51855 2009-01-15  Bruno Haible  <bruno@clisp.org>
51856
51857         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51858         * tests/test-fflush2.c (ASSERT): Always fail.
51859         (main): Add two tests for fflush() after ungetc(), taking into account
51860         the Austin Group's clarification.
51861         Suggested by Eric Blake.
51862
51863 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51864
51865         mktime.m4: remove K&R-style function prototypes
51866         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51867         for the Sun C++ compiler.
51868
51869 2009-01-14  Bruno Haible  <bruno@clisp.org>
51870
51871         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51872         while including <wchar.h>.
51873         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51874         the system's <wchar.h> file.
51875         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51876
51877 2009-01-14  Bruno Haible  <bruno@clisp.org>
51878
51879         * m4/csharp.m4: Don't mention gettext on the serial number line.
51880         * m4/csharpexec.m4: Likewise.
51881         * m4/eaccess.m4: Likewise.
51882         * m4/javaexec.m4: Likewise.
51883         * m4/sig_atomic_t.m4: Likewise.
51884         * m4/tmpdir.m4: Likewise.
51885         * m4/intldir.m4: Bump gettext version.
51886         * m4/lib-ld.m4: Likewise.
51887
51888 2009-01-14  Bruno Haible  <bruno@clisp.org>
51889
51890         * lib/progname.c (set_program_name): Add more comments.
51891         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51892
51893 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51894
51895         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51896         were sys/stat.h does not define it.
51897
51898 2009-01-14  Jim Meyering  <meyering@redhat.com>
51899
51900         many *.m4 files: improve m4 quoting
51901         99% of this change was performed by running the following commands:
51902         git ls-files | grep '\.m4$' | xargs perl -pi \
51903           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51904           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51905           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51906           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51907         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51908         The remainder were to add Copyright dates, increment serial numbers,
51909         undo some changes in comments, exclude m4/intl.m4, and add quotes
51910         around the "1" in ",1" where the unusual spacing prohibited the
51911         above regexps from doing the job.  For more details, see
51912         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51913         * m4/acl.m4: Modified.
51914         * m4/afs.m4: Likewise.
51915         * m4/alloca.m4: Likewise.
51916         * m4/argp.m4: Likewise.
51917         * m4/argz.m4: Likewise.
51918         * m4/atexit.m4: Likewise.
51919         * m4/bison-i18n.m4: Likewise.
51920         * m4/bison.m4: Likewise.
51921         * m4/byteswap.m4: Likewise.
51922         * m4/c-stack.m4: Likewise.
51923         * m4/c-strtod.m4: Likewise.
51924         * m4/calloc.m4: Likewise.
51925         * m4/canonicalize-lgpl.m4: Likewise.
51926         * m4/chown.m4: Likewise.
51927         * m4/clock_time.m4: Likewise.
51928         * m4/codeset.m4: Likewise.
51929         * m4/copy-file.m4: Likewise.
51930         * m4/csharp.m4: Likewise.
51931         * m4/csharpcomp.m4: Likewise.
51932         * m4/csharpexec.m4: Likewise.
51933         * m4/d-ino.m4: Likewise.
51934         * m4/d-type.m4: Likewise.
51935         * m4/dirfd.m4: Likewise.
51936         * m4/double-slash-root.m4: Likewise.
51937         * m4/eaccess.m4: Likewise.
51938         * m4/eealloc.m4: Likewise.
51939         * m4/environ.m4: Likewise.
51940         * m4/errno_h.m4: Likewise.
51941         * m4/euidaccess.m4: Likewise.
51942         * m4/execute.m4: Likewise.
51943         * m4/fatal-signal.m4: Likewise.
51944         * m4/fchdir.m4: Likewise.
51945         * m4/fcntl_h.m4: Likewise.
51946         * m4/fileblocks.m4: Likewise.
51947         * m4/filenamecat.m4: Likewise.
51948         * m4/findprog.m4: Likewise.
51949         * m4/flexmember.m4: Likewise.
51950         * m4/fnmatch.m4: Likewise.
51951         * m4/fopen.m4: Likewise.
51952         * m4/fpending.m4: Likewise.
51953         * m4/fprintf-posix.m4: Likewise.
51954         * m4/free.m4: Likewise.
51955         * m4/frexp.m4: Likewise.
51956         * m4/frexpl.m4: Likewise.
51957         * m4/fsusage.m4: Likewise.
51958         * m4/ftruncate.m4: Likewise.
51959         * m4/gc-camellia.m4: Likewise.
51960         * m4/gc-random.m4: Likewise.
51961         * m4/gc.m4: Likewise.
51962         * m4/getaddrinfo.m4: Likewise.
51963         * m4/getcwd-abort-bug.m4: Likewise.
51964         * m4/getcwd-path-max.m4: Likewise.
51965         * m4/getdate.m4: Likewise.
51966         * m4/getdomainname.m4: Likewise.
51967         * m4/getgroups.m4: Likewise.
51968         * m4/gethostname.m4: Likewise.
51969         * m4/gethrxtime.m4: Likewise.
51970         * m4/getline.m4: Likewise.
51971         * m4/getloadavg.m4: Likewise.
51972         * m4/getndelim2.m4: Likewise.
51973         * m4/getpass.m4: Likewise.
51974         * m4/gettext.m4: Likewise.
51975         * m4/gettime.m4: Likewise.
51976         * m4/gettimeofday.m4: Likewise.
51977         * m4/gnulib-common.m4: Likewise.
51978         * m4/group-member.m4: Likewise.
51979         * m4/host-os.m4: Likewise.
51980         * m4/iconv.m4: Likewise.
51981         * m4/iconv_open.m4: Likewise.
51982         * m4/inet_ntop.m4: Likewise.
51983         * m4/inet_pton.m4: Likewise.
51984         * m4/inline.m4: Likewise.
51985         * m4/intldir.m4: Likewise.
51986         * m4/intlmacosx.m4: Likewise.
51987         * m4/intmax.m4: Likewise.
51988         * m4/intmax_t.m4: Likewise.
51989         * m4/inttypes.m4: Likewise.
51990         * m4/inttypes_h.m4: Likewise.
51991         * m4/inttypes-pri.m4: Likewise.
51992         * m4/isapipe.m4: Likewise.
51993         * m4/isnand.m4: Likewise.
51994         * m4/isnanf.m4: Likewise.
51995         * m4/isnanl.m4: Likewise.
51996         * m4/javacomp.m4: Likewise.
51997         * m4/javaexec.m4: Likewise.
51998         * m4/jm-winsz1.m4: Likewise.
51999         * m4/jm-winsz2.m4: Likewise.
52000         * m4/lchown.m4: Likewise.
52001         * m4/lcmessage.m4: Likewise.
52002         * m4/ldexpl.m4: Likewise.
52003         * m4/lib-ld.m4: Likewise.
52004         * m4/lib-link.m4: Likewise.
52005         * m4/libsigsegv.m4: Likewise.
52006         * m4/link-follow.m4: Likewise.
52007         * m4/localcharset.m4: Likewise.
52008         * m4/locale-fr.m4: Likewise.
52009         * m4/locale-ja.m4: Likewise.
52010         * m4/locale-tr.m4: Likewise.
52011         * m4/locale-zh.m4: Likewise.
52012         * m4/lock.m4: Likewise.
52013         * m4/longlong.m4: Likewise.
52014         * m4/ls-mntd-fs.m4: Likewise.
52015         * m4/lstat.m4: Likewise.
52016         * m4/malloc.m4: Likewise.
52017         * m4/mathl.m4: Likewise.
52018         * m4/mbrtowc.m4: Likewise.
52019         * m4/mbstate_t.m4: Likewise.
52020         * m4/mbswidth.m4: Likewise.
52021         * m4/memchr.m4: Likewise.
52022         * m4/memcmp.m4: Likewise.
52023         * m4/memcpy.m4: Likewise.
52024         * m4/memmem.m4: Likewise.
52025         * m4/memmove.m4: Likewise.
52026         * m4/mempcpy.m4: Likewise.
52027         * m4/memrchr.m4: Likewise.
52028         * m4/memset.m4: Likewise.
52029         * m4/minmax.m4: Likewise.
52030         * m4/mkdir-slash.m4: Likewise.
52031         * m4/mkdtemp.m4: Likewise.
52032         * m4/mktime.m4: Likewise.
52033         * m4/mmap-anon.m4: Likewise.
52034         * m4/mountlist.m4: Likewise.
52035         * m4/nanosleep.m4: Likewise.
52036         * m4/nls.m4: Likewise.
52037         * m4/nocrash.m4: Likewise.
52038         * m4/open.m4: Likewise.
52039         * m4/openat.m4: Likewise.
52040         * m4/openmp.m4: Likewise.
52041         * m4/pathmax.m4: Likewise.
52042         * m4/perl.m4: Likewise.
52043         * m4/physmem.m4: Likewise.
52044         * m4/pipe.m4: Likewise.
52045         * m4/po.m4: Likewise.
52046         * m4/poll.m4: Likewise.
52047         * m4/posixtm.m4: Likewise.
52048         * m4/posixver.m4: Likewise.
52049         * m4/printf-frexp.m4: Likewise.
52050         * m4/printf-frexpl.m4: Likewise.
52051         * m4/printf-posix.m4: Likewise.
52052         * m4/printf-posix-rpl.m4: Likewise.
52053         * m4/printf.m4: Likewise.
52054         * m4/progtest.m4: Likewise.
52055         * m4/putenv.m4: Likewise.
52056         * m4/readline.m4: Likewise.
52057         * m4/readlink.m4: Likewise.
52058         * m4/readutmp.m4: Likewise.
52059         * m4/realloc.m4: Likewise.
52060         * m4/regex.m4: Likewise.
52061         * m4/relocatable.m4: Likewise.
52062         * m4/relocatable-lib.m4: Likewise.
52063         * m4/rename-dest-slash.m4: Likewise.
52064         * m4/rename.m4: Likewise.
52065         * m4/rmdir-errno.m4: Likewise.
52066         * m4/rmdir.m4: Likewise.
52067         * m4/roundf.m4: Likewise.
52068         * m4/roundl.m4: Likewise.
52069         * m4/rpmatch.m4: Likewise.
52070         * m4/save-cwd.m4: Likewise.
52071         * m4/selinux-selinux-h.m4: Likewise.
52072         * m4/setenv.m4: Likewise.
52073         * m4/settime.m4: Likewise.
52074         * m4/sig2str.m4: Likewise.
52075         * m4/sig_atomic_t.m4: Likewise.
52076         * m4/signalblocking.m4: Likewise.
52077         * m4/signbit.m4: Likewise.
52078         * m4/sigpipe.m4: Likewise.
52079         * m4/sockets.m4: Likewise.
52080         * m4/sockpfaf.m4: Likewise.
52081         * m4/st_dm_mode.m4: Likewise.
52082         * m4/stat-time.m4: Likewise.
52083         * m4/stdbool.m4: Likewise.
52084         * m4/stdint.m4: Likewise.
52085         * m4/stdint_h.m4: Likewise.
52086         * m4/stpcpy.m4: Likewise.
52087         * m4/stpncpy.m4: Likewise.
52088         * m4/strcase.m4: Likewise.
52089         * m4/strchrnul.m4: Likewise.
52090         * m4/strcspn.m4: Likewise.
52091         * m4/strdup.m4: Likewise.
52092         * m4/strftime.m4: Likewise.
52093         * m4/strndup.m4: Likewise.
52094         * m4/strnlen.m4: Likewise.
52095         * m4/strpbrk.m4: Likewise.
52096         * m4/strptime.m4: Likewise.
52097         * m4/strsep.m4: Likewise.
52098         * m4/strtod.m4: Likewise.
52099         * m4/strtoimax.m4: Likewise.
52100         * m4/strtok_r.m4: Likewise.
52101         * m4/strtol.m4: Likewise.
52102         * m4/strtoll.m4: Likewise.
52103         * m4/strtoul.m4: Likewise.
52104         * m4/strtoull.m4: Likewise.
52105         * m4/strtoumax.m4: Likewise.
52106         * m4/strverscmp.m4: Likewise.
52107         * m4/threadlib.m4: Likewise.
52108         * m4/timegm.m4: Likewise.
52109         * m4/tm_gmtoff.m4: Likewise.
52110         * m4/tmpdir.m4: Likewise.
52111         * m4/tmpfile.m4: Likewise.
52112         * m4/tzset.m4: Likewise.
52113         * m4/uintmax_t.m4: Likewise.
52114         * m4/unlinkdir.m4: Likewise.
52115         * m4/unlocked-io.m4: Likewise.
52116         * m4/uptime.m4: Likewise.
52117         * m4/userspec.m4: Likewise.
52118         * m4/utimbuf.m4: Likewise.
52119         * m4/utime.m4: Likewise.
52120         * m4/utimes-null.m4: Likewise.
52121         * m4/utimes.m4: Likewise.
52122         * m4/vararrays.m4: Likewise.
52123         * m4/vasnprintf.m4: Likewise.
52124         * m4/vfprintf-posix.m4: Likewise.
52125         * m4/vprintf-posix.m4: Likewise.
52126         * m4/wait-process.m4: Likewise.
52127         * m4/wchar_t.m4: Likewise.
52128         * m4/wint_t.m4: Likewise.
52129         * m4/write-any-file.m4: Likewise.
52130         * m4/yield.m4: Likewise.
52131
52132 2009-01-13  Bruno Haible  <bruno@clisp.org>
52133
52134         Avoid test-copy-file.sh failures when ACL support insufficient.
52135         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52136         TESTS_ENVIRONMENT.
52137         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52138         Reported by Jim Meyering.
52139
52140 2009-01-13  Bruno Haible  <bruno@clisp.org>
52141
52142         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52143         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52144         * modules/unistdio/u8-printf-parse (Files): Likewise.
52145         * modules/unistdio/u32-printf-parse (Files): Likewise.
52146         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52147
52148 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52149
52150         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52151         and m4/inttypes_h.m4 too.
52152
52153 2009-01-12  Eric Blake  <ebb9@byu.net>
52154
52155         tests: IRIX 6.2 cc can't compile -0.0 into .data
52156         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52157         rather than at compile-time.
52158         * tests/test-floorl.c (minus_zero): Likewise.
52159         * tests/test-frexpl.c (minus_zero): Likewise.
52160         * tests/test-isnan.c (minus_zerol): Likewise.
52161         * tests/test-isnanl.h (minus_zero): Likewise.
52162         * tests/test-ldexpl.c (minus_zero): Likewise.
52163         * tests/test-roundl.c (minus_zero): Likewise.
52164         * tests/test-signbit.c (minus_zerol): Likewise.
52165         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52166         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52167         * tests/test-truncl.c (minus_zero): Likewise.
52168         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52169         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52170         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52171
52172 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52173
52174         regex: fix glibc bug 9697
52175         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52176         handling.
52177
52178 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52179
52180         regex: fix glibc bug 697
52181         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52182         being NULL also if there are no backreferences.
52183
52184 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52185
52186         regex: merge glibc changes
52187         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52188         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52189         re_string_skip_chars, re_string_reconstruct): Likewise.
52190         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52191
52192 2009-01-07  Jim Meyering  <meyering@redhat.com>
52193
52194         poll: filter through cppi
52195         * lib/poll.c: Indent cpp directives to reflect nesting.
52196
52197 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52198
52199         poll: don't return uninitialized
52200         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52201
52202 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52203
52204         avoid compile failure on AIX 6.1
52205         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52206         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52207
52208 2009-01-04  Jim Meyering  <meyering@redhat.com>
52209
52210         remove duplicate inclusion of <stdio.h>
52211         * tests/test-fprintf-posix.c: Likewise.
52212         * tests/test-printf-posix.c: Likewise.
52213         * tests/test-snprintf-posix.c: Likewise.
52214         * tests/test-sprintf-posix.c: Likewise.
52215         * tests/test-vasprintf-posix.c: Likewise.
52216         * tests/test-vfprintf-posix.c: Likewise.
52217         * tests/test-vprintf-posix.c: Likewise.
52218         * tests/test-vsnprintf-posix.c: Likewise.
52219         * tests/test-vsprintf-posix.c: Likewise.
52220
52221 2009-01-03  Jim Meyering  <meyering@redhat.com>
52222
52223         gnulib-tool: fix sed-based filtering
52224         * gnulib-tool (func_filter_filelist): Remove extra backslash
52225         in sed_fff_filter definition.
52226
52227 2009-01-02  Jim Meyering  <meyering@redhat.com>
52228
52229         strftime: avoid compilation failure on Solaris 2.6
52230         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52231         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52232         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52233         be available.  Reported by Tom G. Christensen.  Details in
52234         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52235
52236 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52237             Bruno Haible  <bruno@clisp.org>
52238
52239         Speed up gnulib-tool by doing more string processing through shell
52240         built-ins.
52241         * gnulib-tool (fast_func_append): New variable.
52242         (func_remove_prefix, func_remove_suffix): New functions.
52243         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52244         (func_filter_filelist): New function.
52245         (func_get_dependencies): Use func_remove_suffix instead of sed.
52246         (func_get_automake_snippet): Use func_filter_filelist instead of a
52247         subshell and sed invocation.
52248
52249 2009-01-01  Bruno Haible  <bruno@clisp.org>
52250
52251         Fix a security bug.
52252         * gnulib-tool (func_import, import, update): Don't allow the characters
52253         '"', '$', '`', '\' in macro arguments that become part of commands that
52254         are evaluated.
52255
52256 2009-01-01  Bruno Haible  <bruno@clisp.org>
52257
52258         * gnulib-tool (func_reset_sigpipe): Add more comments.
52259
52260 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52261
52262         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52263         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52264         already know the answer.
52265
52266 2009-01-01  Jim Meyering  <meyering@redhat.com>
52267
52268         * lib/version-etc.c (version_etc_va): Update copyright year.
52269
52270 2008-12-30  Bruno Haible  <bruno@clisp.org>
52271
52272         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52273         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52274         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52275
52276 2008-12-29  Eric Blake  <ebb9@byu.net>
52277
52278         multiarch: avoid autoconf AC_REQUIRE bug
52279         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52280         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52281         2.63 and older.
52282         Reported by Bruno Haible, and analyzed in
52283         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52284
52285 2008-12-29  Bruno Haible  <bruno@clisp.org>
52286
52287         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52288         files in subdirectories correctly.
52289         Reported by Ralf Wildenhues.
52290
52291 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52292
52293         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52294         rather than 'join FILE -', for Solaris join.
52295
52296 2008-12-29  Bruno Haible  <bruno@clisp.org>
52297
52298         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52299         quoting.
52300         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52301         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52302         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52303         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52304         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52305         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52306         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52307         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52308         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52309         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52310         * m4/nls.m4 (AM_NLS): Likewise.
52311         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52312         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52313         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52314         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52315         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52316         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52317         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52318         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52319         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52320         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52321         * m4/xsize.m4 (gl_XSIZE): Likewise.
52322         Suggested by Jim Meyering.
52323
52324 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52325
52326         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52327         * lib/parse-duration.c: use a switch instead of cascading if's.
52328
52329 2008-12-29  Eric Blake  <ebb9@byu.net>
52330
52331         wchar.h: supply WEOF on Irix 5.3
52332         * lib/wchar.in.h (wint_t): Also supply WEOF.
52333         * lib/wctype.in.h (wint_t): Likewise.
52334         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52335         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52336         Reported by Tom G. Christensen.
52337
52338 2008-12-26  Bruno Haible  <bruno@clisp.org>
52339
52340         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52341         i486, i586, i686.
52342
52343 2008-12-26  Bruno Haible  <bruno@clisp.org>
52344
52345         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52346
52347 2008-12-26  Bruno Haible  <bruno@clisp.org>
52348
52349         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52350         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52351         not __STDC_CONSTANT_MACROS.
52352         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52353
52354 2008-12-25  Bruno Haible  <bruno@clisp.org>
52355
52356         Add support for universal builds to vasnprintf.
52357         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52358         universal builds, guess no.
52359         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52360         * modules/vasprintf-posix (Depends-on): Likewise.
52361         * modules/fprintf-posix (Depends-on): Likewise.
52362         * modules/vfprintf-posix (Depends-on): Likewise.
52363         * modules/snprintf-posix (Depends-on): Likewise.
52364         * modules/vsnprintf-posix (Depends-on): Likewise.
52365         * modules/sprintf-posix (Depends-on): Likewise.
52366         * modules/vsprintf-posix (Depends-on): Likewise.
52367         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52368         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52369         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52370         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52371         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52372         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52373         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52374
52375         Add support for universal builds to <inttypes.h>.
52376         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52377         _SCNu64_PREFIX): In Apple
52378         universal builds, define directly, using _LP64.
52379         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52380         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52381         * modules/inttypes (Depends-on): Add multiarch.
52382         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52383
52384         Add support for universal builds to <stdint.h>.
52385         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52386         universal builds, define directly, using _LP64.
52387         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52388         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52389         and size_t.
52390         * modules/stdint (Depends-on): Add multiarch.
52391         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52392
52393         New module 'multiarch'.
52394         * modules/multiarch: New file.
52395         * m4/multiarch.m4: New file.
52396
52397 2008-12-25  Bruno Haible  <bruno@clisp.org>
52398
52399         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52400
52401 2008-12-25  Bruno Haible  <bruno@clisp.org>
52402
52403         * modules/btowc (License): Relicense under LGPLv2+.
52404         * modules/mbsinit (License): Likewise.
52405         * modules/mbrtowc (License): Likewise.
52406         * modules/wcrtomb (License): Likewise.
52407         * modules/streq (License): Likewise.
52408         Reported by David Lutterkort <lutter@redhat.com>.
52409
52410 2008-12-23  Bruno Haible  <bruno@clisp.org>
52411
52412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52413
52414 2008-12-23  Bruno Haible  <bruno@clisp.org>
52415
52416         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52417         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52418         GETADDRINFO_LIB, not in LIBS.
52419         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52420         * modules/canon-host (Link): Likewise.
52421         * NEWS: Mention the change.
52422         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52423         GETADDRINFO_LIB.
52424
52425 2008-12-22  Bruno Haible  <bruno@clisp.org>
52426
52427         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52428         * doc/posix-functions/iswalpha_l.texi: Likewise.
52429         * doc/posix-functions/iswblank_l.texi: Likewise.
52430         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52431         * doc/posix-functions/iswctype_l.texi: Likewise.
52432         * doc/posix-functions/iswdigit_l.texi: Likewise.
52433         * doc/posix-functions/iswgraph_l.texi: Likewise.
52434         * doc/posix-functions/iswlower_l.texi: Likewise.
52435         * doc/posix-functions/iswprint_l.texi: Likewise.
52436         * doc/posix-functions/iswpunct_l.texi: Likewise.
52437         * doc/posix-functions/iswspace_l.texi: Likewise.
52438         * doc/posix-functions/iswupper_l.texi: Likewise.
52439         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52440         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52441         * doc/posix-functions/open_wmemstream.texi: Likewise.
52442         * doc/posix-functions/swscanf.texi: Likewise.
52443         * doc/posix-functions/towctrans_l.texi: Likewise.
52444         * doc/posix-functions/towlower.texi: Likewise.
52445         * doc/posix-functions/towlower_l.texi: Likewise.
52446         * doc/posix-functions/towupper.texi: Likewise.
52447         * doc/posix-functions/towupper_l.texi: Likewise.
52448         * doc/posix-functions/vfwprintf.texi: Likewise.
52449         * doc/posix-functions/vfwscanf.texi: Likewise.
52450         * doc/posix-functions/vswscanf.texi: Likewise.
52451         * doc/posix-functions/vwprintf.texi: Likewise.
52452         * doc/posix-functions/vwscanf.texi: Likewise.
52453         * doc/posix-functions/wcpcpy.texi: Likewise.
52454         * doc/posix-functions/wcpncpy.texi: Likewise.
52455         * doc/posix-functions/wcscasecmp.texi: Likewise.
52456         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52457         * doc/posix-functions/wcscoll_l.texi: Likewise.
52458         * doc/posix-functions/wcsdup.texi: Likewise.
52459         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52460         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52461         * doc/posix-functions/wcsnlen.texi: Likewise.
52462         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52463         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52464         * doc/posix-functions/wctrans_l.texi: Likewise.
52465         * doc/posix-functions/wctype_l.texi: Likewise.
52466         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52467         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52468         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52469         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52470         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52471         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52472         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52473         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52474         * doc/glibc-functions/wcschrnul.texi: Likewise.
52475         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52476         * doc/glibc-functions/wcstod_l.texi: Likewise.
52477         * doc/glibc-functions/wcstof_l.texi: Likewise.
52478         * doc/glibc-functions/wcstol_l.texi: Likewise.
52479         * doc/glibc-functions/wcstold_l.texi: Likewise.
52480         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52481         * doc/glibc-functions/wcstoq.texi: Likewise.
52482         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52483         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52484         * doc/glibc-functions/wcstouq.texi: Likewise.
52485         * doc/glibc-functions/wmempcpy.texi: Likewise.
52486
52487 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52488             Eric Blake  <ebb9@byu.net>
52489             Paolo Bonzini  <bonzini@gnu.org>
52490             Bruno Haible  <bruno@clisp.org>
52491
52492         Make c-stack work on Haiku.
52493         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52494         (c_stack_action): Use SA_ONSTACK flag.
52495
52496 2008-12-22  Bruno Haible  <bruno@clisp.org>
52497
52498         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52499
52500 2008-12-22  Bruno Haible  <bruno@clisp.org>
52501
52502         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52503         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52504         being overridden.
52505         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52506         New macros.
52507         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52508         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52509         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52510         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52511
52512 2008-12-22  Bruno Haible  <bruno@clisp.org>
52513
52514         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52515         from test code.
52516
52517 2008-12-22  Eric Blake  <ebb9@byu.net>
52518
52519         Avoid gcc warnings on cygwin.
52520         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52521         Avoid unused variable.
52522         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52523         Likewise.
52524
52525 2008-12-22  Bruno Haible  <bruno@clisp.org>
52526
52527         Remove HAVE_MBRTOWC conditionals.
52528         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52529         (mbscasecmp): Assume mbrtowc function.
52530         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52531         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52532         * lib/mbschr.c: Include mbuiter.h unconditionally.
52533         (mbschr): Assume mbrtowc function.
52534         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52535         (mbscspn): Assume mbrtowc function.
52536         * lib/mbslen.c: Include mbuiter.h unconditionally.
52537         (mbslen): Assume mbrtowc function.
52538         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52539         (mbsncasecmp): Assume mbrtowc function.
52540         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52541         (mbsnlen): Assume mbrtowc function.
52542         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52543         (mbspbrk): Assume mbrtowc function.
52544         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52545         (mbspcasecmp): Assume mbrtowc function.
52546         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52547         (mbsrchr): Assume mbrtowc function.
52548         * lib/mbssep.c: Include mbuiter.h unconditionally.
52549         (mbssep): Assume mbrtowc function.
52550         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52551         (mbsspn): Assume mbrtowc function.
52552         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52553         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52554         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52555         (mbstok_r): Assume mbrtowc function.
52556         * lib/propername.c: Include mbuiter.h unconditionally.
52557         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52558         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52559         (trim2): Assume mbrtowc function.
52560         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52561         (mbsnwidth): Assume mbrtowc function.
52562         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52563         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52564         fallback definitions.
52565         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52566
52567 2008-12-22  Bruno Haible  <bruno@clisp.org>
52568
52569         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52570
52571 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52572
52573         * modules/regex: Request emulations for the mb*/wc* functions we need.
52574         * m4/regex.m4: Don't look for those functions here.
52575         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52576
52577 2008-12-22  Bruno Haible  <bruno@clisp.org>
52578
52579         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52580
52581 2008-12-21  Bruno Haible  <bruno@clisp.org>
52582
52583         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52584         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52585         (Include): Remove conditionalization.
52586         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52587         (Include): Remove conditionalization.
52588         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52589         (Include): Remove conditionalization.
52590         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52591         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52592         * NEWS: Mention the change.
52593         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52594         via Sergey Poznyakoff <gray@gnu.org.ua>.
52595
52596 2008-12-21  Bruno Haible  <bruno@clisp.org>
52597
52598         * MODULES.html.sh (Extended multibyte and wide character utilities
52599         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52600         wcrtomb, wcsrtombs.
52601         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52602         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52603         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52604         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52605
52606 2008-12-21  Bruno Haible  <bruno@clisp.org>
52607
52608         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52609
52610 2008-12-21  Bruno Haible  <bruno@clisp.org>
52611
52612         * modules/wcsnrtombs-tests: New file.
52613         * tests/test-wcsnrtombs1.sh: New file.
52614         * tests/test-wcsnrtombs2.sh: New file.
52615         * tests/test-wcsnrtombs3.sh: New file.
52616         * tests/test-wcsnrtombs4.sh: New file.
52617         * tests/test-wcsnrtombs.c: New file.
52618
52619         New module 'wcsnrtombs'.
52620         * lib/wchar.in.h (wcsnrtombs): New declaration.
52621         * lib/wcsnrtombs.c: New file.
52622         * lib/wcsrtombs-state.c: New file.
52623         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52624         (internal_state): Remove variable.
52625         * m4/wcsnrtombs.m4: New file.
52626         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52627         compilation units.
52628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52629         HAVE_WCSNRTOMBS.
52630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52631         HAVE_WCSNRTOMBS.
52632         * modules/wcsnrtombs: New file.
52633         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52634         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52635
52636 2008-12-21  Bruno Haible  <bruno@clisp.org>
52637
52638         * modules/wcsrtombs-tests: New file.
52639         * tests/test-wcsrtombs1.sh: New file.
52640         * tests/test-wcsrtombs2.sh: New file.
52641         * tests/test-wcsrtombs3.sh: New file.
52642         * tests/test-wcsrtombs4.sh: New file.
52643         * tests/test-wcsrtombs.c: New file.
52644
52645         New module 'wcsrtombs'.
52646         * lib/wchar.in.h (wcsrtombs): New declaration.
52647         * lib/wcsrtombs.c: New file.
52648         * m4/wcsrtombs.m4: New file.
52649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52650         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52652         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52653         * modules/wcsrtombs: New file.
52654         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52655         bugs.
52656
52657 2008-12-21  Bruno Haible  <bruno@clisp.org>
52658
52659         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52660         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52661         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52662         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52663         if not correct.
52664         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52665         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52666         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52667         m4/locale-zh.m4, m4/codeset.m4.
52668         * doc/posix-functions/wcrtomb.texi: Document the bug.
52669
52670 2008-12-21  Bruno Haible  <bruno@clisp.org>
52671
52672         Work around a btowc() bug on IRIX 6.5.
52673         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52674         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52675         REPLACE_WTOBC if not.
52676         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52677         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52678         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52679
52680 2008-12-21  Bruno Haible  <bruno@clisp.org>
52681
52682         * modules/wcrtomb-tests: New file.
52683         * tests/test-wcrtomb.sh: New file.
52684         * tests/test-wcrtomb.c: New file.
52685
52686         New module 'wcrtomb'.
52687         * lib/wchar.in.h (wcrtomb): New declaration.
52688         * lib/wcrtomb.c: New file.
52689         * m4/wcrtomb.m4: New file.
52690         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52691         HAVE_WCRTOMB.
52692         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52693         HAVE_WCRTOMB.
52694         * modules/wcrtomb: New file.
52695         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52696
52697 2008-12-21  Bruno Haible  <bruno@clisp.org>
52698
52699         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52700         * modules/mbsrtowcs (Files): Likewise.
52701         * modules/wctob (Files): Likewise.
52702         * modules/c-strcase-tests (Files): Likewise.
52703         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52704         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52705         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52706         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52707         * modules/vasnprintf-posix-tests (Files): Likewise.
52708
52709 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52710
52711         gitlog-to-changelog: pass all command-line arguments to git-log
52712         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52713         it is sometimes convenient to filter the commits in various ways.
52714         gitlog-to-changelog only allows --since to specify a start date,
52715         but git-log itself supports many other filtering mechanisms.
52716         At the moment, I want to filter by branch name.  Rather than
52717         adding a --branch option to gitlog-to-changelog, it seems more
52718         flexible to simply pass all options directly to git-log and let
52719         git do the work.  Notice that this effectively makes --since a
52720         redundant option for gitlog-to-changelog, but removing it would
52721         require current usage to change since calls would then require
52722         an additional '--'.
52723
52724 2008-12-21  Bruno Haible  <bruno@clisp.org>
52725
52726         * modules/mbsnrtowcs-tests: New file.
52727         * tests/test-mbsnrtowcs1.sh: New file.
52728         * tests/test-mbsnrtowcs2.sh: New file.
52729         * tests/test-mbsnrtowcs3.sh: New file.
52730         * tests/test-mbsnrtowcs4.sh: New file.
52731         * tests/test-mbsnrtowcs.c: New file.
52732
52733         New module 'mbsnrtowcs'.
52734         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52735         * lib/mbsnrtowcs.c: New file.
52736         * lib/mbsrtowcs-state.c: New file.
52737         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52738         (internal_state): Remove variable.
52739         * m4/mbsnrtowcs.m4: New file.
52740         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52741         compilation units.
52742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52743         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52744         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52745         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52746         * modules/mbsnrtowcs: New file.
52747         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52748         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52749         portability problem.
52750
52751 2008-12-21  Bruno Haible  <bruno@clisp.org>
52752
52753         Work around mbsrtowcs bug.
52754         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52755         (gl_FUNC_MBSRTOWCS): Invoke it.
52756         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52757         m4/locale-zh.m4.
52758         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52759
52760 2008-12-21  Bruno Haible  <bruno@clisp.org>
52761
52762         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52763
52764 2008-12-21  Bruno Haible  <bruno@clisp.org>
52765
52766         Update doc for AIX.
52767         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52768         16-bit wchar_t type.
52769         * doc/posix-functions/btowc.texi: Likewise.
52770         * doc/posix-functions/fgetwc.texi: Likewise.
52771         * doc/posix-functions/fgetws.texi: Likewise.
52772         * doc/posix-functions/fputwc.texi: Likewise.
52773         * doc/posix-functions/fputws.texi: Likewise.
52774         * doc/posix-functions/fwide.texi: Likewise.
52775         * doc/posix-functions/fwprintf.texi: Likewise.
52776         * doc/posix-functions/fwscanf.texi: Likewise.
52777         * doc/posix-functions/getwchar.texi: Likewise.
52778         * doc/posix-functions/getwc.texi: Likewise.
52779         * doc/posix-functions/iswalnum.texi: Likewise.
52780         * doc/posix-functions/iswalpha.texi: Likewise.
52781         * doc/posix-functions/iswblank.texi: Likewise.
52782         * doc/posix-functions/iswcntrl.texi: Likewise.
52783         * doc/posix-functions/iswctype.texi: Likewise.
52784         * doc/posix-functions/iswdigit.texi: Likewise.
52785         * doc/posix-functions/iswgraph.texi: Likewise.
52786         * doc/posix-functions/iswlower.texi: Likewise.
52787         * doc/posix-functions/iswprint.texi: Likewise.
52788         * doc/posix-functions/iswpunct.texi: Likewise.
52789         * doc/posix-functions/iswspace.texi: Likewise.
52790         * doc/posix-functions/iswupper.texi: Likewise.
52791         * doc/posix-functions/iswxdigit.texi: Likewise.
52792         * doc/posix-functions/mbrtowc.texi: Likewise.
52793         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52794         * doc/posix-functions/mbstowcs.texi: Likewise.
52795         * doc/posix-functions/mbtowc.texi: Likewise.
52796         * doc/posix-functions/putwchar.texi: Likewise.
52797         * doc/posix-functions/putwc.texi: Likewise.
52798         * doc/posix-functions/swprintf.texi: Likewise.
52799         * doc/posix-functions/tolower.texi: Likewise.
52800         * doc/posix-functions/toupper.texi: Likewise.
52801         * doc/posix-functions/towctrans.texi: Likewise.
52802         * doc/posix-functions/ungetwc.texi: Likewise.
52803         * doc/posix-functions/vswprintf.texi: Likewise.
52804         * doc/posix-functions/wcrtomb.texi: Likewise.
52805         * doc/posix-functions/wcscat.texi: Likewise.
52806         * doc/posix-functions/wcschr.texi: Likewise.
52807         * doc/posix-functions/wcscmp.texi: Likewise.
52808         * doc/posix-functions/wcscoll.texi: Likewise.
52809         * doc/posix-functions/wcscpy.texi: Likewise.
52810         * doc/posix-functions/wcscspn.texi: Likewise.
52811         * doc/posix-functions/wcsftime.texi: Likewise.
52812         * doc/posix-functions/wcslen.texi: Likewise.
52813         * doc/posix-functions/wcsncat.texi: Likewise.
52814         * doc/posix-functions/wcsncmp.texi: Likewise.
52815         * doc/posix-functions/wcsncpy.texi: Likewise.
52816         * doc/posix-functions/wcspbrk.texi: Likewise.
52817         * doc/posix-functions/wcsrchr.texi: Likewise.
52818         * doc/posix-functions/wcsrtombs.texi: Likewise.
52819         * doc/posix-functions/wcsspn.texi: Likewise.
52820         * doc/posix-functions/wcsstr.texi: Likewise.
52821         * doc/posix-functions/wcstod.texi: Likewise.
52822         * doc/posix-functions/wcstof.texi: Likewise.
52823         * doc/posix-functions/wcstoimax.texi: Likewise.
52824         * doc/posix-functions/wcstok.texi: Likewise.
52825         * doc/posix-functions/wcstold.texi: Likewise.
52826         * doc/posix-functions/wcstoll.texi: Likewise.
52827         * doc/posix-functions/wcstol.texi: Likewise.
52828         * doc/posix-functions/wcstombs.texi: Likewise.
52829         * doc/posix-functions/wcstoull.texi: Likewise.
52830         * doc/posix-functions/wcstoul.texi: Likewise.
52831         * doc/posix-functions/wcstoumax.texi: Likewise.
52832         * doc/posix-functions/wcswidth.texi: Likewise.
52833         * doc/posix-functions/wcsxfrm.texi: Likewise.
52834         * doc/posix-functions/wctob.texi: Likewise.
52835         * doc/posix-functions/wctomb.texi: Likewise.
52836         * doc/posix-functions/wctrans.texi: Likewise.
52837         * doc/posix-functions/wctype.texi: Likewise.
52838         * doc/posix-functions/wcwidth.texi: Likewise.
52839         * doc/posix-functions/wmemchr.texi: Likewise.
52840         * doc/posix-functions/wmemcmp.texi: Likewise.
52841         * doc/posix-functions/wmemcpy.texi: Likewise.
52842         * doc/posix-functions/wmemmove.texi: Likewise.
52843         * doc/posix-functions/wmemset.texi: Likewise.
52844         * doc/posix-functions/wprintf.texi: Likewise.
52845         * doc/posix-functions/wscanf.texi: Likewise.
52846
52847 2008-12-21  Bruno Haible  <bruno@clisp.org>
52848
52849         Update doc for HP-UX 11.11.
52850         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52851         in HP-UX version 11.00, not in all versions of HP-UX 11.
52852         * doc/posix-functions/fwide.texi: Likewise.
52853         * doc/posix-functions/fwprintf.texi: Likewise.
52854         * doc/posix-functions/fwscanf.texi: Likewise.
52855         * doc/posix-functions/inet_ntop.texi: Likewise.
52856         * doc/posix-functions/inet_pton.texi: Likewise.
52857         * doc/posix-functions/mbrlen.texi: Likewise.
52858         * doc/posix-functions/mbrtowc.texi: Likewise.
52859         * doc/posix-functions/mbsinit.texi: Likewise.
52860         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52861         * doc/posix-functions/swprintf.texi: Likewise.
52862         * doc/posix-functions/swscanf.texi: Likewise.
52863         * doc/posix-functions/towctrans.texi: Likewise.
52864         * doc/posix-functions/vfwprintf.texi: Likewise.
52865         * doc/posix-functions/vswprintf.texi: Likewise.
52866         * doc/posix-functions/vwprintf.texi: Likewise.
52867         * doc/posix-functions/wcrtomb.texi: Likewise.
52868         * doc/posix-functions/wcsrtombs.texi: Likewise.
52869         * doc/posix-functions/wcsstr.texi: Likewise.
52870         * doc/posix-functions/wctob.texi: Likewise.
52871         * doc/posix-functions/wctrans.texi: Likewise.
52872         * doc/posix-functions/wmemchr.texi: Likewise.
52873         * doc/posix-functions/wmemcmp.texi: Likewise.
52874         * doc/posix-functions/wmemcpy.texi: Likewise.
52875         * doc/posix-functions/wmemmove.texi: Likewise.
52876         * doc/posix-functions/wmemset.texi: Likewise.
52877         * doc/posix-functions/wprintf.texi: Likewise.
52878         * doc/posix-functions/wscanf.texi: Likewise.
52879
52880 2008-12-21  Bruno Haible  <bruno@clisp.org>
52881
52882         Work around a portability problem.
52883         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52884         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52885
52886 2008-12-20  Bruno Haible  <bruno@clisp.org>
52887
52888         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52889         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52890         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52891         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52892         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52893
52894         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52895         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52896         set.
52897         (GNULIB_defined_mbstate_t): New macro.
52898         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52899         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52900         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52901         reuses the system's mbrtowc function but works around the bugs.
52902         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52903         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52904         macros.
52905         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52906         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52907         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52908         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52909         REPLACE_MBSINIT if mbsinit needs to be overridden.
52910         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52911         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52912         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52913         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52914         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52915         m4/locale-zh.m4.
52916         (Depends): Add mbsinit.
52917         * modules/mbsinit (Depends): Add mbrtowc.
52918         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52919
52920 2008-12-20  Bruno Haible  <bruno@clisp.org>
52921
52922         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52923         so that there are no conversion errors on AIX.
52924         * tests/test-mbsrtowcs.c (main): LIkewise.
52925
52926 2008-12-20  Bruno Haible  <bruno@clisp.org>
52927
52928         Work around wctob bug on Solaris <= 9.
52929         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52930         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52931         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52932         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52933         * modules/wctob (Files): Add m4/locale-fr.m4.
52934         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52935
52936 2008-12-20  Bruno Haible  <bruno@clisp.org>
52937
52938         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52939         /dev/null.
52940         * tests/test-select-in.sh: Likewise.
52941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52942
52943 2008-12-20  Bruno Haible  <bruno@clisp.org>
52944
52945         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52946         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52947         Cygwin 1.5.x.
52948
52949 2008-12-20  Bruno Haible  <bruno@clisp.org>
52950
52951         Ensure mbstate_t is defined on HP-UX 11.11.
52952         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52953         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52954         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52955         AC_USE_SYSTEM_EXTENSIONS.
52956         * modules/fnmatch (Depends-on): Add extensions.
52957         * modules/mbrlen (Depends-on): Likewise.
52958         * modules/mbrtowc (Depends-on): Likewise.
52959         * modules/mbsinit (Depends-on): Likewise.
52960         * modules/mbsrtowcs (Depends-on): Likewise.
52961         * modules/mbswidth (Depends-on): Likewise.
52962         * modules/quotearg (Depends-on): Likewise.
52963         * modules/strftime (Depends-on): Likewise.
52964
52965 2008-12-20  Bruno Haible  <bruno@clisp.org>
52966
52967         Ensure wctob is declared on IRIX 6.5.
52968         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52969         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52970         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52972         of HAVE_WCTOB.
52973         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52974         HAVE_WCTOB.
52975         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52976
52977 2008-12-19  Bruno Haible  <bruno@clisp.org>
52978
52979         * modules/mbsrtowcs-tests: New file.
52980         * tests/test-mbsrtowcs1.sh: New file.
52981         * tests/test-mbsrtowcs2.sh: New file.
52982         * tests/test-mbsrtowcs3.sh: New file.
52983         * tests/test-mbsrtowcs4.sh: New file.
52984         * tests/test-mbsrtowcs.c: New file.
52985
52986         New module 'mbsrtowcs'.
52987         * lib/wchar.in.h (mbsrtowcs): New declaration.
52988         * lib/mbsrtowcs.c: New file.
52989         * m4/mbsrtowcs.m4: New file.
52990         * modules/mbsrtowcs: New file.
52991         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52992         HAVE_MBSRTOWCS.
52993         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52994         HAVE_MBSRTOWCS.
52995         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52996
52997 2008-12-19  Bruno Haible  <bruno@clisp.org>
52998
52999         New module 'mbrlen'.
53000         * lib/wchar.in.h (mbrlen): New declaration.
53001         * lib/mbrlen.c: New file.
53002         * m4/mbrlen.m4: New file.
53003         * modules/mbrlen: New file.
53004         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53005         HAVE_MBRLEN.
53006         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53007         HAVE_MBRLEN.
53008         * doc/posix-functions/mbrlen.texi: Document the new module.
53009
53010 2008-12-19  Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53013         * modules/mbrtowc (Depends-on): Add verify.
53014         Suggested by Paul Eggert.
53015
53016 2008-12-18  Bruno Haible  <bruno@clisp.org>
53017
53018         * modules/mbsinit-tests: New file.
53019         * tests/test-mbsinit.sh: New file.
53020         * tests/test-mbsinit.c: New file.
53021
53022 2008-12-18  Bruno Haible  <bruno@clisp.org>
53023
53024         * modules/mbrtowc-tests: New file.
53025         * tests/test-mbrtowc1.sh: New file.
53026         * tests/test-mbrtowc2.sh: New file.
53027         * tests/test-mbrtowc3.sh: New file.
53028         * tests/test-mbrtowc4.sh: New file.
53029         * tests/test-mbrtowc.c: New file.
53030
53031         New module 'mbrtowc'.
53032         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53033         mbsinit and mbrtowc.
53034         (mbrtowc): New declaration.
53035         * lib/mbrtowc.c: New file.
53036         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53037         * modules/mbrtowc: New file.
53038         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53039         HAVE_MBRTOWC.
53040         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53041         HAVE_MBRTOWC.
53042         * doc/posix-functions/mbrtowc.texi: Document the new module.
53043
53044 2008-12-18  Bruno Haible  <bruno@clisp.org>
53045
53046         New module 'wctob'.
53047         * lib/wchar.in.h (wctob): New declaration.
53048         * lib/wctob.c: New file.
53049         * m4/wctob.m4: New file.
53050         * modules/wctob: New file.
53051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53052         HAVE_WCTOB.
53053         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53054         * doc/posix-functions/wctob.texi: Document the new module.
53055
53056 2008-12-18  Bruno Haible  <bruno@clisp.org>
53057
53058         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53059         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53060
53061 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53062
53063         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53064         G. Christensen" <tgc@jupiterrise.com>.
53065
53066         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53067         G. Christensen" <tgc@jupiterrise.com>.
53068
53069         * lib/flock.c: Need to include string.h.  Reported by "Tom
53070         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53071         <ebb9@byu.net>.
53072
53073 2008-12-18  Bruno Haible  <bruno@clisp.org>
53074
53075         * m4/locale-ja.m4: New file, from GNU gettext.
53076
53077 2008-12-17  Bruno Haible  <bruno@clisp.org>
53078
53079         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53080         Suggested by Eric Blake.
53081
53082 2008-12-17  Bruno Haible  <bruno@clisp.org>
53083
53084         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53085
53086 2008-12-17  Bruno Haible  <bruno@clisp.org>
53087
53088         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53089         * modules/mbsinit (Depends-on): Add verify.
53090         Suggested by Paul Eggert.
53091
53092 2008-12-17  Bruno Haible  <bruno@clisp.org>
53093
53094         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53095         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53096         gl_FUNC_MBRTOWC.
53097         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53098         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53099         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53100         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53101         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53102         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53103         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53104         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53105         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53106         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53107         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53108         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53109         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53110         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53111         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53112         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53113         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53114         * modules/trim (configure.ac): Likewise.
53115
53116 2008-12-17  Bruno Haible  <bruno@clisp.org>
53117
53118         * modules/btowc-tests: New file.
53119         * tests/test-btowc1.sh: New file.
53120         * tests/test-btowc2.sh: New file.
53121         * tests/test-btowc.c: New file.
53122
53123         New module 'btowc'.
53124         * lib/wchar.in.h (btowc): New declaration.
53125         * lib/btowc.c: New file.
53126         * m4/btowc.m4: New file.
53127         * modules/btowc: New file.
53128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53129         HAVE_BTOWC.
53130         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53131         * doc/posix-functions/btowc.texi: Document the new module.
53132
53133 2008-12-17  Bruno Haible  <bruno@clisp.org>
53134
53135         New module 'mbsinit'.
53136         * lib/wchar.in.h (mbsinit): New declaration.
53137         * lib/mbsinit.c: New file.
53138         * m4/mbsinit.m4: New file.
53139         * modules/mbsinit: New file.
53140         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53141         HAVE_MBSINIT.
53142         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53143         HAVE_MBSINIT.
53144         * doc/posix-functions/mbsinit.texi: Document the new module.
53145
53146 2008-12-16  Bruno Haible  <bruno@clisp.org>
53147
53148         * lib/unistd.in.h: Add comment.
53149         * tests/test-environ.c: Don't include <stdlib.h>.
53150
53151 2008-12-16  Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/parse-duration.h (parse_duration): Document return value
53154         convention.
53155         * lib/parse-duration.c: Include specification header first. Add
53156         comments.
53157         (_): Remove macro.
53158         (parse_year_month_day, parse_hour_minute_second): Move side effects
53159         outside of strchr call.
53160         (parse_non_iso8601): Move side effects outside of isspace call.
53161         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53162         call.
53163
53164 2008-12-16  Bruno Haible  <bruno@clisp.org>
53165
53166         * tests/test-parse-duration.sh: Produce no output when the test
53167         succeeds.
53168
53169 2008-12-16  Bruno Haible  <bruno@clisp.org>
53170
53171         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53172         expressions.
53173
53174 2008-12-15  Bruno Haible  <bruno@clisp.org>
53175
53176         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53177         * doc/glibc-functions/flistxattr.texi: Likewise.
53178         * doc/glibc-functions/fopencookie.texi: Likewise.
53179         * doc/glibc-functions/fremovexattr.texi: Likewise.
53180         * doc/glibc-functions/fsetxattr.texi: Likewise.
53181         * doc/glibc-functions/getxattr.texi: Likewise.
53182         * doc/glibc-functions/lgetxattr.texi: Likewise.
53183         * doc/glibc-functions/listxattr.texi: Likewise.
53184         * doc/glibc-functions/llistxattr.texi: Likewise.
53185         * doc/glibc-functions/lremovexattr.texi: Likewise.
53186         * doc/glibc-functions/lsetxattr.texi: Likewise.
53187         * doc/glibc-functions/removexattr.texi: Likewise.
53188         * doc/glibc-functions/setxattr.texi: Likewise.
53189         * doc/posix-functions/open_memstream.texi: Likewise.
53190
53191 2008-12-15  Eric Blake  <ebb9@byu.net>
53192
53193         Update doc for cygwin 1.7.
53194         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53195         functions.
53196         * doc/posix-functions/fchmodat.texi: Likewise.
53197         * doc/posix-functions/fchownat.texi: Likewise.
53198         * doc/posix-functions/fdopendir.texi: Likewise.
53199         * doc/posix-functions/fmemopen.texi: Likewise.
53200         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53201         * doc/posix-functions/fstatat.texi: Likewise.
53202         * doc/posix-functions/futimens.texi: Likewise.
53203         * doc/posix-functions/gai_strerror.texi: Likewise.
53204         * doc/posix-functions/getaddrinfo.texi: Likewise.
53205         * doc/posix-functions/getnameinfo.texi: Likewise.
53206         * doc/posix-functions/if_freenameindex.texi: Likewise.
53207         * doc/posix-functions/if_indextoname.texi: Likewise.
53208         * doc/posix-functions/if_nameindex.texi: Likewise.
53209         * doc/posix-functions/if_nametoindex.texi: Likewise.
53210         * doc/posix-functions/insque.texi: Likewise.
53211         * doc/posix-functions/linkat.texi: Likewise.
53212         * doc/posix-functions/llrint.texi: Likewise.
53213         * doc/posix-functions/llrintf.texi: Likewise.
53214         * doc/posix-functions/llrintl.texi: Likewise.
53215         * doc/posix-functions/lockf.texi: Likewise.
53216         * doc/posix-functions/lrintl.texi: Likewise.
53217         * doc/posix-functions/mkdirat.texi: Likewise.
53218         * doc/posix-functions/mkfifoat.texi: Likewise.
53219         * doc/posix-functions/mknodat.texi: Likewise.
53220         * doc/posix-functions/mq_close.texi: Likewise.
53221         * doc/posix-functions/mq_getattr.texi: Likewise.
53222         * doc/posix-functions/mq_notify.texi: Likewise.
53223         * doc/posix-functions/mq_open.texi: Likewise.
53224         * doc/posix-functions/mq_receive.texi: Likewise.
53225         * doc/posix-functions/mq_send.texi: Likewise.
53226         * doc/posix-functions/mq_setattr.texi: Likewise.
53227         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53228         * doc/posix-functions/mq_timedsend.texi: Likewise.
53229         * doc/posix-functions/mq_unlink.texi: Likewise.
53230         * doc/posix-functions/open_memstream.texi: Likewise.
53231         * doc/posix-functions/openat.texi: Likewise.
53232         * doc/posix-functions/posix_fadvise.texi: Likewise.
53233         * doc/posix-functions/posix_fallocate.texi: Likewise.
53234         * doc/posix-functions/posix_madvise.texi: Likewise.
53235         * doc/posix-functions/posix_memalign.texi: Likewise.
53236         * doc/posix-functions/posix_openpt.texi: Likewise.
53237         * doc/posix-functions/readlinkat.texi: Likewise.
53238         * doc/posix-functions/remque.texi: Likewise.
53239         * doc/posix-functions/renameat.texi: Likewise.
53240         * doc/posix-functions/rintl.texi: Likewise.
53241         * doc/posix-functions/sem_unlink.texi: Likewise.
53242         * doc/posix-functions/shm_open.texi: Likewise.
53243         * doc/posix-functions/shm_unlink.texi: Likewise.
53244         * doc/posix-functions/signgam.texi: Likewise.
53245         * doc/posix-functions/sigset.texi: Likewise.
53246         * doc/posix-functions/stpcpy.texi: Likewise.
53247         * doc/posix-functions/stpncpy.texi: Likewise.
53248         * doc/posix-functions/strerror.texi: Likewise.
53249         * doc/posix-functions/strtod.texi: Likewise.
53250         * doc/posix-functions/symlinkat.texi: Likewise.
53251         * doc/posix-functions/unlinkat.texi: Likewise.
53252         * doc/posix-functions/utimensat.texi: Likewise.
53253         * doc/glibc-functions/bindresvport.texi: Likewise.
53254         * doc/glibc-functions/dn_expand.texi: Likewise.
53255         * doc/glibc-functions/exp10.texi: Likewise.
53256         * doc/glibc-functions/exp10f.texi: Likewise.
53257         * doc/glibc-functions/fgetxattr.texi: Likewise.
53258         * doc/glibc-functions/flistxattr.texi: Likewise.
53259         * doc/glibc-functions/fopencookie.texi: Likewise.
53260         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53261         * doc/glibc-functions/fremovexattr.texi: Likewise.
53262         * doc/glibc-functions/fsetxattr.texi: Likewise.
53263         * doc/glibc-functions/getifaddrs.texi: Likewise.
53264         * doc/glibc-functions/getxattr.texi: Likewise.
53265         * doc/glibc-functions/lgetxattr.texi: Likewise.
53266         * doc/glibc-functions/listxattr.texi: Likewise.
53267         * doc/glibc-functions/llistxattr.texi: Likewise.
53268         * doc/glibc-functions/lremovexattr.texi: Likewise.
53269         * doc/glibc-functions/lsetxattr.texi: Likewise.
53270         * doc/glibc-functions/pow10.texi: Likewise.
53271         * doc/glibc-functions/pow10f.texi: Likewise.
53272         * doc/glibc-functions/rcmd_af.texi: Likewise.
53273         * doc/glibc-functions/removexattr.texi: Likewise.
53274         * doc/glibc-functions/res_init.texi: Likewise.
53275         * doc/glibc-functions/res_mkquery.texi: Likewise.
53276         * doc/glibc-functions/res_query.texi: Likewise.
53277         * doc/glibc-functions/res_querydomain.texi: Likewise.
53278         * doc/glibc-functions/res_send.texi: Likewise.
53279         * doc/glibc-functions/rresvport_af.texi: Likewise.
53280         * doc/glibc-functions/setxattr.texi: Likewise.
53281         * doc/glibc-functions/strcasestr.texi: Likewise.
53282
53283 2008-12-15  Bruno Haible  <bruno@clisp.org>
53284
53285         Fix compilation error on OSF/1 4.0.
53286         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53287         <sys/time.h>, simply delegate to the system header.
53288         Reported by Daniel Richard G. <oss@teragram.com>.
53289
53290 2008-12-15  Bruno Haible  <bruno@clisp.org>
53291
53292         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53293         * doc/posix-functions/fchmodat.texi: Likewise.
53294         * doc/posix-functions/fchownat.texi: Likewise.
53295         * doc/posix-functions/fdopendir.texi: Likewise.
53296         * doc/posix-functions/fstatat.texi: Likewise.
53297         * doc/posix-functions/mkdirat.texi: Likewise.
53298         * doc/posix-functions/unlinkat.texi: Likewise.
53299
53300 2008-12-14  Bruno Haible  <bruno@clisp.org>
53301
53302         Update doc for POSIX:2008.
53303         * doc/posix-functions/faccessat.texi: New file.
53304         * doc/posix-functions/fchmodat.texi: New file.
53305         * doc/posix-functions/fchownat.texi: New file.
53306         * doc/posix-functions/fdopendir.texi: New file.
53307         * doc/posix-functions/fstatat.texi: New file.
53308         * doc/posix-functions/futimens.texi: New file.
53309         * doc/posix-functions/linkat.texi: New file.
53310         * doc/posix-functions/mkdirat.texi: New file.
53311         * doc/posix-functions/mkfifoat.texi: New file.
53312         * doc/posix-functions/mknodat.texi: New file.
53313         * doc/posix-functions/open_wmemstream.texi: New file.
53314         * doc/posix-functions/openat.texi: New file.
53315         * doc/posix-functions/psiginfo.texi: New file.
53316         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53317         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53318         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53319         * doc/posix-functions/readlinkat.texi: New file.
53320         * doc/posix-functions/renameat.texi: New file.
53321         * doc/posix-functions/strerror_l.texi: New file.
53322         * doc/posix-functions/symlinkat.texi: New file.
53323         * doc/posix-functions/unlinkat.texi: New file.
53324         * doc/posix-functions/utimensat.texi: New file.
53325         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53326
53327 2008-12-14  Bruno Haible  <bruno@clisp.org>
53328
53329         Update doc for POSIX:2008.
53330         * doc/posix-functions/alphasort.texi: Renamed from
53331         doc/glibc-functions/alphasort.texi.
53332         * doc/posix-functions/dirfd.texi: Renamed from
53333         doc/glibc-functions/dirfd.texi.
53334         * doc/posix-functions/dprintf.texi: Renamed from
53335         doc/glibc-functions/dprintf.texi.
53336         * doc/posix-functions/duplocale.texi: Renamed from
53337         doc/glibc-functions/duplocale.texi.
53338         * doc/posix-functions/fexecve.texi: Renamed from
53339         doc/glibc-functions/fexecve.texi.
53340         * doc/posix-functions/fmemopen.texi: Renamed from
53341         doc/glibc-functions/fmemopen.texi.
53342         * doc/posix-functions/freelocale.texi: Renamed from
53343         doc/glibc-functions/freelocale.texi.
53344         * doc/posix-functions/getdate_err.texi: Renamed from
53345         doc/glibc-functions/getdate_err.texi.
53346         * doc/posix-functions/isalnum_l.texi: Renamed from
53347         doc/glibc-functions/isalnum_l.texi.
53348         * doc/posix-functions/isalpha_l.texi: Renamed from
53349         doc/glibc-functions/isalpha_l.texi.
53350         * doc/posix-functions/isblank_l.texi: Renamed from
53351         doc/glibc-functions/isblank_l.texi.
53352         * doc/posix-functions/iscntrl_l.texi: Renamed from
53353         doc/glibc-functions/iscntrl_l.texi.
53354         * doc/posix-functions/isdigit_l.texi: Renamed from
53355         doc/glibc-functions/isdigit_l.texi.
53356         * doc/posix-functions/isgraph_l.texi: Renamed from
53357         doc/glibc-functions/isgraph_l.texi.
53358         * doc/posix-functions/islower_l.texi: Renamed from
53359         doc/glibc-functions/islower_l.texi.
53360         * doc/posix-functions/isprint_l.texi: Renamed from
53361         doc/glibc-functions/isprint_l.texi.
53362         * doc/posix-functions/ispunct_l.texi: Renamed from
53363         doc/glibc-functions/ispunct_l.texi.
53364         * doc/posix-functions/isspace_l.texi: Renamed from
53365         doc/glibc-functions/isspace_l.texi.
53366         * doc/posix-functions/isupper_l.texi: Renamed from
53367         doc/glibc-functions/isupper_l.texi.
53368         * doc/posix-functions/iswalnum_l.texi: Renamed from
53369         doc/glibc-functions/iswalnum_l.texi.
53370         * doc/posix-functions/iswalpha_l.texi: Renamed from
53371         doc/glibc-functions/iswalpha_l.texi.
53372         * doc/posix-functions/iswblank_l.texi: Renamed from
53373         doc/glibc-functions/iswblank_l.texi.
53374         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53375         doc/glibc-functions/iswcntrl_l.texi.
53376         * doc/posix-functions/iswctype_l.texi: Renamed from
53377         doc/glibc-functions/iswctype_l.texi.
53378         * doc/posix-functions/iswdigit_l.texi: Renamed from
53379         doc/glibc-functions/iswdigit_l.texi.
53380         * doc/posix-functions/iswgraph_l.texi: Renamed from
53381         doc/glibc-functions/iswgraph_l.texi.
53382         * doc/posix-functions/iswlower_l.texi: Renamed from
53383         doc/glibc-functions/iswlower_l.texi.
53384         * doc/posix-functions/iswprint_l.texi: Renamed from
53385         doc/glibc-functions/iswprint_l.texi.
53386         * doc/posix-functions/iswpunct_l.texi: Renamed from
53387         doc/glibc-functions/iswpunct_l.texi.
53388         * doc/posix-functions/iswspace_l.texi: Renamed from
53389         doc/glibc-functions/iswspace_l.texi.
53390         * doc/posix-functions/iswupper_l.texi: Renamed from
53391         doc/glibc-functions/iswupper_l.texi.
53392         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53393         doc/glibc-functions/iswxdigit_l.texi.
53394         * doc/posix-functions/isxdigit_l.texi: Renamed from
53395         doc/glibc-functions/isxdigit_l.texi.
53396         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53397         doc/glibc-functions/mbsnrtowcs.texi.
53398         * doc/posix-functions/mkdtemp.texi: Renamed from
53399         doc/glibc-functions/mkdtemp.texi.
53400         * doc/posix-functions/newlocale.texi: Renamed from
53401         doc/glibc-functions/newlocale.texi.
53402         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53403         doc/glibc-functions/nl_langinfo_l.texi.
53404         * doc/posix-functions/open_memstream.texi: Renamed from
53405         doc/glibc-functions/open_memstream.texi.
53406         * doc/posix-functions/opterr.texi: Renamed from
53407         doc/glibc-functions/opterr.texi.
53408         * doc/posix-functions/optind.texi: Renamed from
53409         doc/glibc-functions/optind.texi.
53410         * doc/posix-functions/optopt.texi: Renamed from
53411         doc/glibc-functions/optopt.texi.
53412         * doc/posix-functions/psignal.texi: Renamed from
53413         doc/glibc-functions/psignal.texi.
53414         * doc/posix-functions/scandir.texi: Renamed from
53415         doc/glibc-functions/scandir.texi.
53416         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53417         doc/glibc-functions/sched_get_priority_min.texi.
53418         * doc/posix-functions/signgam.texi: Renamed from
53419         doc/glibc-functions/signgam.texi.
53420         * doc/posix-functions/stpcpy.texi: Renamed from
53421         doc/glibc-functions/stpcpy.texi.
53422         * doc/posix-functions/stpncpy.texi: Renamed from
53423         doc/glibc-functions/stpncpy.texi.
53424         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53425         doc/glibc-functions/strcasecmp_l.texi.
53426         * doc/posix-functions/strcoll_l.texi: Renamed from
53427         doc/glibc-functions/strcoll_l.texi.
53428         * doc/posix-functions/strfmon_l.texi: Renamed from
53429         doc/glibc-functions/strfmon_l.texi.
53430         * doc/posix-functions/strftime_l.texi: Renamed from
53431         doc/glibc-functions/strftime_l.texi.
53432         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53433         doc/glibc-functions/strncasecmp_l.texi.
53434         * doc/posix-functions/strndup.texi: Renamed from
53435         doc/glibc-functions/strndup.texi.
53436         * doc/posix-functions/strnlen.texi: Renamed from
53437         doc/glibc-functions/strnlen.texi.
53438         * doc/posix-functions/strsignal.texi: Renamed from
53439         doc/glibc-functions/strsignal.texi.
53440         * doc/posix-functions/strxfrm_l.texi: Renamed from
53441         doc/glibc-functions/strxfrm_l.texi.
53442         * doc/posix-functions/timer_gettime.texi: Renamed from
53443         doc/glibc-functions/timer_gettime.texi.
53444         * doc/posix-functions/tolower_l.texi: Renamed from
53445         doc/glibc-functions/tolower_l.texi.
53446         * doc/posix-functions/toupper_l.texi: Renamed from
53447         doc/glibc-functions/toupper_l.texi.
53448         * doc/posix-functions/towctrans_l.texi: Renamed from
53449         doc/glibc-functions/towctrans_l.texi.
53450         * doc/posix-functions/towlower_l.texi: Renamed from
53451         doc/glibc-functions/towlower_l.texi.
53452         * doc/posix-functions/towupper_l.texi: Renamed from
53453         doc/glibc-functions/towupper_l.texi.
53454         * doc/posix-functions/uselocale.texi: Renamed from
53455         doc/glibc-functions/uselocale.texi.
53456         * doc/posix-functions/vdprintf.texi: Renamed from
53457         doc/glibc-functions/vdprintf.texi.
53458         * doc/posix-functions/wcpcpy.texi:
53459         Renamed from doc/glibc-functions/wcpcpy.texi.
53460         * doc/posix-functions/wcpncpy.texi: Renamed from
53461         doc/glibc-functions/wcpncpy.texi.
53462         * doc/posix-functions/wcscasecmp.texi: Renamed from
53463         doc/glibc-functions/wcscasecmp.texi.
53464         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53465         doc/glibc-functions/wcscasecmp_l.texi.
53466         * doc/posix-functions/wcscoll_l.texi: Renamed from
53467         doc/glibc-functions/wcscoll_l.texi.
53468         * doc/posix-functions/wcsdup.texi: Renamed from
53469         doc/glibc-functions/wcsdup.texi.
53470         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53471         doc/glibc-functions/wcsncasecmp.texi.
53472         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53473         doc/glibc-functions/wcsncasecmp_l.texi.
53474         * doc/posix-functions/wcsnlen.texi: Renamed from
53475         doc/glibc-functions/wcsnlen.texi.
53476         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53477         doc/glibc-functions/wcsnrtombs.texi.
53478         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53479         doc/glibc-functions/wcsxfrm_l.texi.
53480         * doc/posix-functions/wctrans_l.texi: Renamed from
53481         doc/glibc-functions/wctrans_l.texi.
53482         * doc/posix-functions/wctype_l.texi: Renamed from
53483         doc/glibc-functions/wctype_l.texi.
53484         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53485         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53486         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53487         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53488         these subsections.
53489         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53490         Remove sections.
53491
53492 2008-12-14  Bruno Haible  <bruno@clisp.org>
53493
53494         Update doc for POSIX:2008.
53495         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53496
53497 2008-12-14  Bruno Haible  <bruno@clisp.org>
53498
53499         Update doc for POSIX:2008.
53500         * doc/pastposix-functions/bcmp.texi: Renamed from
53501         doc/posix-functions/bcmp.texi.
53502         * doc/pastposix-functions/bcopy.texi: Renamed from
53503         doc/posix-functions/bcopy.texi.
53504         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53505         doc/posix-functions/bsd_signal.texi.
53506         * doc/pastposix-functions/bzero.texi: Renamed from
53507         doc/posix-functions/bzero.texi.
53508         * doc/pastposix-functions/ecvt.texi: Renamed from
53509         doc/posix-functions/ecvt.texi.
53510         * doc/pastposix-functions/fcvt.texi: Renamed from
53511         doc/posix-functions/fcvt.texi.
53512         * doc/pastposix-functions/ftime.texi: Renamed from
53513         doc/posix-functions/ftime.texi.
53514         * doc/pastposix-functions/gcvt.texi: Renamed from
53515         doc/posix-functions/gcvt.texi.
53516         * doc/pastposix-functions/getcontext.texi: Renamed from
53517         doc/posix-functions/getcontext.texi.
53518         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53519         doc/posix-functions/gethostbyaddr.texi.
53520         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53521         doc/posix-functions/gethostbyname.texi.
53522         * doc/pastposix-functions/getwd.texi: Renamed from
53523         doc/posix-functions/getwd.texi.
53524         * doc/pastposix-functions/h_errno.texi: Renamed from
53525         doc/posix-functions/h_errno.texi.
53526         * doc/pastposix-functions/index.texi: Renamed from
53527         doc/posix-functions/index.texi.
53528         * doc/pastposix-functions/makecontext.texi: Renamed from
53529         doc/posix-functions/makecontext.texi.
53530         * doc/pastposix-functions/mktemp.texi: Renamed from
53531         doc/posix-functions/mktemp.texi.
53532         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53533         doc/posix-functions/pthread_attr_getstackaddr.texi.
53534         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53535         doc/posix-functions/pthread_attr_setstackaddr.texi.
53536         * doc/pastposix-functions/rindex.texi: Renamed from
53537         doc/posix-functions/rindex.texi.
53538         * doc/pastposix-functions/scalb.texi: Renamed from
53539         doc/posix-functions/scalb.texi.
53540         * doc/pastposix-functions/setcontext.texi: Renamed from
53541         doc/posix-functions/setcontext.texi.
53542         * doc/pastposix-functions/swapcontext.texi: Renamed from
53543         doc/posix-functions/swapcontext.texi.
53544         * doc/pastposix-functions/ualarm.texi: Renamed from
53545         doc/posix-functions/ualarm.texi.
53546         * doc/pastposix-functions/usleep.texi: Renamed from
53547         doc/posix-functions/usleep.texi.
53548         * doc/pastposix-functions/vfork.texi: Renamed from
53549         doc/posix-functions/vfork.texi.
53550         * doc/pastposix-functions/wcswcs.texi: Renamed from
53551         doc/posix-functions/wcswcs.texi.
53552         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53553         (Function Substitutes): Update.
53554
53555 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53556
53557         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53558         m4/strerror.m4.
53559
53560 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53561             Bruno Haible  <bruno@clisp.org>
53562
53563         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53564
53565 2008-12-13  Bruno Haible  <bruno@clisp.org>
53566
53567         * modules/strtoull (Depends-on): Remove unistd.
53568
53569 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53570
53571         * modules/strtoull (Depends-on): Add stdlib.
53572
53573 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53574
53575         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53576
53577 2008-12-10  Jim Meyering  <meyering@redhat.com>
53578
53579         gl_ASSERT: don't say assertions are disabled when they're not
53580         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53581         "checking whether to enable assertions... no", when they are in
53582         fact enabled.  This is solely a bug in the output of configure.
53583         In spite of saying "no", NDEBUG was not defined in that case.
53584         Also, as noted by Eric Blake, leave assertions enabled upon
53585         --enable-assert=INVALID.
53586
53587 2008-12-10  Bruno Haible  <bruno@clisp.org>
53588
53589         Change MODULES.html to refer to POSIX:2008 where possible.
53590         * MODULES.html.sh (POSIX2008_URL): New variable.
53591         (posix_headers): Remove sys/timeb, ucontext.
53592         (posix2001_headers): New variable.
53593         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53594         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53595         index, makecontext, mktemp, pthread_attr_getstackaddr,
53596         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53597         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53598         (posix2001_functions): New variable.
53599         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53600         otherwise.
53601
53602 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53603
53604         add missing include to parse-duration.c
53605         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53606         * modules/parse-duration (Depends-on): Add xalloc.
53607
53608         fix sed script reading maint.mk
53609         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53610         (syntax-check-rules): Use it.
53611
53612 2008-12-09  Bruno Haible  <bruno@clisp.org>
53613
53614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53615         MacOS X 10.4/PowerPC.
53616         Reported by Simon Josefsson.
53617
53618 2008-12-08  Jim Meyering  <meyering@redhat.com>
53619
53620         work around mingw's lack of some S_IF definitions
53621         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53622         Reported by Simon Josefsson.
53623
53624 2008-12-08  Bruno Haible  <bruno@clisp.org>
53625
53626         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53627         applied to variables. Needed on MacOS X 10.4/PowerPC.
53628         Reported by Simon Josefsson.
53629
53630 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53631         and Eric Blake  <ebb9@byu.net>
53632
53633         assert: honor --enable-assert
53634         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53635         order to honor --enable-assert, rather than treating it as a
53636         synonym for --disable-assert.
53637
53638 2008-12-08  Jim Meyering  <meyering@redhat.com>
53639
53640         * lib/posixtm.c: Remove now-useless declaration of mktime.
53641
53642         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53643
53644 2008-12-07  Bruno Haible  <bruno@clisp.org>
53645
53646         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53647         test_once): Mark functions as static.
53648         * tests/test-tls.c (test_tls): Likewise.
53649
53650 2008-12-07  Bruno Haible  <bruno@clisp.org>
53651
53652         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53653         iconv_register_autodetect.
53654
53655 2008-12-07  Jim Meyering  <meyering@redhat.com>
53656
53657         posixtm.c: avoid a warning
53658         * lib/posixtm.c (posixtime): Don't initialize tm0.
53659         It's no longer needed to placate gcc4's -Wuninitialized,
53660         and the attempt to placate would elicit a new warning.
53661
53662         unicodeio.c: mark unused parameters
53663         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53664         (fallback_failure_callback): Likewise.
53665
53666 2008-12-07  Bruno Haible  <bruno@clisp.org>
53667
53668         * gnulib-tool (func_create_testdir): When building the tests
53669         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53670         Reported by Simon Josefsson.
53671
53672 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53673
53674         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53675
53676 2008-12-06  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53679         Suggested by Eric Blake.
53680
53681 2008-12-06  Bruno Haible  <bruno@clisp.org>
53682
53683         Fix a c-stack test failure on MacOS X.
53684         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53685         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53686         handler for SIGBUS as well.
53687         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53688         install a signal handler for SIGBUS as well.
53689         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53690
53691 2008-12-06  Bruno Haible  <bruno@clisp.org>
53692
53693         Advocacy documentation.
53694         * doc/gnulib-intro.texi (Benefits): New section.
53695         * doc/gnulib.texi: Update.
53696
53697 2008-12-06  Bruno Haible  <bruno@clisp.org>
53698
53699         Document the 'manywarnings' module.
53700         * doc/manywarnings.texi: New file.
53701         * doc/gnulib.texi: Include it.
53702
53703 2008-12-05  Eric Blake  <ebb9@byu.net>
53704
53705         tests: silence some gcc warnings
53706         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53707         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53708         type mismatches.
53709
53710 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53711             Bruno Haible  <bruno@clisp.org>
53712
53713         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53714
53715 2008-11-29  Jim Meyering  <meyering@redhat.com>
53716
53717         unicodeio.c: mark unused parameters
53718         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53719         (fallback_failure_callback): Likewise.
53720
53721         fts: fix a thinko
53722         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53723         (set_stat_type): Return S_IF*-valued "type" directly.
53724         Prompted by James Youngman's spotting a related bug.
53725         Confirmed by further testing through find.
53726
53727         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53728         * lib/fts.c (D_TYPE): Define.
53729         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53730         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53731         (s_ifmt_shift_bits): New function.
53732         (set_stat_type): New function.
53733         (fts_build): When not calling fts_stat, call set_stat_type
53734         to propagate dirent.d_type info to fts_read caller.
53735         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53736         fts_statp->st_mode type information may be valid.
53737
53738 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53739
53740         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53741         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53742         <sds@gnu.org>.
53743
53744 2008-11-20  Bruno Haible  <bruno@clisp.org>
53745
53746         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53747         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53748         INCLUDE_NEXT.
53749         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53750         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53751         * modules/math (Makefile.am): Substitute
53752         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53753         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53754
53755 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53756             Bruno Haible  <bruno@clisp.org>
53757
53758         * lib/stdint.in.h: Define all type macros so that their expansion is
53759         a single typedef'ed token. Fixes a compilation failure in Boost which
53760         does "using ::int8_t;".
53761
53762 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53763
53764         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53765         gl_MANYWARN_ALL_GCC.
53766         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53767         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53768         * modules/manywarnings: New file.
53769         * MODULES.html.sh: Mention manywarnings module.
53770
53771 2008-11-18  Bruno Haible  <bruno@clisp.org>
53772
53773         * doc/gnulib-tool.texi (Unit tests): New section.
53774
53775 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53776
53777         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53778         paths like 'lib/po/foo.po'.
53779
53780 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53781
53782         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53783         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53784
53785 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53786
53787         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53788         parameter works.
53789
53790 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53791
53792         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53793
53794 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53795
53796         * modules/parse-duration-tests: New file.
53797         * tests/test-parse-duration.sh: New file.
53798         * tests/test-parse-duration.c: New file.
53799
53800         New module 'parse-duration'.
53801         * lib/parse-duration.h: New file.
53802         * lib/parse-duration.c: New file.
53803         * modules/parse-duration: New file.
53804
53805 2008-11-17  Bruno Haible  <bruno@clisp.org>
53806
53807         * tests/test-select-out.sh: Comment out the first pipe test.
53808         Reported by Simon Josefsson.
53809
53810 2008-11-17  Bruno Haible  <bruno@clisp.org>
53811
53812         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53813         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53814         gl_HOSTENT.
53815
53816 2008-11-17  Bruno Haible  <bruno@clisp.org>
53817
53818         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53819         -lnetwork and -lnet. Needed for Haiku and BeOS.
53820
53821 2008-11-16  Bruno Haible  <bruno@clisp.org>
53822
53823         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53824
53825 2008-11-16  Bruno Haible  <bruno@clisp.org>
53826
53827         Avoid test failure on Haiku.
53828         * tests/test-fsync.c: Include <errno.h>.
53829         (main): Don't require that fsync (0) fails.
53830
53831 2008-11-15  Bruno Haible  <bruno@clisp.org>
53832
53833         New module 'hostent'.
53834         * modules/hostent: New file.
53835         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53836
53837 2008-11-15  Bruno Haible  <bruno@clisp.org>
53838
53839         New module 'servent'.
53840         * modules/servent: New file.
53841         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53842
53843 2008-11-15  Bruno Haible  <bruno@clisp.org>
53844
53845         Avoid generating same test program with two different rules.
53846         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53847         test-frexp to test-frexp-nolibm.
53848         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53849         test-frexpl to test-frexpl-nolibm.
53850
53851 2008-11-15  Bruno Haible  <bruno@clisp.org>
53852
53853         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53854         $(FREXPL_LIBM).
53855
53856 2008-11-15  Bruno Haible  <bruno@clisp.org>
53857
53858         * lib/netdb.in.h: Activate the definitions also when the system's
53859         <netdb.h> has 'struct addrinfo'.
53860         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53861         EAI_OVERFLOW or AI_NUMERICSERV.
53862         * doc/posix-headers/netdb.texi: Document the problem.
53863
53864 2008-11-15  Bruno Haible  <bruno@clisp.org>
53865
53866         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53867
53868         Make the 'sched' module work on platforms where <sched.h> exists but
53869         is incomplete (such as Haiku).
53870         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53871         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53872         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53873         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53874         HAVE_STRUCT_SCHED_PARAM.
53875         * modules/sched (Depends-on): Add include_next.
53876         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53877         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53878         * doc/posix-headers/sched.texi: Document the issue.
53879
53880 2008-11-13  Jim Meyering  <meyering@redhat.com>
53881
53882         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53883         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53884         test would fail due to the difference in the Report bugs to ...
53885         line.  The expected address is empty, "<>", while the actual
53886         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53887
53888 2008-11-12  Bruno Haible  <bruno@clisp.org>
53889
53890         lstat: don't compile lstat.c on systems lacking lstat
53891         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53892         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53893         Reported by Daniel P. Berrange via Jim Meyering.
53894
53895 2008-11-12  Jim Meyering  <meyering@redhat.com>
53896
53897         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53898
53899 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53900
53901         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53902         instead.
53903
53904 2008-11-12  Bruno Haible  <bruno@clisp.org>
53905
53906         * lib/unicodeio.c: Include unistr.h.
53907         (utf8_wctomb): Remove function.
53908         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53909
53910 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53911
53912         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53913         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53914         <bruno@clisp.org>.
53915         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53916
53917 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53918
53919         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53920         * doc/gnulib.texi: Add section for warnings.
53921
53922 2008-11-11  Bruno Haible  <bruno@clisp.org>
53923
53924         * lib/sockets.h: Add a comment.
53925
53926 2008-11-11  Karl Berry  <karl@gnu.org>
53927
53928         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53929
53930 2008-11-11  Eric Blake  <ebb9@byu.net>
53931
53932         fdl.texi: avoid git symlinks
53933         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53934
53935 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53936
53937         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53938
53939 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53940
53941         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53942         (gl_WARN_ADD): Substitute $2 if literal.
53943
53944 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53945
53946         * m4/warning.m4: Remove.
53947
53948 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53949
53950         * m4/warnings.m4: Almost complete rewrite. :-)
53951
53952 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53953
53954         * modules/warnings: New module.
53955         * m4/warnings.m4: New file.
53956         * MODULES.html.sh: Mention warnings module.
53957         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53958         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53959
53960 2008-11-10  Eric Blake  <ebb9@byu.net>
53961
53962         fdl.texi: make a symlink to the latest version
53963         * doc/standards.texi: Revert today's earlier change.
53964         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53965         * doc/fdl.texi: ...and replace this with a symlink to the newer
53966         fdl-1.3.texi.
53967
53968 2008-11-10  Bruno Haible  <bruno@clisp.org>
53969
53970         * tests/test-select-fd.c (main): Accept the result file name as fourth
53971         argument.
53972         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53973         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53974
53975 2008-11-10  Bruno Haible  <bruno@clisp.org>
53976
53977         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53978         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53979         as autoconf-substituted macros.
53980         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53981         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53982         gl_NETDB_H_DEFAULTS. Set these variables.
53983         * modules/netdb (Makefile.am): Substitute these variables.
53984
53985 2008-11-10  Eric Blake  <ebb9@byu.net>
53986
53987         standards.texi: include correct file for FDL 1.3
53988         * doc/standards.texi (GNU Free Documentation License): Change
53989         include file to pull in FDL 1.3, not 1.2.
53990
53991         fdl.texi: revert accidental change to license
53992         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53993
53994 2008-11-10  Bruno Haible  <bruno@clisp.org>
53995
53996         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53997         cross-compiling guesses also when the native compile gives no result.
53998
53999 2008-11-10  Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/spawni.c (__spawni): Force variable into the stack.
54002
54003 2008-11-10  Bruno Haible  <bruno@clisp.org>
54004
54005         Add support for Haiku.
54006         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54007         glibc and BeOS, but also on Haiku.
54008         * lib/fpurge.c (fpurge): Likewise.
54009         * lib/freadable.c (freadable): Likewise.
54010         * lib/freadahead.c (freadahead): Likewise.
54011         * lib/freading.c (freading): Likewise.
54012         * lib/freadptr.c (freadptr): Likewise.
54013         * lib/freadseek.c (freadptrinc): Likewise.
54014         * lib/fseeko.c (rpl_fseeko): Likewise.
54015         * lib/fseterr.c (fseterr): Likewise.
54016         * lib/fwritable.c (fwritable): Likewise.
54017         * lib/fwriting.c (fwriting): Likewise.
54018         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54019
54020 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54021
54022         * lib/config.charset: Treat Haiku like BeOS.
54023
54024 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54025
54026         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54027         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54028
54029 2008-11-08  Bruno Haible  <bruno@clisp.org>
54030
54031         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54032         AC_CACHE_CHECK.
54033
54034 2008-11-08  Bruno Haible  <bruno@clisp.org>
54035
54036         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54037
54038 2008-11-08  Bruno Haible  <bruno@clisp.org>
54039
54040         * tests/test-select-fd.c: New file.
54041         * tests/test-select-in.sh: New file.
54042         * tests/test-select-out.sh: New file.
54043         * tests/test-select-stdin.c: New file.
54044         * modules/select-tests (Files): Add the new files.
54045         (Depends-on): Add gettimeofday.
54046         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54047         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54048         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54049
54050 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54051             Bruno Haible  <bruno@clisp.org>
54052
54053         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54054
54055 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54056
54057         * build-aux/pmccabe2html: Added support for C++ source files.
54058
54059 2008-11-05  Ben Pfaff  <blp@gnu.org>
54060
54061         Fix lib/close.c build on Windows.
54062         * modules/close (Files): Add lib/w32sock.h.
54063
54064 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54065
54066         Accept Bison's NEWS format.
54067         * build-aux/announce-gen (print_news_deltas): Tweak
54068         $re_prefix.
54069
54070 2008-11-04  Bruno Haible  <bruno@clisp.org>
54071
54072         * modules/random_r (Maintainer): Add glibc.
54073
54074 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54075
54076         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54077         by karl@freefriends.org (Karl Berry).
54078         * doc/alloca.texi: Likewise.
54079         * doc/c-ctype.texi: Likewise.
54080         * doc/c-strcase.texi: Likewise.
54081         * doc/c-strcaseeq.texi: Likewise.
54082         * doc/c-strcasestr.texi: Likewise.
54083         * doc/c-strstr.texi: Likewise.
54084         * doc/c-strtod.texi: Likewise.
54085         * doc/c-strtold.texi: Likewise.
54086         * doc/ctime.texi: Likewise.
54087         * doc/error.texi: Likewise.
54088         * doc/fdl.texi: Likewise.
54089         * doc/gcd.texi: Likewise.
54090         * doc/getdate.texi: Likewise.
54091         * doc/gnulib-intro.texi: Likewise.
54092         * doc/gnulib-tool.texi: Likewise.
54093         * doc/gnulib.texi: Likewise.
54094         * doc/inet_ntoa.texi: Likewise.
54095         * doc/maintain.texi: Likewise.
54096         * doc/make-stds.texi: Likewise.
54097         * doc/quote.texi: Likewise.
54098         * doc/regexprops-generic.texi: Likewise.
54099         * doc/standards.texi: Likewise.
54100         * doc/verify.texi: Likewise.
54101         * doc/visibility.texi: Likewise.
54102         * doc/gnulib.texi (GNU Free Documentation License): Include
54103         fdl-1.3.texi instead of fdl.texi.
54104
54105 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54106
54107         * doc/fdl-1.3.texi: New file, from
54108         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54109         * modules/fdl-1.3: Add.
54110         * MODULES.html.sh: Add fdl-1.3.
54111
54112 2008-11-03  Bruno Haible  <bruno@clisp.org>
54113
54114         Make determination of absolute name of header file work with AIX xlc.
54115         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54116         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54117         preprocessing.
54118         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54119         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54120
54121 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54122
54123         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54124         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54125         <ludo@gnu.org>.
54126
54127 2008-11-02  Bruno Haible  <bruno@clisp.org>
54128
54129         Mark 'strpbrk' obsolete.
54130         * modules/strpbrk (Status, Notice): New sections.
54131         * modules/strtok_r (Depends-on): Add strpbrk.
54132
54133 2008-11-02  Bruno Haible  <bruno@clisp.org>
54134
54135         Mark 'strdup' obsolete.
54136         * modules/strdup (Status, Notice): New sections.
54137         * modules/findprog (Depends-on): Add strdup.
54138         * modules/getaddrinfo (Depends-on): Likewise.
54139         * modules/localename (Depends-on): Likewise.
54140         * modules/relocatable-lib (Depends-on): Likewise.
54141         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54142         * modules/relocatable-prog (Depends-on): Likewise.
54143         * modules/trim (Depends-on): Likewise.
54144         * modules/unictype/gen-ctype (Depends-on): Likewise.
54145         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54146
54147 2008-11-02  Bruno Haible  <bruno@clisp.org>
54148
54149         Mark 'strcspn' obsolete.
54150         * modules/strcspn (Status, Notice): New sections.
54151
54152 2008-11-02  Bruno Haible  <bruno@clisp.org>
54153
54154         Mark 'rmdir' obsolete.
54155         * modules/rmdir (Status, Notice): New sections.
54156         * modules/clean-temp (Depends-on): Add rmdir.
54157         * modules/openat (Depends-on): Likewise.
54158
54159 2008-11-02  Bruno Haible  <bruno@clisp.org>
54160
54161         Mark 'raise' obsolete.
54162         * modules/raise (Status, Notice): New sections.
54163         (Include): Specify <signal.h>.
54164         * modules/stdio (Depends-on): Add raise.
54165         * modules/write (Depends-on): Likewise.
54166
54167 2008-11-02  Bruno Haible  <bruno@clisp.org>
54168
54169         Mark 'memset' obsolete.
54170         * modules/memset (Status, Notice): New sections.
54171
54172 2008-11-02  Bruno Haible  <bruno@clisp.org>
54173
54174         Mark 'memmove' obsolete.
54175         * modules/memmove (Status, Notice): New sections.
54176         * modules/argp (Depends-on): Add memmove.
54177         * modules/argz (Depends-on): Likewise.
54178         * modules/canonicalize (Depends-on): Likewise.
54179         * modules/canonicalize-lgpl (Depends-on): Likewise.
54180         * modules/fts (Depends-on): Likewise.
54181         * modules/getcwd (Depends-on): Likewise.
54182         * modules/human (Depends-on): Likewise.
54183         * modules/regex (Depends-on): Likewise.
54184         * modules/striconveh (Depends-on): Likewise.
54185         * modules/trim (Depends-on): Likewise.
54186         * modules/unistr/u8-move (Depends-on): Likewise.
54187         * modules/unistr/u16-move (Depends-on): Likewise.
54188         * modules/unistr/u32-move (Depends-on): Likewise.
54189
54190 2008-11-02  Bruno Haible  <bruno@clisp.org>
54191
54192         Mark 'memcpy' obsolete.
54193         * modules/memcpy (Status, Notice): New sections.
54194
54195 2008-11-02  Bruno Haible  <bruno@clisp.org>
54196
54197         Mark 'memcmp' obsolete.
54198         * modules/memcmp (Status, Notice): New sections.
54199         * modules/argmatch (Depends-on): Add memchr.
54200         * modules/backupfile (Depends-on): Likewise.
54201         * modules/c-strcasestr (Depends-on): Likewise.
54202         * modules/crypto/des (Depends-on): Likewise.
54203         * modules/csharpcomp (Depends-on): Likewise.
54204         * modules/fnmatch (Depends-on): Likewise.
54205         * modules/git-merge-changelog (Depends-on): Likewise.
54206         * modules/isnand (Depends-on): Likewise.
54207         * modules/isnand-nolibm (Depends-on): Likewise.
54208         * modules/isnanf (Depends-on): Likewise.
54209         * modules/isnanf-nolibm (Depends-on): Likewise.
54210         * modules/isnanl (Depends-on): Likewise.
54211         * modules/isnanl-nolibm (Depends-on): Likewise.
54212         * modules/mbchar (Depends-on): Likewise.
54213         * modules/memcoll (Depends-on): Likewise.
54214         * modules/quotearg (Depends-on): Likewise.
54215         * modules/regex (Depends-on): Likewise.
54216         * modules/relocatable-prog (Depends-on): Likewise.
54217         * modules/same (Depends-on): Likewise.
54218         * modules/signbit (Depends-on): Likewise.
54219         * modules/strcasestr-simple (Depends-on): Likewise.
54220         * modules/unictype/gen-ctype (Depends-on): Likewise.
54221         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54222         * modules/uniname/uniname (Depends-on): Likewise.
54223         * modules/unistr/u8-cmp (Depends-on): Likewise.
54224
54225 2008-11-02  Bruno Haible  <bruno@clisp.org>
54226
54227         Mark 'memchr' obsolete.
54228         * modules/memchr (Status, Notice): New sections.
54229         * modules/argp (Depends-on): Add memchr.
54230         * modules/base64 (Depends-on): Likewise.
54231         * modules/c-strcasestr (Depends-on): Likewise.
54232         * modules/chdir-long (Depends-on): Likewise.
54233         * modules/fnmatch (Depends-on): Likewise.
54234         * modules/getsubopt (Depends-on): Likewise.
54235         * modules/git-merge-changelog (Depends-on): Likewise.
54236         * modules/glob (Depends-on): Likewise.
54237         * modules/strcasestr-simple (Depends-on): Likewise.
54238         * modules/strnlen (Depends-on): Likewise.
54239
54240 2008-11-02  Bruno Haible  <bruno@clisp.org>
54241
54242         Mark 'atexit' obsolete.
54243         * modules/atexit (Status, Notice): New sections.
54244         * modules/chdir-long (Depends-on): Add atexit.
54245         * modules/wait-process (Depends-on): Likewise.
54246
54247 2008-11-02  Bruno Haible  <bruno@clisp.org>
54248
54249         * gnulib-tool: New option --with-obsolete.
54250         (func_usage): Document it.
54251         (func_modules_transitive_closure): Drop obsolete dependencies if
54252         incobsolete is not true.
54253         (func_import): Read and save the incobsolete variable to the cache.
54254
54255 2008-11-02  Bruno Haible  <bruno@clisp.org>
54256
54257         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54258         * gnulib-tool: New option --extract-status.
54259         (func_usage): Document it.
54260         (sed_extract_prog): Recognize it.
54261         (func_get_status): New function.
54262
54263 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54264
54265         * modules/sockets (License): Change from LGPL to LGPLv2+.
54266
54267 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54268
54269         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54270
54271 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54272
54273         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54274         Mention times and sys_times.
54275         * modules/sys_times, modules/sys_times-tests: New modules.
54276         * modules/times, modules/times-tests: Likewise
54277         * m4/sys_times_h.m4: New file.
54278         * lib/sys_times.in.h: Likewise
54279         * lib/times.c: Likewise.
54280         * tests/test-sys_times.c: Likewise.
54281         * tests/test-times.c: Likewise.
54282         * doc/posix-headers/sys_times.texi: Update.
54283         * doc/posix-functions/times.texi: Update.
54284
54285 2008-10-28  Jim Meyering  <meyering@redhat.com>
54286
54287         * modules/tempname (Depends-on): Add lstat.
54288
54289         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54290
54291 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54292
54293         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54294         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54295         using idiom used elsewhere in gnulib.
54296
54297 2008-10-27  Jim Meyering  <meyering@redhat.com>
54298
54299         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54300
54301 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54302
54303         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54304         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54305         programs.
54306         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54307
54308 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54309
54310         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54311
54312 2008-10-27  Bruno Haible  <bruno@clisp.org>
54313
54314         * tests/test-lstat.c: Include <stdio.h>.
54315
54316 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54317
54318         * modules/lstat-tests: New module.
54319         * tests/test-lstat.c: New file.
54320
54321 2008-10-26  Jim Meyering  <meyering@redhat.com>
54322
54323         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54324
54325 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54326             Bruno Haible  <bruno@clisp.org>
54327
54328         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54329         * modules/configmake (Include): Add a note that the include must come
54330         after all system headers.
54331         * lib/javaversion.c: Include configmake.h after all other includes.
54332
54333 2008-10-26  Bruno Haible  <bruno@clisp.org>
54334
54335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54336         HAVE_STRUCT_RANDOM_DATA to 1.
54337         (gl_STDLIB_H): Simplify.
54338
54339 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54340
54341         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54342         substitute HAVE_STRUCT_RANDOM_DATA.
54343         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54344         random_data.
54345         * modules/stdlib (Makefile.am): Substitute
54346         HAVE_STRUCT_RANDOM_DATA.
54347
54348 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54349
54350         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54351         * doc/gnulib-intro.texi (Copyright): Likewise.
54352
54353 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54354
54355         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54356         findings.
54357
54358 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54359             Bruno Haible  <bruno@clisp.org>
54360
54361         * lib/unistd.in.h: Include <winsock2.h>.
54362         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54363         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54364         Provide dummy declarations.
54365         (gethostname): Override.
54366         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54367         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54368         gl_PREREQ_SYS_H_WINSOCK2.
54369         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54370         * doc/posix-functions/gethostname.texi: More details.
54371
54372 2008-10-25  Bruno Haible  <bruno@clisp.org>
54373
54374         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54375         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54376         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54377
54378         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54379         here ...
54380         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54381         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54382         gl_UNISTD_H_DEFAULTS.
54383
54384 2008-10-25  Eric Blake  <ebb9@byu.net>
54385
54386         signbit: avoid spurious compiler failure
54387         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54388         declarations inside function.
54389
54390 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54391             Bruno Haible  <bruno@clisp.org>
54392
54393         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54394         * modules/random_r (Depends-on): Add stdint.
54395
54396 2008-10-24  Bruno Haible  <bruno@clisp.org>
54397
54398         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54399         Eggert.
54400         * modules/strerror (License): Likewise.
54401
54402 2008-10-24  Jim Meyering  <meyering@redhat.com>
54403
54404         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54405         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54406
54407 2008-10-24  Eric Blake  <ebb9@byu.net>
54408
54409         getgroups: fix compilation when getgroups is available
54410         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54411         but with <config.h> override of getgroups disabled.
54412
54413 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54414
54415         * doc/gnulib.texi (Header files): Add note about C++ problems.
54416         Explained by Bruno Haible <bruno@clisp.org>.
54417
54418 2008-10-23  Bruno Haible  <bruno@clisp.org>
54419
54420         Define a dummy SA_NODEFER macro on Interix.
54421         * lib/signal.in.h (SA_NODEFER): Define fallback.
54422         Reported by Aleksey Cheusov <cheusov@tut.by> via
54423         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54424
54425 2008-10-23  Bruno Haible  <bruno@clisp.org>
54426
54427         * modules/freadahead (License): Change to LGPLv2+.
54428         Suggested by Simon Josefsson.
54429
54430 2008-10-23  Jim Meyering  <meyering@redhat.com>
54431
54432         random_r: new module
54433         * modules/random_r: New file.
54434         * m4/random_r.m4: New file.
54435         * lib/random_r.c: New file, from glibc.
54436         * modules/random_r-tests: New file.
54437         * tests/test-random_r.c: New file.
54438         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54439          Declare.
54440         (RAND_MAX): Define.
54441         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54442         * modules/stdlib: Substitute them, too.
54443         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54444         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54445         * doc/glibc-functions/random_r.texi: Likewise.
54446         * doc/glibc-functions/setstate_r.texi: Likewise.
54447         * doc/glibc-functions/srandom_r.texi: Likewise.
54448         * config/srclist.txt: Mention it.
54449
54450 2008-10-23  David Lutterkort  <lutter@redhat.com>
54451
54452         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54453         link requirement
54454
54455 2008-10-23  Jim Meyering  <meyering@redhat.com>
54456
54457         selinux-h: mark parameters of stub functions as intentionally unused
54458         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54459         * lib/se-context.in.h: Likewise.
54460
54461 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54462
54463         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54464
54465 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54466
54467         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54468
54469 2008-10-22  Eric Blake  <ebb9@byu.net>
54470
54471         glthread/thread: avoid compiler warning
54472         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54473         Add unreachable abort to silence compiler.
54474
54475 2008-10-22  Eric Blake  <ebb9@byu.net>
54476
54477         netdb: also supply struct addrinfo for cygwin 1.5.x
54478         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54479         older cygwin.
54480         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54481         cygwin.
54482         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54483
54484 2008-10-22  Bruno Haible  <bruno@clisp.org>
54485
54486         * users.txt: Update entry about pspp.
54487
54488 2008-10-21  Bruno Haible  <bruno@clisp.org>
54489
54490         Simplification.
54491         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54492         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54493
54494         Simplification.
54495         * lib/ioctl.c (ioctl): Don't undefine.
54496         * lib/socket.c (socket): Don't undefine.
54497
54498         Remove unused module indicator macros.
54499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54500         GNULIB_$1 as a C macro.
54501
54502         * doc/posix-functions/close.texi: Undo last change.
54503         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54504         Windows platforms.
54505
54506 2008-10-21  Bruno Haible  <bruno@clisp.org>
54507
54508         Add gethostname() declaration to <unistd.h>.
54509         * lib/unistd.in.h (gethostname): New declaration.
54510         * lib/gethostname.c: Include <unistd.h>.
54511         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54512         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54514         and HAVE_GETHOSTNAME.
54515         * modules/gethostname (Depends-on): Add unistd.
54516         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54517         (Include): Specify <unistd.h>.
54518         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54519         HAVE_GETHOSTNAME.
54520         * tests/test-gethostname.c: Include <unistd.h> first.
54521
54522 2008-10-21  Bruno Haible  <bruno@clisp.org>
54523
54524         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54525         * modules/select-tests (Depends-on): Likewise.
54526         Reported by Simon Josefsson.
54527
54528 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54529
54530         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54531         * lib/accept.c: New file, based on winsock.c.
54532         * lib/bind.c: New file, based on winsock.c.
54533         * lib/connect.c: New file, based on winsock.c.
54534         * lib/getpeername.c: New file, based on winsock.c.
54535         * lib/getsockname.c: New file, based on winsock.c.
54536         * lib/getsockopt.c: New file, based on winsock.c.
54537         * lib/ioctl.c: New file, based on winsock.c.
54538         * lib/listen.c: New file, based on winsock.c.
54539         * lib/recv.c: New file, based on winsock.c.
54540         * lib/recvfrom.c: New file, based on winsock.c.
54541         * lib/send.c: New file, based on winsock.c.
54542         * lib/sendto.c: New file, based on winsock.c.
54543         * lib/setsockopt.c: New file, based on winsock.c.
54544         * lib/shutdown.c: New file, based on winsock.c.
54545         * lib/socket.c: New file, based on winsock.c.
54546         * lib/w32sock.h: New file, based on winsock.c.
54547         * lib/winsock.c: Remove file.
54548         * modules/accept: Likewise.
54549         * modules/bind: Likewise.
54550         * modules/connect: Likewise.
54551         * modules/getpeername: Likewise.
54552         * modules/getsockname: Likewise.
54553         * modules/getsockopt: Likewise.
54554         * modules/ioctl: Likewise.
54555         * modules/listen: Likewise.
54556         * modules/recv: Likewise.
54557         * modules/recvfrom: Likewise.
54558         * modules/send: Likewise.
54559         * modules/sendto: Likewise.
54560         * modules/setsockopt: Likewise.
54561         * modules/shutdown: Likewise.
54562         * modules/socket: Use socket.c instead of winsock.c.
54563         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54564         * doc/posix-functions/accept.texi: Doc fix.
54565         * doc/posix-functions/bind.texi: Doc fix.
54566         * doc/posix-functions/close.texi: Doc fix.
54567         * doc/posix-functions/connect.texi: Doc fix.
54568         * doc/posix-functions/getpeername.texi: Doc fix.
54569         * doc/posix-functions/getsockname.texi: Doc fix.
54570         * doc/posix-functions/getsockopt.texi: Doc fix.
54571         * doc/posix-functions/ioctl.texi: Doc fix.
54572         * doc/posix-functions/listen.texi: Doc fix.
54573         * doc/posix-functions/recv.texi: Doc fix.
54574         * doc/posix-functions/recvfrom.texi: Doc fix.
54575         * doc/posix-functions/send.texi: Doc fix.
54576         * doc/posix-functions/sendto.texi: Doc fix.
54577         * doc/posix-functions/setsockopt.texi: Doc fix.
54578         * doc/posix-functions/shutdown.texi: Doc fix.
54579         * doc/posix-functions/socket.texi: Doc fix.
54580
54581 2008-10-20  Bruno Haible  <bruno@clisp.org>
54582
54583         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54584         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54585         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54586         as an alias for SIGABRT.
54587         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54588         (sigaction): Map it to SIGABRT.
54589         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54590
54591 2008-10-20  Bruno Haible  <bruno@clisp.org>
54592
54593         * lib/fts.c: Don't include lstat.h.
54594         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54595
54596         Move the lstat() declaration to <sys/stat.h>.
54597         * lib/lstat.h: Remove file.
54598         * lib/sys_stat.in.h: Add special invocation convention.
54599         (lstat): New declaration.
54600         * lib/lstat.c (orig_lstat): New function.
54601         (rpl_lstat): Use orig_lstat instead of lstat.
54602         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54603         AC_C_INLINE. Set REPLACE_LSTAT.
54604         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54605         and REPLACE_LSTAT.
54606         * modules/lstat (Files): Remove lib/lstat.h.
54607         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54608         (Include): Specify <sys/stat.h> instead of lstat.h.
54609         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54610         REPLACE_LSTAT.
54611         * NEWS: Mention the change.
54612
54613 2008-10-20  Bruno Haible  <bruno@clisp.org>
54614
54615         * modules/posix_spawn-tests: New file.
54616         * tests/test-posix_spawn3.c: New file.
54617
54618 2008-10-20  Bruno Haible  <bruno@clisp.org>
54619
54620         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54621         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54622         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54623         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54624         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54625
54626 2008-10-20  Bruno Haible  <bruno@clisp.org>
54627
54628         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54629         of posix_spawn on AIX 5.3.
54630
54631 2008-10-20  Bruno Haible  <bruno@clisp.org>
54632
54633         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54634
54635 2008-10-20  Bruno Haible  <bruno@clisp.org>
54636
54637         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54638         of AC_LANG_PROGRAM.
54639
54640 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54641
54642         * lib/netdb.in.h: Don't define GNU specific constants until they
54643         are supported or needed.  Reported by Bruno Haible
54644         <bruno@clisp.org>.
54645
54646 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54647
54648         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54649
54650 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54651
54652         * lib/getaddrinfo.h: Remove file.
54653         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54654         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54655         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54656         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54657         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54658         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54659         * tests/test-getaddrinfo.c: Likewise.
54660         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54661         * NEWS: Mention change.
54662
54663 2008-10-19  Bruno Haible  <bruno@clisp.org>
54664
54665         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54666
54667 2008-10-19  Bruno Haible  <bruno@clisp.org>
54668
54669         * lib/wait-process.c: Include simply <sys/wait.h>.
54670         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54671         WIFSTOPPED): Remove fallback definitions.
54672         * modules/wait-process (Depends-on): Add sys_wait.
54673
54674         New module 'sys_wait'.
54675         * modules/sys_wait: New file.
54676         * lib/sys_wait.in.h: New file, partially copied from
54677         lib/wait-process.c.
54678         * m4/sys_wait_h.m4: New file.
54679         * doc/posix-headers/sys_wait.texi: Mention the new module.
54680
54681 2008-10-19  Bruno Haible  <bruno@clisp.org>
54682
54683         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54684
54685 2008-10-19  Bruno Haible  <bruno@clisp.org>
54686
54687         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54688         * lib/wait-process.c (WAIT_T): Remove type.
54689         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54690         (wait_subprocess): Update.
54691
54692 2008-10-19  Bruno Haible  <bruno@clisp.org>
54693
54694         New module 'atoll'.
54695         * modules/atoll: New file.
54696         * lib/stdlib.in.h (atoll): New declaration.
54697         * lib/atoll.c: New file, from glibc with modifications.
54698         * m4/atoll.m4: New file.
54699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54700         HAVE_ATOLL.
54701         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54702         * doc/posix-functions/atoll.texi: Mention the new module.
54703
54704 2008-10-19  Bruno Haible  <bruno@clisp.org>
54705
54706         Add strtoull() declaration to <stdlib.h>.
54707         * lib/stdlib.in.h (strtoull): New declaration.
54708         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54709         Set HAVE_STRTOULL.
54710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54711         HAVE_STRTOULL.
54712         * modules/strtoull (Depends-on): Add stdlib.
54713         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54714         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54715         HAVE_STRTOULL.
54716
54717 2008-10-19  Bruno Haible  <bruno@clisp.org>
54718
54719         Add strtoll() declaration to <stdlib.h>.
54720         * lib/stdlib.in.h (strtoll): New declaration.
54721         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54722         Set HAVE_STRTOLL.
54723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54724         HAVE_STRTOLL.
54725         * modules/strtoll (Depends-on): Add stdlib.
54726         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54727         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54728
54729 2008-10-19  Bruno Haible  <bruno@clisp.org>
54730
54731         * modules/bcopy (Depends-on): Add strings.
54732         (Include): Specify <strings.h>.
54733
54734 2008-10-19  Bruno Haible  <bruno@clisp.org>
54735
54736         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54737
54738 2008-10-19  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54741         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54742         mingw.
54743
54744 2008-10-19  Bruno Haible  <bruno@clisp.org>
54745
54746         * lib/atanl.c: Don't include isnanl.h.
54747         * lib/cosl.c: Likewise.
54748         * lib/ldexpl.c: Likewise.
54749         * lib/logl.c: Likewise.
54750         * lib/sinl.c: Likewise.
54751         * lib/sqrtl.c: Likewise.
54752         * lib/tanl.c: Likewise.
54753
54754         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54755         * lib/isnanf.h: Remove file.
54756         * lib/isnand.h: Remove file.
54757         * lib/isnanl.h: Remove file.
54758         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54759         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54760         macros.
54761         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54762         HAVE_ISNANF, don't define it as a C macro.
54763         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54764         HAVE_ISNAND, don't define it as a C macro.
54765         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54766         HAVE_ISNANL, don't define it as a C macro.
54767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54768         HAVE_ISNAN[FDL].
54769         * modules/isnanf (Files): Remove lib/isnanf.h.
54770         (Depends-on): Add math.
54771         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54772         (Include): Specify <math.h> instead of isnanf.h.
54773         * modules/isnand (Files): Remove lib/isnand.h.
54774         (Depends-on): Add math.
54775         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54776         (Include): Specify <math.h> instead of isnand.h.
54777         * modules/isnanl (Files): Remove lib/isnanl.h.
54778         (Depends-on): Add math.
54779         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54780         (Include): Specify <math.h> instead of isnanl.h.
54781         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54782         HAVE_ISNAN[FDL].
54783         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54784         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54785         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54786         * NEWS: Mention the change.
54787
54788 2008-10-18  Bruno Haible  <bruno@clisp.org>
54789
54790         Add getusershell(), setusershell(), endusershell() declarations to
54791         <unistd.h>.
54792         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54793         declarations.
54794         * lib/getusershell.c: Include unistd.h.
54795         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54796         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54797         HAVE_GETUSERSHELL.
54798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54799         and HAVE_GETUSERSHELL.
54800         * modules/getusershell (Depends-on): Add unistd, extensions.
54801         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54802         (Include): Specify <unistd.h>.
54803         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54804         HAVE_GETUSERSHELL.
54805
54806 2008-10-18  Bruno Haible  <bruno@clisp.org>
54807
54808         Add a getloadavg() declaration to <stdlib.h>.
54809         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54810         getloadavg declaration.
54811         (getloadavg): New declaration.
54812         * lib/getloadavg.c: Include <stdlib.h> first.
54813         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54814         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54815         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54817         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54818         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54819         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54820         (Include): Specify <stdlib.h>.
54821         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54822         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54823
54824 2008-10-18  Bruno Haible  <bruno@clisp.org>
54825
54826         * lib/dirchownmod.c: Don't include lchmod.h.
54827
54828         Move the lchmod() declaration to <sys/stat.h>.
54829         * lib/lchmod.h: Remove file.
54830         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54831         (lchmod): New declaration, moved here from lib/lchown.h.
54832         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54833         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54834         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54835         and HAVE_LCHMOD.
54836         * modules/lchmod (Files): Remove lib/lchmod.h.
54837         (Depends-on): Add sys_stat, extensions.
54838         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54839         (Include): Specify <sys/stat.h> instead of lchmod.h.
54840         * modules/sys_stat (Depends-on): Add link-warning.
54841         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54842         definition of GL_LINK_WARNING.
54843         * NEWS: Mention the change.
54844
54845 2008-10-18  Bruno Haible  <bruno@clisp.org>
54846
54847         * lib/fchdir.c: Don't include dirfd.h.
54848         * lib/fts.c: Likewise.
54849         * lib/getcwd.c: Likewise.
54850         * lib/glob.c: Likewise.
54851
54852         Move the dirfd() declaration to <dirent.h>.
54853         * lib/dirfd.h: Remove file.
54854         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54855         (dirfd): New declaration.
54856         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54857         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54858         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54859         HAVE_DECL_DIRFD.
54860         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54861         HAVE_DECL_DIRFD.
54862         * modules/dirfd (Files): Remove lib/dirfd.h.
54863         (Depends-on): Add dirent, extensions.
54864         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54865         (Include): Specify <dirent.h> instead of dirfd.h.
54866         * modules/dirent (Depends-on): Add link-warning.
54867         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54868         definition of GL_LINK_WARNING.
54869         * NEWS: Mention the change.
54870
54871 2008-10-18  Bruno Haible  <bruno@clisp.org>
54872
54873         Move the euidaccess() declaration to <unistd.h>.
54874         * lib/euidaccess.h: Remove file.
54875         * lib/unistd.in.h (euidaccess): New declaration.
54876         * lib/euidaccess.c: Don't include euidaccess.h.
54877         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54878         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54880         and HAVE_EUIDACCESS.
54881         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54882         (Depends-on): Add unistd.
54883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54884         (Include): Specify <unistd.h> instead of euidaccess.h.
54885         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54886         HAVE_EUIDACCESS.
54887         * NEWS: Mention the change.
54888
54889 2008-10-18  Bruno Haible  <bruno@clisp.org>
54890
54891         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54892
54893         Move the getdomainname() declaration to <unistd.h>.
54894         * lib/getdomainname.h: Remove file.
54895         * lib/unistd.in.h (getdomainname): New declaration.
54896         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54897         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54898         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54899         HAVE_GETDOMAINNAME.
54900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54901         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54902         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54903         (Depends-on): Add unistd, extensions.
54904         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54905         (Includes): Specify <unistd.h> instead of getdomainname.h.
54906         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54907         HAVE_GETDOMAINNAME.
54908         * NEWS: Mention the change.
54909
54910 2008-10-18  Bruno Haible  <bruno@clisp.org>
54911
54912         * modules/dirent: New file.
54913         * m4/dirent_h.m4: New file.
54914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54915         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54916         * modules/fchdir (Files): Remove lib/dirent.in.h.
54917         (Depends-on): Add dirent.
54918         (Makefile.am): Move rules to modules/dirent.
54919         * doc/posix-headers/dirent.texi: Mention the new module.
54920
54921 2008-10-18  Bruno Haible  <bruno@clisp.org>
54922
54923         Avoid -Wunused-parameter warnings in public gnulib header files.
54924         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54925         macro.
54926         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54927
54928 2008-10-18  Bruno Haible  <bruno@clisp.org>
54929
54930         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54931         * doc/glibc-functions/error.texi: Mention the module 'error'.
54932         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54933         * doc/glibc-functions/getdomainname.texi: Mention the module
54934         'getdomainname'.
54935         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54936         * doc/glibc-functions/getpagesize.texi: Mention the module
54937         'getpagesize'.
54938         * doc/glibc-functions/getusershell.texi: Mention the module
54939         'getusershell'.
54940         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54941         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54942         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54943         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54944         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54945         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54946         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54947         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54948         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54949         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54950         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54951         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54952         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54953         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54954
54955 2008-10-17  Bruno Haible  <bruno@clisp.org>
54956
54957         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54958         HP-UX and IRIX, use -0.0L.
54959         * tests/test-ceill.c (minus_zero): Likewise.
54960         * tests/test-floorl.c (minus_zero): Likewise.
54961         * tests/test-frexpl.c (minus_zero): Likewise.
54962         * tests/test-isnan.c (minus_zerol): Likewise.
54963         * tests/test-isnanl.h (minus_zero): Likewise.
54964         * tests/test-ldexpl.c (minus_zero): Likewise.
54965         * tests/test-roundl.c (minus_zero): Likewise.
54966         * tests/test-signbit.c (minus_zerol): Likewise.
54967         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54968         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54969         * tests/test-truncl.c (minus_zero): Likewise.
54970         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54971         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54972         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54973         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54974
54975 2008-10-17  Bruno Haible  <bruno@clisp.org>
54976
54977         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54978         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54979         that it gets activated only for gcc >= 3.0.
54980         * lib/dirent.in.h: Likewise.
54981         * lib/errno.in.h: Likewise.
54982         * lib/fcntl.in.h: Likewise.
54983         * lib/float.in.h: Likewise.
54984         * lib/iconv.in.h: Likewise.
54985         * lib/inttypes.in.h: Likewise.
54986         * lib/locale.in.h: Likewise.
54987         * lib/math.in.h: Likewise.
54988         * lib/netdb.in.h: Likewise.
54989         * lib/netinet_in.in.h: Likewise.
54990         * lib/search.in.h: Likewise.
54991         * lib/signal.in.h: Likewise.
54992         * lib/spawn.in.h: Likewise.
54993         * lib/stdarg.in.h: Likewise.
54994         * lib/stdint.in.h: Likewise.
54995         * lib/stdio.in.h: Likewise.
54996         * lib/stdlib.in.h: Likewise.
54997         * lib/string.in.h: Likewise.
54998         * lib/strings.in.h: Likewise.
54999         * lib/sys_file.in.h: Likewise.
55000         * lib/sys_ioctl.in.h: Likewise.
55001         * lib/sys_select.in.h: Likewise.
55002         * lib/sys_socket.in.h: Likewise.
55003         * lib/sys_stat.in.h: Likewise.
55004         * lib/sys_time.in.h: Likewise.
55005         * lib/sysexits.in.h: Likewise.
55006         * lib/time.in.h: Likewise.
55007         * lib/unistd.in.h: Likewise.
55008         * lib/wchar.in.h: Likewise.
55009         * lib/wctype.in.h: Likewise.
55010         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55011
55012 2008-10-17  Jim Meyering  <meyering@redhat.com>
55013
55014         ignore-value: don't depend on inline module
55015         * modules/ignore-value (Depends-on): Remove 'inline'.
55016         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55017         Suggestion from Bruno Haible.
55018
55019 2008-10-17  Bruno Haible  <bruno@clisp.org>
55020
55021         New implementation of condition variables for Win32.
55022         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55023         (gl_linked_waitqueue_t): New type.
55024         (gl_cond_t): Use it.
55025         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55026         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55027         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55028         (glthread_cond_init_func, glthread_cond_wait_func,
55029         glthread_cond_timedwait_func, glthread_cond_signal_func,
55030         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55031         Reimplemented on the basis of gl_linked_waitqueue_t.
55032         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55033         gl_waitqueue_t.
55034         (gl_rwlock_t): Update.
55035         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55036
55037 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55038
55039         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55040         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55041
55042 2008-10-17  Jim Meyering  <meyering@redhat.com>
55043
55044         ignore-value: new module
55045         * modules/ignore-value: New file.
55046         * lib/ignore-value.h: New file.
55047         * MODULES.html.sh (Compiler warning management): New section,
55048         just for this module.  More to come.
55049
55050 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55051
55052         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55053         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55054         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55055
55056 2008-10-16  Jim Meyering  <meyering@redhat.com>
55057
55058         openat-die.c: avoid 'no previous prototype' warning
55059         * lib/openat-die.c: Include "openat.h".
55060         Reported by Reuben Thomas <rrt@sc3d.org>.
55061
55062 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55063
55064         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55065         * lib/netdb.in.h: Fix typo.
55066         Reported by Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/netdb.in.h: Include sys/socket.h for platforms without
55069         netdb.h, to get structures like hostent on MinGW.
55070         * modules/netdb (Depends-on): Add sys_socket.
55071
55072 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55073
55074         * modules/netdb, modules/netdb-tests: New file.
55075         * m4/netdb_h.m4: New file.
55076         * lib/netdb.in.h: Add, currently just an empty file pending
55077         definitions.
55078         * tests/test-netdb.c: New file.
55079         * doc/posix-headers/netdb.texi: Mention that we replace it if
55080         needed.
55081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55082         netdb.
55083
55084 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55085
55086         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55087         with code.
55088
55089 2008-10-13  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/glthread/cond.c (glthread_cond_wait_func,
55092         glthread_cond_timedwait_func): Add a comment.
55093
55094 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55095
55096         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55097         * tests/test-select.c: Likewise,
55098
55099 2008-10-13  Bruno Haible  <bruno@clisp.org>
55100
55101         * lib/glthread/cond.c (glthread_cond_wait_func,
55102         glthread_cond_timedwait_func): Fix variable name.
55103         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55104
55105 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55106
55107         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55109         struct sockaddr.sa_len.
55110         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55111
55112 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55113
55114         * build-aux/pmccabe2html: Add css and css_url parameters.
55115
55116 2008-10-12  Bruno Haible  <bruno@clisp.org>
55117
55118         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55119         calling aclx_get.
55120         Reported by Rainer Tammer <tammer@tammer.net>.
55121
55122 2008-10-12  Bruno Haible  <bruno@clisp.org>
55123
55124         Use msvcrt aware primitives for creation/termination of Win32 threads.
55125         * lib/glthread/thread.c: Include <process.h>.
55126         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55127         (wrapper_func): Update signature.
55128         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55129
55130 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55131             Bruno Haible  <bruno@clisp.org>
55132
55133         Provide a Win32 implementation of the 'cond' module.
55134         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55135         * lib/glthread/cond.c (glthread_cond_init_func,
55136         glthread_cond_wait_func, glthread_cond_timedwait_func,
55137         glthread_cond_signal_func, glthread_cond_broadcast_func,
55138         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55139         * modules/cond (Dependencies): Add gettimeofday.
55140
55141 2008-10-11  Bruno Haible  <bruno@clisp.org>
55142
55143         Make sleep work on older versions of mingw.
55144         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55145         only whether it exists.
55146         * doc/posix-functions/sleep.texi: Mention the problem with older
55147         versions of mingw.
55148
55149 2008-10-11  Bruno Haible  <bruno@clisp.org>
55150
55151         New module 'shutdown'.
55152         * modules/shutdown: New file.
55153         * lib/sys_socket.in.h (shutdown): New declaration.
55154         * lib/winsock.c (shutdown): New function.
55155         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55156         GNULIB_SHUTDOWN.
55157         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55158         * doc/posix-functions/shutdown.texi: Document the new module.
55159
55160 2008-10-11  Jim Meyering  <meyering@redhat.com>
55161
55162         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55163
55164 2008-10-11  Bruno Haible  <bruno@clisp.org>
55165
55166         New module 'fclose'.
55167         * modules/fclose: New file.
55168         * lib/stdio.in.h (fclose): New declaration.
55169         * lib/fclose.c: New file.
55170         * m4/fclose.m4: New file.
55171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55172         REPLACE_FCLOSE.
55173         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55174         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55175         REPLACE_FCLOSE.
55176         * modules/close (Depends-on): fclose.
55177         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55178
55179 2008-10-11  Bruno Haible  <bruno@clisp.org>
55180
55181         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55182         set errno and don't call _close.
55183
55184 2008-10-10  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55187         ACL, not afterwards. Fixes test failure on Cygwin.
55188
55189 2008-10-09  Ben Pfaff  <blp@gnu.org>
55190
55191         * build-aux/announce-gen: Fix gnulib version related part of usage
55192         message.  Die with a useful error message if no tarballs are
55193         found.
55194
55195 2008-10-10  Jim Meyering  <meyering@redhat.com>
55196
55197         bootstrap: use git's --depth=N option only if it's supported
55198         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55199         recognize the --depth option.  Reported by Pádraig Brady.
55200
55201 2008-10-09  Bruno Haible  <bruno@clisp.org>
55202
55203         New module 'ioctl'.
55204         * modules/ioctl: New file.
55205         * lib/sys_socket.in.h (ioctl): Remove declaration.
55206         * lib/winsock.c: Include <sys/ioctl.h>.
55207         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55208         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55209         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55210         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55211         * doc/posix-functions/ioctl.texi: Mention the new module.
55212
55213 2008-10-09  Bruno Haible  <bruno@clisp.org>
55214
55215         New module 'sys_ioctl'.
55216         * lib/sys_ioctl.in.h: New file.
55217         * m4/sys_ioctl_h.m4: New file.
55218         * modules/sys_ioctl: New file.
55219         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55220
55221 2008-10-09  Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55224         * lib/winsock.c: Include <stdarg.h>.
55225         (rpl_ioctl): Change to second argument 'int' and then varargs.
55226
55227 2008-10-09  Bruno Haible  <bruno@clisp.org>
55228
55229         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55230         when the sys_socket module is present and the system has <winsock2.h>.
55231
55232 2008-10-09  Bruno Haible  <bruno@clisp.org>
55233
55234         * doc/posix-functions/close.texi: Mention module 'close' instead of
55235         module 'sys_socket'.
55236
55237 2008-10-09  Bruno Haible  <bruno@clisp.org>
55238
55239         * doc/glibc-headers/sys_ioctl.texi: New file.
55240         * doc/gnulib.texi: Include it.
55241
55242 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55243             Bruno Haible  <bruno@clisp.org>
55244
55245         Combine the two replacements of 'close'.
55246         * lib/sys_socket.in.h (close): Define to a reminder to include
55247         <unistd.h>.
55248         (_gl_close_fd_maybe_socket): New declaration.
55249         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55250         * lib/winsock.c (close): Remove undefinition.
55251         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55252         needed for the gnulib module 'close'.
55253         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55254         define to an error symbol or to a warning, if suitable.
55255         * lib/close.c: Include <sys/socket.h>.
55256         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55257         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55258         UNISTD_H_HAVE_WINSOCK2_H.
55259         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55261         UNISTD_H_HAVE_WINSOCK2_H.
55262         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55263         (configure.ac): Set a module indicator.
55264         (Makefile.am): Substitute GNULIB_CLOSE.
55265         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55266         * modules/poll-tests (Depends-on): Add close.
55267         * modules/select-tests (Depends-on): Likewise.
55268
55269 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55270             Bruno Haible  <bruno@clisp.org>
55271
55272         New module 'close'.
55273         * modules/close: New file.
55274         * lib/unistd.in.h (close): Move declaration out of the
55275         FCHDIR_REPLACEMENT scope.
55276         (_gl_unregister_fd): New declaration.
55277         * lib/close.c: New file.
55278         * lib/fchdir.c (rpl_close): Remove function.
55279         * m4/close.m4: New file.
55280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55281         close.
55282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55283         REPLACE_CLOSE.
55284         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55285         REPLACE_CLOSE.
55286         * modules/fchdir (Depends-on): Add close.
55287
55288 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55289             Bruno Haible  <bruno@clisp.org>
55290
55291         * lib/fcntl.in.h (open): Simplify conditionals.
55292         (_gl_register_fd): New declaration.
55293         * lib/fchdir.c (rpl_open): Remove function.
55294         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55295         also.
55296         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55298         open.
55299
55300 2008-10-09  Jim Meyering  <meyering@redhat.com>
55301
55302         GNUmakefile: use the more name-space-friendly "_version"
55303         * top/GNUmakefile (_dummy): Update.
55304         (_version): Rename from "version".
55305
55306 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55307             Bruno Haible  <bruno@clisp.org>
55308
55309         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55310         rpl_close.
55311         (_gl_register_fd): New function, extracted from rpl_open.
55312         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55313         (rpl_open, rpl_opendir): Use _gl_register_fd.
55314
55315 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55316
55317         Fix organization of 'open' replacement.
55318         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55319         (gl_FUNC_OPEN): Use it.
55320         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55321
55322 2008-10-08  Bruno Haible  <bruno@clisp.org>
55323
55324         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55325
55326 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55327
55328         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55329         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55330         listen).
55331
55332 2008-10-08  Eric Blake  <ebb9@byu.net>
55333
55334         GNUmakefile: add 'make version' target
55335         * top/GNUmakefile (_curr-ver): Split version update rules...
55336         (version): ...into a target.
55337
55338 2008-10-07  Bruno Haible  <bruno@clisp.org>
55339
55340         Use a more portable replacement expression for -0.0L.
55341         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55342         instead of -0.0L. Fix m4 quotation.
55343
55344         * tests/test-signbit.c: Include <float.h>.
55345         (minus_zero): New variable.
55346         (test_signbitl): Use minus_zero instead of -zero.
55347         * modules/signbit-tests (Depends-on): Add float.
55348
55349         * tests/test-ceill.c: Include <float.h>.
55350         (zero): Remove variable.
55351         (minus_zero): New variable.
55352         (main): Use minus_zero instead of -zero.
55353         * modules/ceill-tests (Depends-on): Add float.
55354
55355         * tests/test-floorl.c: Include <float.h>.
55356         (zero): Remove variable.
55357         (minus_zero): New variable.
55358         (main): Use minus_zero instead of -zero.
55359         * modules/floorl-tests (Depends-on): Add float.
55360
55361         * tests/test-roundl.c: Include <float.h>.
55362         (zero): Remove variable.
55363         (minus_zero): New variable.
55364         (main): Use minus_zero instead of -zero.
55365         * modules/roundl-tests (Depends-on): Add float.
55366
55367         * tests/test-truncl.c: Include <float.h>.
55368         (zero): Remove variable.
55369         (minus_zero): New variable.
55370         (main): Use minus_zero instead of -zero.
55371         * modules/truncl-tests (Depends-on): Add float.
55372
55373         * tests/test-frexpl.c (zero): Remove variable.
55374         (minus_zero): New variable.
55375         (main): Use minus_zero instead of -zero.
55376         * modules/frexpl-tests (Depends-on): Add float.
55377
55378         * tests/test-isnan.c (zerol): Remove variable.
55379         (minus_zerol): New variable.
55380         (test_long_double): Use minus_zerol instead of -zerol.
55381         * modules/isnan-tests (Depends-on): Add float.
55382
55383         * tests/test-isnanl.h (zero): Remove variable.
55384         (minus_zero): New variable.
55385         (main): Use minus_zero instead of -zero.
55386         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55387         * modules/isnanl-tests (Depends-on): Add float.
55388
55389         * tests/test-ldexpl.c (zero): Remove variable.
55390         (minus_zero): New variable.
55391         (main): Use minus_zero instead of -zero.
55392         * modules/ldexpl-tests (Depends-on): Add float.
55393
55394         * tests/test-snprintf-posix.h (zerol): Remove variable.
55395         (minus_zerol): New variable.
55396         (test_function): Use minus_zerol instead of -zerol.
55397         * modules/snprintf-posix-tests (Depends-on): Add float.
55398         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55399
55400         * tests/test-sprintf-posix.h (zerol): Remove variable.
55401         (minus_zerol): New variable.
55402         (test_function): Use minus_zerol instead of -zerol.
55403         * modules/sprintf-posix-tests (Depends-on): Add float.
55404         * modules/vsprintf-posix-tests (Depends-on): Add float.
55405
55406         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55407         (minus_zerol): New variable.
55408         (test_function): Use minus_zerol instead of -zerol.
55409         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55410
55411         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55412         (minus_zerol): New variable.
55413         (test_function): Use minus_zerol instead of -zerol.
55414         * modules/vasprintf-posix-tests (Depends-on): Add float.
55415
55416 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55417
55418         * MODULES.html.sh (Support for building documentation): Mention
55419         pmccabe2html.  Sort entries.
55420
55421         Add pmccabe2html module, from gnupdf.
55422         * build-aux/pmccabe.css: New file.
55423         * build-aux/pmccabe2html: New file.
55424         * m4/pmccabe2html.m4: New file.
55425         * modules/pmccabe2html: New file.
55426
55427 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55428
55429         flock: new module
55430         * MODULES.html.sh: Add to list of modules.
55431         * lib/flock.c: flock implementation for Windows and Unix systems
55432         which have fcntl.
55433         * doc/glibc-functions/flock.texi: Update documentation.
55434         * lib/sys_file.in.h: <sys/file.h> header file.
55435         * m4/flock.m4: M4 macros.
55436         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55437         * modules/flock: flock module.
55438         * modules/flock-tests: flock tests module.
55439         * modules/sys_file: sys/file.h module.
55440         * tests/test-flock.c: test suite for flock.
55441
55442 2008-10-06  Jim Meyering  <meyering@redhat.com>
55443
55444         bootstrap: check for LT_INIT more portably still ;-)
55445         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55446         Spotted by Bruno Haible.
55447
55448 2008-10-06  Eric Blake  <ebb9@byu.net>
55449
55450         test-signbit: avoid tripping Irix cc bug on -0.0L
55451         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55452         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55453         entire testsuite consistent and avoids an Irix 6.2 bug.
55454
55455 2008-10-05  Bruno Haible  <bruno@clisp.org>
55456             Jim Meyering  <jim@meyering.net>
55457
55458         Add an option for ignoring EPIPE during close_stdout.
55459         * lib/closeout.h: Include <stdbool.h>.
55460         (close_stdout_set_ignore_EPIPE): New declaration.
55461         * lib/closeout.c: Include <stdbool.h>.
55462         (ignore_EPIPE): New variable.
55463         (close_stdout_set_ignore_EPIPE): New function.
55464         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55465         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55466         failure.
55467         * modules/closeout (Depends-on): Add stdbool.
55468
55469 2008-10-05  Bruno Haible  <bruno@clisp.org>
55470
55471         * modules/accept: New file.
55472         * modules/bind: New file.
55473         * modules/connect: New file.
55474         * modules/getpeername: New file.
55475         * modules/getsockname: New file.
55476         * modules/getsockopt: New file.
55477         * modules/listen: New file.
55478         * modules/recv: New file.
55479         * modules/recvfrom: New file.
55480         * modules/send: New file.
55481         * modules/sendto: New file.
55482         * modules/setsockopt: New file.
55483         * modules/socket: New file.
55484         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55485         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55486         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55487         the particular module is requested. Add a link warning when the
55488         particular module is not requested.
55489         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55490         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55491         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55492         the particular module is requested.
55493         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55494         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55495         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55496         * modules/sys_socket (Depends-on): Add link-warning.
55497         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55498         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55499         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55500         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55501         GL_LINK_WARNING.
55502         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55503         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55504         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55505         * doc/posix-functions/getpeername.texi: Mention the new module
55506         'getpeername'.
55507         * doc/posix-functions/getsockname.texi: Mention the new module
55508         'getsockname'.
55509         * doc/posix-functions/getsockopt.texi: Mention the new module
55510         'getsockopt'.
55511         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55512         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55513         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55514         * doc/posix-functions/send.texi: Mention the new module 'send'.
55515         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55516         * doc/posix-functions/setsockopt.texi: Mention the new module
55517         'setsockopt'.
55518         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55519         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55520         listen, connect, accept.
55521         * modules/select-tests (Depends-on): Likewise.
55522
55523 2008-10-05  Bruno Haible  <bruno@clisp.org>
55524
55525         * lib/winsock.c (strerror): Remove unused #undef.
55526         (rpl_close): Remove unused local variable.
55527
55528         * modules/sys_socket (Depends-on); Add errno.
55529
55530 2008-10-05  Bruno Haible  <bruno@clisp.org>
55531
55532         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55533         (select): Add a link warning when the 'select' module is not used.
55534         * modules/sys_select (Depends-on): Add link-warning.
55535         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55536         Suggested by Paolo Bonzini.
55537
55538 2008-10-05  Jim Meyering  <meyering@redhat.com>
55539
55540         bootstrap: check for LT_INIT more portably
55541         * build-aux/bootstrap: Avoid using grep -E, since it's not
55542         portable enough.  Suggestion from Bruno Haible.
55543
55544 2008-10-05  Bruno Haible  <bruno@clisp.org>
55545
55546         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55547         as being fixed by gnulib.
55548
55549 2008-10-05  Bruno Haible  <bruno@clisp.org>
55550
55551         * modules/select-tests: New file, mostly copied from
55552         modules/sys_select-tests.
55553         * tests/test-select.c: New file, mostly copied from
55554         tests/test-sys_select.c.
55555         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55556         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55557         (Makefile.am): Remove test_sys_select_LDADD.
55558
55559         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55560         to an undefined symbol, for an error message.
55561         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55562         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55563         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55564         winsock-select.c here.
55565         * modules/sys_select (Files): Remove lib/winsock-select.c.
55566         (Depends-on): Remove alloca.
55567         (Makefile.am): Substitute GNULIB_SELECT.
55568         * modules/select: New file.
55569         * doc/posix-functions/select.texi: Update.
55570
55571 2008-10-05  Bruno Haible  <bruno@clisp.org>
55572
55573         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55574         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55575         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55576         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55577         getdtablesize.
55578         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55579         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55580
55581 2008-10-05  Bruno Haible  <bruno@clisp.org>
55582
55583         * modules/getdtablesize-tests: New file.
55584         * tests/test-getdtablesize.c: New file.
55585
55586         New module 'getdtablesize'.
55587         * lib/unistd.in.h (getdtablesize): New declaration.
55588         * lib/getdtablesize.c: New file.
55589         * m4/getdtablesize.m4: New file.
55590         * modules/getdtablesize: New file.
55591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55592         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55593         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55594         HAVE_GETDTABLESIZE.
55595         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55596
55597 2008-10-05  Bruno Haible  <bruno@clisp.org>
55598
55599         * modules/sched (Makefile.am): Fix typo.
55600         Reported by Simon Josefsson.
55601
55602 2008-10-05  Jim Meyering  <meyering@redhat.com>
55603
55604         bootstrap: check for LT_INIT, too
55605         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55606         are deprecated.  Suggestion from Ralf Wildenhues.
55607
55608 2008-10-05  Bruno Haible  <bruno@clisp.org>
55609
55610         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55611         overriding them by ours.
55612         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55613
55614 2008-10-05  Jim Meyering  <meyering@redhat.com>
55615
55616         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55617         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55618         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55619
55620 2008-10-04  Bruno Haible  <bruno@clisp.org>
55621
55622         * modules/dup2 (License): Change to LGPLv2+.
55623         * modules/sleep (License): Likewise.
55624         * modules/perror (License): Likewise.
55625         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55626         Blake.
55627         * modules/signal (License): Likewise.
55628         * modules/sigprocmask (License): Likewise.
55629         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55630         Meyering.
55631
55632 2008-10-04  Bruno Haible  <bruno@clisp.org>
55633
55634         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55635         Reported by Rainer Tammer <tammer@tammer.net>.
55636
55637 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55638             Bruno Haible  <bruno@clisp.org>
55639
55640         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55641         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55642         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55643
55644 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55645
55646         filevercmp: new module
55647         * lib/filevercmp.h: New function filevercmp comparing version strings.
55648         * lib/filevercmp.c: Implementation of filevercmp function.
55649         * modules/filevercmp: Module metadata.
55650         * tests/test-filevercmp.c: Unit test for new module.
55651         * modules/filevercmp-tests: Unit test metadata.
55652         * MODULES.html.sh: Add filevercmp module.
55653
55654 2008-10-03  Bruno Haible  <bruno@clisp.org>
55655
55656         * lib/c-ctype.h: Add comment.
55657         Reported by Jim Meyering.
55658
55659 2008-10-02  Bruno Haible  <bruno@clisp.org>
55660
55661         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55662
55663 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55664
55665         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55666         name of bootstrap.conf accordingly.
55667
55668 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55669
55670         * build-aux/bootstrap: Install git-merge-changelog configuration
55671         items into .gitconfig if needed.
55672
55673 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55674
55675         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55676         git repository, and initialize/update it accordingly.
55677
55678 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55679
55680         * modules/fsync-tests: New file.
55681         * tests/test-fsync.c: New file.
55682
55683         New module 'fsync'.
55684         * lib/fsync.c: New file.
55685         * m4/fsync.m4: New file.
55686         * modules/fsync: New file.
55687         * lib/unistd.in.h (fsync): New declaration.
55688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55689         GNULIB_FSYNC and HAVE_FSYNC.
55690         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55691         * MODULES.html.sh (posix_functions): Add fsync.
55692         * doc/posix-functions/fsync.texi: Mention the new module.
55693
55694 2008-10-02  Jim Meyering  <meyering@redhat.com>
55695
55696         fts.c: sync with similar code from coreutils' remove.c
55697         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55698         Guard also with "#if defined __linux__", since for now at least,
55699         this code is Linux-kernel-specific.
55700
55701 2008-10-02  Jim Meyering  <meyering@redhat.com>
55702
55703         fts: bug fixes
55704         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55705         Include <sys/vfs.h>, not <sys/statfs.h>.
55706
55707         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55708         Include <sys/vfs.h>, not <sys/statfs.h>.
55709
55710 2008-10-01  Bruno Haible  <bruno@clisp.org>
55711
55712         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55713         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55714         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55715         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55716         * doc/posix-functions/posix_spawnp.texi: Likewise.
55717         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55718         whether posix_spawn actually works.
55719         * m4/pipe.m4 (gl_PIPE): Likewise.
55720         * modules/execute (Files): Add m4/posix_spawn.m4.
55721         * modules/pipe (Files): Add m4/posix_spawn.m4.
55722         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55723
55724 2008-10-01  Jim Meyering  <meyering@redhat.com>
55725
55726         remove trailing spaces
55727         * NEWS: Likewise.
55728         * lib/poll.c (poll): Likewise.
55729         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55730         * lib/winsock.c (rpl_close): Likewise.
55731         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55732         * modules/yield: Likewise.
55733         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55734         * tests/test-sys_select.c (connect_to_socket): Likewise.
55735
55736         fts.c: adjust a new interface to be more generally useful
55737         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55738         (fts_build): Adjust caller.
55739
55740 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55741
55742         * modules/cond-tests: New file.
55743         * tests/test-cond.c: New file.
55744
55745 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55746             Bruno Haible  <bruno@clisp.org>
55747
55748         * modules/cond (Dependencies): Add errno, time.
55749         * lib/glthread/cond.h: Include <time.h>.
55750         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55751         across platforms.
55752
55753 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55754             Bruno Haible  <bruno@clisp.org>
55755
55756         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55757
55758 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55759             Bruno Haible  <bruno@clisp.org>
55760
55761         * modules/tls-tests (Depends-on): Add thread, yield.
55762         (configure.ac): Remove all checks.
55763         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55764         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55765         gl_thread_self): Remove definitions. Include glthread/thread.h and
55766         glthread/yield.h instead.
55767         (test_tls): Pass an additional NULL argument to gl_thread_join.
55768
55769 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55770             Bruno Haible  <bruno@clisp.org>
55771
55772         * modules/lock-tests (Depends-on): Add thread, yield.
55773         (configure.ac): Remove all checks.
55774         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55775         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55776         gl_thread_self): Remove definitions. Include glthread/thread.h and
55777         glthread/yield.h instead.
55778         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55779         additional NULL argument to gl_thread_join.
55780
55781 2008-09-30  Bruno Haible  <bruno@clisp.org>
55782
55783         Fix the Win32 implementation of the 'thread' module.
55784         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55785         pointer type.
55786         (gl_thread_self): Invoke gl_thread_self_func.
55787         (gl_thread_self_func): New declaration.
55788         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55789         (do_init_self_key, init_self_key): New functions.
55790         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55791         Remove some fields.
55792         (running_threads, running_lock): Remove variables.
55793         (get_current_thread_handle): New function.
55794         (gl_thread_self_func, wrapper_func, glthread_create_func,
55795         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55796         simplified.
55797
55798 2008-09-30  Bruno Haible  <bruno@clisp.org>
55799
55800         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55801         files.
55802
55803 2008-09-30  Jim Meyering  <meyering@redhat.com>
55804
55805         fts.m4: correct the test for statfs.f_type
55806         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55807         when checking for statfs.f_type.
55808
55809 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55810
55811         tests: avoid some compiler warnings
55812         * tests/test-memchr.c (main): Pass NULL indirectly.
55813         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55814
55815 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55816
55817         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55818         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55819         exactly specified dayshifts.
55820         (dayshift): New rule.
55821         (rel): Add dayshift.
55822         (relative_time_table) [tomorrow, yesterday, today, now]:
55823         Use tDAY_SHIFT in place of tDAY_UNIT.
55824         * tests/test-getdate.c: Add tests for now-disallowed countable
55825         dayshifts, e.g., "4 yesterday ago".
55826
55827 2008-09-29  Bruno Haible  <bruno@clisp.org>
55828
55829         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55830         * tests/test-posix_spawn1.in.sh: Renamed from
55831         tests/test-posix_spawn.in.sh.
55832         * tests/test-posix_spawn2.c: New file.
55833         * tests/test-posix_spawn2.in.sh: New file.
55834         * modules/posix_spawnp-tests (Files): Update.
55835         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55836
55837 2008-09-29  Bruno Haible  <bruno@clisp.org>
55838
55839         Propagate effects of putenv/setenv/unsetenv to child processes.
55840         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55841         * lib/pipe.c (create_pipe): Likewise.
55842
55843 2008-09-29  Bruno Haible  <bruno@clisp.org>
55844
55845         Enable use of shell scripts as executables in mingw.
55846         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55847         run the program as a shell script.
55848         * lib/pipe.c (create_pipe): Likewise.
55849         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55850         resulting array.
55851
55852 2008-09-29  Eric Blake  <ebb9@byu.net>
55853
55854         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55855
55856 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55857
55858         * doc/posix-functions/accept.texi: Update mingw problems.
55859         * doc/posix-functions/bind.texi: Update mingw problems.
55860         * doc/posix-functions/close.texi: Update mingw problems.
55861         * doc/posix-functions/connect.texi: Update mingw problems.
55862         * doc/posix-functions/getpeername.texi: Update mingw problems.
55863         * doc/posix-functions/getsockname.texi: Update mingw problems.
55864         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55865         * doc/posix-functions/ioctl.texi: Update mingw problems.
55866         * doc/posix-functions/listen.texi: Update mingw problems.
55867         * doc/posix-functions/recv.texi: Update mingw problems.
55868         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55869         * doc/posix-functions/select.texi: Update mingw problems.
55870         * doc/posix-functions/send.texi: Update mingw problems.
55871         * doc/posix-functions/sendto.texi: Update mingw problems.
55872         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55873         * doc/posix-functions/socket.texi: Update mingw problems.
55874
55875 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55876             Bruno Haible  <bruno@clisp.org>
55877
55878         * lib/sys_select.in.h: Include sys/time.h.
55879         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55880         * modules/sys_select: Depend on sys_time.
55881         * tests/test-sys_select.c: Test that sys/select.h defines struct
55882         timeval fully.
55883
55884 2008-09-29  Bruno Haible  <bruno@clisp.org>
55885
55886         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55887         * lib/sys_select.in.h: Likewise.
55888
55889 2008-09-29  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55892
55893 2008-09-29  Bruno Haible  <bruno@clisp.org>
55894
55895         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55896         Set LIBSOCKET instead of augmenting LIBS.
55897         * modules/sockets (Link): New section.
55898         * modules/sockets-tests (test_sockets_LDADD): New variable.
55899         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55900         * modules/poll-tests (test_poll_LDADD): New variable.
55901         * NEWS: Document the change.
55902
55903 2008-09-29  Bruno Haible  <bruno@clisp.org>
55904
55905         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55906         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55907         ARPA_INET_H directly.
55908         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55909
55910 2008-09-28  Bruno Haible  <bruno@clisp.org>
55911
55912         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55913         from gl_HEADER_SYS_SOCKET.
55914         (gl_HEADER_SYS_SOCKET): Invoke it.
55915         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55916
55917 2008-09-28  Bruno Haible  <bruno@clisp.org>
55918
55919         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55920         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55921         Needed on OSF/1 4.0.
55922
55923 2008-09-28  Bruno Haible  <bruno@clisp.org>
55924
55925         Override open more carefully.
55926         * lib/open.c (orig_open): New function.
55927         (rpl_open): Use orig_open instead of open.
55928         * lib/fcntl.in.h: Add special invocation convention.
55929         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55930         (gl_FUNC_OPEN): Invoke it.
55931
55932         Override freopen more carefully.
55933         * lib/freopen.c (orig_freopen): New function.
55934         (rpl_freopen): Use orig_freopen instead of freopen.
55935         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55936         (gl_FUNC_FREOPEN): Invoke it.
55937
55938         Override fopen more carefully.
55939         * lib/fopen.c (orig_fopen): New function.
55940         (rpl_fopen): Use orig_fopen instead of fopen.
55941         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55942         (gl_FUNC_FOPEN): Invoke it.
55943         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55944
55945 2008-09-28  Bruno Haible  <bruno@clisp.org>
55946
55947         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55948         SIGPIPE.
55949
55950 2008-09-28  Bruno Haible  <bruno@clisp.org>
55951
55952         * tests/test-sigaction.c (handler, main): Disable the check whether
55953         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55954         glibc systems with LinuxThreads.
55955
55956 2008-09-28  Bruno Haible  <bruno@clisp.org>
55957
55958         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55959
55960         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55961         with AIX xlc.
55962         * lib/fcntl.in.h (open): Likewise.
55963         Reported by Rainer Tammer <tammer@tammer.net>.
55964
55965 2008-09-28  Bruno Haible  <bruno@clisp.org>
55966
55967         * modules/posix_spawnp-tests: New file.
55968         * tests/test-posix_spawn.c: New file.
55969         * tests/test-posix_spawn.in.sh: New file.
55970
55971         New module 'posix_spawnp'.
55972         * modules/posix_spawnp: New file.
55973         * lib/spawnp.c: New file, from GNU libc with modifications.
55974         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55975
55976         New module 'posix_spawn'.
55977         * modules/posix_spawn: New file.
55978         * lib/spawn.c: New file, from GNU libc with modifications.
55979         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55980
55981         New module 'posix_spawnattr_destroy'.
55982         * modules/posix_spawnattr_destroy: New file.
55983         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55984         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55985         module.
55986
55987         New module 'posix_spawnattr_setsigmask'.
55988         * modules/posix_spawnattr_setsigmask: New file.
55989         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55990         modifications.
55991         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55992         new module.
55993
55994         New module 'posix_spawnattr_getsigmask'.
55995         * modules/posix_spawnattr_getsigmask: New file.
55996         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55997         modifications.
55998         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55999         new module.
56000
56001         New module 'posix_spawnattr_setsigdefault'.
56002         * modules/posix_spawnattr_setsigdefault: New file.
56003         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56004         modifications.
56005         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56006         new module.
56007
56008         New module 'posix_spawnattr_getsigdefault'.
56009         * modules/posix_spawnattr_getsigdefault: New file.
56010         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56011         modifications.
56012         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56013         new module.
56014
56015         New module 'posix_spawnattr_setschedpolicy'.
56016         * modules/posix_spawnattr_setschedpolicy: New file.
56017         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56018         modifications.
56019         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56020         new module.
56021
56022         New module 'posix_spawnattr_getschedpolicy'.
56023         * modules/posix_spawnattr_getschedpolicy: New file.
56024         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56025         modifications.
56026         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56027         new module.
56028
56029         New module 'posix_spawnattr_setschedparam'.
56030         * modules/posix_spawnattr_setschedparam: New file.
56031         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56032         modifications.
56033         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56034         new module.
56035
56036         New module 'posix_spawnattr_getschedparam'.
56037         * modules/posix_spawnattr_getschedparam: New file.
56038         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56039         modifications.
56040         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56041         new module.
56042
56043         New module 'posix_spawnattr_setpgroup'.
56044         * modules/posix_spawnattr_setpgroup: New file.
56045         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56046         modifications.
56047         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56048         module.
56049
56050         New module 'posix_spawnattr_getpgroup'.
56051         * modules/posix_spawnattr_getpgroup: New file.
56052         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56053         modifications.
56054         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56055         module.
56056
56057         New module 'posix_spawnattr_setflags'.
56058         * modules/posix_spawnattr_setflags: New file.
56059         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56060         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56061         module.
56062
56063         New module 'posix_spawnattr_getflags'.
56064         * modules/posix_spawnattr_getflags: New file.
56065         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56066         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56067         module.
56068
56069         New module 'posix_spawnattr_init'.
56070         * modules/posix_spawnattr_init: New file.
56071         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56072         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56073         module.
56074
56075         New module 'posix_spawn_file_actions_destroy'.
56076         * modules/posix_spawn_file_actions_destroy: New file.
56077         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56078         modifications.
56079         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56080         the new module.
56081
56082         New module 'posix_spawn_file_actions_addopen'.
56083         * modules/posix_spawn_file_actions_addopen: New file.
56084         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56085         modifications.
56086         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56087         the new module.
56088
56089         New module 'posix_spawn_file_actions_adddup2'.
56090         * modules/posix_spawn_file_actions_adddup2: New file.
56091         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56092         modifications.
56093         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56094         the new module.
56095
56096         New module 'posix_spawn_file_actions_addclose'.
56097         * modules/posix_spawn_file_actions_addclose: New file.
56098         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56099         modifications.
56100         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56101         the new module.
56102
56103         New module 'posix_spawn_file_actions_init'.
56104         * modules/posix_spawn_file_actions_init: New file.
56105         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56106         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56107         new module.
56108
56109         New module 'posix_spawn-internal'.
56110         * modules/posix_spawn-internal: New file.
56111         * lib/spawn_int.h: New file, from GNU libc with modifications.
56112         * lib/spawni.c: New file, from GNU libc with modifications.
56113         * m4/posix_spawn.m4: New file.
56114
56115         New module 'spawn'.
56116         * modules/spawn: New file.
56117         * lib/spawn.in.h: New file, from GNU libc with modifications.
56118         * m4/spawn_h.m4: New file.
56119         * doc/posix-headers/spawn.texi: Mention the new module.
56120
56121 2008-09-28  Bruno Haible  <bruno@clisp.org>
56122
56123         * modules/sched-tests: New file.
56124         * tests/test-sched.c: New file.
56125
56126         New module 'sched'.
56127         * modules/sched: New file.
56128         * lib/sched.in.h: New file.
56129         * m4/sched_h.m4: New file.
56130         * doc/posix-headers/sched.texi: Mention the new module.
56131
56132 2008-09-27  Eric Blake  <ebb9@byu.net>
56133
56134         Fix previous patch, and tweak references to $0.
56135         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56136         (func_version, func_gnulib_dir): Don't call this program
56137         gnulib-tool.
56138         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56139         with using $0 in function.
56140         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56141         (func_fatal_error): Reuse the name the user invoked us with.
56142
56143 2008-09-27  Bruno Haible  <bruno@clisp.org>
56144
56145         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56146         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56147         (gl_ICONV_H): Not here.
56148         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56149         instead of assigning ICONV_H directly.
56150
56151         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56152         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56153         WCHAR_H directly.
56154
56155 2008-09-27  Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56158         * modules/arpa_inet (Depends-on): Add link-warning.
56159         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56160         * modules/unistd (Makefile.am): Likewise.
56161
56162 2008-09-26  Bruno Haible  <bruno@clisp.org>
56163
56164         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56165         variables.
56166         (func_version): Essentially copied from gnulib-tool.
56167         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56168         func_readlink): Copied from gnulib-tool.
56169
56170 2008-09-26  Bruno Haible  <bruno@clisp.org>
56171
56172         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56173         invoking git-version-gen.
56174
56175 2008-09-26  Bruno Haible  <bruno@clisp.org>
56176
56177         * posix-modules: Update to directory names changed on 2008-01-19.
56178         Remove commas in output before splitting into words. No more need to
56179         avoid 'ftruncate' since 2007-02-19.
56180
56181 2008-09-26  Bruno Haible  <bruno@clisp.org>
56182
56183         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56184
56185 2008-09-26  Bruno Haible  <bruno@clisp.org>
56186
56187         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56188         * modules/fwriteerror (Depends-on): Add errno.
56189
56190 2008-09-26  Bruno Haible  <bruno@clisp.org>
56191
56192         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56193         * tests/test-vc-list-files-cvs.sh: Likewise.
56194
56195 2008-09-26  Bruno Haible  <bruno@clisp.org>
56196
56197         * doc/posix-headers/sys_resource.texi: Reorder items.
56198
56199 2008-09-26  Jim Meyering  <meyering@redhat.com>
56200
56201         fts: tweak inode comparison function
56202         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56203         inode numbers, as documented.
56204
56205         fts: sort dirent entries on inode number before traversing
56206         This avoids a quadratic, seek-related performance penalty when
56207         operating on a directory containing many entries (measurable at 10k;
56208         3.5 hours at 2 million entries with a cold cache) on certain types
56209         of file systems, including ext3 and ext4, but not tmpfs.
56210         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56211         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56212         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56213         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56214         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56215         (fts_build): Set the stat.st_ino member from D_INO.
56216         If it is likely to be useful, sort dirent entries on inode number.
56217
56218         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56219         and the struct statfs.f_type member.
56220         * modules/fts (Depends-on): Add d-ino.
56221
56222 2008-09-26  Bruno Haible  <bruno@clisp.org>
56223
56224         * modules/sigpipe-die (Depends-on): Add sigpipe.
56225
56226         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56227         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56228         and GNULIB_STDIO_H_SIGPIPE are set.
56229         * lib/stdio-write.c: New file.
56230         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56231         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56232         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56233         REPLACE_STDIO_WRITE_FUNCS.
56234         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56235         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56236         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56237         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56238         * modules/stdio (Files): Add lib/stdio-write.c.
56239         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56240         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56241         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56242         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56243         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56244         REPLACE_FPRINTF_POSIX.
56245         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56246         REPLACE_PRINTF_POSIX.
56247         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56248         REPLACE_VFPRINTF_POSIX.
56249         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56250         REPLACE_VPRINTF_POSIX.
56251         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56252         SIGPIPE issue.
56253         * doc/posix-functions/fputc.texi: Likewise.
56254         * doc/posix-functions/fputs.texi: Likewise.
56255         * doc/posix-functions/fwrite.texi: Likewise.
56256         * doc/posix-functions/printf.texi: Likewise.
56257         * doc/posix-functions/putc.texi: Likewise.
56258         * doc/posix-functions/putchar.texi: Likewise.
56259         * doc/posix-functions/puts.texi: Likewise.
56260         * doc/posix-functions/vfprintf.texi: Likewise.
56261         * doc/posix-functions/vprintf.texi: Likewise.
56262
56263         * modules/safe-write (Depends-on): Add write.
56264
56265         * modules/sigpipe-tests: New file.
56266         * tests/test-sigpipe.c: New file.
56267         * tests/test-sigpipe.sh: New file.
56268
56269         * modules/write: New file.
56270         * lib/unistd.in.h: Include <sys/types.h>.
56271         (write): New declaration.
56272         * lib/write.c: New file.
56273         * m4/write.m4: New file.
56274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56275         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56276         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56277         GNULIB_WRITE, REPLACE_WRITE.
56278         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56279         and the SIGPIPE issue.
56280
56281         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56282         (raise): New declaration.
56283         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56284         (ext_signal): New function.
56285         (rpl_raise): New function.
56286         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56287         GNULIB_SIGNAL_H_SIGPIPE.
56288         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56289         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56290
56291         * modules/sigpipe: New file.
56292         * m4/sigpipe.m4: New file.
56293
56294 2008-09-25  Derek Price  <derek@ximbiot.com>
56295             Bruno Haible  <bruno@clisp.org>
56296
56297         * gnulib-tool (func_import): Report all license incompatibilities, not
56298         just the first one.
56299
56300 2008-09-25  Bruno Haible  <bruno@clisp.org>
56301
56302         * gnulib-tool (func_import): When computing the edits, consider not
56303         only the Makefile.ams that exist but also those that will be generated.
56304
56305 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56306
56307         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56308         fixes gnulib-tool --test warning about duplicate dependency.
56309
56310 2008-09-25  Bruno Haible  <bruno@clisp.org>
56311
56312         * gnulib-tool: Don't ask the user to perform edits in the generated
56313         Makefile.ams.
56314         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56315         apply to the Makefile.am being generated.
56316         (func_emit_tests_Makefile_am): Execute edits that apply to the
56317         Makefile.am being generated.
56318         (func_import): Setup list of Makefile.am edits before emitting the
56319         Makefile.ams, not at the end.
56320         (func_create_testdir): Update.
56321         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56322
56323 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56324
56325         * gnulib-tool (func_import): Store the --tests-base option in the
56326         comment in gnulib-cache.m4.
56327
56328 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56329
56330         * NEWS: Document increased portability that sys_select now provides.
56331
56332         * lib/sys_select.in.h: Install select wrapper.
56333         * lib/sys_socket.in.h: Use more descriptive name when there is no
56334         select wrapper.
56335         * lib/winsock-select.c: New.
56336         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56337         Require gl_HEADER_SYS_SOCKET.
56338         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56339         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56340         * tests/test-sys_select.c: Add functional tests.
56341
56342 2008-09-24  Eric Blake  <ebb9@byu.net>
56343
56344         open, fopen: close fd leak in last patch
56345         * lib/open.c (rpl_open): Close fd before returning error.
56346         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56347         * doc/posix-functions/open.texi (open): Document that Irix also
56348         has the bug.
56349         * doc/posix-functions/fopen.texi (fopen): Likewise.
56350         Reported by Paolo Bonzini.
56351
56352 2008-09-24  Bruno Haible  <bruno@clisp.org>
56353
56354         Ensure that a filename ending in a slash cannot be used to access a
56355         non-directory.
56356         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56357         to check whether it's really a directory.
56358         * lib/fopen.c: Include fcntl.h, unistd.h.
56359         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56360         and fdopen().
56361         * modules/fopen (Depends-on): Add unistd.
56362         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56363         * tests/test-fopen.c (main): Likewise.
56364         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56365         * doc/posix-functions/fopen.texi: Likewise.
56366         Reported by Eric Blake.
56367
56368 2008-09-23  Eric Blake  <ebb9@byu.net>
56369
56370         c-stack: avoid compiler optimizations when provoking overflow
56371         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56372         recursion harder to optimize, to ensure a stack overflow occurs.
56373         * tests/test-c-stack.c (recurse): Likewise.
56374         Borrowed from libsigsegv.
56375
56376         c-stack: work around Irix sigaltstack bug
56377         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56378         whether sigaltstack uses wrong end of stack_t (copied in part from
56379         libsigsegv).
56380         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56381         Irix bug, without requiring an over-allocation.
56382         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56383         bug.
56384
56385         fopen: document mingw bug on directories
56386         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56387         not allowing a stream visiting a directory, even though reading
56388         from such a stream is not portable.
56389
56390 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56391
56392         * lib/poll.c: Rewrite.
56393         * modules/poll: Depend on alloca.
56394
56395 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56396
56397         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56398         instead define prototypes for a full set of wrappers.  Ensure
56399         that Cygwin does not use the compatibility code, which is only
56400         for MinGW.
56401         * lib/winsock.c: New.
56402         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56403         * modules/sys_socket: Add lib/winsock.c.
56404
56405         * modules/poll-tests: Add errno and perror.
56406         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56407
56408 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56409
56410         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56411
56412 2008-09-23  Bruno Haible  <bruno@clisp.org>
56413
56414         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56415         * doc/glibc-functions/*: Likewise.
56416
56417 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56418
56419         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56420         success.
56421
56422 2008-09-22  Eric Blake  <ebb9@byu.net>
56423             Bruno Haible  <bruno@clisp.org>
56424
56425         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56426         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56427         supply %A but mishandle pseudo-NaN.
56428         Reported by Simon Josefsson.
56429
56430 2008-09-21  Bruno Haible  <bruno@clisp.org>
56431
56432         * tests/test-lock.c (main): Tweak skip message.
56433         * tests/test-tls.c (main): Likewise.
56434
56435 2008-09-21  Bruno Haible  <bruno@clisp.org>
56436
56437         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56438         whether 'struct sigaction' has sa_sigaction here...
56439         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56440         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56441
56442 2008-09-21  Bruno Haible  <bruno@clisp.org>
56443
56444         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56445         section.
56446         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56447         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56448         the new section.
56449         (Support for obsolete systems lacking POSIX:2001): New section.
56450         (String handling <string.h>): Move strdup to the new section.
56451         Suggested by Simon Josefsson and Paolo Bonzini.
56452
56453 2008-09-21  Bruno Haible  <bruno@clisp.org>
56454
56455         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56456         exponents in %e and %g results on 'long double'. Needed for mingw's
56457         improved *printf functions.
56458         * tests/test-vasprintf-posix.c (test_function): Likewise.
56459         * tests/test-snprintf-posix.h (test_function): Likewise.
56460         * tests/test-sprintf-posix.h (test_function): Likewise.
56461         Reported by Eric Blake.
56462
56463 2008-09-21  Bruno Haible  <bruno@clisp.org>
56464
56465         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56466         * tests/test-sprintf-posix.h (test_function): Likewise.
56467
56468 2008-09-21  Bruno Haible  <bruno@clisp.org>
56469
56470         * modules/getpass (Depends-on): Add strdup-posix.
56471
56472         New module 'strdup-posix'.
56473         * modules/strdup-posix: New file.
56474         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56475         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56477         REPLACE_STRDUP.
56478         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56479         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56480         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56481         strdup-posix.
56482
56483         * modules/strdup (Depends-on): Remove malloc-posix.
56484
56485 2008-09-20  Bruno Haible  <bruno@clisp.org>
56486
56487         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56488         Wildenhues.
56489
56490 2008-09-20  Bruno Haible  <bruno@clisp.org>
56491
56492         Ensure that wint_t gets defined on IRIX 5.3.
56493         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56494         * lib/wctype.in.h (wint_t): Likewise.
56495         (__wctype_wint_t): Remove type.
56496         (isw*): Use wint_t instead of __wctype_wint_t.
56497         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56498         * modules/wchar (Files): Add m4/wint_t.m4.
56499         (Makefile.am): Substitute HAVE_WINT_T.
56500         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56501         * tests/test-wctype.c: Check that wint_t is defined.
56502         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56503         * doc/posix-headers/wctype.texi: Likewise.
56504         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56505
56506 2008-09-18  Bruno Haible  <bruno@clisp.org>
56507
56508         * gnulib-tool (func_exit): Update comment.
56509
56510 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56511
56512         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56513         assumes strdup exists and does not depend on strdup to return
56514         ENOMEM on out of memory conditions.
56515
56516 2008-09-18  Bruno Haible  <bruno@clisp.org>
56517
56518         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56519         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56520         digits for the exponent.
56521
56522 2008-09-18  Jim Meyering  <meyering@redhat.com>
56523             Bruno Haible  <bruno@clisp.org>
56524
56525         * lib/vasnprintf.c (decimal_point_char): Define also if
56526         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56527
56528 2008-09-16  Bruno Haible  <bruno@clisp.org>
56529         and Eric Blake  <ebb9@byu.net>
56530
56531         vasnprintf: support Irix 5.3
56532         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56533         that mishandle long double infinity.
56534         Reported by Tom G. Christensen.
56535
56536 2008-09-16  Bruno Haible  <bruno@clisp.org>
56537
56538         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56539         Solaris 9.
56540         * doc/glibc-functions/alphasort.texi: Likewise.
56541         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56542
56543 2008-09-16  Jim Meyering  <meyering@redhat.com>
56544
56545         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56546         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56547         a umask modification leak out of a subshell.  Otherwise, the
56548         opensolaris /bin/sh would be accepted and thus cause unwarranted
56549         failures in the coreutils test suite.
56550
56551 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56552
56553         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56554         to succeed.
56555
56556 2008-09-16  Jim Meyering  <meyering@redhat.com>
56557
56558         avoid spurious test failure when library is built without ACL support
56559         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56560         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56561         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56562         * tests/test-copy-acl.sh: Likewise.
56563
56564 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56565
56566         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56567         based on character occurrence counts.
56568
56569 2008-09-15  Eric Blake  <ebb9@byu.net>
56570
56571         tests: avoid some compiler warnings
56572         * tests/test-memchr.c (main): Pass NULL indirectly.
56573         * tests/test-closein.c (main): Avoid unused variable.
56574
56575 2008-09-15  Bruno Haible  <bruno@clisp.org>
56576
56577         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56578         are missing on OpenBSD 4.0 individually.
56579         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56580
56581 2008-09-15  Bruno Haible  <bruno@clisp.org>
56582
56583         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56584         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56585         * doc/posix-functions/perror.texi: Likewise.
56586         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56587         is missing.
56588         Reported by Eric Blake.
56589
56590         * lib/errno.in.h: Use replacement values >= 2000.
56591         Reported by Eric Blake.
56592
56593 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56594
56595         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56596         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56597         limit.
56598         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56599         compareseq was aborted.
56600
56601 2008-09-14  Bruno Haible  <bruno@clisp.org>
56602
56603         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56604         yvec_edit_count.
56605         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56606         (fstrcmp_bounded): Simplify result computation accordingly.
56607
56608 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56609
56610         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56611         (fstrcmp): Define in terms of fstrcmp_bounded.
56612         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56613         lower_bound argument.
56614         Return quickly if the result is certainly < lower_bound.
56615         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56616
56617 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56618
56619         * lib/diffseq.h (EARLY_ABORT): New macro.
56620         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56621         evaluates to true.
56622
56623 2008-09-14  Bruno Haible  <bruno@clisp.org>
56624
56625         * modules/perror-tests: New file.
56626         * tests/test-perror.sh: New file.
56627         * tests/test-perror.c: New file.
56628
56629         New module 'perror'.
56630         * lib/stdio.in.h (perror): New declaration.
56631         * lib/perror.c: New file.
56632         * m4/perror.m4: New file.
56633         * modules/perror: New file.
56634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56635         * doc/posix-functions/perror.texi: Mention the perror module.
56636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56637         REPLACE_PERROR.
56638         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56639         REPLACE_PERROR.
56640
56641 2008-09-14  Bruno Haible  <bruno@clisp.org>
56642
56643         * modules/stdio (Makefile.am): Reorder to match the order in
56644         lib/stdio.in.h.
56645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56646
56647 2008-09-13  Bruno Haible  <bruno@clisp.org>
56648
56649         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56650
56651 2008-09-13  Bruno Haible  <bruno@clisp.org>
56652
56653         Extend strerror to cover the added errno values.
56654         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56655         (rpl_strerror): Provide error messages for the added errno values and
56656         for the WSA* values.
56657         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56658         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56659         strerror.
56660         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56661         * modules/strerror (Depends-on): Add errno.
56662         * doc/posix-functions/strerror.texi: Document the change.
56663         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56664         and EOVERFLOW.
56665
56666 2008-09-13  Bruno Haible  <bruno@clisp.org>
56667
56668         * modules/EOVERFLOW: Remove file.
56669         * m4/eoverflow.m4: Remove file.
56670         * modules/EOVERFLOW-tests: Remove file.
56671         * tests/test-EOVERFLOW.c: Remove file.
56672         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56673         * modules/ftell (Depends-on): Likewise.
56674         * modules/getdelim (Depends-on): Likewise.
56675         * modules/getugroups (Depends-on): Likewise.
56676         * modules/poll (Depends-on): Likewise.
56677         * modules/snprintf (Depends-on): Likewise.
56678         * modules/sprintf-posix (Depends-on): Likewise.
56679         * modules/vasnprintf (Depends-on): Likewise.
56680         * modules/vasprintf (Depends-on): Likewise.
56681         * modules/vfprintf-posix (Depends-on): Likewise.
56682         * modules/vsnprintf (Depends-on): Likewise.
56683         * modules/vsprintf-posix (Depends-on): Likewise.
56684         * modules/xvasprintf (Depends-on): Likewise.
56685         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56686         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56687         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56688         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56689         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56690         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56691         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56692         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56693         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56694         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56695         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56696         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56697         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56698         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56699         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56700         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56701         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56702         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56703         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56704         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56705         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56706         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56707         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56708         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56709         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56710         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56711         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56712         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56713         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56714         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56715         * MODULES.html.sh: Remove EOVERFLOW.
56716         * NEWS: Mention the change.
56717
56718 2008-09-13  Bruno Haible  <bruno@clisp.org>
56719
56720         * modules/errno-tests: New file.
56721         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56722
56723         * lib/errno.in.h: New file.
56724         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56725         * modules/errno: New file.
56726         * doc/posix-headers/errno.texi: Update documentation.
56727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56728
56729 2008-09-13  Bruno Haible  <bruno@clisp.org>
56730
56731         * tests/test-poll.c: Use #if for native Windows, rather than testing
56732         __MSVCRT__.
56733
56734 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56735             Bruno Haible  <bruno@clisp.org>
56736
56737         * lib/glob.c: Don't include <pwd.h> on native Windows.
56738         (WINDOWS32): New macro.
56739         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56740
56741 2008-09-13  Bruno Haible  <bruno@clisp.org>
56742
56743         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56744         (ETIMEDOUT): Remove macro.
56745         (glthread_cond_timedwait_multithreaded): New declaration.
56746         (glthread_cond_timedwait): Use it.
56747         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56748         (glthread_cond_timedwait_multithreaded): New function.
56749
56750 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56751
56752         * modules/poll-tests: Do not check for io.h.
56753         * tests/test-poll.c: Check for __MSVCRT__ instead.
56754
56755 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56756
56757         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56758         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56759         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56760
56761 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56762
56763         * modules/poll-tests: New.
56764         * tests/test-poll.c: New.
56765
56766 2008-09-12  Eric Blake  <ebb9@byu.net>
56767
56768         frexp: test for NetBSD failure on -0.0
56769         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56770         not all, bugs from NetBSD 3.0 have been fixed.
56771         * doc/posix-functions/frexp.texi (frexp): Document bug.
56772         Reported by Thomas Klausner.
56773
56774         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56775         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56776         literal -0.0.
56777         Reported by Jonathan C. Patschke <jp@centtech.com>.
56778
56779 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56780
56781         * lib/glthread/cond.h: Use dummy implementation also if
56782         USE_WIN32_THREADS.
56783
56784 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56785
56786         * modules/fnmatch-posix (License): Change to LGPLv2+.
56787         * modules/fnmatch-gnu (License): Likewise.
56788
56789 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56790
56791         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56792
56793 2008-09-11  Jim Meyering  <meyering@redhat.com>
56794
56795         * users.txt: Add gtk-vnc.
56796
56797 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56798
56799         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56800         rotate amounts.
56801
56802         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56803         required for 16-bit and 8-bit rotates.
56804         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56805         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56806         UINT8_MAX instead of hard-coded constants.
56807         Suggested by Paul Eggert.
56808
56809 2008-09-07  Bruno Haible  <bruno@clisp.org>
56810
56811         * tests/test-striconveh.c (main): Check behaviour when converting from
56812         UTF-7.
56813
56814         Make striconveh work better with stateful encodings.
56815         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56816         that iconv does not increment the inptr when returning -1/EINVAL.
56817
56818 2008-09-07  Bruno Haible  <bruno@clisp.org>
56819
56820         * build-aux/config.rpath: Update according to libtool-2.2.6.
56821         * build-aux/config.libpath: Likewise.
56822
56823 2008-09-06  Bruno Haible  <bruno@clisp.org>
56824
56825         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56826         * lib/freadptr.c (freadptr): Likewise.
56827         * lib/freadseek.c (freadptrinc): Likewise.
56828         Reported by Simon Josefsson.
56829
56830 2008-09-06  Bruno Haible  <bruno@clisp.org>
56831
56832         * modules/freadptr (License): Change to LGPLv2+.
56833         * modules/freadseek (License): Likewise.
56834         Suggested by Eric Blake.
56835
56836         * modules/memchr2 (License): Change to LGPLv2+.
56837         Approved by Eric Blake.
56838
56839 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56840             Bruno Haible  <bruno@clisp.org>
56841
56842         Make gnulib-tool work with native 'sed' on AIX.
56843         * gnulib-tool (sed_noop): New variable.
56844         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56845         func_add_or_update, func_create_testdir): Use it to initialize sed
56846         script variables.
56847         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56848
56849 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56850             Bruno Haible  <bruno@clisp.org>
56851
56852         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56853         also works after #include directives.
56854
56855 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56856
56857         getdate.y: reject an out-of-range timezone value
56858         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56859         the range [-24...+24].  When specified with only one or two digits,
56860         * tests/test-getdate.c: Tests for the fix.
56861         * doc/getdate.texi: Document this change.
56862
56863 2008-09-03  Bruno Haible  <bruno@clisp.org>
56864
56865         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56866
56867 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56868
56869         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56870         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56871         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56872         Blake <ebb9@byu.net>.
56873
56874         * tests/test-bitrotate.c: Add more test vectors.
56875
56876 2008-09-02  Eric Blake  <ebb9@byu.net>
56877
56878         vasnprintf-posix: handle large precision via %.*d
56879         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56880         when handling it ourselves.
56881         * tests/test-vasnprintf-posix.c (test_function): Add test.
56882         * tests/test-snprintf-posix.h (test_function): Likewise.
56883         * tests/test-sprintf-posix.h (test_function): Likewise.
56884         * tests/test-vasprintf-posix.c (test_function): Likewise.
56885         Reported by Alain Guibert.
56886
56887 2008-09-01  Eric Blake  <ebb9@byu.net>
56888
56889         c-stack: make configure-time check more robust
56890         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56891         successful sigaction call.
56892         Reported by Tom G. Christensen.
56893
56894 2008-09-01  Bruno Haible  <bruno@clisp.org>
56895
56896         New module 'findprog-lgpl'.
56897         * modules/findprog-lgpl: New file.
56898         * lib/findprog-lgpl.c: New file.
56899         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56900         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56901         to decide whether to use strdup or xstrdup, concatenated_filename or
56902         xconcatenated_filename.
56903
56904 2008-09-01  Bruno Haible  <bruno@clisp.org>
56905
56906         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56907         'xconcat-filename' (GPL).
56908         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56909         (License): Change to LGPLv2+.
56910         * modules/xconcat-filename: New file.
56911         * lib/concat-filename.h (concatenated_filename): Change specification.
56912         (xconcatenated_filename): New declaration.
56913         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56914         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56915         memory situations.
56916         * lib/xconcat-filename.c: New file.
56917         * NEWS: Mention the change.
56918         * lib/findprog.c: Include concat-filename.h, not filename.h.
56919         (find_in_path): Use xconcatenated_filename instead of
56920         concatenated_filename.
56921         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56922         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56923         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56924         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56925         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56926         instead of concatenated_filename.
56927         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56928         (execute_java_class): Use xconcatenated_filename instead of
56929         concatenated_filename.
56930         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56931         * modules/javacomp (Depends-on): Likewise.
56932         * modules/javaexec (Depends-on): Likewise.
56933
56934 2008-09-01  Bruno Haible  <bruno@clisp.org>
56935
56936         Split module 'filename' into 'filename' and 'concat-filename'.
56937         * modules/filename: Keep only lib/filename.h.
56938         (License): Change to LGPLv2+.
56939         * modules/concat-filename: New file, extracted from modules/filename.
56940         * lib/filename.h (concatenated_filename): Remove declaration.
56941         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56942         * lib/concat-filename.c: Include concat-filename.h.
56943         * NEWS: Mention the change.
56944
56945 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56946
56947         * lib/bitrotate.h (rotl8, rotr8): Add.
56948
56949         * modules/bitrotate (configure.ac): Need
56950         AC_REQUIRE([AC_C_INLINE]).
56951         (Description): Mention stdint.h.  Reported by Bruno Haible
56952         <bruno@clisp.org>.
56953
56954         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56955         Paolo Bonzini <bonzini@gnu.org>.
56956
56957 2008-08-31  Bruno Haible  <bruno@clisp.org>
56958
56959         Assume Solaris specific bi-arch conventions on Solaris systems.
56960         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56961         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56963         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56964         like acl_libdirstem.
56965         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56966         acl_libdirstem.
56967         * NEWS: Mention the change.
56968         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56969
56970 2008-08-31  Jim Meyering  <meyering@redhat.com>
56971
56972         * lib/strftime.h: Add comments describing the two added arguments.
56973
56974         remove duplicate #include directives
56975         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56976         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56977
56978 2008-08-31  Bruno Haible  <bruno@clisp.org>
56979
56980         New module 'sigpipe-die'.
56981         * modules/sigpipe-die: New file.
56982         * lib/sigpipe-die.h: New file.
56983         * lib/sigpipe-die.c: New file.
56984         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56985
56986 2008-08-31  Bruno Haible  <bruno@clisp.org>
56987
56988         Don't override previously installed signal handlers.
56989         * lib/fatal-signal.c (saved_sigactions): New variable.
56990         (uninstall_handlers): Reset the signal to the saved handler, not
56991         to SIG_DFL (except when ignored).
56992         (install_handlers): Save the previous handlers.
56993
56994 2008-08-30  Bruno Haible  <bruno@clisp.org>
56995
56996         * gnulib-tool (func_reset_sigpipe): New function.
56997         (func_get_automake_snippet, func_modules_transitive_closure,
56998         func_import): Invoke it before a join command that reads from stdin,
56999         to avoid "echo: write error: Broken pipe" error messages on stderr.
57000         Reported by Sam Steingold <sds@gnu.org>.
57001
57002 2008-08-30  Bruno Haible  <bruno@clisp.org>
57003
57004         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57005         Code copied from m4/open.m4.
57006         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57007         access and the filename ends in a slash. Code copied from lib/open.c.
57008         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57009         * tests/test-fopen.c (main): Check against bug with trailing slash.
57010
57011 2008-08-29  Bruno Haible  <bruno@clisp.org>
57012
57013         Avoid some "gcc -pedantic" warnings.
57014         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57015         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57016         * lib/dirent.in.h: Likewise.
57017         * lib/fcntl.in.h: Likewise.
57018         * lib/float.in.h: Likewise.
57019         * lib/iconv.in.h: Likewise.
57020         * lib/inttypes.in.h: Likewise.
57021         * lib/locale.in.h: Likewise.
57022         * lib/math.in.h: Likewise.
57023         * lib/netinet_in.in.h: Likewise.
57024         * lib/search.in.h: Likewise.
57025         * lib/signal.in.h: Likewise.
57026         * lib/stdarg.in.h: Likewise.
57027         * lib/stdint.in.h: Likewise.
57028         * lib/stdio.in.h: Likewise.
57029         * lib/stdlib.in.h: Likewise.
57030         * lib/string.in.h: Likewise.
57031         * lib/strings.in.h: Likewise.
57032         * lib/sys_select.in.h: Likewise.
57033         * lib/sys_socket.in.h: Likewise.
57034         * lib/sys_stat.in.h: Likewise.
57035         * lib/sys_time.in.h: Likewise.
57036         * lib/sysexits.in.h: Likewise.
57037         * lib/time.in.h: Likewise.
57038         * lib/unistd.in.h: Likewise.
57039         * lib/wchar.in.h: Likewise.
57040         * lib/wctype.in.h: Likewise.
57041         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57042         * modules/fchdir (Makefile.am): Likewise.
57043         * modules/fcntl (Makefile.am): Likewise.
57044         * modules/float (Makefile.am): Likewise.
57045         * modules/iconv_open (Makefile.am): Likewise.
57046         * modules/inttypes (Makefile.am): Likewise.
57047         * modules/locale (Makefile.am): Likewise.
57048         * modules/math (Makefile.am): Likewise.
57049         * modules/netinet_in (Makefile.am): Likewise.
57050         * modules/search (Makefile.am): Likewise.
57051         * modules/signal (Makefile.am): Likewise.
57052         * modules/stdarg (Makefile.am): Likewise.
57053         * modules/stdint (Makefile.am): Likewise.
57054         * modules/stdio (Makefile.am): Likewise.
57055         * modules/stdlib (Makefile.am): Likewise.
57056         * modules/string (Makefile.am): Likewise.
57057         * modules/strings (Makefile.am): Likewise.
57058         * modules/sys_select (Makefile.am): Likewise.
57059         * modules/sys_socket (Makefile.am): Likewise.
57060         * modules/sys_stat (Makefile.am): Likewise.
57061         * modules/sys_time (Makefile.am): Likewise.
57062         * modules/sysexits (Makefile.am): Likewise.
57063         * modules/time (Makefile.am): Likewise.
57064         * modules/unistd (Makefile.am): Likewise.
57065         * modules/wchar (Makefile.am): Likewise.
57066         * modules/wctype (Makefile.am): Likewise.
57067         Reported by Reuben Thomas <rrt@sc3d.org>.
57068
57069 2008-08-29  Bruno Haible  <bruno@clisp.org>
57070
57071         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57072         any more.
57073
57074 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57075
57076         * MODULES.html.sh (Misc): Add bitrotate.
57077
57078         * modules/bitrotate: New file.
57079
57080         * lib/bitrotate.h: New file.
57081
57082         * modules/bitrotate-tests: New file.
57083
57084         * tests/test-bitrotate.c: New file.
57085
57086         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57087         on the bitrotate module.
57088
57089         * lib/arctwo.c: Use new bitrotate module.
57090
57091 2008-08-29  Jim Meyering  <meyering@redhat.com>
57092
57093         bootstrap: merge changes from coreutils
57094         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57095         of copied files.  Remove a kludge, now that this is fixed.
57096         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57097         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57098         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57099
57100 2008-08-29  Bruno Haible  <bruno@clisp.org>
57101
57102         * MODULES.html.sh: Remove --cvs-urls option.
57103
57104 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57105
57106         maint.mk: adjust to file name change
57107         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57108
57109 2008-08-28  Jim Meyering  <meyering@redhat.com>
57110
57111         * modules/getndelim2 (License): Relicense to LGPLv2+.
57112         Approved by Richard Stallman for the version of 1995, and by
57113         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57114
57115 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57116
57117         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57118         dummy if one is not available.  Do not touch them if
57119         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57120         (getc_maybe_unlocked): New.
57121         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57122
57123 2008-08-26  Eric Blake  <ebb9@byu.net>
57124
57125         doc/INSTALL: resync from autoconf
57126         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57127         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57128         moving...
57129         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57130         * INSTALL: Regenerate.
57131         * INSTALL.ISO: New file.
57132         * INSTALL.UTF-8: Likewise.
57133
57134 2008-08-26  Jim Meyering  <meyering@redhat.com>
57135
57136         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57137         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57138         these definitions conditional, so that they may be overridden, too.
57139
57140 2008-08-26  Bruno Haible  <bruno@clisp.org>
57141
57142         Generate INSTALL file variants with prettier quotes.
57143         * doc/Makefile (INSTALL_PRELUDE): New macro.
57144         (INSTALL): Use it.
57145         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57146
57147 2008-08-26  Bruno Haible  <bruno@clisp.org>
57148
57149         Run makeinfo in an English locale.
57150         * doc/Makefile (MAKEINFO): New variable.
57151
57152 2008-08-26  Bruno Haible  <bruno@clisp.org>
57153
57154         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57155         Suggested by Eric Blake.
57156
57157 2008-08-25  Bruno Haible  <bruno@clisp.org>
57158
57159         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57160
57161 2008-08-25  Eric Blake  <ebb9@byu.net>
57162
57163         c-stack: test that stack overflow can be caught
57164         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57165         that platform allows handling stack overflow; at least OS/2 EMX
57166         has sigaltstack, but crashes before transferring control to
57167         handler on stack overflow.
57168         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57169         check for HAVE_STACK_OVERFLOW_HANDLING.
57170         Reported by Elbert Pol.
57171
57172 2008-08-25  Bruno Haible  <bruno@clisp.org>
57173
57174         * doc/posix-functions/strftime.texi: Fix description of strftime
57175         module.
57176
57177 2008-08-24  Bruno Haible  <bruno@clisp.org>
57178
57179         * tests/uniwidth/test-uc_width2.c: New file.
57180         * tests/uniwidth/test-uc_width2.sh: New file.
57181         * modules/uniwidth/width-tests (Files): Add the new files.
57182         (TESTS): Add uniwidth/test-uc_width2.sh.
57183         (TESTS_ENVIRONMENT): New variable.
57184         (check_PROGRAMS): Add test-uc_width2.
57185         (test_uc_width2_SOURCES): New variable.
57186
57187         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57188         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57189         not 0x00AB.
57190         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57191
57192 2008-08-22  Eric Blake  <ebb9@byu.net>
57193
57194         test-lock, test-tls: mention why a test is skipped
57195         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57196         skipped.
57197         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57198
57199         count-one-bits: relax license
57200         * modules/count-one-bits (License): Relicense to LGPLv2+.
57201         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57202
57203 2008-08-22  Andreas Schwab  <schwab@suse.de>
57204
57205         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57206         Remove spurious space in assignment.
57207
57208 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57209
57210         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57211         Paul Eggert <eggert@CS.UCLA.EDU>.
57212
57213 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57214
57215         * modules/gettext: Add m4/threadlib.m4.
57216
57217 2008-08-19  Eric Blake  <ebb9@byu.net>
57218
57219         test-c-stack: fix compilation failure on FreeBSD 5.0
57220         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57221         headers before <sys/resource.h>.
57222         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57223         the bug.
57224         Reported by Nelson H. F. Beebe.
57225
57226         strverscmp: migrate from "strverscmp.h" to <string.h>
57227         * modules/string (Makefile.am): Add new hooks.
57228         * modules/strverscmp (Files): Remove strverscmp.h.
57229         (Depends-on): Add string.
57230         (configure.ac): Add indicator.
57231         (Include): Mention new header.
57232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57233         defaults.
57234         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57235         results.
57236         * lib/strverscmp.h: Delete.
57237         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57238         * tests/test-strverscmp.c (includes): Adjust client.
57239         * lib/check-version.c (includes): Likewise.
57240         * NEWS: Document the change.
57241
57242         strverscmp: add unit test
57243         * modules/strverscmp-tests: New file.
57244         * tests/test-strverscmp.c: Likewise.
57245
57246 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57247
57248         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57249         regarding Windows crypto stuff, from Mono.
57250
57251 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57252
57253         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57254         if present, for intel RND.  Return error on failures.
57255
57256 2008-08-18  Ben Pfaff  <blp@gnu.org>
57257
57258         gitlog-to-changelog: give better diagnostic for failed pipe-open
57259         * build-aux/gitlog-to-changelog: Improve error message: suggest
57260         that the version of Git may be too old.
57261
57262 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57263
57264         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57265         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57266
57267 2008-08-18  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57270         pthread_in_use().
57271
57272 2008-08-18  Bruno Haible  <bruno@clisp.org>
57273
57274         * lib/glthread/threadlib.c: Include <pthread.h>.
57275
57276 2008-08-18  Bruno Haible  <bruno@clisp.org>
57277
57278         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57279         glthread_recursive_lock_* macros.
57280         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57281         Fix syntax error.
57282
57283 2008-08-18  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/glthread/thread.c: Avoid forcing a context switch right after
57286         thread creation.
57287
57288 2008-08-17  Bruno Haible  <bruno@clisp.org>
57289
57290         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57291         * lib/glthread/thread.h: Provide Win32 specific implementation.
57292         * modules/thread (Files): Add lib/glthread/thread.c.
57293         (Depends-on): Add lock.
57294         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57295
57296 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57297
57298         New module 'yield'.
57299         * modules/yield: New file.
57300         * lib/glthread/yield.h: New file.
57301         * m4/yield.m4: New file.
57302         * MODULES.html.sh (Multithreading): Add yield.
57303
57304 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57305
57306         New module 'thread'.
57307         * modules/thread: New file.
57308         * lib/glthread/thread.h: New file.
57309         * m4/thread.m4: New file.
57310         * MODULES.html.sh (Multithreading): Add thread.
57311
57312 2008-08-17  Bruno Haible  <bruno@clisp.org>
57313
57314         * lib/glthread/lock.h: Include <stdlib.h> always.
57315         * lib/glthread/tls.h: Likewise.
57316         * lib/glthread/cond.h: Likewise.
57317
57318 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57319
57320         New module 'cond'.
57321         * modules/cond: New file.
57322         * lib/glthread/cond.h: New file.
57323         * lib/glthread/cond.c: New file.
57324         * m4/cond.m4: New file.
57325         * MODULES.html.sh (Multithreading): Add cond.
57326
57327 2008-08-16  Eric Blake  <ebb9@byu.net>
57328
57329         c-stack: fix regression on Irix 5.3 from 2008-06-21
57330         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57331         sa_sigaction...
57332         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57333         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57334         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57335         * modules/signal (Makefile.am): Use the value.
57336         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57337         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57338         * doc/posix-headers/signal.texi (signal.h): Document this
57339         portability issue.
57340         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57341         Reported by Tom G. Christensen.
57342
57343 2008-08-17  Bruno Haible  <bruno@clisp.org>
57344
57345         New module 'threadlib'.
57346         * modules/threadlib: New file.
57347         * lib/glthread/threadlib.c: New file, extracted from
57348         lib/glthread/lock.c.
57349         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57350         functions.
57351         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57352         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57353         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57354         macros.
57355         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57356         (gl_DISABLE_THREADS): Remove macro.
57357         * modules/lock (Files): Remove build-aux/config.rpath.
57358         (Depends-on): Remove havelib. Add threadlib.
57359         (configure.ac-early): Remove section.
57360         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57361         * modules/tls (Depends-on): Remove lock. Add threadlib.
57362         (Link): New section, copied from threadlib.
57363         * MODULES.html.sh (Multithreading): Add threadlib.
57364
57365 2008-08-14  Bruno Haible  <bruno@clisp.org>
57366
57367         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57368         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57369         glthread_rwlock_unlock, glthread_rwlock_destroy,
57370         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57371         glthread_recursive_lock_destroy): Define as macros always.
57372         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57373         glthread_lock_lock.
57374         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57375         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57376         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57377         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57378         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57379         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57380         (glthread_recursive_lock_lock_func): Renamed from
57381         glthread_recursive_lock_lock.
57382         (glthread_recursive_lock_unlock_func): Renamed from
57383         glthread_recursive_lock_unlock.
57384         (glthread_recursive_lock_destroy_func): Renamed from
57385         glthread_recursive_lock_destroy.
57386
57387 2008-08-14  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/glthread/lock.h: Renamed from lib/lock.h.
57390         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57391         * lib/glthread/tls.h: Renamed from lib/tls.h.
57392         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57393         * lib/fstrcmp.c: Update includes.
57394         * lib/strsignal.c: Update includes.
57395         * modules/lock (Files, Makefile.am): Update.
57396         (Include): Change to "glthread/lock.h".
57397         * modules/tls (Files, Makefile.am): Update.
57398         (Include): Change to "glthread/tls.h".
57399         * tests/test-lock.c: Update includes.
57400         * tests/test-tls.c: Update includes.
57401         * NEWS: Mention the renamed header files.
57402
57403 2008-08-11  Jim Meyering  <meyering@redhat.com>
57404
57405         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57406
57407 2008-08-11  Eric Blake  <ebb9@byu.net>
57408
57409         test-c-stack: avoid C99-ism
57410         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57411         before statement.
57412         Reported by Alain Guibert.
57413
57414 2008-08-10  Jim Meyering  <meyering@redhat.com>
57415
57416         ensure that return value of uinttostr et al are not ignored
57417         * lib/inttostr.h (__GNUC_PREREQ): Define.
57418         (__attribute_warn_unused_result__): Define.
57419         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57420
57421 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57422
57423         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57424         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57425
57426 2008-08-07  Jim Meyering  <meyering@redhat.com>
57427
57428         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57429
57430         * modules/mkstemp (License): Relicense under LGPLv2+.
57431         * modules/tempname (License): Likewise.
57432
57433 2008-08-06  Bruno Haible  <bruno@clisp.org>
57434
57435         * lib/poll.c (poll): Further micro-optimization.
57436
57437 2008-08-06  Jim Meyering  <meyering@redhat.com>
57438
57439         inet_pton.c: use locale-independent tolower
57440         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57441         (inet_pton6): Use c_tolower rather than tolower.
57442         * modules/inet_pton (Depends-on): Add c-ctype.
57443
57444 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57445
57446         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57447         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57448
57449 2008-08-06  Jim Meyering  <meyering@redhat.com>
57450
57451         * modules/inet_pton (License): Relicense under LGPLv2+.
57452
57453 2008-08-03  Bruno Haible  <bruno@clisp.org>
57454
57455         Additional non-aborting API for lock and tls.
57456         * lib/lock.h: Include <errno.h>.
57457         (glthread_lock_init): New macro/function.
57458         (gl_lock_init): Define as wrapper around glthread_lock_init.
57459         (glthread_lock_lock): New macro/function.
57460         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57461         (glthread_lock_unlock): New macro/function.
57462         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57463         (glthread_lock_destroy): New macro/function.
57464         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57465         (glthread_rwlock_init): New macro/function.
57466         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57467         (glthread_rwlock_rdlock): New macro/function.
57468         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57469         (glthread_rwlock_wrlock): New macro/function.
57470         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57471         (glthread_rwlock_unlock): New macro/function.
57472         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57473         (glthread_rwlock_destroy): New macro/function.
57474         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57475         (glthread_recursive_lock_init): New macro/function.
57476         (gl_recursive_lock_init): Define as wrapper around
57477         glthread_recursive_lock_init.
57478         (glthread_recursive_lock_lock): New macro/function.
57479         (gl_recursive_lock_lock): Define as wrapper around
57480         glthread_recursive_lock_lock.
57481         (glthread_recursive_lock_unlock): New macro/function.
57482         (gl_recursive_lock_unlock): Define as wrapper around
57483         glthread_recursive_lock_unlock.
57484         (glthread_recursive_lock_destroy): New macro/function.
57485         (gl_recursive_lock_destroy): Define as wrapper around
57486         glthread_recursive_lock_destroy.
57487         (glthread_once): New macro/function.
57488         (gl_once): Define as wrapper around glthread_once.
57489         Update function declarations.
57490         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57491         glthread_rwlock_init. Return error code.
57492         (glthread_rwlock_rdlock_multithreaded): Renamed from
57493         glthread_rwlock_rdlock. Return error code.
57494         (glthread_rwlock_wrlock_multithreaded): Renamed from
57495         glthread_rwlock_wrlock. Return error code.
57496         (glthread_rwlock_unlock_multithreaded): Renamed from
57497         glthread_rwlock_unlock. Return error code.
57498         (glthread_rwlock_destroy_multithreaded): Renamed from
57499         glthread_rwlock_destroy. Return error code.
57500         (glthread_recursive_lock_init_multithreaded): Renamed from
57501         glthread_recursive_lock_init. Return error code.
57502         (glthread_recursive_lock_lock_multithreaded): Renamed from
57503         glthread_recursive_lock_lock. Return error code.
57504         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57505         glthread_recursive_lock_unlock. Return error code.
57506         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57507         glthread_recursive_lock_destroy. Return error code.
57508         (glthread_once_call): Make static.
57509         (glthread_once_multithreaded): Renamed from glthread_once.
57510         * lib/tls.h: Include <errno.h>.
57511         (glthread_tls_key_init): New macro/function.
57512         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57513         (glthread_tls_set): New macro/function.
57514         (gl_tls_set): Define as wrapper around glthread_tls_set.
57515         (glthread_tls_key_destroy): New macro/function.
57516         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57517         Update function declarations.
57518         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57519         glthread_tls_get.
57520         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57521
57522 2008-08-04  Eric Blake  <ebb9@byu.net>
57523
57524         gnumakefile: use space, not TAB, outside of targets
57525         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57526
57527 2008-08-02  Jim Meyering  <meyering@redhat.com>
57528
57529         getdate.y: avoid locale-dependent date parsing failure
57530         In Turkish locales, getdate would fail to recognize keywords
57531         containing a lowercase "i".  The solution is not to rely on
57532         locale-sensitive case-conversion.
57533         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57534         (lookup_word): Use c_toupper in place of toupper.
57535         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57536         Reported by Vefa Bicakci <bicave@superonline.com> in
57537         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57538         * modules/getdate (Depends-on): Add c-ctype.
57539
57540 2008-08-02  Bruno Haible  <bruno@clisp.org>
57541
57542         * gnulib-tool (func_import): When updating or creating a .gitignore
57543         file, prepend each added line with a slash, and ignore leading slashes
57544         from the existing lines.
57545         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57546
57547 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57548
57549         Portability fix for GNU make 3.79.1.
57550         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57551         versions do not understand.
57552
57553 2008-08-01  Bruno Haible  <bruno@clisp.org>
57554
57555         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57556         * tests/test-isnanf.h (zero): New variable.
57557         (main): Avoid literal -0.0f.
57558         * tests/test-isnand.h (zero): New variable.
57559         (main): Avoid literal -0.0.
57560         * tests/test-isnanl.h (zero): New variable.
57561         (main): Avoid literal -0.0L.
57562         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57563         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57564         -0.0, -0.0L.
57565         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57566         (test_signbitd): Avoid literal -0.0.
57567         (test_signbitl): Avoid literal -0.0L.
57568         * tests/test-ceilf1.c (zero): New variable.
57569         (main): Avoid literal -0.0f.
57570         * tests/test-ceill.c (zero): New variable.
57571         (main): Avoid literal -0.0L.
57572         * tests/test-floorf1.c (zero): New variable.
57573         (main): Avoid literal -0.0f.
57574         * tests/test-floorl.c (zero): New variable.
57575         (main): Avoid literal -0.0L.
57576         * tests/test-roundf1.c (zero): New variable.
57577         (main): Avoid literal -0.0f.
57578         * tests/test-round1.c (zero): New variable.
57579         (main): Avoid literal -0.0.
57580         * tests/test-roundl.c (zero): New variable.
57581         (main): Avoid literal -0.0L.
57582         * tests/test-truncf1.c (zero): New variable.
57583         (main): Avoid literal -0.0f.
57584         * tests/test-trunc1.c (zero): New variable.
57585         (main): Avoid literal -0.0.
57586         * tests/test-truncl.c (zero): New variable.
57587         (main): Avoid literal -0.0L.
57588         * tests/test-frexp.c (zero): New variable.
57589         (main): Avoid literal -0.0.
57590         * tests/test-frexpl.c (zero): New variable.
57591         (main): Avoid literal -0.0L.
57592         * tests/test-ldexpl.c (zero): New variable.
57593         (main): Avoid literal -0.0L.
57594         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57595         (zerod, zerol): New variables.
57596         (test_function): Avoid literals -0.0, -0.0L.
57597         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57598         (zerod, zerol): New variables.
57599         (test_function): Avoid literals -0.0, -0.0L.
57600         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57601         (zerod, zerol): New variables.
57602         (test_function): Avoid literals -0.0, -0.0L.
57603         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57604         (zerod, zerol): New variables.
57605         (test_function): Avoid literals -0.0, -0.0L.
57606         * tests/test-strtod.c (zero): New variable.
57607         (main): Avoid literal -0.0.
57608         Reported by Jonathan C. Patschke <jp@centtech.com>.
57609
57610 2008-07-31  Jim Meyering  <meyering@redhat.com>
57611
57612         sha256.h: correct definition of SHA224_DIGEST_SIZE
57613         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57614         Reported by Paulie Pena IV <paulie4@gmail.com>.
57615         Define as 224 / 8, rather than as a literal.
57616         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57617         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57618         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57619
57620 2008-07-31  Bruno Haible  <bruno@clisp.org>
57621
57622         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57623         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57624         Reported by Jonathan Patschke <jp@centtech.com>.
57625
57626 2008-07-31  Bruno Haible  <bruno@clisp.org>
57627
57628         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57629         Reported by Paolo Bonzini <bonzini@gnu.org>.
57630
57631 2008-07-30  Eric Blake  <ebb9@byu.net>
57632
57633         test-strtod: allow compilation without -lm
57634         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57635         Reported by Dennis Clarke <blastwave@gmail.com>.
57636
57637 2008-07-28  Jim Meyering  <meyering@redhat.com>
57638
57639         bootstrap: work also when there are no .po files in po/
57640         * build-aux/bootstrap (update_po_files): Complete the change
57641         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57642
57643 2008-07-27  Jim Meyering  <meyering@redhat.com>
57644
57645         * users.txt: Add zile.
57646
57647 2008-07-26  Ben Pfaff  <blp@gnu.org>
57648
57649         Add missing dependencies on new m4/exponent[fdl].m4 files.
57650         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57651         * modules/isnand-nolibm: Add m4/exponentd.m4.
57652         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57653         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57654         m4/isnan[fdl].m4, because the macros actually used moved.
57655         Reported by Jim Meyering.
57656
57657 2008-07-14  Ben Pfaff  <blp@gnu.org>
57658
57659         Add isinf module.
57660         * lib/isinf.c: New file.
57661         * lib/math.in.h: Define isinf macro if we have decided to replace
57662         it.
57663         * m4/isinf.m4: New file.
57664         * m4/math_h.m4: Initialize and substitute variables for isinf
57665         module.
57666         * modules/isinf: New file.
57667         * modules/isinf-tests: New file.
57668         * modules/math: Add substitutions for new module.
57669         * tests/test-isinf.c: New file.
57670         * doc/posix-functions/isinf.texi: Mention new module.
57671         * MODULES.html.sh: Mention new module.
57672
57673 2008-07-14  Ben Pfaff  <blp@gnu.org>
57674
57675         Factor out some macros for use by additional modules.
57676         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57677         exponentf.m4.
57678         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57679         exponentd.m4.
57680         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57681         file exponentl.m4.
57682         * m4/exponentf.m4: New file.
57683         * m4/exponentd.m4: New file.
57684         * m4/exponentl.m4: New file.
57685         * modules/isnanf: Use new file m4/exponentf.m4.
57686         * modules/isnand: Use new file m4/exponentd.m4.
57687         * modules/isnanl: Use new file m4/exponentl.m4.
57688
57689 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57690
57691         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57692         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57693         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57694         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57695
57696         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57697         readlink on platforms without PATH_MAX.
57698
57699 2008-07-21  Eric Blake  <ebb9@byu.net>
57700
57701         Warn, not fail, on stale version.
57702         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57703
57704         Don't allow installation with stale devel version number.
57705         * top/GNUmakefile (_is-install-target): New macro.
57706         (_curr-ver): Forbid installation with stale version number.
57707
57708 2008-07-20  Bruno Haible  <bruno@clisp.org>
57709
57710         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57711         TESTS_ENVIRONMENT.
57712         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57713
57714 2008-07-20  Bruno Haible  <bruno@clisp.org>
57715
57716         * lib/c-stack.h (c_stack_action): Add documentation.
57717         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57718
57719 2008-07-20  Bruno Haible  <bruno@clisp.org>
57720
57721         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57722         * modules/readlink (License): Likewise.
57723
57724 2008-07-17  Eric Blake  <ebb9@byu.net>
57725
57726         * modules/c-stack (Link): Fix typo.
57727
57728         Make c-stack use libsigsegv, when available.
57729         * modules/c-stack (Depends-on): Add libsigsegv.
57730         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57731         needed.
57732         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57733         (segv_handler, overflow_handler, c_stack_action)
57734         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57735         implementation when libsigsegv is available, but only when using
57736         the library is necessary.
57737         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57738         comment, explaining why XSI check fails on Linux.
57739         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57740         * tests/test-c-stack2.sh: Tweak skip message.
57741         * NEWS: Document new link-time requirements.
57742
57743 2008-07-16  Eric Blake  <ebb9@byu.net>
57744
57745         c-stack: Expose false positives when not using libsigsegv.
57746         * modules/c-stack-tests (Files): Expand test.
57747         * tests/test-c-stack.c (main): Add means to conditionally trigger
57748         non-overflow SIGSEGV.
57749         * tests/test-c-stack2.sh: New file.
57750
57751 2008-07-14  Bruno Haible  <bruno@clisp.org>
57752
57753         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57754         Reported by Eric Blake.
57755
57756 2008-07-14  Sam Steingold  <sds@gnu.org>
57757             Bruno Haible  <bruno@clisp.org>
57758
57759         New module libsigsegv.
57760         * modules/libsigsegv: New file.
57761         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57762         modifications.
57763         * MODULES.html.sh (Signal handling): New section.
57764
57765 2008-07-14  Bruno Haible  <bruno@clisp.org>
57766
57767         * modules/unictype/ctype-* (Description): Add the word "function".
57768         Improves the resulting doc in MODULES.html.
57769
57770 2008-07-12  Ben Pfaff  <blp@gnu.org>
57771
57772         Add longlong module.
57773         * modules/longlong: New file.
57774
57775 2008-07-12  Bruno Haible  <bruno@clisp.org>
57776
57777         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57778         to empty.
57779
57780 2008-07-10  Ben Pfaff  <blp@gnu.org>
57781
57782         Add isnan module.
57783         * doc/posix-functions/isnan.texi: Mention new module.
57784         * lib/math.in.h: Define isnan macro if we have decided to replace
57785         it.
57786         * m4/isnan.m4: New file.
57787         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57788         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57789         also.
57790         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57791         redundancy.
57792         * m4/math_h.m4: Initialize and substitute variables for isnan
57793         module.
57794         * modules/isnan: New file.
57795         * modules/isnan-tests: New file.
57796         * modules/math: Add substitutions for new module.
57797         * tests/test-isnan.c: New file.
57798         * MODULES.html.sh: Mention new module.
57799
57800 2008-07-10  Ben Pfaff  <blp@gnu.org>
57801
57802         Add isnanf module.
57803         * lib/isnanf.m4: New file.
57804         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57805         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57806         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57807         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57808         * modules/isnanf: New file.
57809         * modules/isnanf-tests: New file.
57810         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57811         files.
57812         * tests/test-isnanf-nolibm.c: factored most of its contents into
57813         new file tests/test-isnanf.h.
57814         * tests/test-isnanf.h: New file.
57815         * tests/test-isnanf.c: New file.
57816         * MODULES.html.sh: Mention new module.
57817         * doc/glibc-functions/isnanf.texi: Mention new module.
57818
57819 2008-07-10  Ben Pfaff  <blp@gnu.org>
57820
57821         Add isnand module.
57822         * lib/isnand.h: New file.
57823         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57824         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57825         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57826         functionality also.
57827         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57828         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57829         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57830         * modules/isnand: New file.
57831         * modules/isnand-tests: New file.
57832         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57833         files.
57834         * tests/test-isnand-nolibm.c: factored most of its contents into
57835         new file tests/test-isnand.h.
57836         * tests/test-isnand.h: New file.
57837         * tests/test-isnand.c: New file.
57838         * MODULES.html.sh: Mention new module.
57839
57840 2008-07-10  Ben Pfaff  <blp@gnu.org>
57841
57842         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57843         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57844         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57845         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57846         * modules/isnanf-nolibm: Update references to renamed files.
57847         * modules/isnand-nolibm: Likewise.
57848         * modules/isnanf-nolibm-tests: Likewise.
57849         * modules/isnand-nolibm-tests: Likewise.
57850         * lib/frexp.c: Likewise.
57851         * lib/isfinite.c: Likewise.
57852         * lib/signbitd.c: Likewise.
57853         * lib/signbitf.c: Likewise.
57854         * lib/vasnprintf.c: Likewise.
57855         * tests/test-ceilf1.c: Likewise.
57856         * tests/test-ceilf2.c: Likewise.
57857         * tests/test-floorf1.c: Likewise.
57858         * tests/test-floorf2.c: Likewise.
57859         * tests/test-frexp.c: Likewise.
57860         * tests/test-round1.c: Likewise.
57861         * tests/test-round2.c: Likewise.
57862         * tests/test-roundf1.c: Likewise.
57863         * tests/test-strtod.c: Likewise.
57864         * tests/test-trunc1.c: Likewise.
57865         * tests/test-trunc2.c: Likewise.
57866         * tests/test-truncf1.c: Likewise.
57867         * tests/test-truncf2.c: Likewise.
57868         * NEWS: Mention the renamed header files.
57869
57870 2008-07-11  Jim Meyering  <meyering@redhat.com>
57871
57872         vc-list-files: make the last-resort awk code more portable
57873         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57874         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57875         does not support it.
57876
57877 2008-07-10  Eric Blake  <ebb9@byu.net>
57878
57879         Work with tar's bootstrap.
57880         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57881         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57882         an m4 comment.
57883
57884 2008-07-09  Jim Meyering  <meyering@redhat.com>
57885
57886         posix-shell.m4: fix typo that made this test malfunction
57887         * m4/posix-shell.m4: Remove capitalization in variable name.
57888
57889 2008-07-08  Bruno Haible  <bruno@clisp.org>
57890
57891         * m4/onceonly.m4: Update comments.
57892         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57893
57894 2008-07-04  Jim Meyering  <meyering@redhat.com>
57895
57896         * users.txt: Add vc-dwim.
57897         (bison, coreutils): Use the gitweb URL.
57898
57899 2008-07-03  Jim Meyering  <meyering@redhat.com>
57900
57901         * users.txt: Add libffcall.  From Sam Steingold.
57902
57903 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57904
57905         getdate.y: do not ignore TZ with relative day, month or year offset
57906         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57907         relative-date-handling, since otherwise, the latter would clobber the
57908         sole output (an updated Start value) of the tz-handling block.
57909         * tests/test-getdate.c: Tests for the fix
57910
57911 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57912
57913         Recognize 'foo_LIBRARIES += libgnu.a'.
57914         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57915         makefile snippet has already specified an installation location,
57916         also using '+='.
57917
57918 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57919
57920         getdate.y: factor out common actions
57921         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57922         Use them in place of open-coded actions.
57923
57924 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57925
57926         Add self-test for getdate module.
57927         * modules/getdate-tests: New file.
57928         * tests/test-getdate.c: New file.
57929
57930 2008-06-29  Bruno Haible  <bruno@clisp.org>
57931
57932         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57933         .gitignore.
57934         Reported by Sylvain Beucler <beuc@beuc.net>.
57935
57936 2008-06-29  Bruno Haible  <bruno@clisp.org>
57937
57938         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57939         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57940
57941 2008-06-29  Bruno Haible  <bruno@clisp.org>
57942
57943         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57944         EXTRA_DIST.
57945         Reported by Sylvain Beucler <beuc@beuc.net>.
57946
57947 2008-06-26  Jim Meyering  <meyering@redhat.com>
57948
57949         make several modules depend on the "open" module
57950         This provides slightly increased consistency when opening-for-write
57951         the name of a non-directory spelled with a trailing slash.
57952         * modules/chdir-safer: Likewise.
57953         * modules/chown: Likewise.
57954         * modules/clean-temp: Likewise.
57955         * modules/copy-file: Likewise.
57956         * modules/fchdir: Likewise.
57957         * modules/fcntl-safer: Likewise.
57958         * modules/pipe: Likewise.
57959         * modules/utime: Likewise.
57960         Prompted by Eric Blake and Bruno Haible.
57961
57962 2008-06-24  Andreas Schwab  <schwab@suse.de>
57963
57964         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57965         literals can be used as initializers for global variables.
57966
57967 2008-06-23  Eric Blake  <ebb9@byu.net>
57968
57969         Make gnulib-cache.m4 easier to diff.
57970         * gnulib-tool (func_import): Allow newlines when reading cached
57971         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57972
57973 2008-06-23  Bruno Haible  <bruno@clisp.org>
57974
57975         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57976         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57977         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57978         m4/signalblocking.m4.
57979         (gl_PREREQ_SIGACTION): Don't invoke it.
57980         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57981         gl_PREREQ_SIG_HANDLER_H.
57982         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57983         Don't check for sigaction here.
57984
57985 2008-06-23  Bruno Haible  <bruno@clisp.org>
57986
57987         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57988         (install_handlers): Don't set the SA_RESETHAND flag.
57989
57990 2008-06-23  Bruno Haible  <bruno@clisp.org>
57991
57992         * m4/sigaction.m4: Comment fixes.
57993         * lib/signal.in.h: Likewise.
57994
57995 2008-06-23  Eric Blake  <ebb9@byu.net>
57996
57997         Fix typo.
57998         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57999
58000         Avoid SA_ namespace.
58001         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58002         Reported by Ralf Wildenhues.
58003
58004         Avoid test failure due to SA_RESTORER.
58005         * tests/test-sigaction.c (SA_MASK): New macro.
58006         (main): Avoid failing due to extension flags being set.
58007         Reported by Jim Meyering.
58008
58009         Revert use of sig-handler.h in sigprocmask.c.
58010         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58011         it requires the existence of struct sigaction.
58012         * lib/sigprocmask.c (handler_t): Restore typedef.
58013         (rpl_signal, old_handlers): Use local type.
58014
58015 2008-06-22  Bruno Haible  <bruno@clisp.org>
58016
58017         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58018         conditionally.
58019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58020
58021 2008-06-22  Bruno Haible  <bruno@clisp.org>
58022
58023         * doc/posix-functions/siginterrupt.texi: Move note.
58024
58025         * lib/signal.in.h (SA_RESTART): New macro.
58026         * lib/sigaction.c: Update comment.
58027
58028         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58029
58030         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58031         (gl_PREREQ_SIGPROCMASK): Invoke it.
58032         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58033
58034         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58035
58036         * lib/sigprocmask.c: Update a comment.
58037
58038 2008-06-21  Eric Blake  <ebb9@byu.net>
58039
58040         Use sigaction module rather than signal().
58041         * modules/c-stack (Depends-on): Add sigaction.
58042         * modules/fatal-signal (Depends-on): Likewise.
58043         * modules/nanosleep (Depends-on): Likewise.
58044         * modules/sigprocmask (Files): Add sig-handler.h.
58045         * modules/sigaction (Files): Likewise.
58046         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58047         Eggert.
58048         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58049         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58050         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58051         (init_fatal_signals): Likewise.
58052         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58053         (siginterrupt): Delete fallback.
58054         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58055         instead.
58056         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58057         siginterrupt.
58058
58059         New module sigaction, for mingw.
58060         * modules/sigaction: New module...
58061         * modules/sigaction-tests: ...and its test.
58062         * m4/sigaction.m4: New file.
58063         * lib/sigaction.c: Likewise.
58064         * tests/test-sigaction.c: Likewise.
58065         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58066         * modules/signal (Makefile.am): Likewise.
58067         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58068         needed.
58069         * doc/posix-headers/signal.texi (signal.h): Mention provided
58070         types.
58071         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58072         that sigaction is preferable.
58073         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58074         module.
58075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58076         sigaction.
58077
58078         Improve robustness of sigprocmask by overriding signal.
58079         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58080         is in use.
58081         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58082         (SIGKILL, SIGSTOP): Provide fallbacks.
58083         (rpl_signal): Implement.
58084         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58085         signal can be called inside handlers.
58086
58087         Fix nanosleep module on mingw.
58088         * modules/nanosleep (Depends-on): Add sys_select.
58089         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58090
58091         Fix licensing of sigprocmask.
58092         * modules/raise (License): Relicense as LGPL.
58093
58094 2008-06-21  Bruno Haible  <bruno@clisp.org>
58095
58096         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58097         result if it contains question marks.
58098         Reported by Michael Geng <linux@michaelgeng.de>.
58099
58100 2008-06-19  Bruno Haible  <bruno@clisp.org>
58101
58102         Fix CVS-ism.
58103         * doc/gnulib.texi: Include updated-stamp.texi.
58104         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58105         (updated-stamp.texi): New rule.
58106         (gnulib.info): Depend on it.
58107         * doc/.gitignore: Add updated-stamp.texi.
58108         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58109
58110 2008-06-19  Bruno Haible  <bruno@clisp.org>
58111
58112         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58113         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58114
58115 2008-06-19  Eric Blake  <ebb9@byu.net>
58116
58117         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58118         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58119         Reported by Stepan Kasal.
58120
58121 2008-06-18  Bruno Haible  <bruno@clisp.org>
58122
58123         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58124         Reported by Eric Blake.
58125
58126 2008-06-18  Eric Blake  <ebb9@byu.net>
58127
58128         Work around cygwin 1.5.25 strsignal bug.
58129         * tests/test-strsignal.c: Allow for const char *.
58130         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58131
58132 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58133
58134         * users.txt: Update URL to article and add author/date
58135         information.
58136
58137 2008-06-17  Bruno Haible  <bruno@clisp.org>
58138
58139         New macro gl_DISABLE_THREADS.
58140         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58141         if the user did not pass --enable-threads or --disable-threads option.
58142         (gl_DISABLE_THREADS): New macro.
58143         Reported by Eric Blake <ebb9@byu.net>.
58144
58145 2008-06-17  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58148         when the macro ignores it.
58149         Based on a patch by Eric Blake <ebb9@byu.net>.
58150
58151 2008-06-17  Bruno Haible  <bruno@clisp.org>
58152
58153         * modules/tls (License): Change to LGPLv2+.
58154         Reported by Eric Blake.
58155
58156 2008-06-17  Eric Blake  <ebb9@byu.net>
58157
58158         Simplify c-stack prerequisites.
58159         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58161         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58162         check.
58163         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58164         <sys/resource.h>.
58165
58166         Move c-stack test into testsuite.
58167         * modules/c-stack-tests: New file.
58168         * lib/c-stack.c [DEBUG]: Move test program...
58169         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58170         fail test if sigaltstack is lacking.
58171         * tests/test-c-stack.sh: New driver file.
58172
58173 2008-06-16  Eric Blake  <ebb9@byu.net>
58174
58175         Use raise module consistently.
58176         * modules/fatal-signal (Depends-on): Add raise.
58177         * modules/sigprocmask (Depends-on): Likewise.
58178         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58179         * lib/sigprocmask.c (sigprocmask): Likewise.
58180         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58181         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58182
58183         Fix compliance bug in sigpending.
58184         * lib/sigprocmask.c (sigpending): Return pending array via
58185         parameter, not return value.
58186
58187 2008-06-14  Eric Blake  <ebb9@byu.net>
58188
58189         Improve obstack-printf test code.
58190         * tests/test-obstack-printf.c (test_function): Fix comment, and
58191         simplify usage of obstack_* in macros.  Add a test for coverage.
58192         Reported by Bruno Haible.
58193
58194 2008-06-14  Bruno Haible  <bruno@clisp.org>
58195
58196         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58197         array size as a constant, not as a const variable.
58198         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58199         AC_USE_SYSTEM_EXTENSIONS.
58200         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58201         Test whether the obstack_printf function actually exists.
58202         * modules/obstack-printf (Depends-on): Add extensions.
58203         (Include): Remove obstack.h.
58204         * modules/obstack-printf-posix (Depends-on): Add extensions.
58205         (Include): Remove obstack.h.
58206
58207 2008-06-13  Eric Blake  <ebb9@byu.net>
58208
58209         Add obstack-printf and obstack-printf-posix modules.
58210         * modules/obstack-printf: New file.
58211         * modules/obstack-printf-posix: Likewise.
58212         * MODULES.html.sh (Misc): Mention them.
58213         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58214         Likewise.
58215         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58216         Likewise.
58217         * modules/stdio (Makefile.am): Accomodate new modules.
58218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58219         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58220         Declare.
58221         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58222         functions.
58223         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58224         (gl_REPLACE_OBSTACK_PRINTF): New macros
58225         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58226         * tests/test-obstack-printf.c: New file.
58227         * modules/obstack-printf-tests: Likewise.
58228         * modules/obstack-printf-posix-tests: Likewise.
58229
58230 2008-06-11  Bruno Haible  <bruno@clisp.org>
58231
58232         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58233         * lib/open.c: Include errno.h.
58234         (open): Fail when attempting to write to a file that has a trailing
58235         slash.
58236         * tests/test-open.c (main): Test against trailing slash bug.
58237         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58238
58239 2008-06-10  Bruno Haible  <bruno@clisp.org>
58240
58241         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58242         for $? to work inside the trap command, with various /bin/sh-s.
58243         * tests/test-vc-list-files-cvs.sh: Likewise.
58244
58245 2008-06-10  Bruno Haible  <bruno@clisp.org>
58246
58247         * lib/acl-internal.h: Don't include gettext.h here.
58248         * lib/set-mode-acl.c: Include gettext.h here.
58249         * lib/copy-acl.c: Likewise.
58250
58251 2008-06-10  Bruno Haible  <bruno@clisp.org>
58252
58253         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58254         * lib/wait-process.c (wait_subprocess): Likewise.
58255         * lib/execute.h (execute): Add termsigp argument.
58256         * lib/execute.c (execute): Likewise.
58257         * lib/csharpcomp.c (compile_csharp_using_pnet,
58258         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58259         * lib/csharpexec.c (execute_csharp_using_pnet,
58260         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58261         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58262         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58263         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58264         is_jikes_present): Update.
58265         * lib/javaexec.c (execute_java_class): Update.
58266         * lib/javaversion.c (execute_and_read_line): Update.
58267         * NEWS: Document the changes.
58268         Reported by Eric Blake.
58269
58270 2008-06-10  Eric Blake  <ebb9@byu.net>
58271
58272         Add missing include.
58273         * tests/test-strstr.c (includes): Add <signal.h>.
58274         * tests/test-strcasestr.c (includes): Likewise.
58275         * tests/test-memmem.c (includes): Likewise.
58276
58277 2008-06-10  Bruno Haible  <bruno@clisp.org>
58278
58279         * lib/wait-process.c (wait_subprocess): Add an assertion.
58280
58281 2008-06-10  Bruno Haible  <bruno@clisp.org>
58282
58283         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58284
58285 2008-06-10  Bruno Haible  <bruno@clisp.org>
58286
58287         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58288         using alarm().
58289         * tests/test-strcasestr.c (main): Likewise.
58290         * tests/test-strstr.c (main): Likewise.
58291
58292 2008-06-09  Bruno Haible  <bruno@clisp.org>
58293
58294         Work around the Solaris 10 ACE ACLs ABI change.
58295         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58296         declare if ACL_NO_TRIVIAL is present.
58297         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58298         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58299         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58300         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58301         define if ACL_NO_TRIVIAL is present.
58302         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58303         and use the current ABI.
58304         (file_has_acl): Use same #if condition as elsewhere.
58305         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58306         in use, and use the current ABI.
58307         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58308         Reported by Jim Meyering.
58309
58310 2008-06-09  Eric Blake  <ebb9@byu.net>
58311
58312         Work around environments that (stupidly) ignore SIGALRM.
58313         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58314         before using alarm().
58315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58316         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58317         Reported by Ian Beckwith <ianb@erislabs.net>.
58318
58319         Produce autobuild blurb earlier in log.
58320         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58321
58322 2008-06-09  Jim Meyering  <meyering@redhat.com>
58323         and OndÅ™ej Vašík  <ovasik@redhat.com>
58324
58325         utimens.c: correct kernel bug work-around
58326         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58327         failure, not success, and the kernel bug we're trying to work
58328         around affects not just the utimensat call, but also the fallback
58329         futimens call.
58330         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58331         not success.
58332         [HAVE_FUTIMENS]: Use the same work-around, here.
58333
58334 2008-06-09  Jim Meyering  <meyering@redhat.com>
58335
58336         add more guards around definition of ACE_-related code
58337         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58338         ALLOW and ACE_OWNER are also defined.
58339
58340 2008-06-08  Bruno Haible  <bruno@clisp.org>
58341
58342         * lib/acl-internal.h: Add me as co-author.
58343         * lib/file-has-acl.c: Likewise.
58344         * lib/set-mode-acl.c: Likewise.
58345         * lib/copy-acl.c: Likewise.
58346
58347 2008-06-08  Bruno Haible  <bruno@clisp.org>
58348
58349         Add support for AIX ACLs.
58350         * lib/acl-internal.h (acl_nontrivial): New declaration.
58351         * lib/file-has-acl.c (acl_nontrivial): New function.
58352         (file_has_acl): Add implementation using AIX 4 ACL API.
58353         * lib/set-mode-acl.c (qset_acl): Likewise.
58354         * lib/copy-acl.c (qcopy_acl): Likewise.
58355
58356 2008-06-08  Bruno Haible  <bruno@clisp.org>
58357
58358         Add support for HP-UX ACLs.
58359         * lib/acl-internal.h (acl_nontrivial): New declaration.
58360         * lib/file-has-acl.c (acl_nontrivial): New function.
58361         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58362         * lib/set-mode-acl.c (qset_acl): Likewise.
58363         * lib/copy-acl.c (qcopy_acl): Likewise.
58364
58365 2008-06-08  Bruno Haible  <bruno@clisp.org>
58366
58367         Add support for Cygwin ACLs.
58368         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58369         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58370         the chmod_or_fchmod call.
58371         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58372
58373 2008-06-08  Bruno Haible  <bruno@clisp.org>
58374
58375         Fix bug with setuid modes in Solaris 10+ code.
58376         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58377         succeeded, when the mode contains some special bits.
58378
58379 2008-06-08  Bruno Haible  <bruno@clisp.org>
58380
58381         Add support for Solaris 7..10 ACLs.
58382         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58383         declarations.
58384         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58385         functions.
58386         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58387         * lib/set-mode-acl.c (qset_acl): Likewise.
58388         * lib/copy-acl.c (qcopy_acl): Likewise.
58389
58390 2008-06-08  Bruno Haible  <bruno@clisp.org>
58391
58392         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58393         declaration.
58394         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58395         (acl_access_nontrivial): Remove MacOS X case.
58396         (file_has_acl): Use acl_extended_nontrivial.
58397         * lib/copy-acl.c (qcopy_acl): Likewise.
58398
58399 2008-06-08  Bruno Haible  <bruno@clisp.org>
58400
58401         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58402
58403 2008-06-08  Jim Meyering  <meyering@redhat.com>
58404
58405         * modules/acl (Maintainer): Add Bruno Haible.
58406
58407 2008-06-07  Bruno Haible  <bruno@clisp.org>
58408
58409         Improve support for Tru64 ACLs.
58410         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58411         ACL on OSF/1.
58412
58413 2008-06-07  Bruno Haible  <bruno@clisp.org>
58414
58415         Add support for MacOS X ACLs.
58416         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58417         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58418         * lib/set-mode-acl.c (qset_acl): Likewise.
58419         * lib/copy-acl.c (qcopy_acl): Likewise.
58420
58421 2008-06-07  Bruno Haible  <bruno@clisp.org>
58422
58423         Fix memory leak introduced on 2008-05-22.
58424         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58425         use.
58426
58427 2008-06-07  Bruno Haible  <bruno@clisp.org>
58428
58429         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58430         to construct an empty ACL.
58431
58432 2008-06-07  Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58435         precisely.
58436         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58437
58438 2008-06-07  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58441         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58442
58443 2008-06-07  Bruno Haible  <bruno@clisp.org>
58444
58445         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58446         regardless of POSIX.
58447         * doc/posix-functions/_longjmp.texi: Likewise.
58448         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58449         SystemV platform in this case.
58450
58451 2008-06-06  Eric Blake  <ebb9@byu.net>
58452
58453         Document abort() bugs.
58454         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58455
58456         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58457         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58458         sigsetjmp.
58459         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58460         siglongjmp, but only as a macro.
58461         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58462         is obsolete.
58463         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58464
58465         Tweak documentation to cover cygwin argz bugs.
58466         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58467         argz bug fix; no code change needed since no cygwin releases
58468         occurred between the last fix and the bug being tested.
58469         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58470         module and recently fixed cygwin bugs.
58471         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58472         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58473         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58474         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58475         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58476         Likewise.
58477         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58478         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58479         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58480         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58481         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58482         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58483         Likewise.
58484
58485         Avoid gcc warning on cygwin.
58486         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58487         !ACL_NO_TRIVIAL]: Avoid unused variable.
58488
58489 2008-06-05  Eric Blake  <ebb9@byu.net>
58490
58491         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58492         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58493         git-version-gen fails to come up with a version.
58494         Reported by Simon Josefsson.
58495
58496 2008-06-05  Jim Meyering  <meyering@redhat.com>
58497             Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         utimens.c: work around a probable Linux kernel bug
58500         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58501         appears to be a kernel bug that causes utimensat to return 280
58502         instead of 0, indicating success.
58503
58504 2008-06-04  Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58507         2008-06-01 commit.
58508
58509 2008-06-04  Bruno Haible  <bruno@clisp.org>
58510
58511         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58512         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58513         (file_has_acl): Use it. Save errno afterwards.
58514         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58515
58516 2008-06-03  Bruno Haible  <bruno@clisp.org>
58517
58518         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58519         draft code. Simplify #ifs.
58520         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58521         Put Solaris code after POSIX-draft code. Fix comments regarding
58522         Solaris 10, HP-UX. Mention Cygwin.
58523         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58524
58525 2008-06-03  Eric Blake  <ebb9@byu.net>
58526
58527         Provide fallback for older kernels.
58528         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58529         Provide runtime fallback if kernel lacks support.
58530         Reported by Mike Frysinger.
58531
58532 2008-06-02  Bruno Haible  <bruno@clisp.org>
58533
58534         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58535         it exists.
58536
58537 2008-06-02  Bruno Haible  <bruno@clisp.org>
58538
58539         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58540         * lib/copy-acl.c (qcopy_acl): Update comment.
58541
58542 2008-06-02  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58545         like ACL APIs.
58546
58547 2008-06-02  Bruno Haible  <bruno@clisp.org>
58548
58549         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58550         * tests/test-set-mode-acl.sh: Likewise.
58551         * tests/test-copy-acl.sh: Likewise.
58552         * tests/test-copy-file.sh: Likewise.
58553
58554 2008-06-02  Bruno Haible  <bruno@clisp.org>
58555
58556         * tests/test-file-has-acl.sh: Remove unused code.
58557
58558 2008-06-01  Bruno Haible  <bruno@clisp.org>
58559
58560         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58561         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58562         messages.
58563         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58564
58565 2008-06-01  Bruno Haible  <bruno@clisp.org>
58566
58567         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58568         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58569         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58570         APIs.
58571         * modules/acl-tests (configure.ac): Remove tests now contained in
58572         m4/acl.m4.
58573
58574 2008-06-02  Jim Meyering  <meyering@redhat.com>
58575
58576         announce-gen: use a better key-server host name
58577         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58578         it may be more consistently reliable.  Suggested by Werner Koch
58579         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58580
58581 2008-06-01  Bruno Haible  <bruno@clisp.org>
58582
58583         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58584         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58585
58586 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58587
58588         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58589
58590 2008-06-01  Bruno Haible  <bruno@clisp.org>
58591
58592         New ACL tests.
58593         * tests/test-file-has-acl.sh: New file.
58594         * tests/test-file-has-acl.c: New file.
58595         * tests/test-set-mode-acl.sh: New file.
58596         * tests/test-set-mode-acl.c: New file.
58597         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58598         * tests/test-copy-acl.c: New file.
58599         * modules/acl-tests: New file, based on modules/copy-file-tests.
58600         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58601         (Depends-on): Add acl-tests.
58602         (configure.ac): Remove checks.
58603         (Makefile.am): Don't create test-sameacls program here any more.
58604
58605 2008-06-01  Bruno Haible  <bruno@clisp.org>
58606
58607         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58608         * tests/test-sameacls.c: Include progname.h.
58609         (main): Invoke set_program_name. Portability fixes for MacOS X,
58610         Solaris, HP-UX.
58611
58612 2008-06-01  Bruno Haible  <bruno@clisp.org>
58613
58614         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58615         function.
58616         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58617
58618 2008-06-01  Bruno Haible  <bruno@clisp.org>
58619
58620         * modules/rpmatch (Depends-on): Add strdup.
58621
58622 2008-06-01  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/pipe.c: Include unistd-safer.h.
58625         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58626         * modules/pipe (Depends-on): Add unistd-safer.
58627
58628 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58629
58630         * modules/autobuild (configure.ac): Call AB_INIT.
58631
58632 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58633
58634         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58635         Suggested by Bruno Haible <bruno@clisp.org>.
58636
58637 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58638
58639         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58640         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58641         <bruno@clisp.org>.
58642
58643 2008-05-29  Eric Blake  <ebb9@byu.net>
58644
58645         Prefer new POSIX 200x interfaces over futimesat.
58646         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58647         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58648         when available.
58649         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58650
58651 2008-05-28  Bruno Haible  <bruno@clisp.org>
58652
58653         * modules/stpcpy (License): Change to LGPLv2+.
58654         Requested by David Lutterkort <dlutter@redhat.com>.
58655
58656 2008-05-27  Bruno Haible  <bruno@clisp.org>
58657
58658         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58659         current mingw.
58660         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58661
58662 2008-05-27  Bruno Haible  <bruno@clisp.org>
58663
58664         * modules/iconv_open (Link): New section, from module 'iconv'.
58665         * modules/striconv (Link): Likewise.
58666         * modules/striconveh (Link): Likewise.
58667         * modules/xstriconv (Link): Likewise.
58668         * modules/unicodeio (Link): Likewise.
58669         * modules/propername (Link): Likewise.
58670         Reported by Jim Meyering.
58671
58672 2008-05-26  Jim Meyering  <meyering@redhat.com>
58673
58674         sha256: do not artificially restrict buffer length to be < 2^32
58675         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58676         uint32_t to size_t.
58677         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58678         to match.
58679
58680         avoid unaligned access errors, e.g., on sparc
58681         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58682         direct access through a possibly-unaligned uint64* pointer.
58683         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58684         direct access through a possibly-unaligned uint32* pointer.
58685         Prompted by this patch from Tom "spot" Callaway:
58686         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58687
58688         sha512.c: fix typo in comment
58689         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58690
58691 2008-05-25  Bruno Haible  <bruno@clisp.org>
58692
58693         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58694         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58695         (Makefile.am): Update lib_SOURCES.
58696
58697 2008-05-25  Bruno Haible  <bruno@clisp.org>
58698
58699         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58700
58701 2008-05-25  Jim Meyering  <meyering@redhat.com>
58702
58703         useless-if-before-free: freed expr may have white-space differences
58704         * build-aux/useless-if-before-free: Recognize cases in which the
58705         freed expression differs from the tested one in embedded white
58706         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58707         $1 was used, so we can't make any regexp shy.  Improved tests now
58708         detect this.
58709
58710         useless-if-before-free: accept white space in the expression.
58711         * build-aux/useless-if-before-free: For now, any white space
58712         in the expression must be identical in the free argument.
58713
58714         useless-if-before-free: efficiency tweak
58715         * build-aux/useless-if-before-free: Make the expression-matching
58716         regexp "shy".
58717         Make the *outer* regexp shy, not the expr-matching one.
58718
58719         update code-in-comment to accept cast of free arg
58720         * build-aux/useless-if-before-free: Update regexp.
58721
58722 2008-05-25  Bruno Haible  <bruno@clisp.org>
58723
58724         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58725         * modules/copy-file-tests (Files, Makefile.am): Update.
58726         * tests/test-copy-file.c (func_test_copy): Update.
58727
58728 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58729
58730         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58731
58732 2008-05-23  Bruno Haible  <bruno@clisp.org>
58733
58734         Improve support for ACLs on OSF/1.
58735         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58736         Remove fallback for unknown flavors of ACLs.
58737
58738 2008-05-22  Bruno Haible  <bruno@clisp.org>
58739
58740         Add support for ACLs on OSF/1.
58741         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58742         replacements.
58743         (acl_free_text): New macro fallback.
58744         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58745         acl_free.
58746         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58747         acl_free_text function. Require AC_C_INLINE.
58748
58749 2008-05-22  Bruno Haible  <bruno@clisp.org>
58750
58751         Make copy_acl work on MacOS X 10.5.
58752         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58753         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58754         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58755         If MODE_INSIDE_ACL, don't assume that every system has the same text
58756         representation for ACLs as FreeBSD.
58757         * lib/copy-acl.c (copy_acl): Add support for platforms with
58758         !MODE_INSIDE_ACL.
58759         * lib/file-has-acl.c (file_has_acl): Likewise.
58760         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58761         FreeBSD, MacOS X, or IRIX, respectively.
58762
58763 2008-05-22  Bruno Haible  <bruno@clisp.org>
58764
58765         * lib/acl.h: Don't include <sys/acl.h>.
58766         (GETACLCNT): Move fallback to lib/acl-internal.h.
58767         * lib/acl-internal.h: Include <sys/acl.h> here.
58768         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58769
58770 2008-05-22  Bruno Haible  <bruno@clisp.org>
58771
58772         Split off copy_acl function to separate file.
58773         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58774         * lib/acl.c (copy_acl): Moved function to separate file.
58775         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58776         * modules/acl (Files): Add lib/copy-acl.c.
58777         (Makefiles.am): Augment lib_SOURCES.
58778
58779 2008-05-22  Bruno Haible  <bruno@clisp.org>
58780
58781         * modules/copy-file-tests: New file.
58782         * tests/test-copy-file.sh: New file.
58783         * tests/test-copy-file.c: New file.
58784         * tests/test-copy-file-sameacls.c: New file.
58785
58786 2008-05-22  Eric Blake  <ebb9@byu.net>
58787
58788         Avoid gcc warning.
58789         * tests/test-memcmp.c (main): Pass NULL indirectly.
58790
58791 2008-05-21  Bruno Haible  <bruno@clisp.org>
58792
58793         Add reference doc about ACLs.
58794         * doc/acl-resources.txt: New file.
58795         * doc/acl-cygwin.txt: New file.
58796
58797 2008-05-21  Bruno Haible  <bruno@clisp.org>
58798
58799         Avoid one more warning from gcc.
58800         * lib/vasnprintf.c (IF_LINT): Update comments.
58801         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58802
58803 2008-05-21  Jim Meyering  <meyering@redhat.com>
58804
58805         avoid a warning from gcc
58806         * lib/vasnprintf.c (IF_LINT): Define.
58807         (scale10_round_decimal_long_double):
58808         Use it to avoid a "may be used uninitialized" warning.
58809         (scale10_round_decimal_double): Likewise.
58810
58811 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58812
58813         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58814         declared.
58815
58816 2008-05-20  Bruno Haible  <bruno@clisp.org>
58817
58818         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58819         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58820
58821 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58822
58823         * modules/memcmp-tests: New file.
58824         * tests/test-memcmp.c: New file.
58825
58826 2008-05-19  Bruno Haible  <bruno@clisp.org>
58827
58828         * modules/propername (Notice, configure.ac): Put quoted "..." into
58829         --keyword option.
58830         * lib/propername.h: Update comments accordingly.
58831         Reported by Eric Blake.
58832
58833 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58834
58835         * modules/getpass-gnu (Depends-on): Add fseeko.
58836
58837 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58838
58839         * modules/base64-tests: New file.
58840
58841 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58842
58843         * lib/base64.c (base64_decode_ctx): If a decode context structure
58844         was passed in use it to ignore newlines.  If a context structure
58845         was _not_ passed in, continue to treat newlines as garbage (this
58846         is the historical behavior).  Formerly base64_decode.
58847         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58848         takes a decode context structure.
58849         * lib/base64.h (base64_decode): Macro for four-argument calls.
58850         (base64_decode_alloc): Likewise.
58851         * lib/base64.c (base64_decode_ctx): If a decode context structure
58852         was passed in use it to ignore newlines.  If a context structure
58853         was _not_ passed in, continue to treat newlines as garbage (this
58854         is the historical behavior).  Formerly base64_decode.
58855         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58856         takes a decode context structure.
58857         * lib/base64.h (base64_decode): Macro for four-argument calls.
58858         (base64_decode_alloc): Likewise.
58859
58860 2008-05-19  Jim Meyering  <meyering@redhat.com>
58861
58862         avoid a warning from gcc
58863         * lib/trim.c (IF_LINT): Define.
58864         (trim2): Use it to avoid a "may be used uninitialized" warning.
58865
58866         Fix doc typo.
58867         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58868
58869 2008-05-19  Bruno Haible  <bruno@clisp.org>
58870
58871         * doc/glibc-functions/getpass.texi: Document limits of other
58872         implementations.
58873
58874 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58875             Bruno Haible <bruno@clisp.org>
58876
58877         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58878
58879 2008-05-18  Bruno Haible  <bruno@clisp.org>
58880
58881         * modules/propername: New file, from GNU gettext.
58882         * lib/propername.h: New file, from GNU gettext.
58883         * lib/propername.c: New file, from GNU gettext.
58884         * MODULES.html.sh (Internationalization functions): Add propername.
58885
58886 2008-05-16  Jim Meyering  <meyering@redhat.com>
58887             Bruno Haible  <bruno@clisp.org>
58888
58889         Avoid some warnings from "gcc -Wshadow".
58890         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58891
58892 2008-05-15  Eric Blake  <ebb9@byu.net>
58893
58894         Extend previous patch to cygwin 1.7.0.
58895         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58896         fast implementation in cygwin >= 1.7.0.
58897         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58898         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58899
58900 2008-05-15  Bruno Haible  <bruno@clisp.org>
58901
58902         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58903         implementation in glibc >= 2.9.
58904         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58906
58907 2008-05-15  Bruno Haible  <bruno@clisp.org>
58908
58909         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58910         (Unicode string functions): Add unilbrk/*.
58911         Reported by Karl Berry.
58912
58913 2008-05-15  Eric Blake  <ebb9@byu.net>
58914
58915         Fix violation of <stdbool.h> replacement in regex.
58916         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58917         * lib/regexec.c (re_search_internal): Likewise.
58918         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58919
58920 2008-05-15  Jim Meyering  <meyering@redhat.com>
58921
58922         avoid distracting test output when git or cvs is not found
58923         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58924         * tests/test-vc-list-files-git.sh: Likewise.
58925
58926 2008-05-15  Eric Blake  <ebb9@byu.net>
58927
58928         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58929         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58930         glibc version.
58931         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58932         * doc/posix-functions/strstr.texi (strstr): Likewise.
58933         * lib/str-two-way.h (MAX): Sychronize with glibc.
58934
58935 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58936
58937         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58938         opr.ctx_type.
58939         (calc_first): Initialize constraint field.
58940         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58941         Fix grammar.
58942         (duplicate_node): Merge constraint field for all node types.
58943         (calc_eclosure_iter): Look at constraint field for all node types.
58944         * lib/regex_internal.c (create_cd_newstate): Don't look at
58945         opr.ctx_type.
58946
58947 2008-05-14  Bruno Haible  <bruno@clisp.org>
58948
58949         Help GCC to do better code generation.
58950         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58951         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58952         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58953         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58954         Declare with attribute 'malloc' if supported.
58955
58956 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58957
58958         use "echo STR|wc -c" rather than unportable "expr length STR"
58959         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58960         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58961
58962 2008-05-14  Jim Meyering  <meyering@redhat.com>
58963
58964         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58965         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58966         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58967         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58968         via Collin Lasse.
58969
58970 2008-05-14  Eric Blake  <ebb9@byu.net>
58971
58972         Avoid quadratic growth in gl_LIBSOURCES.
58973         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58974         Suggested by Bruno Haible.
58975
58976         Test xmemdup0.
58977         * modules/xmemdup0-tests: New file.
58978         * tests/test-xmemdup0.c: Likewise.
58979
58980 2008-05-13  Eric Blake  <ebb9@byu.net>
58981
58982         Split xmemdup0 into its own module.
58983         * modules/xmemdup0: New file.
58984         * lib/xmemdup0.h: Likewise.
58985         * lib/xmemdup0.c: Likewise.
58986         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58987         * lib/xalloc.h (xmemdup0): Remove.
58988         * lib/xmalloc.c (xmemdup0): Likewise.
58989
58990 2008-05-13  Eric Blake  <ebb9@byu.net>
58991             Bruno Haible  <bruno@clisp.org>
58992
58993         Reduce number of forks required during autoconf.
58994         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58995         and gl_LIBSOURCES_DIR.
58996         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58997         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58998         m4_syscmd per file.
58999         <m4_foreach_w>: Move...
59000         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59001
59002 2008-05-13  Eric Blake  <ebb9@byu.net>
59003
59004         * gnulib-tool: Fix various comment typos.
59005
59006 2008-05-12  Bruno Haible  <bruno@clisp.org>
59007
59008         Tailor the linebreaking algorithm.
59009         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59010
59011 2008-05-12  Bruno Haible  <bruno@clisp.org>
59012
59013         Update to Unicode 5.0.0.
59014         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59015         LBP_JV, LBP_JT. Redistribute values.
59016         (unilbrk_table): Change size.
59017         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59018         Unicode TR#14 rev. 22.
59019         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59020         LBP_JV, LBP_JT. Redistribute values.
59021         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59022         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59023         Update.
59024         * lib/unilbrk/lbrkprop1.h: Regenerated.
59025         * lib/unilbrk/lbrkprop2.h: Regenerated.
59026         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59027         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59028         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59029         Likewise.
59030         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59031         Likewise.
59032         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59033         result.
59034         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59035         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59036         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59037         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59038         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59039         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59040
59041 2008-05-11  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59044
59045 2008-05-11  Bruno Haible  <bruno@clisp.org>
59046
59047         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59048         * modules/unilbrk/gen-lbrk: New file.
59049
59050 2008-05-11  Bruno Haible  <bruno@clisp.org>
59051
59052         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59053         * m4/sha512.m4 (gl_SHA512): Likewise.
59054
59055 2008-05-11  Jim Meyering  <meyering@redhat.com>
59056
59057         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59058         * modules/crypto/sha256: New file.
59059         * modules/crypto/sha512: Likewise.
59060         * lib/sha256.c: Likewise.
59061         * lib/sha256.h: Likewise.
59062         * lib/sha512.c: Likewise.
59063         * lib/sha512.h: Likewise.
59064         * lib/u64.h: Likewise.
59065         * m4/sha256.m4: Likewise.
59066         * m4/sha512.m4: Likewise.
59067         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59068
59069 2008-05-10  Bruno Haible  <bruno@clisp.org>
59070
59071         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59072         (Input/Output <stdio.h>): Add xprintf.
59073         (Signal handling <signal.h>): Add strsignal.
59074         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59075         (Core language properties): Add func.
59076         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59077         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59078         strings.
59079         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59080         (Input/output): New section.
59081         (File system functions): Add openat-die, stat-macros.
59082         (Networking functions): Add sockets.
59083         (Unicode string functions): Add unictype/*.
59084         (Support for building libraries and executables): Add gperf.
59085         (Support for building documentation): Add agpl-3.0.
59086         (Misc): Add nocrash.
59087
59088 2008-05-10  Bruno Haible  <bruno@clisp.org>
59089
59090         * modules/unictype/gen-ctype: New file.
59091
59092 2008-05-10  Jim Meyering  <meyering@redhat.com>
59093
59094         Make chdir-safer.c more efficient on a system with no symlinks.
59095         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59096         also if ELOOP is zero.  Suggested by Bruno Haible.
59097
59098         Make chdir-safer.c slightly safer.
59099         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59100         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59101
59102         Avoid compile failure on systems without ELOOP (like mingw).
59103         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59104         Reported by Bruno Haible.
59105
59106 2008-05-10  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59109         (is_utf8_encoding): Use a case-insensitive comparison.
59110         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59111         streq.
59112
59113 2008-05-10  Bruno Haible  <bruno@clisp.org>
59114
59115         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59116         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59117         * lib/unilbrk/ulc-common.h (iconv_string_length,
59118         iconv_string_keeping_offsets): Remove declarations.
59119         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59120         Don't include <iconv.h>, streq.h, xsize.h.
59121         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59122         conversion.
59123         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59124         <iconv.h>, streq.h, xsize.h.
59125         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59126         conversion.
59127         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59128         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59129         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59130         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59131
59132 2008-05-10  Bruno Haible  <bruno@clisp.org>
59133
59134         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59135         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59136
59137         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59138         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59139
59140         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59141         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59142
59143         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59144         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59145
59146         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59147         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59148
59149         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59150         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59151
59152         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59153         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59154
59155         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59156         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59157
59158 2008-05-10  Bruno Haible  <bruno@clisp.org>
59159
59160         Split up 'linebreak' module.
59161         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59162         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59163         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59164         modifications.
59165         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59166         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59167         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59168         lib/linebreak.c.
59169         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59170         lib/linebreak.c.
59171         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59172         lib/linebreak.c.
59173         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59174         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59175         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59176         lib/linebreak.c.
59177         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59178         lib/linebreak.c.
59179         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59180         lib/linebreak.c.
59181         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59182         lib/linebreak.c.
59183         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59184         lib/linebreak.c.
59185         * modules/unilbrk/base: New file.
59186         * modules/unilbrk/tables: New file.
59187         * modules/unilbrk/u8-possible-linebreaks: New file.
59188         * modules/unilbrk/u16-possible-linebreaks: New file.
59189         * modules/unilbrk/u32-possible-linebreaks: New file.
59190         * modules/unilbrk/ulc-common: New file.
59191         * modules/unilbrk/ulc-possible-linebreaks: New file.
59192         * modules/unilbrk/u8-width-linebreaks: New file.
59193         * modules/unilbrk/u16-width-linebreaks: New file.
59194         * modules/unilbrk/u32-width-linebreaks: New file.
59195         * modules/unilbrk/ulc-width-linebreaks: New file.
59196         * lib/linebreak.h: Remove file.
59197         * lib/linebreak.c: Remove file.
59198         * m4/linebreak.m4: Remove file.
59199         * modules/linebreak: Remove file.
59200         * NEWS: Mention the changes.
59201
59202 2008-05-09  Eric Blake  <ebb9@byu.net>
59203
59204         Add xmemdup0.
59205         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59206         implementation.
59207         * lib/xmalloc.c (xmemdup0): New C implementation.
59208
59209 2008-05-08  Bruno Haible  <bruno@clisp.org>
59210
59211         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59212
59213 2008-05-07  Eric Blake  <ebb9@byu.net>
59214
59215         Support cross-compilation of <wctype.h>.
59216         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59217         AC_CACHE_CHECK.
59218
59219 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59220
59221         * build-aux/vc-list-files: Add support for bzr.
59222
59223 2008-05-03  Jim Meyering  <meyering@redhat.com>
59224
59225         avoid failed assertion with tight malloc
59226         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59227
59228 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59229
59230         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59231         are needed from arpa/inet.h.
59232         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59233         Reported by Bruno Haible.
59234
59235 2008-05-02  Jim Meyering  <meyering@redhat.com>
59236
59237         avoid compilation error on FreeBSD 6
59238         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59239
59240 2008-05-01  Jim Meyering  <meyering@redhat.com>
59241
59242         useless-if-before-free: correct --help's exit status description
59243         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59244         for one or more matches, etc.  Reported by Bruno Haible.
59245
59246         vc-list-files: make the stand-alone gnulib test work
59247         * modules/vc-list-files-tests (configure.ac):
59248         Define and AC_SUBST abs_aux_dir.
59249         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59250         $(abs_top_srcdir) to each script and having each of them
59251         duplicate the work of setting PATH, set PATH here, using
59252         the new variable, abs_aux_dir instead.
59253         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59254         * tests/test-vc-list-files-git.sh: Likewise.
59255         Reported by Bruno Haible.
59256
59257 2008-05-01  Bruno Haible  <bruno@clisp.org>
59258
59259         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59260         reallocation. Rename 'done' to 'found_delimiter'.
59261
59262 2008-05-01  Jim Meyering  <meyering@redhat.com>
59263
59264         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59265         * build-aux/vc-list-files: Use `...`, not $(...).
59266
59267 2008-04-30  Jim Meyering  <meyering@redhat.com>
59268
59269         add tests for vc-list-files
59270         * modules/vc-list-files-tests: New module.
59271         * tests/test-vc-list-files-cvs.sh: New file.
59272         * tests/test-vc-list-files-git.sh: New file.
59273
59274         avoid a warning from gcc
59275         * lib/getndelim2.c (IF_LINT): Define.
59276         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59277
59278         vc-list-files: work properly with build-aux/cvsu, too
59279         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59280         to all cvs-based clauses.
59281
59282         vc-list-files: work properly in the CVS+awk case, too
59283         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59284
59285         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59286         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59287         take more than one file argument, so .  Add quotes, just in case $dir
59288         ever contains a shell meta-character.  Prompted by Soren Hansen in
59289         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59290
59291 2008-04-29  Eric Blake  <ebb9@byu.net>
59292
59293         Optimize getndelim2 to use block operations when possible.
59294         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59295         freadseek, and memchr2.
59296         * lib/getndelim2.c (getndelim2): Use them for block reads.
59297
59298 2008-04-29  Bruno Haible  <bruno@clisp.org>
59299
59300         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59301         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59302         * modules/inet_ntop (Depends-on): Add extensions.
59303         * modules/inet_pton (Depends-on): Likewise.
59304         Reported by Simon Josefsson.
59305
59306 2008-04-29  Jim Meyering  <meyering@redhat.com>
59307
59308         When the is more than one match in a block, match all of them.
59309         * build-aux/useless-if-before-free: Iterate through each block
59310         until there are no more matches.
59311
59312         Fix broken useless-if-before-free script.
59313         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59314         the expression to match cast of argument to free-like function.
59315
59316 2008-04-29  Eric Blake  <ebb9@byu.net>
59317
59318         Use new header.
59319         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59320
59321 2008-04-29  Jim Meyering  <meyering@redhat.com>
59322
59323         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59324         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59325         by gnulib to exist and to declare e.g., inet_ntop.
59326         Don't include "inet_ntop.h", now removed.
59327
59328         * m4/arpa_inet_h.m4: Remove trailing blanks.
59329
59330 2008-04-29  Eric Blake  <ebb9@byu.net>
59331
59332         Silence valgrind on safe reads beyond potential array bounds.
59333         * lib/rawmemchr.valgrind: New file.
59334         * lib/strchrnul.valgrind: Likewise.
59335         * modules/rawmemchr (Files): Distribute new file.
59336         * modules/strchrnul (Files): Likewise.
59337         Suggested by Bruno Haible.
59338
59339 2008-04-29  Bruno Haible  <bruno@clisp.org>
59340
59341         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59342         (inet_ntop, inet_pton): Change portability warning's wording.
59343         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59344         Invoke gl_CHECK_NEXT_HEADERS.
59345         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59346         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59347         set ARPA_INET_H.
59348         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59349         * modules/arpa_inet (Description): No longer only for systems that
59350         lack it.
59351         (Depends-on): Add include_next.
59352         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59353         HAVE_ARPA_INET_H.
59354
59355 2008-04-29  Jim Meyering  <meyering@redhat.com>
59356
59357         * modules/mkdir (License): Re-license as LGPLv2+.
59358
59359 2008-04-29  Bruno Haible  <bruno@clisp.org>
59360
59361         * modules/rawmemchr (Maintainer): Set to Eric.
59362         * modules/strchrnul (Maintainer): Likewise.
59363
59364 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59365
59366         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59367         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59368
59369         * modules/arpa_inet (arpa/inet.h): Use them.
59370
59371 2008-04-28  Eric Blake  <ebb9@byu.net>
59372
59373         Test getndelim2.
59374         * modules/getndelim2-tests: New file.
59375         * tests/test-getndelim2.c: Likewise.
59376         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59377         stream.
59378         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59379
59380         * MODULES.html.sh: Document new module.
59381
59382 2008-04-20  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/c-stack.c (die): Use raise.
59385         * modules/c-stack (Depends-on): Add raise.
59386
59387 2008-04-28  Bruno Haible  <bruno@clisp.org>
59388
59389         Expect rpmatch to be declared.
59390         * lib/yesno.c (rpmatch): Remove declaration.
59391
59392         Declare rpmatch.
59393         * lib/stdlib.in.h (rpmatch): New declaration.
59394         * lib/rpmatch.c: Include <stdlib.h> first.
59395         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59396         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59398         HAVE_RPMATCH.
59399         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59400         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59401         (Include): Set to <stdlib.h>.
59402         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59403         HAVE_RPMATCH.
59404         * NEWS: Document the change.
59405
59406 2008-04-28  Bruno Haible  <bruno@clisp.org>
59407
59408         Change rpmatch to use nl_langinfo when appropriate.
59409         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59410         (N_): New macro.
59411         (localized_pattern): New function/macro.
59412         (try): Remove match, nomatch arguments. Copy the pattern into safe
59413         memory before caching it.
59414         (rpmatch): Use localized_pattern. Add translator comments.
59415         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59416         Suggested by Eric Blake.
59417         * modules/rpmatch (Depends-on): Add stdbool.
59418
59419 2008-04-28  Eric Blake  <ebb9@byu.net>
59420
59421         Add rawmemchr module, matching glibc.
59422         * modules/string (Makefile.am): New indicator.
59423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59424         * lib/string.in.h (rawmemchr): Declare when appropriate.
59425         * modules/rawmemchr: New file.
59426         * m4/rawmemchr.m4: Likewise.
59427         * lib/rawmemchr.c: Likewise.
59428         * modules/rawmemchr-tests: Likewise.
59429         * tests/test-rawmemchr.c: Likewise.
59430         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59431         module.
59432         * modules/strchrnul (Depends-on): Add rawmemchr.
59433         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59434
59435         Whitespace cleanup.
59436         * tests/test-strchrnul.c: Reindent.
59437         * lib/strchrnul.c: Likewise.
59438
59439         Optimize and test strchrnul.
59440         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59441         * modules/strchrnul-tests: New file.
59442         * tests/test-strchrnul.c: Likewise.
59443
59444         Remove intprops dependency.
59445         * modules/memchr (Depends-on): Remove intprops.
59446         * modules/memrchr (Depends-on): Likewise.
59447         * modules/memchr2 (Depends-on): Likewise.
59448         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59449         * lib/memrchr.c (__memrchr): Likewise.
59450         * lib/memrchr2.c (memchr2): Likewise.
59451         Reported by Simon Josefsson.
59452
59453 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59454
59455         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59456         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59457
59458 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59459
59460         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59461
59462         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59463
59464         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59465
59466         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59467         declarations.
59468         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59469
59470         * m4/inet_pton.m4: Don't check for header files.
59471
59472         * m4/inet_ntop.m4: Don't check for header files.
59473
59474 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59475
59476         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59477         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59478         trigger for cygwin).
59479         Reported by Bruno Haible  <bruno@clisp.org>.
59480
59481 2008-04-28  Bruno Haible  <bruno@clisp.org>
59482
59483         * doc/posix-functions/strdup.texi: Mention mingw problem.
59484
59485 2008-04-27  Bruno Haible  <bruno@clisp.org>
59486
59487         * modules/stat-time-tests (Depends-on): Add sleep.
59488         * tests/test-stat-time.c (force_unlink): New function.
59489         (cleanup): Use it.
59490         (test_mtime): Remove the ctime related tests.
59491         (test_ctime): New function, containing the ctime related tests.
59492         (main): Call test_ctime, except on native Windows platforms.
59493
59494 2008-04-27  Bruno Haible  <bruno@clisp.org>
59495
59496         * lib/rpmatch.c (rpmatch): Add some comments.
59497         Reported by James Youngman <jay@gnu.org>.
59498
59499 2008-04-27  Bruno Haible  <bruno@clisp.org>
59500
59501         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59502         quiet NaNs.
59503
59504 2008-04-27  Bruno Haible  <bruno@clisp.org>
59505
59506         Make test-yesno.sh work on mingw.
59507         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59508         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59509         (main): Set stdin to binary mode.
59510         * modules/yesno-tests (Depends-on): Add binary-io.
59511
59512 2008-04-27  Bruno Haible  <bruno@clisp.org>
59513
59514         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59515         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59516         argument that lie outside the IEEE 854 domain.
59517         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59518         (gl_ISFINITE): Use it.
59519         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59520
59521 2008-04-27  Bruno Haible  <bruno@clisp.org>
59522
59523         Allow local renaming in config.h.
59524         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59525
59526 2008-04-27  Bruno Haible  <bruno@clisp.org>
59527
59528         * lib/memchr.c (__memchr): Change type of 'i'.
59529         * lib/memchr2.c (memchr2): Likewise.
59530
59531 2008-04-26  Eric Blake  <ebb9@byu.net>
59532         and Bruno Haible  <bruno@clisp.org>
59533
59534         Optimize and test memrchr.
59535         * modules/memrchr (Depends-on): Add intprops.
59536         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59537         * modules/memrchr-tests: New file.
59538         * tests/test-memrchr.c: New file.
59539
59540 2008-04-26  Bruno Haible  <bruno@clisp.org>
59541
59542         Add tentative support for DragonFly BSD.
59543         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59544         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59545         fp.
59546         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59547         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59548         * lib/fpurge.c (fpurge): Likewise.
59549         * lib/freadable.c (freaadable): Likewise.
59550         * lib/freadahead.c (freadahead): Likewise.
59551         * lib/freading.c (freading): Likewise.
59552         * lib/freadptr.c (freadptr): Likewise.
59553         * lib/freadseek.c (freadptrinc): Likewise.
59554         * lib/fseeko.c (fseeko): Likewise.
59555         * lib/fseterr.c (fseterr): Likewise.
59556         * lib/fwritable.c (fwritable): Likewise.
59557         * lib/fwriting.c (fwriting): Likewise.
59558
59559 2008-04-26  Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/stdio-impl.h: New file.
59562         * lib/fbufmode.c: Include stdio-impl.h.
59563         (fbufmode): Use fp_, remove redundant #defines.
59564         * lib/fflush.c: Include stdio-impl.h.
59565         (clear_ungetc_buffer): Remove redundant #defines.
59566         * lib/fpurge.c: Include stdio-impl.h.
59567         (fpurge): Remove redundant #defines.
59568         * lib/freadable.c: Include stdio-impl.h.
59569         (freadable): Remove redundant #defines.
59570         * lib/freadahead.c: Include stdio-impl.h.
59571         (freadahead): Remove redundant #defines.
59572         * lib/freading.c: Include stdio-impl.h.
59573         (freading): Remove redundant #defines.
59574         * lib/freadptr.c: Include stdio-impl.h.
59575         (freadptr): Remove redundant #defines.
59576         * lib/freadseek.c: Include stdio-impl.h.
59577         (freadptrinc): Remove redundant #defines.
59578         * lib/fseeko.c: Include stdio-impl.h.
59579         (rpl_fseeko): Remove redundant #defines.
59580         * lib/fseterr.c: Include stdio-impl.h.
59581         (fseterr): Remove redundant #defines.
59582         * lib/fwritable.c: Include stdio-impl.h.
59583         (fwritable: Remove redundant #defines.
59584         * lib/fwriting.c: Include stdio-impl.h.
59585         (fwriting): Remove redundant #defines.
59586         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59587         * modules/fflush (Files): Likewise.
59588         * modules/fpurge (Files): Likewise.
59589         * modules/freadable (Files): Likewise.
59590         * modules/freadahead (Files): Likewise.
59591         * modules/freading (Files): Likewise.
59592         * modules/freadptr (Files): Likewise.
59593         * modules/freadseek (Files): Likewise.
59594         * modules/fseeko (Files): Likewise.
59595         * modules/fseterr (Files): Likewise.
59596         * modules/fwritable (Files): Likewise.
59597         * modules/fwriting (Files): Likewise.
59598
59599 2008-04-26  Bruno Haible  <bruno@clisp.org>
59600
59601         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59602         restore_seek_optimization, update_fpos_cache): New functions, extracted
59603         from rpl_fflush.
59604         (rpl_fflush): Use them.
59605         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59606         (gl_REPLACE_FFLUSH): Use it.
59607
59608 2008-04-26  Bruno Haible  <bruno@clisp.org>
59609
59610         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59611         on Solaris.
59612         * tests/test-xstrtoimax.sh: Likewise.
59613         * tests/test-xstrtoumax.sh: Likewise.
59614         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59615
59616 2008-04-26  Bruno Haible  <bruno@clisp.org>
59617
59618         * modules/memchr-tests: New file.
59619         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59620
59621 2008-04-26  Eric Blake  <ebb9@byu.net>
59622             Bruno Haible  <bruno@clisp.org>
59623
59624         * lib/memchr.c: Include intprops.h.
59625         (__memchr): Optimize parallel detection of matching bytes. Rename local
59626         variables. Add explanatory comments.
59627
59628 2008-04-26  Bruno Haible  <bruno@clisp.org>
59629
59630         Fix module 'memchr', broken since 2000-10-28.
59631         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59632
59633 2008-04-26  Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59636         comments.
59637
59638 2008-04-25  Eric Blake  <ebb9@byu.net>
59639
59640         Use native fstatat on cygwin 1.7.0.
59641         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59642         first.
59643
59644 2008-04-23  Eric Blake  <ebb9@byu.net>
59645
59646         Improve memchr2 performance.
59647         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59648         NUL bytes.
59649         * modules/memchr2 (Depends-on): Use intprops.h.
59650
59651 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59652
59653         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59654         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59655         <blp@cs.stanford.edu>.
59656
59657 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59658
59659         * lib/arpa_inet.in.h: New file.
59660
59661         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59662         (Makefile.am): Sed in substitute header file.
59663
59664         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59665         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59666
59667         * modules/inet_ntop (configure.ac): Use
59668         gl_ARPA_INET_MODULE_INDICATOR.
59669
59670         * modules/inet_pton (configure.ac): Use
59671         gl_ARPA_INET_MODULE_INDICATOR.
59672
59673 2008-04-22  Jim Meyering  <meyering@redhat.com>
59674
59675         * modules/verify (License): Re-license as LGPLv2+.
59676
59677 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59678
59679         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59680         parameter to void* as per POSIX standard (MinGW uses char*).
59681
59682 2008-04-21  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59685         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59686         Define to replacements if REPLACE_ISWCNTRL is 1.
59687         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59688         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59689         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59690         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59691         what it fixes.
59692         * doc/posix-functions/iswalpha.texi: Likewise.
59693         * doc/posix-functions/iswblank.texi: Likewise.
59694         * doc/posix-functions/iswcntrl.texi: Likewise.
59695         * doc/posix-functions/iswdigit.texi: Likewise.
59696         * doc/posix-functions/iswgraph.texi: Likewise.
59697         * doc/posix-functions/iswlower.texi: Likewise.
59698         * doc/posix-functions/iswprint.texi: Likewise.
59699         * doc/posix-functions/iswpunct.texi: Likewise.
59700         * doc/posix-functions/iswspace.texi: Likewise.
59701         * doc/posix-functions/iswupper.texi: Likewise.
59702         * doc/posix-functions/iswxdigit.texi: Likewise.
59703         Reported by Alain Guibert.
59704
59705 2008-04-21  Bruno Haible  <bruno@clisp.org>
59706
59707         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59708         Patch by Alain Guibert.
59709
59710 2008-04-21  Bruno Haible  <bruno@clisp.org>
59711
59712         Fix test failures on mingw.
59713         * tests/test-xstrtol.c (print_no_progname): New function.
59714         (main): Install it in error_print_progname hook.
59715         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59716         * tests/test-xstrtoimax.sh: Likewise.
59717         * tests/test-xstrtoumax.sh: Likewise.
59718
59719 2008-04-21  Bruno Haible  <bruno@clisp.org>
59720
59721         Fix test failure on mingw.
59722         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59723
59724 2008-04-21  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59727         Actually assign a value.
59728
59729 2008-04-20  Bruno Haible  <bruno@clisp.org>
59730
59731         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59732         take 2.
59733         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59734         'canonicalize-lgpl' module is also used.
59735         * lib/canonicalize-lgpl.c: Undo last change.
59736         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59737
59738 2008-04-20  Bruno Haible  <bruno@clisp.org>
59739
59740         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59741         config.h. Provide _mkdir based fallback for mingw.
59742         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59743         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59744         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59745         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59746         rather than defining mkdir in config.h.
59747         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59748         (gl_SYS_STAT_H_DEFAULTS): New macro.
59749         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59750         HAVE_IO_H any more.
59751         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59752         HAVE_DECL_MKDIR and HAVE_IO_H.
59753
59754 2008-04-20  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/isapipe.c: Port to native Windows platforms.
59757
59758 2008-04-20  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59761
59762 2008-04-21  Eric Blake  <ebb9@byu.net>
59763
59764         Work around preprocessors that don't handle UINTMAX_MAX.
59765         * lib/memchr2.c (memchr2): Avoid embedded #if.
59766         Reported by Alain Guibert, fix suggested by Bruno Haible.
59767
59768 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59769
59770         * doc/posix-functions/strftime.texi (strftime): Explain better
59771         Windows incompatibility.  Suggested by Micah Cowan
59772         <micah@cowan.name>.
59773
59774 2008-04-20  Bruno Haible  <bruno@clisp.org>
59775
59776         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59777         unistr/u8-mblen.
59778
59779 2008-04-20  Bruno Haible  <bruno@clisp.org>
59780
59781         Fix test failure on platforms with non-GNU iconv.
59782         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59783         (U_TO_U8): Use it, rather than u16_to_u8.
59784         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59785         units at the end of the input string.
59786         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59787
59788 2008-04-20  Bruno Haible  <bruno@clisp.org>
59789
59790         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59791         when the resulting length is 0.
59792         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59793
59794 2008-04-20  Bruno Haible  <bruno@clisp.org>
59795
59796         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59797         works.
59798         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59799
59800 2008-04-20  Bruno Haible  <bruno@clisp.org>
59801
59802         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59803         * modules/tsearch-tests (configure.ac): Test for initstate function.
59804
59805 2008-04-20  Bruno Haible  <bruno@clisp.org>
59806
59807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59808         for nlink_t if missing.
59809         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59810
59811 2008-04-19  Bruno Haible  <bruno@clisp.org>
59812
59813         Work around snprintf bug on Linux libc5.
59814         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59816         gl_SNPRINTF_SIZE1.
59817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59818         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59819         that test failed.
59820         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59821         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59822         * modules/snprintf (Files): Add m4/printf.m4.
59823         * modules/vsnprintf (Files): Likewise.
59824         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59825         * doc/posix-functions/vsnprintf.texi: Likewise.
59826
59827 2008-04-19  Bruno Haible  <bruno@clisp.org>
59828
59829         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59830         from 0.0058 to less than 10^-7.
59831
59832 2008-04-19  Bruno Haible  <bruno@clisp.org>
59833
59834         Fix rounding when a precision is given.
59835         * lib/vasnprintf.c (is_borderline): New function.
59836         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59837         9...9x.
59838         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59839         %e, %g.
59840         * tests/test-vasprintf-posix.c (test_function): Likewise.
59841         * tests/test-snprintf-posix.h (test_function): Likewise.
59842         * tests/test-sprintf-posix.h (test_function): Likewise.
59843         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59844         * tests/test-printf-posix.h (test_function): Likewise.
59845         * tests/test-printf-posix.output: Update.
59846         Reported by John Darrington <john@darrington.wattle.id.au> via
59847         Ben Pfaff <blp@cs.stanford.edu>.
59848
59849 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59850
59851         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59852         Suggested by Bruno Haible <bruno@clisp.org>.
59853
59854 2008-04-17  Bruno Haible  <bruno@clisp.org>
59855
59856         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59857         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59858         implementation.
59859         Patch by Bruce Merry <bmerry@gmail.com>.
59860
59861 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59862
59863         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59864         doesn't work under Windows.
59865
59866 2008-04-16  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59869         New macros.
59870         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59871         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59872         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59873         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59874         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59875         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59876         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59877         macros.
59878         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59879         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59880         Northern Sotho, Uighur.
59881
59882 2008-04-16  Bruno Haible  <bruno@clisp.org>
59883
59884         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59885         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59886         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59887         Reported by Daniel Bergström <daniel@octocode.com>.
59888
59889 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59890             Bruno Haible  <bruno@clisp.org>
59891
59892         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59893         function.
59894         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59895         New functions, mostly extracted from gl_locale_name_default.
59896         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59897
59898 2008-04-16  Eric Blake  <ebb9@byu.net>
59899
59900         Adjust strtod detection to catch glibc 2.7 bug.
59901         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59902         Reported by John Gatewood Ham.
59903
59904 2008-04-16  Bruno Haible  <bruno@clisp.org>
59905
59906         Add tentative support for Linux libc5.
59907         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59908         * lib/fpurge.c (fpurge): Likewise.
59909         * lib/freadable.c (freadable): Likewise.
59910         * lib/freadahead.c (freadahead): Likewise.
59911         * lib/freading.c (freading): Likewise.
59912         * lib/freadptr.c (freadptr): Likewise.
59913         * lib/freadseek.c (freadptrinc): Likewise.
59914         * lib/fseeko.c (rpl_fseeko): Likewise.
59915         * lib/fseterr.c (fseterr): Likewise.
59916         * lib/fwritable.c (fwritable): Likewise.
59917         * lib/fwriting.c (fwriting): Likewise.
59918         Reported by Alain Guibert <alguibert+bts@free.fr>.
59919
59920 2008-04-15  Bruno Haible  <bruno@clisp.org>
59921
59922         * modules/mathl (configure.ac): Define module indicator.
59923
59924 2008-04-15  Bruno Haible  <bruno@clisp.org>
59925
59926         * lib/logl.c (logl): Remove unused variables.
59927
59928 2008-04-15  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59931         fails.
59932
59933 2008-04-15  Bruno Haible  <bruno@clisp.org>
59934
59935         * lib/trim.c (trim2): Fix argument of isspace() macro.
59936
59937 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59938
59939         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59940         to 0.
59941         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59942
59943 2008-04-14  Bruno Haible  <bruno@clisp.org>
59944
59945         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59946         AC_LANG_PROGRAM argument.
59947         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59948         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59950         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59951         * m4/math_h.m4 (gl_MATH_H): Likewise.
59952         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59953         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59954         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59955         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59956         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59957         * m4/regex.m4 (gl_REGEX): Likewise.
59958         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59959         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59961         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59962         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59963         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59964         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59965         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59966
59967 2008-04-14  Jim Meyering  <meyering@redhat.com>
59968
59969         test-strtod: fix typos: s/abs/fabs/
59970         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59971
59972 2008-04-13  Bruno Haible  <bruno@clisp.org>
59973
59974         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59975         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59976         module is also used and while not building the reloc-wrapper.
59977
59978 2008-04-13  Bruno Haible  <bruno@clisp.org>
59979
59980         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59981
59982 2008-04-13  Bruno Haible  <bruno@clisp.org>
59983
59984         Fix AIX compilation failure introduced on 2008-04-02.
59985         * tests/test-frexp.c (exp): Undefine before redefining.
59986         * tests/test-frexpl.c (exp): Likewise.
59987
59988 2008-04-13  Bruno Haible  <bruno@clisp.org>
59989
59990         Work around a HP-UX stdio bug.
59991         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59992         * tests/test-ftello.c (main): Likewise.
59993         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59994         * doc/posix-functions/ftello.texi: Likewise.
59995
59996 2008-04-13  Bruno Haible  <bruno@clisp.org>
59997
59998         Make test-signbit pass on HP-UX/hppa.
59999         * tests/test-signbit.c (minus_zerol): New variable.
60000         (test_signbitl): Use it.
60001
60002 2008-04-13  Bruno Haible  <bruno@clisp.org>
60003
60004         Make truncl work on OSF/1 4.0.
60005         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60006         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60007         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60009         HAVE_DECL_TRUNCL.
60010         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60011         HAVE_DECL_TRUNCL.
60012         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60013
60014 2008-04-13  Bruno Haible  <bruno@clisp.org>
60015
60016         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60017
60018 2008-04-13  Bruno Haible  <bruno@clisp.org>
60019
60020         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60021         expression, so as to avoid HP-UX 11 cc compiler bug.
60022
60023 2008-04-13  Bruno Haible  <bruno@clisp.org>
60024
60025         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60026
60027 2008-04-13  Bruno Haible  <bruno@clisp.org>
60028
60029         * lib/git-merge-changelog.c: Remove empty declaration outside of
60030         functions.
60031
60032 2008-04-13  Bruno Haible  <bruno@clisp.org>
60033
60034         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60035
60036 2008-04-13  Bruno Haible  <bruno@clisp.org>
60037
60038         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60039         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60040         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60041         also if it exists but lacks definitions of the SHUT_* macros.
60042         * modules/sys_socket (Description): Update.
60043         Reported by Elbert Pol <e.pol@chello.nl>.
60044
60045 2008-04-13  Bruno Haible  <bruno@clisp.org>
60046
60047         * lib/localcharset.c (OS2): Don't redefine if already defined.
60048         Reported by Elbert Pol <e.pol@chello.nl>.
60049
60050 2008-04-13  Bruno Haible  <bruno@clisp.org>
60051
60052         * lib/binary-io.h [__EMX__]: Include <io.h>.
60053         Reported by Elbert Pol <e.pol@chello.nl>.
60054
60055 2008-04-12  Bruno Haible  <bruno@clisp.org>
60056
60057         * lib/fpucw.h: Enable the definitions also for x86_64.
60058         Needed for NetBSD/x86_64.
60059         Reported by Thomas Klausner <tk@giga.or.at>.
60060
60061 2008-04-12  Bruno Haible  <bruno@clisp.org>
60062
60063         * tests/test-strtod.c: Include isnand.h.
60064         (main): Use isnand instead of isnan.
60065         Reported by Jim Meyering.
60066
60067 2008-04-12  Bruno Haible  <bruno@clisp.org>
60068
60069         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60070         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60071
60072 2008-04-12  Jim Meyering  <meyering@redhat.com>
60073
60074         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60075
60076 2008-04-12  Bruno Haible  <bruno@clisp.org>
60077
60078         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60079         Reported by Elbert Pol <e.pol@chello.nl>.
60080
60081 2008-04-12  Eric Blake  <ebb9@byu.net>
60082
60083         Work around Solaris 10 math.h bug.
60084         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60085         (gl_MATH_H_DEFAULTS): Set up default.
60086         * modules/math (Makefile.am): Replace new indicators.
60087         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60088         * tests/test-math.c (main): Test this.
60089         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60090         * doc/posix-headers/math.texi (math.h): Mention bug.
60091         Reported by Nelson H. F. Beebe and Jim Meyering.
60092
60093 2008-04-11  Bruno Haible  <bruno@clisp.org>
60094
60095         Adapt to future versions of Apple GCC.
60096         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60097         Reported by Peter O'Gorman <peter@pogma.com>.
60098
60099 2008-04-11  Bruno Haible  <bruno@clisp.org>
60100
60101         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60102
60103 2008-04-11  Bruno Haible  <bruno@clisp.org>
60104
60105         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60106
60107         * modules/getaddrinfo-tests (Makefile.am): Define
60108         test_getaddrinfo_LDADD.
60109
60110 2008-04-11  Bruno Haible  <bruno@clisp.org>
60111
60112         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60113         (init): Fix syntax error.
60114         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60115         is declared.
60116
60117 2008-04-11  Bruno Haible  <bruno@clisp.org>
60118
60119         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60120         * modules/glob (Depends-on): Add stdbool.
60121
60122 2008-04-11  Bruno Haible  <bruno@clisp.org>
60123
60124         * lib/trim.c: Include <string.h>.
60125
60126 2008-04-11  Eric Blake  <ebb9@byu.net>
60127
60128         Avoid compile failure on OS/2.
60129         * lib/regex_internal.h (internal_function): Disable optimization
60130         on OS/2 (__EMX__), where it caused compiler error.
60131         Reported by Elbert Pol.
60132
60133 2008-04-11  Bruno Haible  <bruno@clisp.org>
60134
60135         Flush the standard error stream before aborting. Needed on mingw.
60136         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60137         * tests/test-array_list.c (ASSERT): Likewise.
60138         * tests/test-array_oset.c (ASSERT): Likewise.
60139         * tests/test-avltree_list.c (ASSERT): Likewise.
60140         * tests/test-avltree_oset.c (ASSERT): Likewise.
60141         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60142         * tests/test-binary-io.c (ASSERT): Likewise.
60143         * tests/test-byteswap.c (ASSERT): Likewise.
60144         * tests/test-c-ctype.c (ASSERT): Likewise.
60145         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60146         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60147         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60148         * tests/test-c-strstr.c (ASSERT): Likewise.
60149         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60150         * tests/test-canonicalize.c (ASSERT): Likewise.
60151         * tests/test-carray_list.c (ASSERT): Likewise.
60152         * tests/test-ceilf1.c (ASSERT): Likewise.
60153         * tests/test-ceilf2.c (ASSERT): Likewise.
60154         * tests/test-ceill.c (ASSERT): Likewise.
60155         * tests/test-count-one-bits.c (ASSERT): Likewise.
60156         * tests/test-fbufmode.c (ASSERT): Likewise.
60157         * tests/test-fflush2.c (ASSERT): Likewise.
60158         * tests/test-floorf1.c (ASSERT): Likewise.
60159         * tests/test-floorf2.c (ASSERT): Likewise.
60160         * tests/test-floorl.c (ASSERT): Likewise.
60161         * tests/test-fopen.c (ASSERT): Likewise.
60162         * tests/test-fpending.c (ASSERT): Likewise.
60163         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60164         * tests/test-fpurge.c (ASSERT): Likewise.
60165         * tests/test-freadable.c (ASSERT): Likewise.
60166         * tests/test-freadahead.c (ASSERT): Likewise.
60167         * tests/test-freading.c (ASSERT): Likewise.
60168         * tests/test-freadptr.c (ASSERT): Likewise.
60169         * tests/test-freadptr2.c (ASSERT): Likewise.
60170         * tests/test-freadseek.c (ASSERT): Likewise.
60171         * tests/test-freopen.c (ASSERT): Likewise.
60172         * tests/test-frexp.c (ASSERT): Likewise.
60173         * tests/test-frexpl.c (ASSERT): Likewise.
60174         * tests/test-fseek.c (ASSERT): Likewise.
60175         * tests/test-fseeko.c (ASSERT): Likewise.
60176         * tests/test-fstrcmp.c (ASSERT): Likewise.
60177         * tests/test-ftell.c (ASSERT): Likewise.
60178         * tests/test-ftello.c (ASSERT): Likewise.
60179         * tests/test-func.c (ASSERT): Likewise.
60180         * tests/test-fwritable.c (ASSERT): Likewise.
60181         * tests/test-fwriting.c (ASSERT): Likewise.
60182         * tests/test-getdelim.c (ASSERT): Likewise.
60183         * tests/test-getline.c (ASSERT): Likewise.
60184         * tests/test-i-ring.c (ASSERT): Likewise.
60185         * tests/test-iconv-utf.c (ASSERT): Likewise.
60186         * tests/test-iconv.c (ASSERT): Likewise.
60187         * tests/test-isfinite.c (ASSERT): Likewise.
60188         * tests/test-isnand.c (ASSERT): Likewise.
60189         * tests/test-isnanf.c (ASSERT): Likewise.
60190         * tests/test-isnanl.h (ASSERT): Likewise.
60191         * tests/test-ldexpl.c (ASSERT): Likewise.
60192         * tests/test-linked_list.c (ASSERT): Likewise.
60193         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60194         * tests/test-localename.c (ASSERT): Likewise.
60195         * tests/test-lseek.c (ASSERT): Likewise.
60196         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60197         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60198         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60199         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60200         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60201         * tests/test-mbschr.c (ASSERT): Likewise.
60202         * tests/test-mbscspn.c (ASSERT): Likewise.
60203         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60204         * tests/test-mbspbrk.c (ASSERT): Likewise.
60205         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60206         * tests/test-mbsrchr.c (ASSERT): Likewise.
60207         * tests/test-mbsspn.c (ASSERT): Likewise.
60208         * tests/test-mbsstr1.c (ASSERT): Likewise.
60209         * tests/test-mbsstr2.c (ASSERT): Likewise.
60210         * tests/test-mbsstr3.c (ASSERT): Likewise.
60211         * tests/test-memchr2.c (ASSERT): Likewise.
60212         * tests/test-memmem.c (ASSERT): Likewise.
60213         * tests/test-open.c (ASSERT): Likewise.
60214         * tests/test-printf-frexp.c (ASSERT): Likewise.
60215         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60216         * tests/test-printf-posix.c (ASSERT): Likewise.
60217         * tests/test-quotearg.c (ASSERT): Likewise.
60218         * tests/test-rbtree_list.c (ASSERT): Likewise.
60219         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60220         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60221         * tests/test-round1.c (ASSERT): Likewise.
60222         * tests/test-roundf1.c (ASSERT): Likewise.
60223         * tests/test-roundl.c (ASSERT): Likewise.
60224         * tests/test-signbit.c (ASSERT): Likewise.
60225         * tests/test-sleep.c (ASSERT): Likewise.
60226         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60227         * tests/test-snprintf.c (ASSERT): Likewise.
60228         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60229         * tests/test-stat-time.c (ASSERT): Likewise.
60230         * tests/test-strcasestr.c (ASSERT): Likewise.
60231         * tests/test-strerror.c (ASSERT): Likewise.
60232         * tests/test-striconv.c (ASSERT): Likewise.
60233         * tests/test-striconveh.c (ASSERT): Likewise.
60234         * tests/test-striconveha.c (ASSERT): Likewise.
60235         * tests/test-strsignal.c (ASSERT): Likewise.
60236         * tests/test-strstr.c (ASSERT): Likewise.
60237         * tests/test-strtod.c (ASSERT): Likewise.
60238         * tests/test-trunc1.c (ASSERT): Likewise.
60239         * tests/test-trunc2.c (ASSERT): Likewise.
60240         * tests/test-truncf1.c (ASSERT): Likewise.
60241         * tests/test-truncf2.c (ASSERT): Likewise.
60242         * tests/test-truncl.c (ASSERT): Likewise.
60243         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60244         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60245         * tests/test-vasnprintf.c (ASSERT): Likewise.
60246         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60247         * tests/test-vasprintf.c (ASSERT): Likewise.
60248         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60249         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60250         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60251         * tests/test-vsnprintf.c (ASSERT): Likewise.
60252         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60253         * tests/test-wcwidth.c (ASSERT): Likewise.
60254         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60255         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60256         * tests/test-xvasprintf.c (ASSERT): Likewise.
60257         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60258         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60259         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60260         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60261         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60262         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60263         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60264         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60265         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60266         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60267         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60268         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60269         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60270         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60271         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60272         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60273         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60274         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60275         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60276         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60277         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60278         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60279         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60280         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60281         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60282         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60283         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60284         * tests/unictype/test-combining.c (ASSERT): Likewise.
60285         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60286         * tests/unictype/test-digit.c (ASSERT): Likewise.
60287         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60288         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60289         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60290         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60291         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60292         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60293         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60294         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60295         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60296         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60297         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60298         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60299         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60300         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60301         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60302         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60303         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60304         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60305         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60306         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60307         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60308         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60309         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60310         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60311         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60312         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60313         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60314         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60315         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60316         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60317         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60318         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60319         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60320         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60321         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60322         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60323         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60324         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60325         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60326         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60327         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60328         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60329         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60330         Reported by Eric Blake.
60331
60332 2008-04-11  Bruno Haible  <bruno@clisp.org>
60333
60334         * lib/wchar.in.h: Tweak comment.
60335
60336 2008-04-11  Bruno Haible  <bruno@clisp.org>
60337
60338         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60339         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60340         gl_COMMON.
60341         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60342
60343 2008-04-11  Bruno Haible  <bruno@clisp.org>
60344
60345         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60346
60347 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60348
60349         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60350         of attempting to use non-existing /dev/*random.  Based on patch
60351         from Adam Strzelecki <ono@java.pl> in
60352         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60353
60354 2008-04-08  Bruno Haible  <bruno@clisp.org>
60355
60356         Add tentative support for emx+gcc.
60357         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60358         * lib/fpurge.c (fpurge): Likewise.
60359         * lib/freadable.c (freadable): Likewise.
60360         * lib/freadahead.c (freadahead): Likewise.
60361         * lib/freading.c (freading): Likewise.
60362         * lib/freadptr.c (freadptr): Likewise.
60363         * lib/freadseek.c (freadptrinc): Likewise.
60364         * lib/fseeko.c (rpl_fseeko): Likewise.
60365         * lib/fseterr.c (fseterr): Likewise.
60366         * lib/fwritable.c (fwritable): Likewise.
60367         * lib/fwriting.c (fwriting): Likewise.
60368         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60369
60370 2008-04-09  Eric Blake  <ebb9@byu.net>
60371
60372         Avoid some autoconf warnings.
60373         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60374         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60375         * m4/afs.m4 (gl_AFS): Likewise.
60376         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60377         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60378         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60379         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60380         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60381         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60382         (AC_CHECK_DECLS_ONCE): Likewise.
60383         Rename file...
60384         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60385         gnulib-tool requires autoconf 2.59 or better.
60386         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60387
60388 2008-04-08  Eric Blake  <ebb9@byu.net>
60389
60390         Use 'git describe --match' if present (added in git 1.5.5).
60391         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60392         if possible.
60393
60394 2008-04-08  Bruno Haible  <bruno@clisp.org>
60395
60396         Add tentative support for OpenServer.
60397         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60398         _ptr, _cnt.
60399         * lib/fpurge.c (fpurge): Likewise.
60400         * lib/freadable.c (freadable): Likewise.
60401         * lib/freadahead.c (freadahead): Likewise.
60402         * lib/freading.c (freading): Likewise.
60403         * lib/freadptr.c (freadptr): Likewise.
60404         * lib/freadseek.c (freadptrinc): Likewise.
60405         * lib/fseeko.c (rpl_fseeko): Likewise.
60406         * lib/fseterr.c (fseterr): Likewise.
60407         * lib/fwritable.c (fwritable): Likewise.
60408         * lib/fwriting.c (fwriting): Likewise.
60409         Reported by Roger Cornelius <rac@tenzing.org> and
60410         Brian K. White <brian@aljex.com>.
60411
60412 2008-04-06  Jim Meyering  <meyering@redhat.com>
60413
60414         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60415
60416 2008-04-06  Bruno Haible  <bruno@clisp.org>
60417
60418         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60419         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60420         * tests/test-printf-posix.sh: Likewise.
60421         * tests/test-vfprintf-posix.sh: Likewise.
60422         * tests/test-vprintf-posix.sh: Likewise.
60423         * tests/test-xprintf-posix.sh: Likewise.
60424
60425 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60426
60427         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60428         hide error from 'ls', needed on OS/2.
60429         Report by Elbert Pol <elbert.pol@gmail.com>.
60430
60431 2008-04-04  Eric Blake  <ebb9@byu.net>
60432
60433         Make test-fseeko.c failures meaningful.
60434         * tests/test-fseeko.c: Print line number on failure.
60435         * tests/test-fseek.c: Likewise.
60436         Reported by Nelson H. F. Beebe.
60437
60438         Improve strtod bug detection check.
60439         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60440         required for Solaris 10.
60441         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60442
60443 2008-04-04  Bruno Haible  <bruno@clisp.org>
60444
60445         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60446         by m4/setenv.m4.
60447
60448 2008-04-03  Eric Blake  <ebb9@byu.net>
60449
60450         Ensure sane .version contents.
60451         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60452         version string.
60453         * build-aux/git-version-gen: Improve documentation.
60454
60455         Make GNU make output nicer.
60456         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60457         MAKECMDGOALS to enforce message for all command line targets.  Set
60458         srcdir for use in maint.mk.
60459
60460         Another maintainer tweak.
60461         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60462         a target that regenerates version.
60463
60464 2008-04-03  Jim Meyering  <meyering@redhat.com>
60465
60466         vc-list-files: don't cause coreutils "make po-check" failure
60467         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60468
60469 2008-04-03  Eric Blake  <ebb9@byu.net>
60470
60471         Allow VPATH usage of vc-list-files.
60472         * build-aux/vc-list-files (scriptversion): Add timestamp.
60473         (options): Add --help, --version, -C.
60474         (CVS): Support installed cvsu.
60475
60476 2008-04-02  Bruno Haible  <bruno@clisp.org>
60477
60478         Avoid some "statement with no effect" warnings from gcc.
60479         * tests/test-wctype.c (main): Explicitly ignore unused values.
60480         Reported by Jim Meyering.
60481
60482 2008-04-02  Jim Meyering  <meyering@redhat.com>
60483
60484         Avoid some warnings from "gcc -Wshadow".
60485         * tests/test-frexp.c (exp): Define to a different identifier.
60486         * tests/test-frexpl.c (exp): Likewise.
60487
60488 2008-04-03  Jim Meyering  <meyering@redhat.com>
60489
60490         bootstrap: remove dangling *.[ch] symlinks from lib
60491         * build-aux/bootstrap [dangling symlink removal]: Move find's
60492         -depth option to precede all others, to avoid a warning.
60493         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60494
60495 2008-04-02  Bruno Haible  <bruno@clisp.org>
60496
60497         Avoid some warnings from "gcc -Wshadow".
60498         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60499         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60500         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60501         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60502         Reported by Jim Meyering.
60503
60504 2008-04-01  Bruno Haible  <bruno@clisp.org>
60505
60506         Fix test to work on IRIX 6.5 with cc.
60507         * tests/test-math.c (numeric_equal): New function.
60508         (main): Use it.
60509
60510 2008-04-01  Bruno Haible  <bruno@clisp.org>
60511
60512         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60513
60514 2008-04-01  Bruno Haible  <bruno@clisp.org>
60515
60516         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60517         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60518         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60519         (Depends-on): Remove math.
60520
60521         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60522         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60523         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60524         (Depends-on): Remove math.
60525
60526         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60527         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60528         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60529         (Depends-on): Remove math.
60530         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60531         (Depends-on): Remove math.
60532
60533         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60534         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60535         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60536         (Depends-on): Remove math.
60537         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60538         (Depends-on): Remove math.
60539
60540         * tests/test-round1.c: Include nan.h.
60541         (main): Use NaNd instead of NAN.
60542         * modules/round-tests (Files): Add tests/nan.h.
60543
60544         * tests/test-trunc1.c: Include nan.h.
60545         (main): Use NaNd instead of NAN.
60546         * modules/trunc-tests (Files): Add tests/nan.h.
60547
60548         * tests/test-roundf1.c: Include nan.h.
60549         (main): Use NaNf instead of NAN.
60550         * modules/roundf-tests (Files): Add tests/nan.h.
60551
60552         * tests/test-truncf1.c: Include nan.h.
60553         (main): Use NaNf instead of NAN.
60554         * modules/truncf-tests (Files): Add tests/nan.h.
60555
60556         * tests/test-ceilf1.c: Include nan.h.
60557         (main): Use NaNf instead of NAN.
60558         * modules/ceilf-tests (Files): Add tests/nan.h.
60559
60560         * tests/test-floorf1.c: Include nan.h.
60561         (main): Use NaNf instead of NAN.
60562         * modules/floorf-tests (Files): Add tests/nan.h.
60563
60564         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60565         (main): Use NaNf instead of NAN.
60566         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60567
60568         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60569         (main): Use NaNd instead of NAN.
60570         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60571
60572         * tests/test-frexp.c: Include nan.h.
60573         (main): Use NaNd instead of NAN.
60574         * modules/frexp-tests (Files): Add tests/nan.h.
60575
60576         * lib/isnan.c: Don't include <math.h>.
60577         (FUNC): Don't use NAN macro.
60578         * modules/isnand-nolibm (Depends-on): Remove math.
60579         * modules/isnanf-nolibm (Depends-on): Remove math.
60580         * modules/isnanl (Depends-on): Remove math.
60581         * modules/isnanl-nolibm (Depends-on): Remove math.
60582
60583         * tests/nan.h: New file.
60584
60585 2008-04-01  Eric Blake  <ebb9@byu.net>
60586
60587         Fix typos.
60588         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60589         values to be the right type.
60590
60591         For now, cater to gnulib strtod inaccuracies.
60592         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60593         fractional results.  While not as nice from a QoI perspective, it
60594         is a quicker patch than correctly implementing decimal to binary
60595         rounding.
60596
60597 2008-03-31  Eric Blake  <ebb9@byu.net>
60598
60599         Guarantee a definition of NAN.
60600         * lib/math.in.h (NAN): Define if missing.
60601         * tests/test-math.c (main): Test it.
60602         * doc/posix-headers/math.texi (math.h): Document this.
60603         * lib/isnan.c (rpl_isnand): Use it.
60604         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60605         * tests/test-floorf1.c (NaN): Likewise.
60606         * tests/test-frexp.c (NaN): Likewise.
60607         * tests/test-isnand.c (NaN): Likewise.
60608         * tests/test-isnanf.c (NaN): Likewise.
60609         * tests/test-round1.c (NaN): Likewise.
60610         * tests/test-roundf1.c (NaN): Likewise.
60611         * tests/test-snprintf-posix.h (NaN): Likewise.
60612         * tests/test-sprintf-posix.h (NaN): Likewise.
60613         * tests/test-trunc1.c (NaN): Likewise.
60614         * tests/test-truncf1.c (NaN): Likewise.
60615         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60616         * tests/test-vasprintf-posix.c (NaN): Likewise.
60617         * modules/isnand-nolibm (Depends-on): Add math.
60618         * modules/isnanf-nolibm (Depends-on): Likewise.
60619         * modules/isnanl (Depends-on): Likewise.
60620         * modules/isnanl-nolibm (Depends-on): Likewise.
60621         * modules/snprintf-posix-tests (Depends-on): Likewise.
60622         * modules/sprintf-posix-tests (Depends-on): Likewise.
60623         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60624         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60625         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60626         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60627
60628 2008-03-31  Bruno Haible  <bruno@clisp.org>
60629
60630         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60631         * doc/posix-functions/strtod.texi: Likewise.
60632
60633 2008-03-31  Bruno Haible  <bruno@clisp.org>
60634
60635         * tests/test-strtod.c (main): Don't use C99 syntax.
60636
60637 2008-03-31  Bruno Haible  <bruno@clisp.org>
60638
60639         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60640         Reported by Eric Blake.
60641
60642 2008-03-31  Jim Meyering  <meyering@redhat.com>
60643
60644         Don't compare actual signbit return values.
60645         * tests/test-strtod.c (main): Rather, compare only their
60646         zero/non-zero nature.
60647
60648 2008-03-31  Eric Blake  <ebb9@byu.net>
60649
60650         More strtod documentation.
60651         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60652         failures as distinct bugs.
60653
60654 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60655
60656         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60657         Problem reported by Erik Benada in
60658         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60659
60660 2008-03-30  Bruno Haible  <bruno@clisp.org>
60661
60662         * tests/test-strtod.c: Add comments about which assertion fails on which
60663         platform.
60664         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60665
60666 2008-03-30  Eric Blake  <ebb9@byu.net>
60667
60668         Test signbit behavior on zeros.
60669         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60670         (test_signbitd, test_signbitl): Likewise.
60671
60672         More strtod touchups.
60673         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60674         sign of negative underflow, for now.  Use .5, not .1.
60675         * doc/posix-functions/strtod.texi (strtod): Mention these
60676         limitations.
60677         Reported by Jim Meyering.
60678
60679 2008-03-30  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60682         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60683
60684 2008-03-30  Bruno Haible  <bruno@clisp.org>
60685
60686         Avoid failure when attempting to return empty iconv results on some
60687         platforms.
60688         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60689         allocation, don't report ENOMEM when the resulting string is empty.
60690
60691 2008-03-30  Bruno Haible  <bruno@clisp.org>
60692
60693         Fix buffer overrun.
60694         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60695         Don't consider the width for tmp_length. Check count against tmp_length
60696         before doing the padding. Ensure enough allocation during padding.
60697
60698 2008-03-30  Eric Blake  <ebb9@byu.net>
60699
60700         strtod touchups.
60701         * lib/strtod.c (strtod): Avoid compiler warnings.
60702         Reported by Jim Meyering.
60703
60704 2008-03-30  Bruno Haible  <bruno@clisp.org>
60705
60706         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60707         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60708         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60709         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60710         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60711         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60712         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60713         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60714
60715         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60716         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60717         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60718         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60719         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60720         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60721         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60722         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60723
60724         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60725         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60726         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60727         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60728         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60729         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60730         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60731         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60732
60733         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60734         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60735
60736         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60737         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60738
60739         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60740         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60741
60742         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60743         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60744         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60745
60746         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60747         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60748         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60749
60750         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60752         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60753
60754         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60755         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60756         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60757
60758         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60759         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60760         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60761         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60762         (Depends-on): Add EOVERFLOW.
60763         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60764         (Depends-on): Add EOVERFLOW.
60765         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60766         (Depends-on): Add EOVERFLOW.
60767         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60768         (Depends-on): Add EOVERFLOW.
60769         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60770         (Depends-on): Add EOVERFLOW.
60771         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60772         (Depends-on): Add EOVERFLOW.
60773         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60774         (Depends-on): Add EOVERFLOW.
60775         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60776         (Depends-on): Add EOVERFLOW.
60777
60778         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60779         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60780         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60781
60782         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60783         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60784         * modules/snprintf (Depends-on): Add EOVERFLOW.
60785
60786         * lib/poll.c (EOVERFLOW): Remove fallback.
60787         * modules/poll (Depends-on): Add EOVERFLOW.
60788
60789         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60790         * modules/getugroups (Depends-on): Add EOVERFLOW.
60791
60792         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60793         * modules/getdelim (Depends-on): Add EOVERFLOW.
60794
60795         * lib/ftell.c (EOVERFLOW): Remove fallback.
60796         * modules/ftell (Depends-on): Add EOVERFLOW.
60797
60798         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60800         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60801
60802         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60803
60804         * modules/EOVERFLOW-tests: New file.
60805         * tests/test-EOVERFLOW.c: New file.
60806
60807         * modules/EOVERFLOW: New file.
60808         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60809
60810 2008-03-30  Bruno Haible  <bruno@clisp.org>
60811
60812         Fix bug introduced on 2007-06-10.
60813         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60814         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60815
60816 2008-03-30  Bruno Haible  <bruno@clisp.org>
60817
60818         Improve freadseek's efficiency after ungetc.
60819         * lib/freadseek.c: Include freadahead.h.
60820         (freadptrinc): New function, extracted from freadseek.
60821         (freadseek): Use it in a loop. Use freadahead to determine the number
60822         of loop iterations.
60823         * modules/freadseek (Depends-on): Add freadahead.
60824         (configure.ac): Require AC_C_INLINE.
60825
60826 2008-03-30  Bruno Haible  <bruno@clisp.org>
60827
60828         * lib/freadseek.c (freadseek): Don't ignore the return value of
60829         freadptr.
60830
60831 2008-03-29  Eric Blake  <ebb9@byu.net>
60832
60833         Add hex float support.
60834         * modules/strtod (Depends-on): Add c-ctype.
60835         (Link): Mention POW_LIB.
60836         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60837         whitespace between 'e' and exponent.
60838         * tests/test-strtod.c (main): Enable hex float tests.
60839         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60840         now provides.
60841
60842         Document various strtod bugs, with some fixes.
60843         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60844         "-0x", "inf", "nan", and hex constants.
60845         * doc/posix-functions/atof.texi (atof): Likewise.
60846         * modules/stdlib (Makefile.am): Support strtod.
60847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60848         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60849         detect additional strtod bugs.
60850         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60851         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60852         bool where appropriate.  Parse 'inf' and 'nan'.
60853         * tests/test-strtod.c: New file.
60854         * modules/strtod (Depends-on): Add stdbool, stdlib.
60855         (configure.ac): Turn on module indicator.
60856         * modules/strtod-tests: New module.
60857
60858 2008-03-29  Eric Blake  <ebb9@byu.net>
60859
60860         Fix ftell on mingw.
60861         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60862         * modules/ftell-tests (Depends-on): Add binary-io.
60863         * modules/ftello-tests (Depends-on): Likewise.
60864         * tests/test-ftell.c (main): Enhance test to cover behavior after
60865         ungetc.  Enforce binary mode.
60866         * tests/test-ftello.c (main): Likewise.
60867
60868         Pass test-freadseek on cygwin.
60869         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60870         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60871         ungetc buffer.
60872
60873         * tests/test-fflush2.c (main): Fix typo.
60874
60875 2008-03-29  Bruno Haible  <bruno@clisp.org>
60876
60877         * tests/test-fflush2.c (main): Temporarily disable the contents of
60878         this test.
60879         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60880         Reported by Eric Blake.
60881
60882 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60883
60884         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60885         (GC_SHA224_DIGEST_SIZE): Add.
60886
60887         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60888         (gc_hash_digest_length): Likewise.
60889         (gc_hash_buffer): Likewise.
60890
60891 2008-03-25  Bruno Haible  <bruno@clisp.org>
60892
60893         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60894         detail which gettext release to use.
60895         Reported by Simon Josefsson.
60896
60897 2008-03-26  Jim Meyering  <meyering@redhat.com>
60898
60899         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60900         * modules/gnumakefile (clean-GNUmakefile): Also, use
60901         test ... && ... || : syntax rather than if-then ... fi.
60902
60903         gnumakefile: Don't double-quote-expand $(VPATH) value.
60904         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60905
60906 2008-03-24  Eric Blake  <ebb9@byu.net>
60907
60908         Alter GNUmakefile to install into top directory.
60909         * modules/maintainer-makefile: Split, and add dependency...
60910         * modules/gnumakefile: to this new module.
60911         * build-aux/GNUmakefile: Move...
60912         * top/GNUmakefile: ...here.
60913         * build-aux/maint.mk: Move...
60914         * top/maint.mk: ...here.
60915         * MODULES.html.sh (Support for maintaining...): Document new
60916         module.
60917
60918 2008-03-23  Bruno Haible  <bruno@clisp.org>
60919
60920         * gnulib-tool: New options --vc-files, --no-vc-files.
60921         (func_usage): Document them.
60922         (vc_files): New variable.
60923         (func_import): Consider vc_files.
60924         (func_create_testdir): Set vc_files to empty.
60925         Suggested by Jim Meyering and Karl Berry.
60926
60927 2008-03-23  Bruno Haible  <bruno@clisp.org>
60928
60929         Fix regex compilation error on HP-UX 11.
60930         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60931         * modules/regex (Files): Add m4/mbstate_t.m4.
60932         Reported by Ton Voon <ton.voon@altinity.com>.
60933
60934 2008-03-23  Bruno Haible  <bruno@clisp.org>
60935
60936         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60937
60938 2008-03-23  Eric Blake  <ebb9@byu.net>
60939             Bruno Haible  <bruno@clisp.org>
60940
60941         Install files from top/ in the destination directory.
60942         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60943         augmentation also for the files from top/.
60944         (func_import, func_create_testdir): Rewrite file names:
60945         top/filename -> filename.
60946
60947 2008-03-23  Bruno Haible  <bruno@clisp.org>
60948
60949         Tweak "gnulib --version" output.
60950         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60951
60952 2008-03-23  Bruno Haible  <bruno@clisp.org>
60953
60954         Tweak "gnulib --version" output.
60955         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60956         rather than contents of ChangeLog, when possible.
60957
60958 2008-03-21  Eric Blake  <ebb9@byu.net>
60959
60960         More --version tweaks.
60961         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60962         date of last ChangeLog entry.
60963
60964 2008-03-21  Jim Meyering  <meyering@redhat.com>
60965
60966         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60967
60968 2008-03-20  Eric Blake  <ebb9@byu.net>
60969
60970         VPATH fix.
60971         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60972
60973 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60974
60975         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60976         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60977
60978 2008-03-20  Eric Blake  <ebb9@byu.net>
60979
60980         Sync GNUmakefile with coreutils.
60981         * build-aux/GNUmakefile (have-Makefile): Rename...
60982         (_have-Makefile): ...to this, for namespace consideration.
60983         (GNUmakefile.cfg): Include, if present.
60984         (_autoreconf): Define a default.
60985         (_is-dist-target): New rule for rebuilds to pick up intra-release
60986         version.
60987         (maint-cfg.mk): Rename...
60988         (cfg.mk): ...to this.
60989
60990 2008-03-18  Jim Meyering  <meyering@redhat.com>
60991
60992         New script and module: mktempd
60993         * MODULES.html.sh (maint+release support): Add mktempd.
60994         * build-aux/mktempd: New file.
60995         * modules/mktempd: New file.
60996
60997 2008-03-15  Jim Meyering  <meyering@redhat.com>
60998
60999         Undo last change.
61000         * lib/sha1.c, lib/md5.c: 63 != ~63.
61001         Reported by Andreas Schwab.
61002
61003         sha1.c, md5.c: Hoist a redundant expression.
61004         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61005         "ctx->buflen" only once, before calling *_process_block.
61006         * lib/md5.c (md5_process_bytes): Likewise.
61007
61008 2008-03-14  Eric Blake  <ebb9@byu.net>
61009
61010         Bump copyright year in files generated by gnulib-tool.
61011         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61012         gnulib-tool, rather than hard-coding it.
61013
61014         Fix 'gnulib-tool --version' output to work with git.
61015         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61016         (startup): ...here.
61017         (func_version): Use it to invoke git-version-gen, rather than
61018         relying on CVS keyword expansion.  Modernize wording.
61019         (cvsdatestamp, last_checkin_date, version): Kill unused
61020         variables.
61021
61022 2008-03-12  Jim Meyering  <meyering@redhat.com>
61023
61024         Recognize optional cast of the argument to free.
61025         * build-aux/useless-if-before-free: Update regexps.
61026
61027         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61028
61029 2008-03-11  Bruno Haible  <bruno@clisp.org>
61030
61031         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61032         by a single package.
61033         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61034         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61035         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61036         Reported by Sam Steingold <sds@gnu.org>.
61037
61038 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61039
61040         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61041         repositories.
61042
61043 2008-03-11  Bruno Haible  <bruno@clisp.org>
61044
61045         Avoid conflicts between local macro definitions.
61046         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61047         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61048
61049 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61050             Bruno Haible  <bruno@clisp.org>
61051
61052         Make va_copy work with some version of xlc on AIX 5.1.
61053         * lib/stdarg.in.h: New file.
61054         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61055         On AIX, use a <stdarg.h> file substitute.
61056         * modules/stdarg (Files): Add lib/stdarg.in.h.
61057         (Depends-on): Add include_next.
61058         (Makefile.am): Build a stdarg.h substitute if requested.
61059         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61060
61061 2008-03-10  Bruno Haible  <bruno@clisp.org>
61062
61063         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61064         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61065         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61066
61067 2008-03-10  Bruno Haible  <bruno@clisp.org>
61068
61069         * modules/stdlib (Depends-on): Add include_next, remove
61070         absolute-header.
61071
61072 2008-03-09  Bruno Haible  <bruno@clisp.org>
61073
61074         * lib/freadahead.h (freadahead): Document more precisely.
61075         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61076         the sum of both buffer sizes.
61077         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61078         * NEWS: Document the change.
61079
61080 2008-03-09  Bruno Haible  <bruno@clisp.org>
61081
61082         Extend freadptr to return also the buffer size.
61083         * lib/freadptr.h (freadptr): Add sizep argument.
61084         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61085         (freadptr): Add sizep argument. Determine buffer size like freadahead
61086         does.
61087         * tests/test-freadptr.c: Don't include freadahead.h.
61088         (main): Adapt for new calling convention of freadptr.
61089         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61090         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61091         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61092         tests/test-freadptr2.sh.
61093         (Depends): Remove freadahead.
61094         (TESTS): Add test-freadptr2.sh.
61095         (check_PROGRAMS): Add test-freadptr2.
61096
61097 2008-03-09  Bruno Haible  <bruno@clisp.org>
61098
61099         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61100         Report and solution by Simon Josefsson.
61101
61102 2008-03-06  Bruno Haible  <bruno@clisp.org>
61103
61104         Make fflush after ungetc work on BSD platforms.
61105         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61106         * tests/test-fflush2.c: New file.
61107         * tests/test-fflush2.sh: New file.
61108         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61109         tests/test-fflush2.c.
61110         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61111         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61112
61113 2008-03-06  Eric Blake  <ebb9@byu.net>
61114
61115         Likewise for ftello.
61116         * modules/ftello (Dependencies): Add extensions.
61117         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61118
61119 2008-03-06  Bruno Haible  <bruno@clisp.org>
61120
61121         * modules/fseeko (Dependencies): Add extensions.
61122         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61123         Needed on glibc systems.
61124
61125 2008-03-06  Bruno Haible  <bruno@clisp.org>
61126
61127         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61128         email address.
61129         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61130
61131 2008-03-06  Bruno Haible  <bruno@clisp.org>
61132
61133         * users.txt: Add libgnupdf.
61134
61135 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61136
61137         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61138         (Header File Substitutes, Function Substitutes,
61139         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61140         (Build robot for gnulib): Fix typo.
61141
61142 2008-03-06  Bruno Haible  <bruno@clisp.org>
61143
61144         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61145         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61146
61147 2008-03-06  Bruno Haible  <bruno@clisp.org>
61148
61149         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61150         * doc/gnulib.texi: Include it.
61151
61152 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61153
61154         * modules/func (License): Change license to unlimited; there was
61155         no LGPL parts in the module anyway.
61156
61157 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61158
61159         * modules/__func__: Renamed to modules/func.
61160         * modules/__func__-tests: Renamed to modules/func-tests.
61161         * tests/test-__func__.c: Renamed to tests/test-func.c.
61162         * m4/__func__.m4: Renamed to m4/func.m4.
61163         * doc/gnulib.texi (__func__): Section renamed to func.
61164         Suggested by Eric Blake <ebb9@byu.net>.
61165
61166 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61167
61168         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61169         about __func__.  Make example self-contained.  Suggested by Eric
61170         Blake <ebb9@byu.net>.
61171
61172         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61173         Suggested by Eric Blake <ebb9@byu.net>.
61174
61175 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61176
61177         * modules/__func__: New file.
61178         * modules/__func__-tests: New file.
61179         * tests/test-__func__.c: New file.
61180         * m4/__func__.m4: New file.
61181         * doc/gnulib.texi (__func__): Document __func__ module.
61182
61183 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61184
61185         * modules/byteswap (License): Re-license as LGPLv2+.
61186
61187 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61188
61189         * doc/Makefile: Add pdf target.
61190
61191 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61192
61193         * modules/inline (License): Use 'unlimited', since there are only
61194         *.m4 files in this module.
61195
61196 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61197             Bruno Haible  <bruno@clisp.org>
61198
61199         Add support for HP C 7.1 on OpenVMS 8.3.
61200         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61201
61202 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61203
61204         Update VMS specifics.
61205         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61206
61207 2008-03-02  Jim Meyering  <meyering@redhat.com>
61208
61209         Remove the last dependency on the "free" module.
61210         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61211         Reported by Bob Proulx.
61212
61213         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61214
61215         Remove useless "if" tests before free.  Deprecate "free" module.
61216         * doc/posix-functions/free.texi: Mention that this
61217         module is no longer useful.
61218         * modules/free (Notice): Say this module is obsolete.
61219         * modules/readutmp (Depends-on): Remove free.
61220         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61221         * lib/putenv.c (putenv): Likewise.
61222         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61223         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61224         * tests/test-c-strcasestr.c (main): Likewise.
61225         * tests/test-c-strstr.c (main): Likewise.
61226         * tests/test-mbscasestr1.c (main): Likewise.
61227         * tests/test-mbscasestr2.c (main): Likewise.
61228         * tests/test-mbsstr1.c (main): Likewise.
61229         * tests/test-mbsstr2.c (main): Likewise.
61230         * tests/test-memmem.c (main): Likewise.
61231         * tests/test-strcasestr.c (main): Likewise.
61232         * tests/test-striconv.c (main): Likewise.
61233         * tests/test-striconveh.c (main): Likewise.
61234         * tests/test-striconveha.c (main): Likewise.
61235         * tests/test-strstr.c (main): Likewise.
61236
61237         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61238
61239         bootstrap: sync from coreutils again
61240         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61241
61242 2008-03-01  Jim Meyering  <meyering@redhat.com>
61243
61244         bootstrap: sync from coreutils
61245         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61246         also when the target doesn't exist.
61247
61248 2008-03-01  Eric Blake  <ebb9@byu.net>
61249
61250         Fix bugs in last patch.
61251         * lib/memchr2.c (memchr2): Fix typo.
61252         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61253         extension.
61254         Reported by Bruce Korb.
61255
61256         New module 'memchr2'.
61257         * modules/memchr2: New file.
61258         * modules/memchr2-tests: Likewise.
61259         * lib/memchr2.h: Likewise.
61260         * lib/memchr2.c: Likewise, based on memchr.c.
61261         * tests/test-memchr2.c: New test.
61262         * MODULES.html.sh (String handling): Add memchr2.
61263
61264 2008-02-29  Bruno Haible  <bruno@clisp.org>
61265
61266         * modules/freadseek-tests: New file.
61267         * tests/test-freadseek.sh: New file.
61268         * tests/test-freadseek.c: New file.
61269
61270         New module 'freadseek'.
61271         * modules/freadseek: New file.
61272         * lib/freadseek.h: New file.
61273         * lib/freadseek.c: New file.
61274         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61275
61276 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61277
61278         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61279         wydawca.
61280
61281         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61282         program_invocation_name and program_invocation_short_name are
61283         present.
61284
61285 2008-02-28  Bruno Haible  <bruno@clisp.org>
61286
61287         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61288         * tests/test-freadptr.sh: Also test non-seekable stdin.
61289
61290 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61291
61292         * build-aux/bootstrap (source_base, m4_base)
61293         (doc_base, tests_base): New variables.
61294         (gnulib_tool_options): Do not hardcode base directories, use
61295         the above variables instead.
61296
61297 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61298
61299         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61300
61301 2008-02-28  Bruno Haible  <bruno@clisp.org>
61302
61303         * modules/freadptr-tests: New file.
61304         * tests/test-freadptr.sh: New file.
61305         * tests/test-freadptr.c: New file.
61306
61307         New module 'freadptr'.
61308         * modules/freadptr: New file.
61309         * lib/freadptr.h: New file.
61310         * lib/freadptr.c: New file.
61311         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61312
61313 2008-02-26  Karl Berry  <karl@freefriends.org>
61314
61315         Sync from Libtool:
61316         * libltdl/argz.c (argz_add, argz_count): New functions.
61317         * libltdl/argz.in.h: Declare them.
61318         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61319
61320 2008-02-22  Bruno Haible  <bruno@clisp.org>
61321
61322         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61323         is a pointer type.  Needed for HP-UX 10.
61324         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61325         * doc/posix-functions/gmtime_r.texi: Likewise.
61326         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61327
61328 2008-02-24  Bruno Haible  <bruno@clisp.org>
61329
61330         * modules/environ-tests: New file.
61331         * tests/test-environ.c: New file.
61332
61333         New module 'environ'.
61334         * modules/environ: New file.
61335         * lib/unistd.in.h (environ): New declaration.
61336         * m4/environ.m4: New file.
61337         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61338         after use.
61339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61340         HAVE_DECL_ENVIRON.
61341         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61342         HAVE_DECL_ENVIRON.
61343         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61344         wrong claim that 'environ' is missing on some systems.
61345         * modules/execute (Depends-on): Add environ.
61346         * lib/execute.c (environ): Remove fallback declaration.
61347         * modules/pipe (Depends-on): Add environ.
61348         * lib/pipe.c (environ): Remove fallback declaration.
61349         * modules/setenv (Depends-on): Add environ.
61350         * lib/setenv.c (environ): Remove fallback declaration.
61351         * modules/unsetenv (Depends-on): Add environ.
61352         * lib/unsetenv.c (environ): Remove fallback declaration.
61353         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61354         m4/environ.m4.
61355         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61356         (gl_PREREQ_UNSETENV): Likewise.
61357
61358 2008-02-24  Bruno Haible  <bruno@clisp.org>
61359
61360         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61361
61362 2008-02-20  Bob Proulx  <bob@proulx.com>
61363
61364         Enable use of older two part flavor 'git describe'.
61365         * build-aux/git-version-gen: If using the older two part flavor of
61366         git version then recreate the third part now present in the
61367         newer three part flavor of git describe.
61368
61369 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61370
61371         * lib/fts.c (fts_build): Typo correction to comment.
61372
61373 2008-02-17  Bruno Haible  <bruno@clisp.org>
61374
61375         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61376         generating no-op conflicts.
61377
61378 2008-02-17  Bruno Haible  <bruno@clisp.org>
61379
61380         Speed up by 10%.
61381         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61382         result_entries, rather than an index-based loop.
61383
61384 2008-02-17  Bruno Haible  <bruno@clisp.org>
61385
61386         Speed up by 25%.
61387         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61388         'hashcode_cached'.
61389         (entry_create): New function.
61390         (entry_hashcode): Use the cached hashcode if possible.
61391         (read_changelog_file, try_split_merged_entry): Use entry_create.
61392
61393 2008-02-17  Bruno Haible  <bruno@clisp.org>
61394
61395         Speed up from O(n^2) to O(n) for long ChangeLog files.
61396         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61397         (read_changelog_file): Change implementation of entries_reversed list
61398         to rbtreehash.
61399         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61400
61401 2008-02-17  Bruno Haible  <bruno@clisp.org>
61402
61403         New option --split-merged-entry.
61404         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61405         (find_paragraph_end, try_split_merged_entry): New functions.
61406         (long_options): Add option --split-merged-entry.
61407         (usage): Document option --split-merged-entry.
61408         (main): Implement option --split-merged-entry.
61409         Reported by Eric Blake.
61410
61411 2008-02-17  Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/git-merge-changelog.c: Include c-strstr.h.
61414         (main): Support the "git pull --rebase" situation.
61415         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61416         Reported by Eric Blake.
61417
61418 2008-02-16  Eric Blake  <ebb9@byu.net>
61419
61420         Avoid doubling \ in common case of "c-maybe" quoting style.
61421         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61422         eliding outer quotes.
61423         * lib/quotearg.h: Document this.
61424         * tests/test-quotearg.c (result_strings, inputs, results_g)
61425         (flag_results, locale_results): Test it by adding a new string to
61426         each test group.
61427         (compare_strings): Test new string.
61428
61429 2008-02-13  Eric Blake  <ebb9@byu.net>
61430
61431         Avoid trigraph quoting in default output.
61432         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61433         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61434         unless explicitly requested.
61435         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61436
61437 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61438
61439         Don't rely on signed integer overflowing to negative value.
61440         * lib/getugroups.c (getugroups): Include <limits.h>.
61441         Instead, compare against INT_MAX, and increment only if the test passes.
61442
61443 2008-02-13  Jim Meyering  <meyering@redhat.com>
61444         and Eric Blake  <ebb9@byu.net>
61445
61446         Avoid shadowing warning and compile errors on Linux.
61447         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61448         forwarding macros on Linux.
61449         (dcgettext): Define a stub, for Linux.
61450         (results_g, main): Avoid warnings.
61451
61452 2008-02-12  Eric Blake  <ebb9@byu.net>
61453
61454         Silence warning in last patch.
61455         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61456
61457         Quotearg part 4: add tests, fix c-maybe colon quoting.
61458         * lib/quotearg.h: Improve documentation.
61459         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61460         escapes when adding outer quotes.  When quoting trigraphs, use
61461         valid C notation.  When quoting NUL, omit extra characters if next
61462         character is not digit.  Alter prototype.
61463         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61464         callers.
61465         * modules/quotearg-tests: New module.
61466         * tests/test-quotearg.c: New test.
61467
61468 2008-02-07  Eric Blake  <ebb9@byu.net>
61469
61470         Quotearg part 3: add flag to control outer quote elision.
61471         * lib/quotearg.h (c_maybe_quoting_style): New style.
61472         (enum quoting_flags): Better documentation of flags.
61473         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61474         c-maybe style.
61475         (quotearg_buffer_restyled): Handle new flag to elide outer
61476         quotes.
61477
61478         Quotearg part 2: add flag that can control NUL elision.
61479         * lib/quotearg.h (set_quoting_flags): New prototype.
61480         * lib/quotearg.c (struct quoting_options): Add flag field.
61481         (set_quoting_flags): New function.
61482         (quotearg_buffer_restyled): Add flags parameter.
61483         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61484         (quotearg_n_options): Set the flag, since length cannot be
61485         returned.
61486         (quoting_options_from_style): Default flags correctly.
61487
61488         Quotearg part 1: more wrappers, restore quotearg_char state.
61489         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61490         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61491         (quotearg_colon_mem): New wrappers.
61492         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61493         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61494         functions.
61495         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61496         (quotearg_colon_mem): New functions.
61497
61498 2008-02-11  Bruno Haible  <bruno@clisp.org>
61499
61500         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61501         library in the current directory: it does not work with parallel make.
61502         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61503
61504 2008-02-11  Bruno Haible  <bruno@clisp.org>
61505
61506         * .gitattributes: New file.
61507
61508 2008-02-11  Jim Meyering  <meyering@redhat.com>
61509
61510         useless-if-before-free: Fix reversed exit values.
61511         * build-aux/useless-if-before-free: Use correct values
61512         for EXIT_MATCH and EXIT_NO_MATCH.
61513
61514         * build-aux/useless-if-before-free: Close stdout carefully.
61515
61516 2008-02-10  Bruno Haible  <bruno@clisp.org>
61517
61518         New module 'git-merge-changelog'.
61519         * modules/git-merge-changelog: New file.
61520         * lib/git-merge-changelog.c: New file.
61521
61522 2008-02-10  Jim Meyering  <meyering@redhat.com>
61523
61524         useless-if-before-free: New option: --list (-l).
61525
61526         useless-if-before-free: Don't exit immediately upon open failure.
61527         * build-aux/useless-if-before-free: Exit 2 for errors.
61528         Upon failure to open a file, don't exit immediately.
61529         Rather, just warn and continue with any remaining files.
61530
61531 2008-02-10  Bruno Haible  <bruno@clisp.org>
61532
61533         New abstract list operation 'node_set_value'.
61534         * lib/gl_list.h (gl_list_node_set_value): New function.
61535         (struct gl_list_implementation): New field node_set_value.
61536         * lib/gl_list.c (gl_list_node_set_value): New function.
61537         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61538         (gl_array_list_implementation): Update.
61539         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61540         (gl_carray_list_implementation): Update.
61541         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61542         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61543         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61544         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61545         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61546         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61547         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61548         Update.
61549         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61550         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61551         (gl_sublist_list_implementation): Update.
61552
61553 2008-02-10  Bruno Haible  <bruno@clisp.org>
61554
61555         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61556         Needed when ELEMENT is #defined to 'some_type *'.
61557
61558 2008-02-10  Jim Meyering  <meyering@redhat.com>
61559
61560         New script and module: useless-if-before-free
61561         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61562         * build-aux/useless-if-before-free: New file.
61563         * modules/useless-if-before-free: New file.
61564
61565         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61566
61567         xstrtol_error: Fix typo.
61568         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61569         s/exit_failure/exit_status/.
61570
61571 2008-02-09  Jim Meyering  <meyering@redhat.com>
61572
61573         New script and module: gitlog-to-changelog
61574         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61575         * modules/gitlog-to-changelog: New file.
61576         * build-aux/gitlog-to-changelog: New file.
61577
61578 2008-02-08  Jim Meyering  <meyering@redhat.com>
61579
61580         Avoid two "parameter unused" warnings.
61581         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61582         Mark "st" as used.
61583
61584         Use "git COMMAND", not "git-COMMAND".
61585         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61586         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61587         * build-aux/git-version-gen: Use "git status", not "git-status".
61588
61589 2008-02-07  Bruno Haible  <bruno@clisp.org>
61590
61591         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61592         Avoids a crash on Windows Vista.
61593         Reported by Adam Strzelecki <ono@java.pl> via
61594         Simon Josefsson <simon@josefsson.org>.
61595
61596 2008-02-06  Bruno Haible  <bruno@clisp.org>
61597
61598         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61599         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61600         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61602         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61604         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61605         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61613         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61614         left-adjust flag.
61615         * tests/test-snprintf-posix.h (test_function): Likewise.
61616         * tests/test-sprintf-posix.h (test_function): Likewise.
61617         * tests/test-vasprintf-posix.c (test_function): Likewise.
61618         * doc/posix-functions/fprintf.texi: Update.
61619         * doc/posix-functions/printf.texi: Update.
61620         * doc/posix-functions/snprintf.texi: Update.
61621         * doc/posix-functions/sprintf.texi: Update.
61622         * doc/posix-functions/vfprintf.texi: Update.
61623         * doc/posix-functions/vprintf.texi: Update.
61624         * doc/posix-functions/vsnprintf.texi: Update.
61625         * doc/posix-functions/vsprintf.texi: Update.
61626         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61627
61628 2008-02-06  Bruno Haible  <bruno@clisp.org>
61629
61630         Fix bug introduced on 2008-01-26.
61631         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61632
61633 2008-02-06  Bruno Haible  <bruno@clisp.org>
61634
61635         Fix bug introduced on 2007-06-10.
61636         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61637         !NEED_PRINTF_FLAG_ZERO.
61638
61639 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61640
61641         getloadavg: use libperfstat on AIX5
61642         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61643
61644 2008-02-03  Bruno Haible  <bruno@clisp.org>
61645
61646         * lib/diffseq.h: Add comments about required #includes.
61647         Reported by Michael Biggs <gnulib@doubleplum.net>.
61648
61649 2008-02-01  Bruno Haible  <bruno@clisp.org>
61650
61651         * users.txt: Add gnuit.
61652
61653 2008-01-31  Bruno Haible  <bruno@clisp.org>
61654
61655         * lib/md4.c (set_uint32): Mark as inline.
61656         * lib/md5.c (set_uint32): Likewise.
61657         * lib/sha1.c (set_uint32): Likewise.
61658         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61659         * m4/md5.m4 (gl_MD5): Likewise.
61660         * m4/sha1.m4 (gl_SHA1): Likewise.
61661
61662 2008-01-31  Jim Meyering  <meyering@redhat.com>
61663
61664         Use "sizeof VAR", rather than a literal "4".
61665         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61666         * lib/md4.c (md4_read_ctx): Likewise.
61667         * lib/sha1.c (sha1_read_ctx): Likewise.
61668
61669 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61670
61671         * tests/test-sha1.c: New file, based on test-md5.c.
61672
61673         * modules/crypto/sha1-tests: New file.
61674
61675 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61676
61677         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61678
61679 2008-01-31  Jim Meyering  <meyering@redhat.com>
61680
61681         Prefer "sizeof v" over the equivalent "4".
61682         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61683         * lib/md5.c (set_uint32): Likewise.
61684         * lib/sha1.c (set_uint32): Likewise.
61685
61686 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61687
61688         * lib/sha1.c (set_uint32): Mark function as static.
61689
61690 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61691
61692         md2: clarify comments to say that alignment is not required.
61693         * lib/md2.h: Remove warning about alignment in comment.
61694         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61695         never been required.
61696
61697 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61698
61699         md4: adapt alignment constraint fix from sha1.
61700         * lib/md4.c (set_uint32): New function, from sha1.c
61701         (md4_read_ctx): Use it.
61702         (md4_finish_ctx): Doc fix.
61703         * lib/md4.h: Doc fix.
61704
61705 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61706
61707         md5: adapt alignment constraint fix from sha1.
61708         * lib/md5.c (set_uint32): New function, from sha1.c
61709         (md5_read_ctx): Use it.
61710         (md5_finish_ctx): Doc fix.
61711         * lib/md5.h: Doc fix.
61712
61713 2008-01-30  Peter Palfrader  <weasel@debian.org>
61714
61715         sha1: remove the result buffer alignment constraint
61716         * lib/sha1.c (set_uint32): New function.
61717         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61718         constraint.
61719         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61720         * lib/sha1.h: Likewise.
61721
61722 2008-01-30  Andreas Schwab  <schwab@suse.de>
61723             Bruno Haible  <bruno@clisp.org>
61724
61725         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61726         correct definition of LDBL_MIN_EXP.
61727
61728 2008-01-30  Karl Berry  <karl@gnu.org>
61729
61730         * config/srclist-update: try to preserve x bit on updates.
61731         * config/srclistvars.sh: update for karl.
61732
61733 2008-01-29  Jim Meyering  <meyering@redhat.com>
61734
61735         vasnprintf.c: Avoid warning about unused label
61736         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61737         "overflow" label definition and associated code with the
61738         same cpp condition that guards the sole use of that label.
61739
61740 2008-01-26  Bruno Haible  <bruno@clisp.org>
61741
61742         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61743         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61744         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61745         * lib/isnanl-nolibm.h (isnanl): Likewise.
61746         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61747
61748 2008-01-26  Bruno Haible  <bruno@clisp.org>
61749
61750         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61751         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61752
61753 2008-01-26  Bruno Haible  <bruno@clisp.org>
61754
61755         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61756         GCC >= 4.0 built-in.
61757         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61758
61759 2008-01-26  Bruno Haible  <bruno@clisp.org>
61760
61761         Rename isnan, applicable to 'double' only, to isnand.
61762         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61763         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61764         (configure.ac): Update.
61765         (Include): Replace "isnan.h" with "isnand.h".
61766         * m4/isnand.m4: Renamed from m4/isnan.m4.
61767         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61768         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61769         instead of isnan.c.
61770         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61771         instead of HAVE_ISNAN_IN_LIBC.
61772         (isnand): Renamed from isnan.
61773         * lib/isnand.c: New file.
61774         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61775         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61776         (Makefile.am): Update.
61777         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61778         Include isnand.h instead of isnan.h.
61779         (main): Test isnand instead of isnan.
61780         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61781         isnan-nolibm.
61782         * modules/frexp (Depends-on): Likewise.
61783         * modules/frexp-tests (Depends-on): Likewise.
61784         * modules/frexp-nolibm (Depends-on): Likewise.
61785         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61786         * modules/isfinite (Depends-on): Likewise.
61787         * modules/round-tests (Depends-on): Likewise.
61788         * modules/signbit (Depends-on): Likewise.
61789         * modules/signbit-tests (Depends-on): Likewise.
61790         * modules/snprintf-posix (Depends-on): Likewise.
61791         * modules/sprintf-posix (Depends-on): Likewise.
61792         * modules/trunc-tests (Depends-on): Likewise.
61793         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61794         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61795         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61796         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61797         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61798         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61799         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61800         * modules/vasnprintf-posix (Depends-on): Likewise.
61801         * modules/vasprintf-posix (Depends-on): Likewise.
61802         * modules/vfprintf-posix (Depends-on): Likewise.
61803         * modules/vsnprintf-posix (Depends-on): Likewise.
61804         * modules/vsprintf-posix (Depends-on): Likewise.
61805         * lib/frexp.c: Include isnand.h instead of isnan.h.
61806         (ISNAN): Set to isnand instead of isnan.
61807         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61808         (gl_isfinited): Use isnand instead of isnan.
61809         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61810         (gl_signbitd): Use isnand instead of isnan.
61811         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61812         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61813         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61814         (main): Use isnand instead of isnan.
61815         * tests/test-round1.c: Include isnand.h.
61816         (main): Use isnand instead of isnan.
61817         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61818         (ISNAN): Set to isnand instead of isnan.
61819         * tests/test-trunc1.c: Include isnand.h.
61820         (main): Use isnand instead of isnan.
61821         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61822         (equal): Use isnand instead of isnan.
61823         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61824         isnand-nolibm.
61825         * NEWS: Mention the change.
61826
61827 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61828             Bruno Haible  <bruno@clisp.org>
61829
61830         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61831         the GCC builtins for signbits are present and set
61832         REPLACE_SIGNBIT_USING_GCC if so.
61833         * lib/math.in.h (signbit): Define using GCC builtins if
61834         REPLACE_SIGNBIT_USING_GCC is set.
61835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61836         REPLACE_SIGNBIT_USING_GCC.
61837         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61838
61839 2008-01-25  Jim Meyering  <meyering@redhat.com>
61840
61841         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61842         * lib/poll.c: Include <config.h>, not "config.h".
61843         * tests/test-getaddrinfo.c: Likewise.
61844
61845 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61846
61847         * modules/sockets-tests: New file.
61848
61849 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61850
61851         * modules/sockets: New module, can be used to call WSA_Startup and
61852         WSA_Cleanup when needed.
61853
61854         * lib/sockets.h, lib/sockets.c: New files.
61855
61856         * m4/sockets.m4: New file.
61857
61858         * tests/test-sockets.c: New file.
61859
61860 2008-01-19  Bruno Haible  <bruno@clisp.org>
61861
61862         * doc/posix-headers: Renamed from doc/headers.
61863         * doc/posix-functions: Renamed from doc/functions.
61864         * doc/gnulib.texi: Update.
61865
61866 2008-01-19  Bruno Haible  <bruno@clisp.org>
61867
61868         * doc/glibc-functions/strcasestr.texi: Include contents of
61869         doc/functions/strcasestr.texi, fixing the list of platforms.
61870         * doc/functions/strcasestr.texi: Remove file.
61871
61872 2008-01-19  Bruno Haible  <bruno@clisp.org>
61873
61874         * doc/glibc-functions/memmem.texi: Include contents of
61875         doc/functions/memmem.texi.
61876         * doc/functions/memmem.texi: Remove file.
61877
61878 2008-01-18  Bruno Haible  <bruno@clisp.org>
61879
61880         * doc/glibc-functions/*.texi: New files.
61881         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61882         to use the new files.
61883
61884 2008-01-17  Bruno Haible  <bruno@clisp.org>
61885
61886         * tests/test-gethostname.c (main): Fix printf statement.
61887
61888 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61889
61890         * modules/gethostname-tests: New file.
61891
61892         * tests/test-gethostname.c: New file.
61893
61894 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61895
61896         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61897         used by the UNAME case.  Reported by Bruno Haible
61898         <bruno@clisp.org>.
61899
61900 2008-01-17  Eric Blake  <ebb9@byu.net>
61901
61902         Convert c-strcasestr to be more efficient.
61903         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61904         (Depends-on): Add c-strcase, remove malloca, strnlen.
61905         * tests/test-c-strcasestr.c (main): Enhance test.
61906         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61907
61908 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61909
61910         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61911         Use it in creating po/Makevars.
61912
61913 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61914
61915         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61916         Applications that requires it should initialize libgcrypt
61917         manually.
61918
61919 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61920
61921         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61922
61923 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61924
61925         Fix problem with getdate on mingw32 reported by Simon Josefsson
61926         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61927         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61928         tzname", when deciding whether to declare tzname.
61929         * lib/strftime.c (tzname): Likewise.
61930
61931 2008-01-15  Bruno Haible  <bruno@clisp.org>
61932
61933         Work around a MacOS X 10.5 bug in frexpl().
61934         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61935         * doc/functions/frexpl.texi: Document the bug.
61936         Reported by Elias Pipping <pipping@gentoo.org>.
61937
61938 2008-01-14  Eric Blake  <ebb9@byu.net>
61939
61940         Touch up previous patch.
61941         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61942         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61943
61944         Convert strcasestr module to use Two-Way algorithm.
61945         * modules/strcasestr-simple: New module, based on the old
61946         strcasestr, but with Two-Way rather than KMP.
61947         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61948         * lib/string.in.h (rpl_strcasestr): Declare.
61949         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61950         performance.
61951         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61952         * modules/string (Makefile.am): Support strcasestr.
61953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61954         * modules/strcasestr-tests (Depends-on): Check for alarm.
61955         * tests/test-strcasestr.c: Augment test.
61956         * lib/str-two-way.h: Clean up stray macro.
61957         * NEWS: Document new module.
61958         * MODULES.html.sh (string handling): Likewise.
61959         * doc/functions/strcasestr.texi: New file.
61960         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61961         here, since it is not a POSIX function.
61962
61963 2008-01-14  Colin Watson  <cjwatson@debian.org>
61964             Bruno Haible  <bruno@clisp.org>
61965
61966         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61967         works fine; if not, set REPLACE_STRSIGNAL.
61968         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61970         REPLACE_STRSIGNAL.
61971         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61972         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61973         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61974
61975 2008-01-14  Bruno Haible  <bruno@clisp.org>
61976
61977         * modules/strsignal (Include): Change to <string.h>.
61978
61979 2008-01-14  Colin Watson  <cjwatson@debian.org>
61980
61981         * modules/argp (Notice): Add a notice recommending to change
61982         XGETTEXT_OPTIONS.
61983         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61984
61985 2008-01-13  Colin Watson  <cjwatson@debian.org>
61986
61987         * modules/strsignal-tests: New file.
61988         * tests/test-strsignal.c: New file.
61989
61990         * lib/strsignal.c: New file, from glibc with modifications.
61991         * lib/siglist.h: New file, from glibc with modifications.
61992         * lib/string.in.h (strsignal): New declaration.
61993         * m4/strsignal.m4: New file.
61994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61995         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61996         * modules/strsignal: New file.
61997         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61998         HAVE_DECL_STRSIGNAL.
61999
62000 2008-01-13  Bruno Haible  <bruno@clisp.org>
62001
62002         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62003         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62004         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62005         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62006
62007 2008-01-13  Bruno Haible  <bruno@clisp.org>
62008
62009         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62010         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62011         * lib/argp.h (__attribute__): Likewise.
62012         * lib/c-stack.c (__attribute__): Likewise.
62013         * lib/error.h (__attribute__): Likewise.
62014         * lib/fts.c (__attribute__): Likewise.
62015         * lib/openat.h (__attribute__): Likewise.
62016         * lib/stdio.in.h (__attribute__): Likewise.
62017         * lib/string.in.h (__attribute__): Likewise.
62018         * lib/utimens.c (__attribute__): Likewise.
62019         * lib/vasnprintf.h (__attribute__): Likewise.
62020         * lib/xalloc.h (__attribute__): Likewise.
62021         * lib/xprintf.h (__attribute__): Likewise.
62022         * lib/xstrtol.h (__attribute__): Likewise.
62023         * lib/xvasprintf.h (__attribute__): Likewise.
62024
62025 2008-01-12  Bruno Haible  <bruno@clisp.org>
62026
62027         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62028         * doc/glibc-headers/a.out.texi: New file.
62029         * doc/glibc-headers/aliases.texi: New file.
62030         * doc/glibc-headers/alloca.texi: New file.
62031         * doc/glibc-headers/ar.texi: New file.
62032         * doc/glibc-headers/argp.texi: New file.
62033         * doc/glibc-headers/argz.texi: New file.
62034         * doc/glibc-headers/byteswap.texi: New file.
62035         * doc/glibc-headers/crypt.texi: New file.
62036         * doc/glibc-headers/endian.texi: New file.
62037         * doc/glibc-headers/envz.texi: New file.
62038         * doc/glibc-headers/err.texi: New file.
62039         * doc/glibc-headers/error.texi: New file.
62040         * doc/glibc-headers/execinfo.texi: New file.
62041         * doc/glibc-headers/fpu_control.texi: New file.
62042         * doc/glibc-headers/fstab.texi: New file.
62043         * doc/glibc-headers/fts.texi: New file.
62044         * doc/glibc-headers/getopt.texi: New file.
62045         * doc/glibc-headers/ieee754.texi: New file.
62046         * doc/glibc-headers/ifaddrs.texi: New file.
62047         * doc/glibc-headers/libintl.texi: New file.
62048         * doc/glibc-headers/mcheck.texi: New file.
62049         * doc/glibc-headers/mntent.texi: New file.
62050         * doc/glibc-headers/obstack.texi: New file.
62051         * doc/glibc-headers/paths.texi: New file.
62052         * doc/glibc-headers/printf.texi: New file.
62053         * doc/glibc-headers/pty.texi: New file.
62054         * doc/glibc-headers/resolv.texi: New file.
62055         * doc/glibc-headers/shadow.texi: New file.
62056         * doc/glibc-headers/sysexits.texi: New file.
62057         * doc/glibc-headers/ttyent.texi: New file.
62058
62059 2008-01-12  Jim Meyering  <meyering@redhat.com>
62060
62061         announce-gen: emit Gnulib's git-based version string.
62062         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62063         New option --gnulib-version=V, where V is expected to be
62064         the output of running git describe in the gnulib directory.
62065         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62066         not useful, and plan to stop publishing an xdelta file with each
62067         coreutils release.
62068
62069         * build-aux/announce-gen: Also check for lzma-compressed files.
62070
62071 2008-01-11  Bruno Haible  <bruno@clisp.org>
62072
62073         * tests/test-memmem.c (main): Increase maximum allowed time.
62074         * tests/test-strstr.c (main): Likewise.
62075
62076 2008-01-11  Bruno Haible  <bruno@clisp.org>
62077
62078         * doc/functions/memmem.texi: Add more precisions about platforms.
62079         * doc/functions/strstr.texi: Likewise.
62080
62081 2008-01-10  Eric Blake  <ebb9@byu.net>
62082
62083         * m4/strstr.m4: Delete cruft from copy-n-paste.
62084         Reported by Bruno Haible.
62085
62086 2008-01-10  Bruno Haible  <bruno@clisp.org>
62087
62088         Make c-strstr rely on strstr.
62089         * lib/c-strstr.c: Don't include str-kmp.h.
62090         (c_strstr): Define in terms of strstr.
62091         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62092         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62093
62094 2008-01-10  Bruno Haible  <bruno@clisp.org>
62095
62096         * doc/gnulib.texi (String Functions in C Locale): New section.
62097         * doc/c-ctype.texi: New file.
62098         * doc/c-strcase.texi: New file.
62099         * doc/c-strcaseeq.texi: New file.
62100         * doc/c-strcasestr.texi: New file.
62101         * doc/c-strstr.texi: New file.
62102         * doc/c-strtod.texi: New file.
62103         * doc/c-strtold.texi: New file.
62104
62105 2008-01-10  Eric Blake  <ebb9@byu.net>
62106
62107         * lib/relocatable.h: Fix a comment.
62108
62109 2008-01-10  Eric Blake  <ebb9@byu.net>
62110
62111         Share two-way algorithm.
62112         * lib/str-two-way.h: New file, merged from...
62113         * lib/memmem.c: ...here...
62114         * lib/strstr.c: ...and here.
62115         * modules/memmem (Files): Use it.
62116         * modules/strstr (Files): Likewise.
62117
62118         Avoid quadratic strstr implementations.
62119         * lib/strstr.c: New file.
62120         * m4/strstr.m4: Likewise.
62121         * modules/strstr: Likewise.
62122         * modules/strstr-tests: Likewise.
62123         * tests/test-strstr.c: Likewise.
62124         * lib/string.in.h (rpl_strstr): Declare.
62125         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62127         * modules/string (Makefile.am): Likewise.
62128         * MODULES.html.sh (string handling): Mention new module.
62129         * doc/functions/strstr.texi (strstr): Document the bug.
62130
62131 2008-01-10  Bruno Haible  <bruno@clisp.org>
62132
62133         * lib/relocatable.h (relocate): State whether result is freshly
62134         allocated or not.
62135         * lib/relocatable.c (relocate): Return a freshly allocated string
62136         instead of a pointer to a privately held string.
62137         Reported by Sylvain Beucler <beuc@gnu.org>.
62138
62139 2008-01-10  Colin Watson  <cjwatson@debian.org>
62140
62141         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62142         s/S_ISNLK/S_ISLNK/.
62143
62144 2008-01-09  Bruno Haible  <bruno@clisp.org>
62145
62146         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62147         and other files.
62148         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62149         if it's only a guess.
62150         * modules/memmem: Simplify by depending on memmem-simple.
62151
62152 2008-01-09  Bruno Haible  <bruno@clisp.org>
62153
62154         Work around OpenBSD 4.0 tdelete() bug.
62155         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62156         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62157         macros and don't redefine the enum values.
62158         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62159         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62160         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62161
62162 2008-01-09  Bruno Haible  <bruno@clisp.org>
62163
62164         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62165         (main): Don't perform the tests if setlocale did not install a UTF-8
62166         locale. Needed on OpenBSD 4.0.
62167         * modules/wcwidth-tests (Depends-on): Add localcharset.
62168
62169 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62170
62171         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62172         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62173         * NEWS: announce this.
62174         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62175
62176 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62177         and Eric Blake  <ebb9@byu.net>
62178
62179         Add memmem-simple module.
62180         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62181         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62182         * modules/memmem-simple: New file.
62183         * modules/memmem (Description): Tweak.
62184         * MODULES.html.sh (string handling): Mention new module.
62185         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62186         addressed by memmem-simple.
62187         * NEWS: Document the difference.
62188
62189 2008-01-09  Eric Blake  <ebb9@byu.net>
62190
62191         Give gcc some memmem optimization hints.
62192         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62193         (strcasestr): Declare as pure.
62194         * modules/memmem (Maintainer): Claim my implementation.
62195
62196 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62197
62198         Support AIX 6.1 and higher.
62199         * build-aux/config.libpath: Likewise.
62200         * build-aux/config.rpath: Likewise.
62201
62202 2008-01-08  Jim Meyering  <meyering@redhat.com>
62203             Bruno Haible  <bruno@clisp.org>
62204
62205         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62206         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62207         Reported by Peter Fales in
62208         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62209
62210 2008-01-08  Bruno Haible  <bruno@clisp.org>
62211
62212         * modules/unictype/category-of (Depends-on): Add
62213         unictype/category-none.
62214         * modules/unictype/category-and-tests (Depends-on): Add
62215         unictype/category-{L,N,Lu,Nd}.
62216         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62217         * modules/unictype/category-or-tests (Depends-on): Add
62218         unictype/category-{L,N}.
62219         * modules/unictype/category-name-tests (Depends-on): Add
62220         unictype/category-{Z,Nl}.
62221         Reported by Simon Josefsson.
62222
62223 2008-01-08  Bruno Haible  <bruno@clisp.org>
62224
62225         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62226         convention better.
62227         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62228         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62229         Reported by Peter Miller <millerp@canb.auug.org.au>.
62230
62231 2008-01-08  Eric Blake  <ebb9@byu.net>
62232
62233         Rewrite memmem to guarantee linear complexity without malloc.
62234         * lib/memmem.c (memmem): Use Two-Way rather than
62235         Knuth-Morris-Pratt, to allow O(1) space usage.
62236         (critical_factorization, two_way_short_needle)
62237         (two_way_long_needle): New functions.
62238         (knuth_morris_pratt): Delete.
62239         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62240         Add stdint.
62241         * tests/test-memmem.c (main): Add tests for periodic needle and
62242         sublinear performance.
62243         * doc/functions/memmem.texi (memmem): Document other deficiencies
62244         in cygwin and older glibc.
62245
62246 2008-01-08  Bruno Haible  <bruno@clisp.org>
62247
62248         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62249         augmentation.
62250
62251 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62252
62253         Add a configure time option: --disable-acl.
62254         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62255         AC_ARG_ENABLE(acl).
62256
62257 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62258
62259         * tests/test-localename.c: Don't include obsolete "setenv.h".
62260
62261         * modules/localename-tests (Depends-on): Need unsetenv.
62262
62263 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62264
62265         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62266
62267 2008-01-06  Colin Watson  <cjwatson@debian.org>
62268
62269         * users.txt: Add man-db.
62270
62271 2008-01-07  Bruno Haible  <bruno@clisp.org>
62272
62273         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62274         previous section name.
62275
62276 2008-01-07  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/progname.c (set_program_name): Don't strip off a leading
62279         "lt-" prefix outside a .libs directory.
62280         Suggested by Paul Eggert.
62281
62282 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62283             Bruno Haible  <bruno@clisp.org>
62284
62285         Improve memory cleanup in 'relocatable' module.
62286         * lib/relocatable.h (compute_curr_prefix): Change return type to
62287         'char *'.
62288         * lib/relocatable.c (compute_curr_prefix): Change return type to
62289         'char *'. Free curr_installdir after use.
62290         (relocate): Free curr_prefix_better after use.
62291         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62292
62293 2008-01-01  Bruno Haible  <bruno@clisp.org>
62294
62295         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62296         failure on older glibc systems.
62297         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62298
62299 2008-01-05  Eric Blake  <ebb9@byu.net>
62300
62301         Avoid quadratic system memmem.
62302         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62303         Reported by Ralf Wildenhues.
62304
62305         Fix memmem test for mingw.
62306         * modules/memmem-tests (configure.ac): Check for alarm.
62307         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62308         it.
62309         * doc/functions/memmem.texi: New file.
62310         * doc/gnulib.texi (Function Substitutes): Add memmem.
62311         Reported by Bruno Haible.
62312
62313 2008-01-04  Bruno Haible  <bruno@clisp.org>
62314
62315         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62316         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62317         gl_HEADER_STRING_H_DEFAULTS.
62318
62319 2008-01-04  Eric Blake  <ebb9@byu.net>
62320
62321         Shorten duration of memmem test.
62322         * tests/test-memmem.c (main): Use alarm to declare failure if test
62323         is taking too long.
62324         Reported by Ralf Wildenhues.
62325
62326 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62327
62328         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62329         string, needed by strerror.
62330
62331 2008-01-03  Colin Watson  <cjwatson@debian.org>
62332             Bruno Haible  <bruno@clisp.org>
62333
62334         * doc/gnulib-tool.texi (Localization): New section.
62335
62336 2008-01-02  Bruno Haible  <bruno@clisp.org>
62337
62338         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62339         variables to 'unsigned char *' type.
62340         Reported by Paul Eggert.
62341
62342 2008-01-02  Jim Meyering  <jim@meyering.net>
62343
62344         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62345
62346 2007-12-31  Jim Meyering  <jim@meyering.net>
62347
62348         Avoid use of private FTS type name.
62349         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62350
62351 2007-12-30  Karl Berry  <karl@gnu.org>
62352
62353         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62354         work around defect in Texinfo and/or the standalone Info browser.
62355
62356 2007-12-30  Bruno Haible  <bruno@clisp.org>
62357
62358         Unify 5 copies of the KMP code.
62359         * lib/str-kmp.h: New file.
62360         * lib/c-strcasestr.c: Include str-kmp.h.
62361         (knuth_morris_pratt): Remove function.
62362         (c_strcasestr): Update.
62363         * lib/c-strstr.c: Include str-kmp.h.
62364         (knuth_morris_pratt): Remove function.
62365         (c_strcasestr): Update.
62366         * lib/mbscasestr.c: Include str-kmp.h.
62367         (knuth_morris_pratt_unibyte): Remove function.
62368         * lib/mbsstr.c: Include str-kmp.h.
62369         (knuth_morris_pratt_unibyte): Remove function.
62370         * lib/strcasestr.c: Include str-kmp.h.
62371         (knuth_morris_pratt): Remove function.
62372         (strcasestr): Update.
62373         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62374         * modules/c-strstr (Files): Likewise.
62375         * modules/mbscasestr (Files): Likewise.
62376         * modules/mbsstr (Files): Likewise.
62377         * modules/strcasestr (Files): Likewise.
62378         Suggested by Paul Eggert.
62379
62380 2007-12-30  Bruno Haible  <bruno@clisp.org>
62381
62382         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62383         defined.
62384
62385 2007-12-30  Bruno Haible  <bruno@clisp.org>
62386
62387         * lib/xmalloca.h: Include xalloc.h.
62388         (xnmalloca): New macro.
62389
62390 2007-12-30  Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/malloca.h (nmalloca): New macro.
62393         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62394         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62395         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62396         knuth_morris_pratt_multibyte): Likewise.
62397         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62398         knuth_morris_pratt_multibyte): Likewise.
62399         * lib/memmem.c (knuth_morris_pratt): Likewise.
62400         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62401
62402 2007-12-25  Bruno Haible  <bruno@clisp.org>
62403
62404         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62405         * lib/glob.c: Don't include openat.h.
62406         (link_exists2_p): Add back the code that deals with the
62407         !GLOB_ALTDIRFUNC case.
62408         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62409         let it do the filename concatenation.
62410         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62411         * modules/glob (Depends-on): Remove openat.
62412
62413 2007-12-31  Bruno Haible  <bruno@clisp.org>
62414
62415         * modules/dirfd (License): Change to LGPLv2+.
62416         Approved by Jim Meyering.
62417
62418 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62419
62420         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62421         when multiplying M by sizeof (size_t).
62422
62423 2007-12-10  Martin Lambers  <marlam@marlam.de>
62424
62425         Override getpagesize on mingw.
62426         * lib/getpagesize.c: New file.
62427         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62428         * modules/getpagesize (Files): Add lib/getpagesize.c.
62429         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62431         REPLACE_GETPAGESIZE.
62432         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62433
62434 2007-12-25  Bruno Haible  <bruno@clisp.org>
62435
62436         * modules/localcharset (Notice): New field.
62437         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62438         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62439
62440 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62441             Bruno Haible  <bruno@clisp.org>
62442
62443         Avoid using the syntax symbol() in formatted documentation.
62444         * MODULES.html.sh (func_module): When replacing symbol() with a
62445         hyperlink, remove the parentheses. Show an error if some remain.
62446         Recognize and render the '...' syntax.
62447         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62448         Rework. Add paragraph about GCC's inlining.
62449         * doc/alloca.texi: Likewise.
62450         * doc/error.texi: Remove parentheses from symbol reference.
62451         * doc/gnulib-intro.texi: Likewise.
62452         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62453         * modules/fnmatch (Description): Reword to say "the ... function".
62454         * modules/full-read (Description): Likewise.
62455         * modules/full-write (Description): Likewise.
62456         * modules/safe-read (Description): Likewise.
62457         * modules/safe-write (Description): Likewise.
62458         * modules/strchrnul (Description): Likewise.
62459         * modules/trim (Description): Likewise.
62460         * modules/error (Description): Remove parentheses from symbol
62461         references.
62462         * modules/verror (Description): Likewise.
62463         Reported by Karl Berry.
62464
62465 2007-12-25  Bruno Haible  <bruno@clisp.org>
62466
62467         Fixup after 2007-10-16 commit.
62468         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62469
62470 2007-12-24  Bruno Haible  <bruno@clisp.org>
62471
62472         Make --enable-relocatable work with DESTDIR.
62473         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62474         to compute installdir from destprog.
62475         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62476         also set the RELOC_DESTDIR variable.
62477         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62478
62479 2007-12-24  Bruno Haible  <bruno@clisp.org>
62480
62481         Fix link error due to xalloc_die().
62482         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62483         of xreadlink.
62484         * lib/relocwrapper.c: Update comments.
62485         * build-aux/install-reloc: Remove xreadlink.c from file list.
62486         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62487         xreadlink.c.
62488         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62489
62490 2007-12-24  Bruno Haible  <bruno@clisp.org>
62491
62492         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62493         * lib/setenv.h: Remove file.
62494         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62495         lib/setenv.h.
62496         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62497         (Depends-on): Add stdlib.
62498         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62499         gl_FUNC_UNSETENV.
62500         (Include): Replace setenv.h with <stdlib.h>.
62501         * modules/unsetenv: New file.
62502         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62503         * lib/unsetenv.c: Include <stdlib.h> first.
62504         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62505         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62506         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62507         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62508         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62509         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62511         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62512         * doc/functions/unsetenv.texi: Update.
62513         * modules/xsetenv (Depends-on): Add unsetenv.
62514         * modules/getdate (Depends-on): Likewise.
62515         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62516         * lib/xsetenv.c: Don't include setenv.h.
62517         * lib/getdate.y: Likewise.
62518         * lib/relocwrapper.c: Likewise.
62519         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62520         (Depends-on): Add stdlib.
62521         * NEWS: Mention the changes.
62522         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62523
62524 2007-12-23  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62527         indentation.
62528
62529 2007-12-23  Bruno Haible  <bruno@clisp.org>
62530
62531         * lib/c-strcasestr.c: Add more comments.
62532         * lib/c-strstr.c: Likewise.
62533         * lib/mbscasestr.c: Likewise.
62534         * lib/mbsstr.c: Likewise.
62535         * lib/strcasestr.c: Likewise.
62536         * lib/memmem.c: Likewise.
62537
62538 2007-12-23  Bruno Haible  <bruno@clisp.org>
62539
62540         * tests/test-memmem.c: Include <string.h> first.
62541
62542 2007-12-22  Bruno Haible  <bruno@clisp.org>
62543
62544         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62545         the contents of $testsbase.
62546         Reported by Ralf Wildenhues.
62547
62548 2007-12-22  Bruno Haible  <bruno@clisp.org>
62549
62550         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62551         two variables local_ldadd_before, local_ldadd_last.
62552
62553 2007-12-20  Eric Blake  <ebb9@byu.net>
62554
62555         Work around circular library issue when cross-compiling.
62556         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62557         that progname.o does not need to pull in rpl_memcmp.
62558
62559 2007-12-19  Eric Blake  <ebb9@byu.net>
62560
62561         Fix memmem to avoid O(n^2) worst-case complexity.
62562         * lib/memmem.c (knuth_morris_pratt): New function.
62563         (memmem): Use it if first few naive iterations fail.
62564         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62565         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62566         * modules/memchr (License): Likewise.
62567         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62568         malloca.
62569         * tests/test-memmem.c: Rewrite, borrowing ideas from
62570         test-mbsstr1.c; the old version wouldn't even compile!
62571         * modules/memmem-tests: New file.
62572         * lib/string.in.h (rpl_memmem): Add declaration.
62573         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62575         REPLACE_MEMMEM.
62576
62577 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62578
62579         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62580         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62581         before any system include files, and undef after them all.  This
62582         should fix a problem on VMS reported by John E. Malmberg in
62583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62584
62585 2007-12-17  Eric Blake  <ebb9@byu.net>
62586
62587         Revert addition of verify, for BSD/OS.
62588         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62589         can't handle large files, for the sake of obsolete platforms.
62590         * modules/fseeko (Depends-on): Remove verify.
62591         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62592         * doc/functions/ftello.texi (ftello): Likewise.
62593         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62594         Reported by Larry Jones.
62595
62596 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62597
62598         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62599         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62600
62601 2007-12-17  Jim Meyering  <meyering@redhat.com>
62602
62603         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62604         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62605         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62606         * modules/getcwd (Depends-on): Add openat.
62607         Reported by Petr Salinger.
62608
62609 2007-12-17  Bruno Haible  <bruno@clisp.org>
62610
62611         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62612         avoid a segmentation fault of the configure test on x86_64 systems.
62613
62614 2007-12-15  Jim Meyering  <meyering@redhat.com>
62615
62616         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62617
62618 2007-12-13  Eric Blake  <ebb9@byu.net>
62619
62620         Another fseek test.
62621         * tests/test-fseek.c (main): Also test ungetc handling.
62622         * tests/test-fseeko.c (main): Likewise.
62623         * modules/fseeko (Depends-on): Add verify.
62624         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62625         large.
62626         Reported by Larry Jones.
62627
62628         Fix fseeko on mingw.
62629         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62630         seek.
62631
62632         Beef up fseek tests.
62633         * tests/test-fseek.c (main): Also test eof handling.
62634         * tests/test-fseeko.c (main): Likewise.
62635         Reported by Larry Jones.
62636
62637 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62638
62639         Fix fseeko on BSD-based platforms.
62640         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62641         successful seek.
62642
62643 2007-12-12  Eric Blake  <ebb9@byu.net>
62644
62645         Allow circular dependency of separate libtests.a
62646         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62647         when use_libtests.
62648
62649 2007-12-11  Eric Blake  <ebb9@byu.net>
62650
62651         Fix bug with -0.0L in previous patch.
62652         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62653         * tests/test-isnan.c (main): Also test on zeroes.
62654         * tests/test-isnanf.c (main): Likewise.
62655         * tests/test-isnanl.h (main): Likewise.
62656
62657         Detect pseudo-denormals on x86 even when cross-compiling.
62658         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62659         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62660         invalid bit patterns that happen to satisfy ==.
62661
62662         Avoid link failures with separate libtests.a.
62663         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62664         last, to satisfy circular dependencies.
62665
62666 2007-12-11  Eric Blake  <ebb9@byu.net>
62667         and Bruno Haible  <bruno@clisp.org>
62668
62669         Fix OpenBSD 4.0 <float.h> handling of long double.
62670         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62671         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62672         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62673
62674 2007-12-11  Jim Meyering  <meyering@redhat.com>
62675
62676         * users.txt: Add libvirt.
62677
62678         Support versions of autoconf prior to 2.59c.
62679         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62680         if it is not already defined.
62681
62682 2007-12-09  Bruno Haible  <bruno@clisp.org>
62683
62684         Let 'gnulib-tool --import' collect sources needed for the tests in
62685         tests/ rather than in lib/.
62686         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62687         argument. If true, add rules to generate libtests.a, and put libtests.a
62688         into $(LDADD). Consider source files in subdirectories and set
62689         uses_subdirs.
62690         (func_emit_initmacro_start, func_emit_initmacro_end,
62691         func_emit_initmacro_done): Pass all arguments explicitly.
62692         (func_import): Determine two module lists main_modules,
62693         testsrelated_modules. Determine use_libtests. Determine two variables
62694         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62695         instead of just sed_transform_lib_file. Determine two variables
62696         main_files and testsrelated_files. Compute 'files' as the union of
62697         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62698         func_add_or_update. In the generated gnulib-comp.m4, collect the
62699         object files for tests/ in different variables than those for lib/.
62700         Substitute LIBTESTS_LIBDEPS.
62701         (func_create_testdir): Combine the uses_subdirs results from
62702         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62703
62704 2007-12-09  Bruno Haible  <bruno@clisp.org>
62705
62706         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62707         the build-aux directory.
62708
62709 2007-12-09  Bruno Haible  <bruno@clisp.org>
62710
62711         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62712         introduced on 2006-09-09.
62713
62714 2007-12-07  Jim Meyering  <meyering@redhat.com>
62715
62716         Let these macros work also with autoconf-2.59.
62717         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62718         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62719         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62720
62721 2007-12-06  Jim Meyering  <meyering@redhat.com>
62722
62723         Avoid a configure-time syntax error in gl_FUNC_ACL.
62724         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62725         function in each branch, before testing the cache variable.
62726
62727 2007-12-04  Eric Blake  <ebb9@byu.net>
62728
62729         Make scripts executable.
62730         * build-aux/config.guess: Add execute permissions.
62731         * build-aux/config.sub: Likewise.
62732         * build-aux/gendocs.sh: Likewise.
62733
62734         Fix frexp on mingw.
62735         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62736         cross-compiling.
62737         * doc/functions/frexp.texi (frexp): Document the bug.
62738
62739         Make cygwin fseeko check more reliable.
62740         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62741         version numbers, rather than unrelated feature check.
62742         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62743         * doc/functions/ftello.texi (ftello): Likewise.
62744         Reported by Bruno Haible.
62745
62746         * m4/strerror.m4: Bump version number.
62747
62748 2007-12-03  Bruno Haible  <bruno@clisp.org>
62749
62750         * doc/functions/mprotect.texi: Mention the mingw problem.
62751
62752 2007-12-03  Eric Blake  <ebb9@byu.net>
62753
62754         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62755         REPLACE_STRERROR is initialized before this macro.
62756
62757 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62758
62759         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62760         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62761         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62762         put -lsec in even for programs other than 'ls'.  This fixes a problem
62763         for gettext reported by Bruno Haible in
62764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62765         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62766         Add support for Solaris 10.  This isn't efficient, but should get the
62767         job done for now.
62768
62769 2007-12-03  James Youngman  <jay@gnu.org>
62770
62771         * doc/regexprops-generic.texi: change "an close-group" to "a
62772         close-group" and "illegal" to "not allowed".
62773
62774 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62775
62776         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62777         pr_byname.h. Needed for the rare case when the maintainer has done
62778         "make maintainer-clean" in the source directory and then attempts a
62779         build outside the source directory.
62780         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62781         scripts_byname.h.
62782
62783 2007-12-02  Martin Lambers <marlam@marlam.de>
62784             Bruno Haible  <bruno@clisp.org>
62785
62786         * lib/getpagesize.h: Remove file.
62787         * lib/unistd.in.h: Include declaration of getpagesize here.
62788         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62789         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62790         HAVE_SYS_PARAM_H.
62791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62792         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62793         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62794         (Depends-on): Add unistd.
62795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62796         (Include): Use <unistd.h> instead of getpagesize.h.
62797         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62798         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62799         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62800         gl_GETPAGESIZE invocation, already handled by module dependency.
62801         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62802
62803 2007-12-02  Bruno Haible  <bruno@clisp.org>
62804
62805         * modules/strings-tests: New file.
62806         * tests/test-strings.c: New file.
62807
62808         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62809         * lib/strings.in.h: New file.
62810         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62811         * m4/strings_h.m4: New file.
62812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62813         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62814         * modules/strings: New file.
62815         * modules/string (Makefile.am): Update.
62816         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62817         Reported by Karl Berry.
62818
62819 2007-12-01  Eric Blake  <ebb9@byu.net>
62820
62821         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62822         accommodate fix in cygwin 1.5.25.
62823
62824 2007-12-01  Jim Meyering  <meyering@redhat.com>
62825
62826         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62827         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62828         that would inhibit utf8-optimization of a regexp containing line-
62829         or buffer-anchors, e.g., `^', `$'.
62830
62831 2007-11-30  Bruno Haible  <bruno@clisp.org>
62832
62833         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62834         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62835         glthread_recursive_lock_init.
62836         * lib/lock.c (glthread_recursive_lock_init)
62837         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62838         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62839
62840 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62841
62842         New function qset_acl, like set_acl but with syscall semantics.
62843         * lib/acl.h (qset_acl): New decl.
62844         * lib/acl.c (qset_acl): New function.
62845         (set_acl): Use new function.  Use more-consistent diagnostics.
62846
62847 2007-11-28  Jim Meyering  <meyering@redhat.com>
62848
62849         * modules/physmem (License): Change from GPL to LGPLv2+.
62850
62851 2007-11-26  Bruno Haible  <bruno@clisp.org>
62852
62853         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62854         'long double' type has excess precision.
62855         Reported by Jim Meyering in
62856         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62857
62858 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62859
62860         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62861         Sync from <http://gnu.org/licenses>.
62862         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62863         with license text from same location.
62864         * doc/maintain.texi, doc/standards.texi:  Sync from
62865         <http://savannah.gnu.org/projects/gnustandards>.
62866
62867 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62868         and Jim Meyering  <meyering@redhat.com>
62869
62870         Adjust getdate' grammar to accept a slightly more regular language.
62871         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62872         Before, the former was rejected.
62873         * lib/getdate.y (digits_to_date_time): New function, factored
62874         out of ...
62875         (number): ...here.  Just call digits_to_date_time.
62876         (hybrid): New non-terminal to handle an <unsigned number,
62877         signed relative offset> sequence consistently.
62878
62879 2007-11-18  Jim Meyering  <meyering@redhat.com>
62880
62881         Pull my changes from coreutils:
62882         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62883         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62884         use of $gnulib_tool_option_extras, so that it's separated from the
62885         preceding argument.
62886
62887         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62888         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62889         parent destination directories before copying a file into place.
62890
62891 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62892
62893         bootstrap: work also with 4-argument variant of AC_INIT
62894         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62895
62896 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62897
62898         Port test-getaddrinfo to Solaris.
62899         Problem reported by Bruno Haible in
62900         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62901         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62902         explanation of setting 'hints'.
62903         Don't reject an implementation merely because it returns EAI_SERVICE.
62904         (EAI_SERVICE): Define to 0 if not defined.
62905
62906 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62907
62908         The license of gnu-make and posix-shell is now "GPLed build tool".
62909         * modules/gnu-make (License): Likewise.
62910         * modules/posix-shell (License): Likewise.
62911
62912         New module posix-shell, for determining a POSIX shell
62913         or perhaps something that is close enough to a POSIX shell.
62914         * m4/posix-shell.m4: New file.
62915         * modules/posix-shell: New file.
62916
62917         * MODULES.html.sh: Mention new module.
62918
62919         New module gnu-make, for determining whether we're using GNU Make.
62920         * m4/gnu-make.m4: New file.
62921         * modules/gnu-make: New file.
62922         * MODULES.html.sh: Mention new module.
62923
62924 2007-11-14  Jim Meyering  <meyering@redhat.com>
62925
62926         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62927         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62928         use this macro to create a function _definition_.
62929         Remove useless "#undef ARGMATCH_DIE".
62930
62931 2007-11-14  Bruno Haible  <bruno@clisp.org>
62932
62933         * lib/config.charset: Update for OpenBSD 4.1.
62934         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62935
62936 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62937
62938         Document 64-bit #if problems in stdint.texi.
62939         * doc/headers/stdint.texi (stdint.h): Mention problems with
62940         64-bit-#if, and how to work around them.
62941
62942         Don't insist on 'long long int' support in the preprocessor.  It
62943         breaks too many things.  For example, PRIdMAX still uses a 'long
62944         long int' format with the latest Sun compiler, even though
62945         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62946         preprocessor problem.  This causes the latest coreutils to dump
62947         core on Solaris 10 sparc with the Sun C compiler.
62948         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62949         the troublesome expressions at configure-time, not at #if-time.
62950         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62951         preprocessor.
62952         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62953         compile-time C checks, done at 'configure'-time.
62954         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62955         * modules/inttypes (Makefile): Substitute the new symbols that
62956         gl_INTTYPES_H now generates.
62957         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62958
62959 2007-11-12  Bruno Haible  <bruno@clisp.org>
62960
62961         Tests for Unicode character classification functions.
62962
62963         * modules/unictype/bidicategory-byname-tests: New file.
62964         * modules/unictype/bidicategory-name-tests: New file.
62965         * modules/unictype/bidicategory-of-tests: New file.
62966         * modules/unictype/bidicategory-test-tests: New file.
62967         * modules/unictype/block-list-tests: New file.
62968         * modules/unictype/block-of-tests: New file.
62969         * modules/unictype/block-test-tests: New file.
62970         * modules/unictype/category-C-tests: New file.
62971         * modules/unictype/category-Cc-tests: New file.
62972         * modules/unictype/category-Cf-tests: New file.
62973         * modules/unictype/category-Cn-tests: New file.
62974         * modules/unictype/category-Co-tests: New file.
62975         * modules/unictype/category-Cs-tests: New file.
62976         * modules/unictype/category-L-tests: New file.
62977         * modules/unictype/category-Ll-tests: New file.
62978         * modules/unictype/category-Lm-tests: New file.
62979         * modules/unictype/category-Lo-tests: New file.
62980         * modules/unictype/category-Lt-tests: New file.
62981         * modules/unictype/category-Lu-tests: New file.
62982         * modules/unictype/category-M-tests: New file.
62983         * modules/unictype/category-Mc-tests: New file.
62984         * modules/unictype/category-Me-tests: New file.
62985         * modules/unictype/category-Mn-tests: New file.
62986         * modules/unictype/category-N-tests: New file.
62987         * modules/unictype/category-Nd-tests: New file.
62988         * modules/unictype/category-Nl-tests: New file.
62989         * modules/unictype/category-No-tests: New file.
62990         * modules/unictype/category-P-tests: New file.
62991         * modules/unictype/category-Pc-tests: New file.
62992         * modules/unictype/category-Pd-tests: New file.
62993         * modules/unictype/category-Pe-tests: New file.
62994         * modules/unictype/category-Pf-tests: New file.
62995         * modules/unictype/category-Pi-tests: New file.
62996         * modules/unictype/category-Po-tests: New file.
62997         * modules/unictype/category-Ps-tests: New file.
62998         * modules/unictype/category-S-tests: New file.
62999         * modules/unictype/category-Sc-tests: New file.
63000         * modules/unictype/category-Sk-tests: New file.
63001         * modules/unictype/category-Sm-tests: New file.
63002         * modules/unictype/category-So-tests: New file.
63003         * modules/unictype/category-Z-tests: New file.
63004         * modules/unictype/category-Zl-tests: New file.
63005         * modules/unictype/category-Zp-tests: New file.
63006         * modules/unictype/category-Zs-tests: New file.
63007         * modules/unictype/category-and-not-tests: New file.
63008         * modules/unictype/category-and-tests: New file.
63009         * modules/unictype/category-byname-tests: New file.
63010         * modules/unictype/category-name-tests: New file.
63011         * modules/unictype/category-none-tests: New file.
63012         * modules/unictype/category-of-tests: New file.
63013         * modules/unictype/category-or-tests: New file.
63014         * modules/unictype/category-test-withtable-tests: New file.
63015         * modules/unictype/combining-class-tests: New file.
63016         * modules/unictype/ctype-alnum-tests: New file.
63017         * modules/unictype/ctype-alpha-tests: New file.
63018         * modules/unictype/ctype-blank-tests: New file.
63019         * modules/unictype/ctype-cntrl-tests: New file.
63020         * modules/unictype/ctype-digit-tests: New file.
63021         * modules/unictype/ctype-graph-tests: New file.
63022         * modules/unictype/ctype-lower-tests: New file.
63023         * modules/unictype/ctype-print-tests: New file.
63024         * modules/unictype/ctype-punct-tests: New file.
63025         * modules/unictype/ctype-space-tests: New file.
63026         * modules/unictype/ctype-upper-tests: New file.
63027         * modules/unictype/ctype-xdigit-tests: New file.
63028         * modules/unictype/decimal-digit-tests: New file.
63029         * modules/unictype/digit-tests: New file.
63030         * modules/unictype/mirror-tests: New file.
63031         * modules/unictype/numeric-tests: New file.
63032         * modules/unictype/property-alphabetic-tests: New file.
63033         * modules/unictype/property-ascii-hex-digit-tests: New file.
63034         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63035         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63036         * modules/unictype/property-bidi-block-separator-tests: New file.
63037         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63038         * modules/unictype/property-bidi-common-separator-tests: New file.
63039         * modules/unictype/property-bidi-control-tests: New file.
63040         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63041         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63042         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63043         * modules/unictype/property-bidi-european-digit-tests: New file.
63044         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63045         * modules/unictype/property-bidi-left-to-right-tests: New file.
63046         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63047         * modules/unictype/property-bidi-other-neutral-tests: New file.
63048         * modules/unictype/property-bidi-pdf-tests: New file.
63049         * modules/unictype/property-bidi-segment-separator-tests: New file.
63050         * modules/unictype/property-bidi-whitespace-tests: New file.
63051         * modules/unictype/property-byname-tests: New file.
63052         * modules/unictype/property-combining-tests: New file.
63053         * modules/unictype/property-composite-tests: New file.
63054         * modules/unictype/property-currency-symbol-tests: New file.
63055         * modules/unictype/property-dash-tests: New file.
63056         * modules/unictype/property-decimal-digit-tests: New file.
63057         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63058         * modules/unictype/property-deprecated-tests: New file.
63059         * modules/unictype/property-diacritic-tests: New file.
63060         * modules/unictype/property-extender-tests: New file.
63061         * modules/unictype/property-format-control-tests: New file.
63062         * modules/unictype/property-grapheme-base-tests: New file.
63063         * modules/unictype/property-grapheme-extend-tests: New file.
63064         * modules/unictype/property-grapheme-link-tests: New file.
63065         * modules/unictype/property-hex-digit-tests: New file.
63066         * modules/unictype/property-hyphen-tests: New file.
63067         * modules/unictype/property-id-continue-tests: New file.
63068         * modules/unictype/property-id-start-tests: New file.
63069         * modules/unictype/property-ideographic-tests: New file.
63070         * modules/unictype/property-ids-binary-operator-tests: New file.
63071         * modules/unictype/property-ids-trinary-operator-tests: New file.
63072         * modules/unictype/property-ignorable-control-tests: New file.
63073         * modules/unictype/property-iso-control-tests: New file.
63074         * modules/unictype/property-join-control-tests: New file.
63075         * modules/unictype/property-left-of-pair-tests: New file.
63076         * modules/unictype/property-line-separator-tests: New file.
63077         * modules/unictype/property-logical-order-exception-tests: New file.
63078         * modules/unictype/property-lowercase-tests: New file.
63079         * modules/unictype/property-math-tests: New file.
63080         * modules/unictype/property-non-break-tests: New file.
63081         * modules/unictype/property-not-a-character-tests: New file.
63082         * modules/unictype/property-numeric-tests: New file.
63083         * modules/unictype/property-other-alphabetic-tests: New file.
63084         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63085         * modules/unictype/property-other-grapheme-extend-tests: New file.
63086         * modules/unictype/property-other-id-continue-tests: New file.
63087         * modules/unictype/property-other-id-start-tests: New file.
63088         * modules/unictype/property-other-lowercase-tests: New file.
63089         * modules/unictype/property-other-math-tests: New file.
63090         * modules/unictype/property-other-uppercase-tests: New file.
63091         * modules/unictype/property-paired-punctuation-tests: New file.
63092         * modules/unictype/property-paragraph-separator-tests: New file.
63093         * modules/unictype/property-pattern-syntax-tests: New file.
63094         * modules/unictype/property-pattern-white-space-tests: New file.
63095         * modules/unictype/property-private-use-tests: New file.
63096         * modules/unictype/property-punctuation-tests: New file.
63097         * modules/unictype/property-quotation-mark-tests: New file.
63098         * modules/unictype/property-radical-tests: New file.
63099         * modules/unictype/property-sentence-terminal-tests: New file.
63100         * modules/unictype/property-soft-dotted-tests: New file.
63101         * modules/unictype/property-space-tests: New file.
63102         * modules/unictype/property-terminal-punctuation-tests: New file.
63103         * modules/unictype/property-test-tests: New file.
63104         * modules/unictype/property-titlecase-tests: New file.
63105         * modules/unictype/property-unassigned-code-value-tests: New file.
63106         * modules/unictype/property-unified-ideograph-tests: New file.
63107         * modules/unictype/property-uppercase-tests: New file.
63108         * modules/unictype/property-variation-selector-tests: New file.
63109         * modules/unictype/property-white-space-tests: New file.
63110         * modules/unictype/property-xid-continue-tests: New file.
63111         * modules/unictype/property-xid-start-tests: New file.
63112         * modules/unictype/property-zero-width-tests: New file.
63113         * modules/unictype/scripts-tests: New file.
63114         * modules/unictype/syntax-c-ident-tests: New file.
63115         * modules/unictype/syntax-c-whitespace-tests: New file.
63116         * modules/unictype/syntax-java-ident-tests: New file.
63117         * modules/unictype/syntax-java-whitespace-tests: New file.
63118         * tests/unictype/test-bidi_byname.c: New file.
63119         * tests/unictype/test-bidi_name.c: New file.
63120         * tests/unictype/test-bidi_of.c: New file.
63121         * tests/unictype/test-bidi_test.c: New file.
63122         * tests/unictype/test-block_list.c: New file.
63123         * tests/unictype/test-block_of.c: New file.
63124         * tests/unictype/test-block_test.c: New file.
63125         * tests/unictype/test-categ_and.c: New file.
63126         * tests/unictype/test-categ_and_not.c: New file.
63127         * tests/unictype/test-categ_byname.c: New file.
63128         * tests/unictype/test-categ_name.c: New file.
63129         * tests/unictype/test-categ_none.c: New file.
63130         * tests/unictype/test-categ_of.c: New file.
63131         * tests/unictype/test-categ_or.c: New file.
63132         * tests/unictype/test-categ_test_withtable.c: New file.
63133         * tests/unictype/test-combining.c: New file.
63134         * tests/unictype/test-decdigit.c: New file.
63135         * tests/unictype/test-digit.c: New file.
63136         * tests/unictype/test-mirror.c: New file.
63137         * tests/unictype/test-numeric.c: New file.
63138         * tests/unictype/test-pr_byname.c: New file.
63139         * tests/unictype/test-pr_test.c: New file.
63140         * tests/unictype/test-predicate-part1.h: New file.
63141         * tests/unictype/test-predicate-part2.h: New file.
63142         * tests/unictype/test-scripts.c: New file.
63143         * tests/unictype/test-sy_c_ident.c: New file.
63144         * tests/unictype/test-sy_java_ident.c: New file.
63145
63146         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63147         for Unicode 5.0.0.
63148         * tests/unictype/test-categ_Cc.c: Likewise.
63149         * tests/unictype/test-categ_Cf.c: Likewise.
63150         * tests/unictype/test-categ_Cn.c: Likewise.
63151         * tests/unictype/test-categ_Co.c: Likewise.
63152         * tests/unictype/test-categ_Cs.c: Likewise.
63153         * tests/unictype/test-categ_L.c: Likewise.
63154         * tests/unictype/test-categ_Ll.c: Likewise.
63155         * tests/unictype/test-categ_Lm.c: Likewise.
63156         * tests/unictype/test-categ_Lo.c: Likewise.
63157         * tests/unictype/test-categ_Lt.c: Likewise.
63158         * tests/unictype/test-categ_Lu.c: Likewise.
63159         * tests/unictype/test-categ_M.c: Likewise.
63160         * tests/unictype/test-categ_Mc.c: Likewise.
63161         * tests/unictype/test-categ_Me.c: Likewise.
63162         * tests/unictype/test-categ_Mn.c: Likewise.
63163         * tests/unictype/test-categ_N.c: Likewise.
63164         * tests/unictype/test-categ_Nd.c: Likewise.
63165         * tests/unictype/test-categ_Nl.c: Likewise.
63166         * tests/unictype/test-categ_No.c: Likewise.
63167         * tests/unictype/test-categ_P.c: Likewise.
63168         * tests/unictype/test-categ_Pc.c: Likewise.
63169         * tests/unictype/test-categ_Pd.c: Likewise.
63170         * tests/unictype/test-categ_Pe.c: Likewise.
63171         * tests/unictype/test-categ_Pf.c: Likewise.
63172         * tests/unictype/test-categ_Pi.c: Likewise.
63173         * tests/unictype/test-categ_Po.c: Likewise.
63174         * tests/unictype/test-categ_Ps.c: Likewise.
63175         * tests/unictype/test-categ_S.c: Likewise.
63176         * tests/unictype/test-categ_Sc.c: Likewise.
63177         * tests/unictype/test-categ_Sk.c: Likewise.
63178         * tests/unictype/test-categ_Sm.c: Likewise.
63179         * tests/unictype/test-categ_So.c: Likewise.
63180         * tests/unictype/test-categ_Z.c: Likewise.
63181         * tests/unictype/test-categ_Zl.c: Likewise.
63182         * tests/unictype/test-categ_Zp.c: Likewise.
63183         * tests/unictype/test-categ_Zs.c: Likewise.
63184         * tests/unictype/test-ctype_alnum.c: Likewise.
63185         * tests/unictype/test-ctype_alpha.c: Likewise.
63186         * tests/unictype/test-ctype_blank.c: Likewise.
63187         * tests/unictype/test-ctype_cntrl.c: Likewise.
63188         * tests/unictype/test-ctype_digit.c: Likewise.
63189         * tests/unictype/test-ctype_graph.c: Likewise.
63190         * tests/unictype/test-ctype_lower.c: Likewise.
63191         * tests/unictype/test-ctype_print.c: Likewise.
63192         * tests/unictype/test-ctype_punct.c: Likewise.
63193         * tests/unictype/test-ctype_space.c: Likewise.
63194         * tests/unictype/test-ctype_upper.c: Likewise.
63195         * tests/unictype/test-ctype_xdigit.c: Likewise.
63196         * tests/unictype/test-decdigit.h: Likewise.
63197         * tests/unictype/test-digit.h: Likewise.
63198         * tests/unictype/test-numeric.h: Likewise.
63199         * tests/unictype/test-pr_alphabetic.c: Likewise.
63200         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63201         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63202         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63203         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63204         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63205         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63206         * tests/unictype/test-pr_bidi_control.c: Likewise.
63207         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63208         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63209         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63210         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63211         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63212         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63213         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63214         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63215         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63216         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63217         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63218         * tests/unictype/test-pr_combining.c: Likewise.
63219         * tests/unictype/test-pr_composite.c: Likewise.
63220         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63221         * tests/unictype/test-pr_dash.c: Likewise.
63222         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63223         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63224         * tests/unictype/test-pr_deprecated.c: Likewise.
63225         * tests/unictype/test-pr_diacritic.c: Likewise.
63226         * tests/unictype/test-pr_extender.c: Likewise.
63227         * tests/unictype/test-pr_format_control.c: Likewise.
63228         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63229         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63230         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63231         * tests/unictype/test-pr_hex_digit.c: Likewise.
63232         * tests/unictype/test-pr_hyphen.c: Likewise.
63233         * tests/unictype/test-pr_id_continue.c: Likewise.
63234         * tests/unictype/test-pr_id_start.c: Likewise.
63235         * tests/unictype/test-pr_ideographic.c: Likewise.
63236         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63237         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63238         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63239         * tests/unictype/test-pr_iso_control.c: Likewise.
63240         * tests/unictype/test-pr_join_control.c: Likewise.
63241         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63242         * tests/unictype/test-pr_line_separator.c: Likewise.
63243         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63244         * tests/unictype/test-pr_lowercase.c: Likewise.
63245         * tests/unictype/test-pr_math.c: Likewise.
63246         * tests/unictype/test-pr_non_break.c: Likewise.
63247         * tests/unictype/test-pr_not_a_character.c: Likewise.
63248         * tests/unictype/test-pr_numeric.c: Likewise.
63249         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63250         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63251         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63252         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63253         * tests/unictype/test-pr_other_id_start.c: Likewise.
63254         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63255         * tests/unictype/test-pr_other_math.c: Likewise.
63256         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63257         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63258         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63259         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63260         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63261         * tests/unictype/test-pr_private_use.c: Likewise.
63262         * tests/unictype/test-pr_punctuation.c: Likewise.
63263         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63264         * tests/unictype/test-pr_radical.c: Likewise.
63265         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63266         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63267         * tests/unictype/test-pr_space.c: Likewise.
63268         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63269         * tests/unictype/test-pr_titlecase.c: Likewise.
63270         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63271         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63272         * tests/unictype/test-pr_uppercase.c: Likewise.
63273         * tests/unictype/test-pr_variation_selector.c: Likewise.
63274         * tests/unictype/test-pr_white_space.c: Likewise.
63275         * tests/unictype/test-pr_xid_continue.c: Likewise.
63276         * tests/unictype/test-pr_xid_start.c: Likewise.
63277         * tests/unictype/test-pr_zero_width.c: Likewise.
63278         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63279         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63280
63281 2007-11-12  Bruno Haible  <bruno@clisp.org>
63282
63283         Unicode character classification functions.
63284         * lib/unictype.h: New file.
63285         * modules/unictype/base: New file.
63286         * modules/unictype/category-L: New file.
63287         * modules/unictype/category-Lu: New file.
63288         * modules/unictype/category-Ll: New file.
63289         * modules/unictype/category-Lt: New file.
63290         * modules/unictype/category-Lm: New file.
63291         * modules/unictype/category-Lo: New file.
63292         * modules/unictype/category-M: New file.
63293         * modules/unictype/category-Mn: New file.
63294         * modules/unictype/category-Mc: New file.
63295         * modules/unictype/category-Me: New file.
63296         * modules/unictype/category-N: New file.
63297         * modules/unictype/category-Nd: New file.
63298         * modules/unictype/category-Nl: New file.
63299         * modules/unictype/category-No: New file.
63300         * modules/unictype/category-P: New file.
63301         * modules/unictype/category-Pc: New file.
63302         * modules/unictype/category-Pd: New file.
63303         * modules/unictype/category-Ps: New file.
63304         * modules/unictype/category-Pe: New file.
63305         * modules/unictype/category-Pi: New file.
63306         * modules/unictype/category-Pf: New file.
63307         * modules/unictype/category-Po: New file.
63308         * modules/unictype/category-S: New file.
63309         * modules/unictype/category-Sm: New file.
63310         * modules/unictype/category-Sc: New file.
63311         * modules/unictype/category-Sk: New file.
63312         * modules/unictype/category-So: New file.
63313         * modules/unictype/category-Z: New file.
63314         * modules/unictype/category-Zs: New file.
63315         * modules/unictype/category-Zl: New file.
63316         * modules/unictype/category-Zp: New file.
63317         * modules/unictype/category-C: New file.
63318         * modules/unictype/category-Cc: New file.
63319         * modules/unictype/category-Cf: New file.
63320         * modules/unictype/category-Cs: New file.
63321         * modules/unictype/category-Co: New file.
63322         * modules/unictype/category-Cn: New file.
63323         * modules/unictype/category-or: New file.
63324         * modules/unictype/category-of: New file.
63325         * modules/unictype/category-test: New file.
63326         * modules/unictype/category-test-withtable: New file.
63327         * modules/unictype/category-byname: New file.
63328         * modules/unictype/category-none: New file.
63329         * modules/unictype/category-and: New file.
63330         * modules/unictype/category-and-not: New file.
63331         * modules/unictype/category-name: New file.
63332         * modules/unictype/combining-class: New file.
63333         * modules/unictype/category-all: New file.
63334         * modules/unictype/bidicategory-all: New file.
63335         * modules/unictype/bidicategory-byname: New file.
63336         * modules/unictype/bidicategory-name: New file.
63337         * modules/unictype/bidicategory-of: New file.
63338         * modules/unictype/bidicategory-test: New file.
63339         * modules/unictype/decimal-digit: New file.
63340         * modules/unictype/digit: New file.
63341         * modules/unictype/numeric: New file.
63342         * modules/unictype/mirror: New file.
63343         * modules/unictype/property-white-space: New file.
63344         * modules/unictype/property-alphabetic: New file.
63345         * modules/unictype/property-other-alphabetic: New file.
63346         * modules/unictype/property-not-a-character: New file.
63347         * modules/unictype/property-default-ignorable-code-point: New file.
63348         * modules/unictype/property-other-default-ignorable-code-point: New
63349         file.
63350         * modules/unictype/property-deprecated: New file.
63351         * modules/unictype/property-logical-order-exception: New file.
63352         * modules/unictype/property-variation-selector: New file.
63353         * modules/unictype/property-private-use: New file.
63354         * modules/unictype/property-unassigned-code-value: New file.
63355         * modules/unictype/property-uppercase: New file.
63356         * modules/unictype/property-other-uppercase: New file.
63357         * modules/unictype/property-lowercase: New file.
63358         * modules/unictype/property-other-lowercase: New file.
63359         * modules/unictype/property-titlecase: New file.
63360         * modules/unictype/property-soft-dotted: New file.
63361         * modules/unictype/property-id-start: New file.
63362         * modules/unictype/property-other-id-start: New file.
63363         * modules/unictype/property-id-continue: New file.
63364         * modules/unictype/property-other-id-continue: New file.
63365         * modules/unictype/property-xid-start: New file.
63366         * modules/unictype/property-xid-continue: New file.
63367         * modules/unictype/property-pattern-white-space: New file.
63368         * modules/unictype/property-pattern-syntax: New file.
63369         * modules/unictype/property-join-control: New file.
63370         * modules/unictype/property-grapheme-base: New file.
63371         * modules/unictype/property-grapheme-extend: New file.
63372         * modules/unictype/property-other-grapheme-extend: New file.
63373         * modules/unictype/property-grapheme-link: New file.
63374         * modules/unictype/property-bidi-control: New file.
63375         * modules/unictype/property-bidi-left-to-right: New file.
63376         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63377         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63378         * modules/unictype/property-bidi-european-digit: New file.
63379         * modules/unictype/property-bidi-eur-num-separator: New file.
63380         * modules/unictype/property-bidi-eur-num-terminator: New file.
63381         * modules/unictype/property-bidi-arabic-digit: New file.
63382         * modules/unictype/property-bidi-common-separator: New file.
63383         * modules/unictype/property-bidi-block-separator: New file.
63384         * modules/unictype/property-bidi-segment-separator: New file.
63385         * modules/unictype/property-bidi-whitespace: New file.
63386         * modules/unictype/property-bidi-non-spacing-mark: New file.
63387         * modules/unictype/property-bidi-boundary-neutral: New file.
63388         * modules/unictype/property-bidi-pdf: New file.
63389         * modules/unictype/property-bidi-embedding-or-override: New file.
63390         * modules/unictype/property-bidi-other-neutral: New file.
63391         * modules/unictype/property-hex-digit: New file.
63392         * modules/unictype/property-ascii-hex-digit: New file.
63393         * modules/unictype/property-ideographic: New file.
63394         * modules/unictype/property-unified-ideograph: New file.
63395         * modules/unictype/property-radical: New file.
63396         * modules/unictype/property-ids-binary-operator: New file.
63397         * modules/unictype/property-ids-trinary-operator: New file.
63398         * modules/unictype/property-zero-width: New file.
63399         * modules/unictype/property-space: New file.
63400         * modules/unictype/property-non-break: New file.
63401         * modules/unictype/property-iso-control: New file.
63402         * modules/unictype/property-format-control: New file.
63403         * modules/unictype/property-dash: New file.
63404         * modules/unictype/property-hyphen: New file.
63405         * modules/unictype/property-punctuation: New file.
63406         * modules/unictype/property-line-separator: New file.
63407         * modules/unictype/property-paragraph-separator: New file.
63408         * modules/unictype/property-quotation-mark: New file.
63409         * modules/unictype/property-sentence-terminal: New file.
63410         * modules/unictype/property-terminal-punctuation: New file.
63411         * modules/unictype/property-currency-symbol: New file.
63412         * modules/unictype/property-math: New file.
63413         * modules/unictype/property-other-math: New file.
63414         * modules/unictype/property-paired-punctuation: New file.
63415         * modules/unictype/property-left-of-pair: New file.
63416         * modules/unictype/property-combining: New file.
63417         * modules/unictype/property-composite: New file.
63418         * modules/unictype/property-decimal-digit: New file.
63419         * modules/unictype/property-numeric: New file.
63420         * modules/unictype/property-diacritic: New file.
63421         * modules/unictype/property-extender: New file.
63422         * modules/unictype/property-ignorable-control: New file.
63423         * modules/unictype/property-test: New file.
63424         * modules/unictype/property-byname: New file.
63425         * modules/unictype/property-all: New file.
63426         * modules/unictype/scripts: New file.
63427         * modules/unictype/scripts-all: New file.
63428         * modules/unictype/block-of: New file.
63429         * modules/unictype/block-test: New file.
63430         * modules/unictype/block-list: New file.
63431         * modules/unictype/block-all: New file.
63432         * modules/unictype/syntax-c-whitespace: New file.
63433         * modules/unictype/syntax-java-whitespace: New file.
63434         * modules/unictype/syntax-c-ident: New file.
63435         * modules/unictype/syntax-java-ident: New file.
63436         * modules/unictype/ctype-alnum: New file.
63437         * modules/unictype/ctype-alpha: New file.
63438         * modules/unictype/ctype-cntrl: New file.
63439         * modules/unictype/ctype-digit: New file.
63440         * modules/unictype/ctype-graph: New file.
63441         * modules/unictype/ctype-lower: New file.
63442         * modules/unictype/ctype-print: New file.
63443         * modules/unictype/ctype-punct: New file.
63444         * modules/unictype/ctype-space: New file.
63445         * modules/unictype/ctype-upper: New file.
63446         * modules/unictype/ctype-xdigit: New file.
63447         * modules/unictype/ctype-blank: New file.
63448         * lib/unictype/bidi_byname.c: New file.
63449         * lib/unictype/bidi_name.c: New file.
63450         * lib/unictype/bidi_of.c: New file.
63451         * lib/unictype/bidi_test.c: New file.
63452         * lib/unictype/bitmap.h: New file.
63453         * lib/unictype/block_test.c: New file.
63454         * lib/unictype/blocks.c: New file.
63455         * lib/unictype/categ_C.c: New file.
63456         * lib/unictype/categ_Cc.c: New file.
63457         * lib/unictype/categ_Cf.c: New file.
63458         * lib/unictype/categ_Cn.c: New file.
63459         * lib/unictype/categ_Co.c: New file.
63460         * lib/unictype/categ_Cs.c: New file.
63461         * lib/unictype/categ_L.c: New file.
63462         * lib/unictype/categ_Ll.c: New file.
63463         * lib/unictype/categ_Lm.c: New file.
63464         * lib/unictype/categ_Lo.c: New file.
63465         * lib/unictype/categ_Lt.c: New file.
63466         * lib/unictype/categ_Lu.c: New file.
63467         * lib/unictype/categ_M.c: New file.
63468         * lib/unictype/categ_Mc.c: New file.
63469         * lib/unictype/categ_Me.c: New file.
63470         * lib/unictype/categ_Mn.c: New file.
63471         * lib/unictype/categ_N.c: New file.
63472         * lib/unictype/categ_Nd.c: New file.
63473         * lib/unictype/categ_Nl.c: New file.
63474         * lib/unictype/categ_No.c: New file.
63475         * lib/unictype/categ_P.c: New file.
63476         * lib/unictype/categ_Pc.c: New file.
63477         * lib/unictype/categ_Pd.c: New file.
63478         * lib/unictype/categ_Pe.c: New file.
63479         * lib/unictype/categ_Pf.c: New file.
63480         * lib/unictype/categ_Pi.c: New file.
63481         * lib/unictype/categ_Po.c: New file.
63482         * lib/unictype/categ_Ps.c: New file.
63483         * lib/unictype/categ_S.c: New file.
63484         * lib/unictype/categ_Sc.c: New file.
63485         * lib/unictype/categ_Sk.c: New file.
63486         * lib/unictype/categ_Sm.c: New file.
63487         * lib/unictype/categ_So.c: New file.
63488         * lib/unictype/categ_Z.c: New file.
63489         * lib/unictype/categ_Zl.c: New file.
63490         * lib/unictype/categ_Zp.c: New file.
63491         * lib/unictype/categ_Zs.c: New file.
63492         * lib/unictype/categ_and.c: New file.
63493         * lib/unictype/categ_and_not.c: New file.
63494         * lib/unictype/categ_byname.c: New file.
63495         * lib/unictype/categ_name.c: New file.
63496         * lib/unictype/categ_none.c: New file.
63497         * lib/unictype/categ_of.c: New file.
63498         * lib/unictype/categ_or.c: New file.
63499         * lib/unictype/categ_test.c: New file.
63500         * lib/unictype/combining.c: New file.
63501         * lib/unictype/ctype_alnum.c: New file.
63502         * lib/unictype/ctype_alpha.c: New file.
63503         * lib/unictype/ctype_blank.c: New file.
63504         * lib/unictype/ctype_cntrl.c: New file.
63505         * lib/unictype/ctype_digit.c: New file.
63506         * lib/unictype/ctype_graph.c: New file.
63507         * lib/unictype/ctype_lower.c: New file.
63508         * lib/unictype/ctype_print.c: New file.
63509         * lib/unictype/ctype_punct.c: New file.
63510         * lib/unictype/ctype_space.c: New file.
63511         * lib/unictype/ctype_upper.c: New file.
63512         * lib/unictype/ctype_xdigit.c: New file.
63513         * lib/unictype/decdigit.c: New file.
63514         * lib/unictype/digit.c: New file.
63515         * lib/unictype/identsyntaxmap.h: New file.
63516         * lib/unictype/mirror.c: New file.
63517         * lib/unictype/numeric.c: New file.
63518         * lib/unictype/pr_alphabetic.c: New file.
63519         * lib/unictype/pr_ascii_hex_digit.c: New file.
63520         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63521         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63522         * lib/unictype/pr_bidi_block_separator.c: New file.
63523         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63524         * lib/unictype/pr_bidi_common_separator.c: New file.
63525         * lib/unictype/pr_bidi_control.c: New file.
63526         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63527         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63528         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63529         * lib/unictype/pr_bidi_european_digit.c: New file.
63530         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63531         * lib/unictype/pr_bidi_left_to_right.c: New file.
63532         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63533         * lib/unictype/pr_bidi_other_neutral.c: New file.
63534         * lib/unictype/pr_bidi_pdf.c: New file.
63535         * lib/unictype/pr_bidi_segment_separator.c: New file.
63536         * lib/unictype/pr_bidi_whitespace.c: New file.
63537         * lib/unictype/pr_byname.c: New file.
63538         * lib/unictype/pr_byname.gperf: New file.
63539         * lib/unictype/pr_combining.c: New file.
63540         * lib/unictype/pr_composite.c: New file.
63541         * lib/unictype/pr_currency_symbol.c: New file.
63542         * lib/unictype/pr_dash.c: New file.
63543         * lib/unictype/pr_decimal_digit.c: New file.
63544         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63545         * lib/unictype/pr_deprecated.c: New file.
63546         * lib/unictype/pr_diacritic.c: New file.
63547         * lib/unictype/pr_extender.c: New file.
63548         * lib/unictype/pr_format_control.c: New file.
63549         * lib/unictype/pr_grapheme_base.c: New file.
63550         * lib/unictype/pr_grapheme_extend.c: New file.
63551         * lib/unictype/pr_grapheme_link.c: New file.
63552         * lib/unictype/pr_hex_digit.c: New file.
63553         * lib/unictype/pr_hyphen.c: New file.
63554         * lib/unictype/pr_id_continue.c: New file.
63555         * lib/unictype/pr_id_start.c: New file.
63556         * lib/unictype/pr_ideographic.c: New file.
63557         * lib/unictype/pr_ids_binary_operator.c: New file.
63558         * lib/unictype/pr_ids_trinary_operator.c: New file.
63559         * lib/unictype/pr_ignorable_control.c: New file.
63560         * lib/unictype/pr_iso_control.c: New file.
63561         * lib/unictype/pr_join_control.c: New file.
63562         * lib/unictype/pr_left_of_pair.c: New file.
63563         * lib/unictype/pr_line_separator.c: New file.
63564         * lib/unictype/pr_logical_order_exception.c: New file.
63565         * lib/unictype/pr_lowercase.c: New file.
63566         * lib/unictype/pr_math.c: New file.
63567         * lib/unictype/pr_non_break.c: New file.
63568         * lib/unictype/pr_not_a_character.c: New file.
63569         * lib/unictype/pr_numeric.c: New file.
63570         * lib/unictype/pr_other_alphabetic.c: New file.
63571         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63572         * lib/unictype/pr_other_grapheme_extend.c: New file.
63573         * lib/unictype/pr_other_id_continue.c: New file.
63574         * lib/unictype/pr_other_id_start.c: New file.
63575         * lib/unictype/pr_other_lowercase.c: New file.
63576         * lib/unictype/pr_other_math.c: New file.
63577         * lib/unictype/pr_other_uppercase.c: New file.
63578         * lib/unictype/pr_paired_punctuation.c: New file.
63579         * lib/unictype/pr_paragraph_separator.c: New file.
63580         * lib/unictype/pr_pattern_syntax.c: New file.
63581         * lib/unictype/pr_pattern_white_space.c: New file.
63582         * lib/unictype/pr_private_use.c: New file.
63583         * lib/unictype/pr_punctuation.c: New file.
63584         * lib/unictype/pr_quotation_mark.c: New file.
63585         * lib/unictype/pr_radical.c: New file.
63586         * lib/unictype/pr_sentence_terminal.c: New file.
63587         * lib/unictype/pr_soft_dotted.c: New file.
63588         * lib/unictype/pr_space.c: New file.
63589         * lib/unictype/pr_terminal_punctuation.c: New file.
63590         * lib/unictype/pr_test.c: New file.
63591         * lib/unictype/pr_titlecase.c: New file.
63592         * lib/unictype/pr_unassigned_code_value.c: New file.
63593         * lib/unictype/pr_unified_ideograph.c: New file.
63594         * lib/unictype/pr_uppercase.c: New file.
63595         * lib/unictype/pr_variation_selector.c: New file.
63596         * lib/unictype/pr_white_space.c: New file.
63597         * lib/unictype/pr_xid_continue.c: New file.
63598         * lib/unictype/pr_xid_start.c: New file.
63599         * lib/unictype/pr_zero_width.c: New file.
63600         * lib/unictype/scripts.c: New file.
63601         * lib/unictype/sy_c_ident.c: New file.
63602         * lib/unictype/sy_c_whitespace.c: New file.
63603         * lib/unictype/sy_java_ident.c: New file.
63604         * lib/unictype/sy_java_whitespace.c: New file.
63605
63606         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63607         Unicode 5.0.0.
63608         * lib/unictype/blocks.h: Likewise.
63609         * lib/unictype/categ_C.h: Likewise.
63610         * lib/unictype/categ_Cc.h: Likewise.
63611         * lib/unictype/categ_Cf.h: Likewise.
63612         * lib/unictype/categ_Cn.h: Likewise.
63613         * lib/unictype/categ_Co.h: Likewise.
63614         * lib/unictype/categ_Cs.h: Likewise.
63615         * lib/unictype/categ_L.h: Likewise.
63616         * lib/unictype/categ_Ll.h: Likewise.
63617         * lib/unictype/categ_Lm.h: Likewise.
63618         * lib/unictype/categ_Lo.h: Likewise.
63619         * lib/unictype/categ_Lt.h: Likewise.
63620         * lib/unictype/categ_Lu.h: Likewise.
63621         * lib/unictype/categ_M.h: Likewise.
63622         * lib/unictype/categ_Mc.h: Likewise.
63623         * lib/unictype/categ_Me.h: Likewise.
63624         * lib/unictype/categ_Mn.h: Likewise.
63625         * lib/unictype/categ_N.h: Likewise.
63626         * lib/unictype/categ_Nd.h: Likewise.
63627         * lib/unictype/categ_Nl.h: Likewise.
63628         * lib/unictype/categ_No.h: Likewise.
63629         * lib/unictype/categ_P.h: Likewise.
63630         * lib/unictype/categ_Pc.h: Likewise.
63631         * lib/unictype/categ_Pd.h: Likewise.
63632         * lib/unictype/categ_Pe.h: Likewise.
63633         * lib/unictype/categ_Pf.h: Likewise.
63634         * lib/unictype/categ_Pi.h: Likewise.
63635         * lib/unictype/categ_Po.h: Likewise.
63636         * lib/unictype/categ_Ps.h: Likewise.
63637         * lib/unictype/categ_S.h: Likewise.
63638         * lib/unictype/categ_Sc.h: Likewise.
63639         * lib/unictype/categ_Sk.h: Likewise.
63640         * lib/unictype/categ_Sm.h: Likewise.
63641         * lib/unictype/categ_So.h: Likewise.
63642         * lib/unictype/categ_Z.h: Likewise.
63643         * lib/unictype/categ_Zl.h: Likewise.
63644         * lib/unictype/categ_Zp.h: Likewise.
63645         * lib/unictype/categ_Zs.h: Likewise.
63646         * lib/unictype/categ_of.h: Likewise.
63647         * lib/unictype/combining.h: Likewise.
63648         * lib/unictype/ctype_alnum.h: Likewise.
63649         * lib/unictype/ctype_alpha.h: Likewise.
63650         * lib/unictype/ctype_blank.h: Likewise.
63651         * lib/unictype/ctype_cntrl.h: Likewise.
63652         * lib/unictype/ctype_digit.h: Likewise.
63653         * lib/unictype/ctype_graph.h: Likewise.
63654         * lib/unictype/ctype_lower.h: Likewise.
63655         * lib/unictype/ctype_print.h: Likewise.
63656         * lib/unictype/ctype_punct.h: Likewise.
63657         * lib/unictype/ctype_space.h: Likewise.
63658         * lib/unictype/ctype_upper.h: Likewise.
63659         * lib/unictype/ctype_xdigit.h: Likewise.
63660         * lib/unictype/decdigit.h: Likewise.
63661         * lib/unictype/digit.h: Likewise.
63662         * lib/unictype/mirror.h: Likewise.
63663         * lib/unictype/numeric.h: Likewise.
63664         * lib/unictype/pr_alphabetic.h: Likewise.
63665         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63666         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63667         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63668         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63669         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63670         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63671         * lib/unictype/pr_bidi_control.h: Likewise.
63672         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63673         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63674         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63675         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63676         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63677         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63678         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63679         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63680         * lib/unictype/pr_bidi_pdf.h: Likewise.
63681         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63682         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63683         * lib/unictype/pr_combining.h: Likewise.
63684         * lib/unictype/pr_composite.h: Likewise.
63685         * lib/unictype/pr_currency_symbol.h: Likewise.
63686         * lib/unictype/pr_dash.h: Likewise.
63687         * lib/unictype/pr_decimal_digit.h: Likewise.
63688         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63689         * lib/unictype/pr_deprecated.h: Likewise.
63690         * lib/unictype/pr_diacritic.h: Likewise.
63691         * lib/unictype/pr_extender.h: Likewise.
63692         * lib/unictype/pr_format_control.h: Likewise.
63693         * lib/unictype/pr_grapheme_base.h: Likewise.
63694         * lib/unictype/pr_grapheme_extend.h: Likewise.
63695         * lib/unictype/pr_grapheme_link.h: Likewise.
63696         * lib/unictype/pr_hex_digit.h: Likewise.
63697         * lib/unictype/pr_hyphen.h: Likewise.
63698         * lib/unictype/pr_id_continue.h: Likewise.
63699         * lib/unictype/pr_id_start.h: Likewise.
63700         * lib/unictype/pr_ideographic.h: Likewise.
63701         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63702         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63703         * lib/unictype/pr_ignorable_control.h: Likewise.
63704         * lib/unictype/pr_iso_control.h: Likewise.
63705         * lib/unictype/pr_join_control.h: Likewise.
63706         * lib/unictype/pr_left_of_pair.h: Likewise.
63707         * lib/unictype/pr_line_separator.h: Likewise.
63708         * lib/unictype/pr_logical_order_exception.h: Likewise.
63709         * lib/unictype/pr_lowercase.h: Likewise.
63710         * lib/unictype/pr_math.h: Likewise.
63711         * lib/unictype/pr_non_break.h: Likewise.
63712         * lib/unictype/pr_not_a_character.h: Likewise.
63713         * lib/unictype/pr_numeric.h: Likewise.
63714         * lib/unictype/pr_other_alphabetic.h: Likewise.
63715         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63716         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63717         * lib/unictype/pr_other_id_continue.h: Likewise.
63718         * lib/unictype/pr_other_id_start.h: Likewise.
63719         * lib/unictype/pr_other_lowercase.h: Likewise.
63720         * lib/unictype/pr_other_math.h: Likewise.
63721         * lib/unictype/pr_other_uppercase.h: Likewise.
63722         * lib/unictype/pr_paired_punctuation.h: Likewise.
63723         * lib/unictype/pr_paragraph_separator.h: Likewise.
63724         * lib/unictype/pr_pattern_syntax.h: Likewise.
63725         * lib/unictype/pr_pattern_white_space.h: Likewise.
63726         * lib/unictype/pr_private_use.h: Likewise.
63727         * lib/unictype/pr_punctuation.h: Likewise.
63728         * lib/unictype/pr_quotation_mark.h: Likewise.
63729         * lib/unictype/pr_radical.h: Likewise.
63730         * lib/unictype/pr_sentence_terminal.h: Likewise.
63731         * lib/unictype/pr_soft_dotted.h: Likewise.
63732         * lib/unictype/pr_space.h: Likewise.
63733         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63734         * lib/unictype/pr_titlecase.h: Likewise.
63735         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63736         * lib/unictype/pr_unified_ideograph.h: Likewise.
63737         * lib/unictype/pr_uppercase.h: Likewise.
63738         * lib/unictype/pr_variation_selector.h: Likewise.
63739         * lib/unictype/pr_white_space.h: Likewise.
63740         * lib/unictype/pr_xid_continue.h: Likewise.
63741         * lib/unictype/pr_xid_start.h: Likewise.
63742         * lib/unictype/pr_zero_width.h: Likewise.
63743         * lib/unictype/scripts.h: Likewise.
63744         * lib/unictype/scripts_byname.gperf: Likewise.
63745         * lib/unictype/sy_c_ident.h: Likewise.
63746         * lib/unictype/sy_c_whitespace.h: Likewise.
63747         * lib/unictype/sy_java_ident.h: Likewise.
63748         * lib/unictype/sy_java_whitespace.h: Likewise.
63749
63750         * lib/unictype/Makefile: New file.
63751         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63752         glibc.
63753         * lib/unictype/3level.h: New file, copied from glibc.
63754         * lib/unictype/3levelbit.h: New file.
63755
63756 2007-11-11  Bruno Haible  <bruno@clisp.org>
63757
63758         * modules/gperf: New file.
63759         * modules/iconv_open (Depends-on): Add it.
63760         (Makefile.am): Remove the GPERF definition.
63761
63762 2007-11-11  Bruno Haible  <bruno@clisp.org>
63763
63764         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63765         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63766
63767 2007-11-11  Bruno Haible  <bruno@clisp.org>
63768
63769         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63770         (usage): Remove function.
63771
63772 2007-11-11  Bruno Haible  <bruno@clisp.org>
63773
63774         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63775         gl_FUNC_CEILF_LIBS.
63776         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63777         gl_FUNC_CEIL_LIBS.
63778         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63779         gl_FUNC_CEILL_LIBS.
63780         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63781         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63782         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63783
63784 2007-11-11  Bruno Haible  <bruno@clisp.org>
63785
63786         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63787         roundf were declared but do not exist on functions.
63788         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63789         roundl were declared but do not exist on functions.
63790         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63791         HAVE_FLOORL_AND_CEILL, respectively.
63792         Needed for Sun C on Solaris 10.
63793
63794 2007-11-11  Bruno Haible  <bruno@clisp.org>
63795
63796         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63797         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63798         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63799         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63800         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63801         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63802         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63803         HAVE_DECL_ROUNDF.
63804         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63805         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63807         of HAVE_DECL_ROUND*.
63808         * modules/math (Makefile.am): Update.
63809
63810 2007-11-10  Bruno Haible  <bruno@clisp.org>
63811
63812         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63813         ptrdiff_t as m4/intl.m4.
63814
63815 2007-11-10  Jim Meyering  <meyering@redhat.com>
63816
63817         Avoid link failure for the argmatch test.
63818         * tests/test-argmatch.c (usage): Define function to avoid a link
63819         failure: argmatch_die requires a usage function.
63820
63821 2007-11-09  Bruno Haible  <bruno@clisp.org>
63822
63823         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63824         * doc/functions/vsnprintf.texi: Likewise.
63825         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63826         with a size argument < 2.
63827
63828 2007-11-09  Bruno Haible  <bruno@clisp.org>
63829
63830         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63831         buffer. Fixes an inefficiency introduced on 2007-11-03.
63832
63833 2007-11-09  Bruno Haible  <bruno@clisp.org>
63834
63835         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63836         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63837
63838 2007-11-08  Jim Meyering  <meyering@redhat.com>
63839
63840         Change cache variable name prefix "jm_" to "gl_" everywhere.
63841         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63842         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63843         * m4/uptime.m4: s/gl_/jm_/
63844
63845 2007-11-07  Bruno Haible  <bruno@clisp.org>
63846
63847         Update to GNU gettext 0.17.
63848         * m4/intl.m4: Update to GNU gettext 0.17.
63849         * m4/po.m4: Likewise.
63850         * modules/gettext (Files): Remove m4/ulonglong.m4.
63851         (configure.ac): Require gettext infrastructure from version 0.17.
63852
63853 2007-11-06  Bruno Haible  <bruno@clisp.org>
63854
63855         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63856         symbolic values are not defined in a public header.
63857         * lib/freadable.c (freadable) [QNX]: Likewise.
63858         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63859         * lib/freading.c (freading) [QNX]: Likewise.
63860         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63861         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63862         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63863         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63864         Reported by Alain Magloire.
63865
63866         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63867
63868 2007-11-05  Bruno Haible  <bruno@clisp.org>
63869
63870         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63871         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63872         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63873         Reported by Eric Blake.
63874
63875 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63876             Bruno Haible  <bruno@clisp.org>
63877
63878         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63879         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63880         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63881         (malloc): Undefine also before including <stdlib.h>.
63882         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63883         Needed on OSF/1 4.0.
63884
63885 2007-11-05  Jim Meyering  <meyering@redhat.com>
63886
63887         git-version-gen: sync from coreutils.
63888         * build-aux/git-version-gen: Add comments.
63889         Change the first '-' to '.' in the snapshot version string,
63890         e.g., 6.9-377-08144 -> 6.9.377-08144
63891         Remove first parameter.
63892         Don't declare a version "-dirty" merely because a time
63893         stamp has changed.
63894
63895 2007-11-04  Bruno Haible  <bruno@clisp.org>
63896
63897         * lib/lock.h: Protect all macro definitions containing an 'if'
63898         statement through a "do { ... } while (0)".
63899         * lib/tls.h: Likewise.
63900
63901 2007-11-04  Bruno Haible  <bruno@clisp.org>
63902
63903         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63904
63905 2007-11-04  Bruno Haible  <bruno@clisp.org>
63906
63907         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63908         * modules/fprintf-posix (Depends-on): Add nocrash.
63909         * modules/snprintf-posix (Depends-on): Likewise.
63910         * modules/sprintf-posix (Depends-on): Likewise.
63911         * modules/vasnprintf-posix (Depends-on): Likewise.
63912         * modules/vasprintf-posix (Depends-on): Likewise.
63913         * modules/vfprintf-posix (Depends-on): Likewise.
63914         * modules/vsnprintf-posix (Depends-on): Likewise.
63915         * modules/vsprintf-posix (Depends-on): Likewise.
63916         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63917         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63918         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63919         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63920         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63921         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63922         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63923
63924 2007-11-04  Bruno Haible  <bruno@clisp.org>
63925
63926         * modules/nocrash: New file.
63927         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63928         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63929
63930 2007-11-04  Bruno Haible  <bruno@clisp.org>
63931
63932         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63933         precision handling.
63934         * tests/test-vasprintf-posix.c (test_function): Likewise.
63935         * tests/test-snprintf-posix.h (test_function): Likewise.
63936         * tests/test-sprintf-posix.h (test_function): Likewise.
63937
63938         Fix *printf behaviour for large precisions on mingw and BeOS.
63939         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63940         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63941         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63942         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63944         gl_PRINTF_PRECISION and test its result. Invoke
63945         gl_PREREQ_VASNPRINTF_PRECISION.
63946         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63947         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63948         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63949         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63950         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63951         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63953         * doc/functions/fprintf.texi: Update.
63954         * doc/functions/printf.texi: Update.
63955         * doc/functions/snprintf.texi: Update.
63956         * doc/functions/sprintf.texi: Update.
63957         * doc/functions/vfprintf.texi: Update.
63958         * doc/functions/vprintf.texi: Update.
63959         * doc/functions/vsnprintf.texi: Update.
63960         * doc/functions/vsprintf.texi: Update.
63961
63962 2007-11-04  Bruno Haible  <bruno@clisp.org>
63963
63964         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63965
63966 2007-11-04  Bruno Haible  <bruno@clisp.org>
63967
63968         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63969         Reported by Sylvain Beucler <beuc@gnu.org>.
63970
63971 2007-11-03  Bruno Haible  <bruno@clisp.org>
63972
63973         * tests/test-fprintf-posix2.sh: New file.
63974         * tests/test-fprintf-posix2.c: New file.
63975         * modules/fprintf-posix-tests (Files): Add them.
63976         (TESTS): Add test-fprintf-posix2.sh.
63977         (configure.ac): Check for getrlimit and setrlimit.
63978         (check_PROGRAMS): Add test-fprintf-posix2.
63979
63980         * tests/test-printf-posix2.sh: New file.
63981         * tests/test-printf-posix2.c: New file.
63982         * modules/printf-posix-tests (Files): Add them.
63983         (TESTS): Add test-printf-posix2.sh.
63984         (configure.ac): Check for getrlimit and setrlimit.
63985         (check_PROGRAMS): Add test-printf-posix2.
63986
63987         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63988         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63989         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63990         (decode_double): New function, copied from decode_long_double.
63991         (scale10_round_decimal_decoded): New function, extracted from
63992         scale10_round_decimal_long_double.
63993         (scale10_round_decimal_long_double): Use it.
63994         (scale10_round_decimal_double): New function.
63995         (floorlog10): New function.
63996         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63998         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64000         gl_PRINTF_ENOMEM and test its result. Invoke
64001         gl_PREREQ_VASNPRINTF_ENOMEM.
64002         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64003         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64009         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64010         * modules/snprintf-posix (Depends-on): Likewise.
64011         * modules/sprintf-posix (Depends-on): Likewise.
64012         * modules/vasnprintf-posix (Depends-on): Likewise.
64013         * modules/vasprintf-posix (Depends-on): Likewise.
64014         * modules/vfprintf-posix (Depends-on): Likewise.
64015         * modules/vsnprintf-posix (Depends-on): Likewise.
64016         * modules/vsprintf-posix (Depends-on): Likewise.
64017         * doc/functions/fprintf.texi: Update.
64018         * doc/functions/printf.texi: Update.
64019         * doc/functions/snprintf.texi: Update.
64020         * doc/functions/sprintf.texi: Update.
64021         * doc/functions/vfprintf.texi: Update.
64022         * doc/functions/vprintf.texi: Update.
64023         * doc/functions/vsnprintf.texi: Update.
64024         * doc/functions/vsprintf.texi: Update.
64025
64026 2007-11-03  Bruno Haible  <bruno@clisp.org>
64027
64028         * modules/frexp-nolibm-tests: New file.
64029
64030         * modules/frexp-nolibm: New file.
64031         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64032
64033 2007-11-03  Bruno Haible  <bruno@clisp.org>
64034
64035         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64036         value is C99 compliant.
64037         Needed for OSF/1 5.1.
64038
64039 2007-11-03  Bruno Haible  <bruno@clisp.org>
64040
64041         Fix out-of-memory handling of vasnprintf.
64042         * lib/printf-parse.c: Include <errno.h>.
64043         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64044         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64045         is already set.
64046
64047 2007-11-02  Eric Blake  <ebb9@byu.net>
64048
64049         Fix tests on cygwin.
64050         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64051
64052 2007-11-01  Bruno Haible  <bruno@clisp.org>
64053
64054         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64055         warning.
64056         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64057         needed for POSIX compatibility.
64058
64059 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64062         for compatibility with GNU.
64063
64064 2007-11-01  Bruno Haible  <bruno@clisp.org>
64065
64066         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64067         (putenv): Renamed from rpl_putenv. Change argument type from
64068         'const char *' to 'char *'.
64069         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64070         of defining putenv in config.h, just set REPLACE_PUTENV.
64071         * modules/putenv (Depends-on): Add stdlib.
64072         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64073         (Include): Use <stdlib.h>.
64074         * lib/stdlib.in.h (putenv): New declaration.
64075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64076         REPLACE_PUTENV.
64077         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64078         REPLACE_PUTENV.
64079         Needed for MacOS X 10.5.0.
64080         Reported by Peter O'Gorman <peter@pogma.com>.
64081
64082 2007-11-01  Jim Meyering  <meyering@redhat.com>
64083
64084         Treat an empty date string exactly like "0".
64085         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64086         if the remaining date string (to be parsed) is empty, use "0".
64087         Reported by Mischa Molhoek and discussed in this thread:
64088         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64089
64090 2007-10-31  Bruno Haible  <bruno@clisp.org>
64091
64092         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64093         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64094         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64095         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64096         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64097         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64098
64099 2007-10-31  Bruno Haible  <bruno@clisp.org>
64100
64101         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64102         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64103         (AC_TYPE_LONG_LONG_INT): Use it.
64104         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64105         it as well.
64106         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64107         to m4/longlong.m4.
64108         * modules/stdint (Files): Remove m4/ulonglong.m4.
64109         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64110         m4/ulonglong.m4.
64111         * modules/strtoumax (Files): Likewise.
64112
64113 2007-10-30  Bruno Haible  <bruno@clisp.org>
64114
64115         * modules/xvasprintf-posix: New file.
64116         Suggested by Eric Blake.
64117
64118 2007-10-30  Bruno Haible  <bruno@clisp.org>
64119
64120         * modules/xprintf-posix-tests: New file.
64121         * tests/test-xprintf-posix.sh: New file.
64122         * tests/test-xprintf-posix.c: New file.
64123         * tests/test-xfprintf-posix.c: New file.
64124
64125         * modules/xprintf-posix: New file.
64126
64127 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64128
64129         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64130         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64131         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64132
64133 2007-10-29  Bruno Haible  <bruno@clisp.org>
64134
64135         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64136         contain the special marker '_cv_'.
64137         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64138         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64139         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64140         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64141         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64142         Reported by Ralf Wildenhues.
64143
64144 2007-10-29  Bruno Haible  <bruno@clisp.org>
64145
64146         * gnulib-tool (func_import): When --lgpl is not specified, set
64147         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64148         GPLv3.
64149         Reported by Simon Josefsson.
64150
64151 2007-10-28  Bruno Haible  <bruno@clisp.org>
64152
64153         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64154         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64155         HAVE_DECL_ISFINITE.
64156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64157         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64158         HAVE_DECL_ISFINITE.
64159
64160 2007-10-28  Bruno Haible  <bruno@clisp.org>
64161
64162         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64163         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64164
64165 2007-10-28  Bruno Haible  <bruno@clisp.org>
64166
64167         Fix link errors with Sun C 5.0 on Solaris 10.
64168         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64169         function is declared but not present in the compiler's libm.
64170         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64171         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64172         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64173         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64174         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64175         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64176         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64178         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64179         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64180         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64181         HAVE_DECL_FLOORL.
64182
64183 2007-10-28  Bruno Haible  <bruno@clisp.org>
64184
64185         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64186         gl_FUNC_FLOORL. Cache the result.
64187         (gl_FUNC_FLOORL): Use it.
64188         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64189         gl_FUNC_CEILL. Cache the result.
64190         (gl_FUNC_CEILL): Use it.
64191
64192         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64193         gl_FUNC_FLOOR. Cache the result.
64194         (gl_FUNC_FLOOR): Use it.
64195         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64196         gl_FUNC_CEIL. Cache the result.
64197         (gl_FUNC_CEIL): Use it.
64198
64199         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64200         gl_FUNC_FLOORF. Cache the result.
64201         (gl_FUNC_FLOORF): Use it.
64202         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64203         gl_FUNC_CEILF. Cache the result.
64204         (gl_FUNC_CEILF): Use it.
64205
64206 2007-10-28  Bruno Haible  <bruno@clisp.org>
64207
64208         * gnulib-tool: Allow specifying the LGPL version number through
64209         --lgpl=2 or --lgpl=3.
64210         (func_usage): Document --lgpl with argument.
64211         Handle --lgpl=... arguments.
64212         (func_import): Recognize also gl_LGPL calls with an argument. When
64213         --lgpl=2 is used and the module's license is just LGPL, report an
64214         error. Set sed_transform_lib_file according to the lgpl variable. In
64215         the generated files, use --lgpl or gl_LGPL invocations with argument,
64216         if necessary.
64217         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64218         an LGPv2+ license.
64219         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64220         gl_LGPL macro.
64221
64222 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64223             Bruno Haible  <bruno@clisp.org>
64224
64225         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64226         (u16_uctomb_aux): Likewise.
64227         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64228         !HAVE_INLINE.
64229         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64230
64231 2007-10-28  Bruno Haible  <bruno@clisp.org>
64232
64233         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64234         Invoke AM_GETTEXT_OPTION if it exists.
64235         * modules/vasprintf: Likewise.
64236         * modules/verror: Likewise.
64237         * modules/xprintf: Likewise.
64238         * modules/xvasprintf: Likewise.
64239
64240 2007-10-27  Ben Pfaff  <blp@gnu.org>
64241
64242         * lib/math.in.h: Define isfinite macro and prototypes for
64243         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64244         implementations.
64245         * m4/math_h.m4: New substitutions for isfinite module.
64246         * lib/isfinite.c: New file.
64247         * m4/isfinite.m4: New file.
64248         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64249         * modules/isfinite: New file.
64250         * modules/isfinite-tests: New file.
64251         * tests/tests-isfinite.c: New file.
64252         * doc/functions/isfinite.texi: Mention isfinite module.
64253         * MODULES.html.sh: Mention new module.
64254
64255 2007-10-27  Ben Pfaff  <blp@gnu.org>
64256
64257         Ralf Wildenhues reported that Tru64 4.0D declares the round
64258         functions but does not have definitions.
64259         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64260         cannot be found in any library, set the output variable to
64261         "missing" instead of "".
64262         * m4/round.m4: Also use our substitute if we cannot find round in
64263         any library, even if it is declared.
64264         * m4/roundf.m4: Likewise for roundf.
64265         * m4/roundl.m4: Likewise for roundl.
64266         * lib/math.in.h: Undefine roundf, round, roundl before defining
64267         their replacements, to allow for hypothetical systems where these
64268         may be defined as macros but not available in libraries.
64269
64270 2007-10-27  Bruno Haible  <bruno@clisp.org>
64271
64272         * doc/gnulib.texi: Invoke @firstparagraphindent.
64273         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64274         changes in gnulib.
64275         (Source changes): New section.
64276
64277 2007-10-26  Bruno Haible  <bruno@clisp.org>
64278
64279         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64280         borrowed from autoconf.
64281
64282 2007-10-26  Bruno Haible  <bruno@clisp.org>
64283
64284         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64285         strerror returned the empty string. Needed on HP-UX 11.00.
64286
64287 2007-10-24  Micah Cowan  <micah@cowan.name>
64288
64289         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64290         * build-aux/bootstrap: Remove support for now-unnecessary option,
64291         --cvs-user, and envvars CVS_USER, CVS_RSH.
64292
64293 2007-10-24  Jim Meyering  <meyering@redhat.com>
64294
64295         Avoid diagnostics from sha1sum when there is no cached checksum.
64296         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64297         if the po.s1 file hasn't been created yet.
64298
64299         * build-aux/bootstrap: Sync from coreutils:
64300         2007-10-24  Jim Meyering  <meyering@redhat.com>
64301         Get gnulib from the git repository, not from an obsolete cvs one.
64302         * build-aux/bootstrap: Suggestion from Micah Cowan.
64303         2007-10-04  Jim Meyering  <jim@meyering.net>
64304         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64305         (update_po_files): Work also when there are no .po files in po/.
64306
64307 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64308
64309         * README: Append ".git" to git and cg examples.
64310         Problem reported by Benoit Sigoure.
64311
64312 2007-10-23  Micah Cowan  <micah@cowan.name>
64313
64314         * users.txt: Add wget.
64315
64316 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64317
64318         Fix linking of some unistdio tests on FreeBSD.
64319         * modules/unistdio/u16-vsnprintf-tests
64320         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64321         * modules/unistdio/u16-vsprintf-tests
64322         (test_u16_vsnprintf1_LDADD): Likewise.
64323         * modules/unistdio/u32-vsnprintf-tests
64324         (test_u32_vsnprintf1_LDADD): Likewise.
64325         * modules/unistdio/u32-vsprintf-tests
64326         (test_u32_vsprintf1_LDADD): Likewise.
64327         * modules/unistdio/u8-vsnprintf-tests
64328         (test_u8_vsnprintf1_LDADD): Likewise.
64329         * modules/unistdio/u8-vsprintf-tests
64330         (test_u8_vsprintf1_LDADD): Likewise.
64331         * modules/unistdio/ulc-vsnprintf-tests
64332         (test_ulc_vsnprintf1_LDADD): Likewise.
64333         * modules/unistdio/ulc-vsprintf-tests
64334         (test_ulc_vsprintf1_LDADD): Likewise.
64335
64336         Fix linking of some uniconv tests on FreeBSD.
64337         * modules/uniconv/u16-conv-from-enc-tests
64338         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64339         * modules/uniconv/u16-conv-to-enc-tests
64340         (test_u16_conv_to_enc_LDADD): Likewise.
64341         * modules/uniconv/u16-strconv-from-enc-tests
64342         (test_u16_strconv_from_enc_LDADD): Likewise.
64343         * modules/uniconv/u16-strconv-to-enc-tests
64344         (test_u16_strconv_to_enc_LDADD): Likewise.
64345         * modules/uniconv/u32-conv-from-enc-tests
64346         (test_u32_conv_from_enc_LDADD): Likewise.
64347         * modules/uniconv/u32-conv-to-enc-tests
64348         (test_u32_conv_to_enc_LDADD): Likewise.
64349         * modules/uniconv/u32-strconv-from-enc-tests
64350         (test_u32_strconv_from_enc_LDADD): Likewise.
64351         * modules/uniconv/u32-strconv-to-enc-tests
64352         (test_u32_strconv_to_enc_LDADD): Likewise.
64353         * modules/uniconv/u8-conv-from-enc-tests
64354         (test_u8_conv_from_enc_LDADD): Likewise.
64355         * modules/uniconv/u8-conv-to-enc-tests
64356         (test_u8_conv_to_enc_LDADD): Likewise.
64357         * modules/uniconv/u8-strconv-from-enc-tests
64358         (test_u8_strconv_from_enc_LDADD): Likewise.
64359         * modules/uniconv/u8-strconv-to-enc-tests
64360         (test_u8_strconv_to_enc_LDADD): Likewise.
64361
64362 2007-10-22  Bruno Haible  <bruno@clisp.org>
64363
64364         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64365         size.
64366
64367 2007-10-22  Eric Blake  <ebb9@byu.net>
64368
64369         Tweak x*printf documentation.
64370         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64371         variable name and comments.
64372         Suggested by Bruno Haible.
64373
64374 2007-10-22  Bruno Haible  <bruno@clisp.org>
64375
64376         * lib/acl.c (copy_acl): Fix file name in comment.
64377
64378 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64379
64380         Fix Tru64 problem with stdbool.h.
64381         * lib/stdbool.in.h (false, true):
64382         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64383         Don't declare as an enum in this situation; it runs afoul of Tru64.
64384         Problem reported by Steven M. Schweda in
64385         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64386
64387 2007-10-22  Eric Blake  <ebb9@byu.net>
64388
64389         Also wrap vf?printf.
64390         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64391         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64392         (xvprintf, xvfprintf): New functions.
64393
64394 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64395
64396         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64397         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64398
64399         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64400         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64401
64402 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64403
64404         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64405         by Bruno Haible.
64406
64407 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64408
64409         * lib/getloadavg.c
64410         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64411         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64412
64413         * tests/test-i-ring.c: Work for C89.
64414
64415 2007-10-22  Bruno Haible  <bruno@clisp.org>
64416
64417         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64418         -1u, in preprocessor expression, so that we don't test for the bug
64419         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64420         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64421
64422 2007-10-22  Eric Blake  <ebb9@byu.net>
64423
64424         * tests/test-yesno.sh: Silence stderr during test.
64425
64426 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64427
64428         * modules/crypto/gc-camellia: New file.
64429
64430         * m4/gc-camellia.m4: New file.
64431
64432         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64433
64434         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64435
64436 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64437
64438         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64439         --help to stdout.  Reported by sms@antinode.org (Steven
64440         M. Schweda).
64441
64442 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64443
64444         * users.txt: Fix link to libksba.
64445
64446 2007-10-21  Ben Pfaff  <blp@gnu.org>
64447
64448         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64449         round.c roundf implementation that depends on floorf and ceilf to
64450         be tested unconditionally.
64451
64452 2007-10-21  Ben Pfaff  <blp@gnu.org>
64453
64454         * m4/check-libm-func.m4: Removed.
64455         * m4/check-math-lib.m4: New file.
64456         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64457         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64458         definition and lack of AC_LIBOBJ([roundf]).
64459         * m4/roundl.m4: Ditto, and similarly for roundl.
64460         * modules/round: Reference new m4 file.
64461         * modules/roundf: Ditto.
64462         * modules/roundl: Ditto.
64463         * tests/test-round2.c (main): Use ROUND instead of round.
64464         Bug report from Bruno Haible.
64465
64466 2007-10-21  Bruno Haible  <bruno@clisp.org>
64467
64468         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64469         context.
64470
64471 2007-10-21  Bruno Haible  <bruno@clisp.org>
64472
64473         * tests/test-wcwidth.c (main): Allow negative result for some control
64474         characters.
64475
64476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64477         Needed on OSF/1 5.1.
64478
64479 2007-10-21  Bruno Haible  <bruno@clisp.org>
64480
64481         * tests/test-floorf1.c: Include isnanf.h.
64482         (main): Use isnanf() instead of isnan().
64483         * tests/test-ceilf1.c: Include isnanf.h.
64484         (main): Use isnanf() instead of isnan().
64485         * tests/test-truncf1.c: Include isnanf.h.
64486         (main): Use isnanf() instead of isnan().
64487         * tests/test-roundf1.c: Include isnanf.h.
64488         (main): Use isnanf() instead of isnan().
64489
64490 2007-10-21  Eric Blake  <ebb9@byu.net>
64491
64492         * users.txt: Update URL for m4.
64493
64494 2007-10-21  Bruno Haible  <bruno@clisp.org>
64495
64496         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64497
64498 2007-10-21  Bruno Haible  <bruno@clisp.org>
64499
64500         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64501         Git's management files if the CVS files are not present.
64502
64503 2007-10-20  Bruno Haible  <bruno@clisp.org>
64504
64505         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64506         gcc-3.4.x.
64507
64508 2007-10-20  Ben Pfaff  <blp@gnu.org>
64509
64510         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64511         implementations.
64512         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64513         * lib/round.c: New file.
64514         * lib/roundf.c: New file.
64515         * lib/roundl.c: New file.
64516         * m4/round.m4: New file.
64517         * m4/roundf.m4: New file.
64518         * m4/roundl.m4: New file.
64519         * m4/check-libm-func-m4: New file.
64520         * modules/math: Replace round, roundf, roundl related @VARS@ in
64521         math.in.h.
64522         * modules/round: New file.
64523         * modules/round-tests: New file.
64524         * modules/roundf: New file.
64525         * modules/roundf-tests: New file.
64526         * modules/roundl: New file.
64527         * modules/roundl-tests: New file.
64528         * tests/test-round1.c: New file.
64529         * tests/test-round2.c: New file.
64530         * tests/test-roundf1.c: New file.
64531         * tests/test-roundf2.c: New file.
64532         * tests/test-roundl.c: New file.
64533         * doc/functions/round.texi: Mention round module.
64534         * doc/functions/roundf.texi: Mention roundf module.
64535         * doc/functions/roundl.texi: Mention roundl module.
64536         * MODULES.html.sh: Mention new modules.
64537         Thanks to Bruno Haible for suggestions.
64538
64539 2007-10-20  Jim Meyering  <meyering@redhat.com>
64540
64541         * lib/xprintf.c: Include <config.h> unconditionally.
64542
64543         Change xprintf's license to GPL.
64544         * modules/xprintf (License): s/LGPL/GPL/, since this module
64545         depends on modules (exit and exitfail) which are GPL.
64546         Suggestion from Bruno Haible.
64547
64548         xprintf fixes.
64549         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64550         Use a clearer diagnostic.
64551         Patch from Bruno Haible.
64552
64553 2007-10-20  Bruno Haible  <bruno@clisp.org>
64554
64555         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64556         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64558
64559 2007-10-20  Bruno Haible  <bruno@clisp.org>
64560
64561         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64562         precision in the comparison result > x - 1 or similar.
64563         * tests/test-ceilf2.c (correct_result_p): Likewise.
64564         * tests/test-truncf2.c (correct_result_p): Likewise.
64565         * tests/test-trunc2.c (correct_result_p): Likewise.
64566         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64567
64568 2007-10-20  Bruno Haible  <bruno@clisp.org>
64569
64570         * modules/ceil: New file.
64571         * m4/ceil.m4: New file.
64572         * doc/functions/ceil.texi: Mention the 'ceil' module.
64573
64574 2007-10-20  Bruno Haible  <bruno@clisp.org>
64575
64576         * modules/floor: New file.
64577         * m4/floor.m4: New file.
64578         * doc/functions/floor.texi: Mention the 'floor' module.
64579
64580 2007-10-20  Bruno Haible  <bruno@clisp.org>
64581
64582         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64583         of %a.
64584         * modules/floorf-tests (Depends-on): Likewise.
64585         * modules/truncf-tests (Depends-on): Likewise.
64586         * modules/trunc-tests (Depends-on): Likewise.
64587         Reported by Ben Pfaff.
64588
64589 2007-10-19  Jim Meyering  <meyering@redhat.com>
64590
64591         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64592         Don't bother testing specific errno values.  Just test ferror.
64593
64594         New module: xprintf
64595         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64596
64597 2007-10-19  Bruno Haible  <bruno@clisp.org>
64598
64599         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64600         syntax.
64601         * modules/javaexec (Makefile.am): Likewise.
64602         * modules/relocatable-prog (Makefile.am): Likewise.
64603         Suggested by Jim Meyering.
64604
64605 2007-10-18  Bruno Haible  <bruno@clisp.org>
64606
64607         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64608         Reported by Jim Meyering.
64609
64610 2007-10-18  Eric Blake  <ebb9@byu.net>
64611
64612         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64613
64614 2007-10-18  Bruno Haible  <bruno@clisp.org>
64615
64616         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64617         the format string into writable memory. Needed in Fortify conditions.
64618
64619 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64620             Bruno Haible  <bruno@clisp.org>
64621
64622         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64623         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64624         * modules/trim (Depends-on): Add mbchar.
64625         (configure.ac): Add gl_FUNC_MBRTOWC.
64626         (Makefile.am): Augment lib_SOURCES.
64627
64628 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64629
64630         Modify glob.c to use fstatat and dirfd, to simplify it.
64631         Suggested by Eric Blake.
64632         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64633         Don't include <stdbool.h>; not used.
64634         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64635         (link_exists_p): Simplify implementation, since we can now assume
64636         dirfd and fstatat.
64637         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64638
64639 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64640
64641         * gnulib-tool (func_get_dependencies): Fix sed script to
64642         match only tests.
64643
64644 2007-10-17  Bruno Haible  <bruno@clisp.org>
64645
64646         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64647         allow locale names without encoding suffix.
64648         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64649         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64650
64651 2007-10-16  Bruno Haible  <bruno@clisp.org>
64652
64653         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64654         * lib/getgroups.c (getgroups): Likewise.
64655         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64656
64657 2007-10-16  Bruno Haible  <bruno@clisp.org>
64658
64659         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64660         * modules/malloc-posix (License): Likewise.
64661         * modules/realloc-posix (License): Likewise.
64662         * modules/calloc-posix (License): Likewise.
64663         * modules/intprops (License): Change from GPL to LGPL, with
64664         Paul Eggert's approval.
64665
64666 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64667
64668         Merge glibc changes into lib/glob.c.
64669
64670         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64671         2007-10-15 04:59:03 UTC.  Here are the changes:
64672
64673         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64674
64675         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64676
64677         * lib/glob.c: Add some branch prediction throughout.
64678
64679         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64680
64681         [BZ #5103]
64682         * lib/glob.c (glob): Recognize patterns starting \/.
64683
64684         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64685
64686         [BZ #3996]
64687         * lib/glob.c (attribute_hidden): Define if not defined.
64688         (glob): Unescape dirname, filename or username when needed and not
64689         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64690         is NULL.  Handle unescaped [ in pattern without closing ].
64691         Don't pass GLOB_CHECK down to recursive glob for directories.
64692         (__glob_pattern_type): New function.
64693         (__glob_pattern_p): Implement using __glob_pattern_type.
64694         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64695         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64696         Remove unreachable code.
64697
64698         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64699
64700         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64701         explain why there are no leaks.
64702
64703         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64704
64705         [BZ #3253]
64706         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64707         time, rather allocate increasingly bigger arrays of pointers, if
64708         possible with alloca, if too large with malloc.
64709
64710 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64713         Problem reported by H.Merijn Brand in
64714         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64715         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64716         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64717
64718 2007-10-15  Bruno Haible  <bruno@clisp.org>
64719
64720         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64721         with explicit rpl_ prefix.
64722         * lib/fopen.c (fopen): Likewise.
64723         * lib/freopen.c (freopen): Likewise.
64724         * lib/iconv.c (iconv): Likewise.
64725         * lib/iconv_close.c (iconv_close): Likewise.
64726
64727 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64728
64729         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64730
64731 2007-10-15  Bruno Haible  <bruno@clisp.org>
64732
64733         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64734         <stddef.h> instead of <stdlib.h> since we only need NULL.
64735         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64736
64737 2007-10-15  Bruno Haible  <bruno@clisp.org>
64738
64739         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64740         Replace paragraph talking about LIBOBJS.
64741         Reported by Colin Watson <cjwatson@debian.org>.
64742
64743 2007-10-15  Bruno Haible  <bruno@clisp.org>
64744
64745         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64746         <stdlib.h> before using NULL.
64747
64748 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64749
64750         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64751         Reported by Albert Chin <china@thewrittenword.com>.
64752
64753 2007-10-14  Bruno Haible  <bruno@clisp.org>
64754
64755         * modules/iconv_open-utf-tests: New file.
64756         * tests/test-iconv-utf.c: New file.
64757
64758         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64759         * modules/iconv_open-utf: New file.
64760         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64761         (iconv, iconv_close): New declarations.
64762         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64763         be defined.
64764         (iconv_open): Add special handling of conversion between UTF-8 and
64765         UTF-{16,32}{BE,LE}.
64766         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64767         * lib/iconv_close.c: New file.
64768         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64769         gl_FUNC_ICONV_OPEN.
64770         (gl_FUNC_ICONV_OPEN): Use it.
64771         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64772         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64773         and REPLACE_ICONV_UTF.
64774         * modules/iconv_open (Depends-on): Add c-strcase.
64775         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64776         ICONV_CONST.
64777         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64778
64779 2007-10-13  Albert Chin  <china@thewrittenword.com>
64780             Bruno Haible  <bruno@clisp.org>
64781
64782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64783         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64784
64785 2007-10-13  Bruno Haible  <bruno@clisp.org>
64786
64787         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64788         defined, use the ISO C99 inline semantics.
64789         * lib/argp.h (ARGP_EI): Likewise.
64790
64791 2007-10-13  Bruno Haible  <bruno@clisp.org>
64792
64793         Handle 'inline' change in gcc 4.3.0.
64794         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64795         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64796         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64797         argp_fmtstream_point): Disable 'extern' declaration if the function
64798         definition is going to be provided inline.
64799         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64800         semantics, not the ISO C99 inline semantics.
64801         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64802         'extern' declaration if the function definition is going to be provided
64803         inline.
64804         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64805         the GNU C inline semantics, not the ISO C99 inline semantics. With
64806         GCC 4.2, avoid a warning.
64807
64808 2007-10-13  Bruno Haible  <bruno@clisp.org>
64809
64810         * lib/freading.h (freading): Enable the use of __freading for
64811         glibc >= 2.7.
64812         * lib/freading.c (freading): Likewise.
64813
64814 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64815
64816         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64817         "warning: C99 inline functions are not supported; using GNU89".
64818
64819 2007-10-12  Bruno Haible  <bruno@clisp.org>
64820
64821         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64822         of 2.
64823         * tests/test-ceilf2.c: New file.
64824         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64825
64826         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64827         * modules/ceilf-tests: Update.
64828
64829 2007-10-12  Bruno Haible  <bruno@clisp.org>
64830
64831         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64832         of 2.
64833         * tests/test-floorf2.c: New file.
64834         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64835
64836         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64837         * modules/floorf-tests: Update.
64838
64839 2007-10-12  Bruno Haible  <bruno@clisp.org>
64840
64841         * tests/test-trunc2.c: New file.
64842         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64843
64844         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64845         * modules/trunc-tests: Update.
64846
64847 2007-10-12  Bruno Haible  <bruno@clisp.org>
64848
64849         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64850         of 2.
64851         * tests/test-truncf2.c: New file.
64852         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64853
64854         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64855         * modules/truncf-tests: Update.
64856
64857 2007-10-11  Eric Blake  <ebb9@byu.net>
64858
64859         Don't claim strerror is broken on Interix.
64860         * doc/functions/strerror.texi (strerror): Known broken systems are
64861         now Solaris 8, and not Interix.
64862         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64863         Interix on cross-compile.
64864         Reported by Martin Koeppe in
64865         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64866
64867 2007-10-11  Bruno Haible  <bruno@clisp.org>
64868
64869         * modules/i-ring-tests: New file.
64870         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64871         instead of assert.
64872
64873 2007-10-11  Bruno Haible  <bruno@clisp.org>
64874
64875         * modules/filenamecat-tests: New file.
64876         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64877         * lib/filenamecat.c: Remove test code.
64878
64879 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64880
64881         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64882
64883         * lib/strerror.c: Include <string.h> always, to test interface,
64884         and to remove the need for the dummy.
64885         Include intprops.h to compute width instead of doing it ourselves
64886         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64887         (strerror): Define it to return NULL if there's no system strerror.
64888         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64889         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64890         ancient pre-strerror Unix systems well any more.  Saying "unknown
64891         system error" is enough.
64892         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64893         simpler strerror.c implementation.
64894         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64895         Simplify the tests to reflect the simpler strerror implementation.
64896         * modules/strerror (Depends-on): Add intprops.
64897
64898 2007-10-09  Eric Blake  <ebb9@byu.net>
64899
64900         Silence test-fpending.
64901         * modules/fpending-tests (Files): Add wrapper script.
64902         * tests/test-fpending.sh: New file.
64903
64904 2007-10-09  Bruno Haible  <bruno@clisp.org>
64905
64906         * MODULES.html.sh (func_module): Don't create a hyperlink for
64907         function names like 'printf_frexp'.
64908         (Misc): Add crc, memxor.
64909         (Characteristics of floating types): New section.
64910         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64911         isnanf-nolibm, signbit, trunc, truncf, truncl.
64912         (Enhancements for ISO C 99 functions): New subsection Input/output.
64913         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64914         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64915         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64916         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64917         (Enhancements for POSIX:2001 functions): Add chdir-long.
64918         (File system functions): Add areadlink, chdir-safer, read-file.
64919         Remove cycle-check.
64920         (File system as inode set): New section.
64921         (Date and time): Add gethrxtime.
64922         (Multithreading): Add openmp.
64923         (Internationalization functions): Add localename.
64924         (Unicode string functions): Add unistr/u*-mbsnlen.
64925         (Support for maintaining and releasing projects): Add git-version-gen.
64926         (Lone files): Remove directories.
64927
64928 2007-10-08  Ben Pfaff  <blp@gnu.org>
64929
64930         * lib/xmalloca.h: Fix typo in comment.
64931
64932 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64933
64934         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64935         when avoiding problems with integer overflow.  Use a portable test
64936         instead.
64937
64938 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64939
64940         * modules/dummy (License): Change to LGPLv2+.
64941         * modules/float (License): Likewise
64942         * modules/realloc (License): Likewise
64943         * modules/stdlib (License): Likewise
64944
64945 2007-10-07  Bruno Haible  <bruno@clisp.org>
64946
64947         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64948         * floor.c (TWO_MANT_DIG): Likewise.
64949         * ceil.c (TWO_MANT_DIG): Likewise.
64950         Reported by Ben Pfaff.
64951
64952 2007-10-07  Bruno Haible  <bruno@clisp.org>
64953
64954         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64955         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64956         * lib/frexp.c (FUNC): Likewise.
64957         * lib/printf-frexp.h (printf_frexp): Likewise.
64958         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64959         * lib/printf-frexp.c (FUNC): Likewise.
64960         Suggested by Jim Meyering.
64961
64962 2007-10-07  Jim Meyering  <meyering@redhat.com>
64963
64964         Make xnanosleep's integer overflow test more robust.
64965         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64966         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64967
64968 2007-10-07  Bruno Haible  <bruno@clisp.org>
64969
64970         * NEWS: Mention the license change.
64971
64972         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64973         abbreviations in the modules files.
64974
64975         Change copyright notice from GPLv2+ to GPLv3+.
64976         * README: Change copyright notice.
64977         * MODULES.html.sh: Likewise.
64978         * build-aux/bootstrap.conf: Likewise.
64979         * build-aux/config.libpath: Likewise.
64980         * build-aux/csharpcomp.sh.in: Likewise.
64981         * build-aux/csharpexec.sh.in: Likewise.
64982         * build-aux/install-reloc: Likewise.
64983         * build-aux/javacomp.sh.in: Likewise.
64984         * build-aux/javaexec.sh.in: Likewise.
64985         * build-aux/ldd.sh.in: Likewise.
64986         * build-aux/reloc-ldflags: Likewise.
64987         * build-aux/relocatable.sh.in: Likewise.
64988         * build-aux/x-to-1.in: Likewise.
64989         * check-module: Likewise.
64990         * config/srclistvars.sh: Likewise.
64991         * gnulib-tool: Likewise.
64992         * lib/acl-internal.h: Likewise.
64993         * lib/acl.c: Likewise.
64994         * lib/acl.h: Likewise.
64995         * lib/acl_entries.c: Likewise.
64996         * lib/areadlink-with-size.c: Likewise.
64997         * lib/areadlink.c: Likewise.
64998         * lib/areadlink.h: Likewise.
64999         * lib/argmatch.c: Likewise.
65000         * lib/argmatch.h: Likewise.
65001         * lib/argp-ba.c: Likewise.
65002         * lib/argp-eexst.c: Likewise.
65003         * lib/argp-fmtstream.c: Likewise.
65004         * lib/argp-fmtstream.h: Likewise.
65005         * lib/argp-fs-xinl.c: Likewise.
65006         * lib/argp-help.c: Likewise.
65007         * lib/argp-namefrob.h: Likewise.
65008         * lib/argp-parse.c: Likewise.
65009         * lib/argp-pin.c: Likewise.
65010         * lib/argp-pv.c: Likewise.
65011         * lib/argp-pvh.c: Likewise.
65012         * lib/argp-xinl.c: Likewise.
65013         * lib/argp.h: Likewise.
65014         * lib/at-func.c: Likewise.
65015         * lib/atanl.c: Likewise.
65016         * lib/backupfile.c: Likewise.
65017         * lib/backupfile.h: Likewise.
65018         * lib/basename.c: Likewise.
65019         * lib/binary-io.h: Likewise.
65020         * lib/byteswap.in.h: Likewise.
65021         * lib/c-stack.c: Likewise.
65022         * lib/c-stack.h: Likewise.
65023         * lib/c-strcasestr.c: Likewise.
65024         * lib/c-strcasestr.h: Likewise.
65025         * lib/c-strstr.c: Likewise.
65026         * lib/c-strstr.h: Likewise.
65027         * lib/c-strtod.c: Likewise.
65028         * lib/calloc.c: Likewise.
65029         * lib/canon-host.c: Likewise.
65030         * lib/canon-host.h: Likewise.
65031         * lib/canonicalize-lgpl.c: Likewise.
65032         * lib/canonicalize.c: Likewise.
65033         * lib/canonicalize.h: Likewise.
65034         * lib/ceil.c: Likewise.
65035         * lib/ceilf.c: Likewise.
65036         * lib/ceill.c: Likewise.
65037         * lib/chdir-long.c: Likewise.
65038         * lib/chdir-long.h: Likewise.
65039         * lib/chdir-safer.c: Likewise.
65040         * lib/chdir-safer.h: Likewise.
65041         * lib/chown.c: Likewise.
65042         * lib/classpath.c: Likewise.
65043         * lib/classpath.h: Likewise.
65044         * lib/clean-temp.c: Likewise.
65045         * lib/clean-temp.h: Likewise.
65046         * lib/cloexec.c: Likewise.
65047         * lib/close-stream.c: Likewise.
65048         * lib/closein.c: Likewise.
65049         * lib/closein.h: Likewise.
65050         * lib/closeout.c: Likewise.
65051         * lib/closeout.h: Likewise.
65052         * lib/concat-filename.c: Likewise.
65053         * lib/copy-file.c: Likewise.
65054         * lib/copy-file.h: Likewise.
65055         * lib/count-one-bits.h: Likewise.
65056         * lib/crc.c: Likewise.
65057         * lib/crc.h: Likewise.
65058         * lib/creat-safer.c: Likewise.
65059         * lib/csharpcomp.c: Likewise.
65060         * lib/csharpcomp.h: Likewise.
65061         * lib/csharpexec.c: Likewise.
65062         * lib/csharpexec.h: Likewise.
65063         * lib/cycle-check.c: Likewise.
65064         * lib/cycle-check.h: Likewise.
65065         * lib/diacrit.c: Likewise.
65066         * lib/diacrit.h: Likewise.
65067         * lib/diffseq.h: Likewise.
65068         * lib/dirchownmod.c: Likewise.
65069         * lib/dirent.in.h: Likewise.
65070         * lib/dirfd.c: Likewise.
65071         * lib/dirfd.h: Likewise.
65072         * lib/dirname.c: Likewise.
65073         * lib/dirname.h: Likewise.
65074         * lib/dummy.c: Likewise.
65075         * lib/dup-safer.c: Likewise.
65076         * lib/dup2.c: Likewise.
65077         * lib/eealloc.h: Likewise.
65078         * lib/error.c: Likewise.
65079         * lib/error.h: Likewise.
65080         * lib/euidaccess.c: Likewise.
65081         * lib/exclude.c: Likewise.
65082         * lib/exclude.h: Likewise.
65083         * lib/execute.c: Likewise.
65084         * lib/execute.h: Likewise.
65085         * lib/exitfail.c: Likewise.
65086         * lib/exitfail.h: Likewise.
65087         * lib/expl.c: Likewise.
65088         * lib/fatal-signal.c: Likewise.
65089         * lib/fatal-signal.h: Likewise.
65090         * lib/fbufmode.c: Likewise.
65091         * lib/fbufmode.h: Likewise.
65092         * lib/fchdir.c: Likewise.
65093         * lib/fchmodat.c: Likewise.
65094         * lib/fchownat.c: Likewise.
65095         * lib/fcntl--.h: Likewise.
65096         * lib/fcntl-safer.h: Likewise.
65097         * lib/fcntl.in.h: Likewise.
65098         * lib/fd-safer.c: Likewise.
65099         * lib/fflush.c: Likewise.
65100         * lib/file-has-acl.c: Likewise.
65101         * lib/file-set.c: Likewise.
65102         * lib/file-type.c: Likewise.
65103         * lib/file-type.h: Likewise.
65104         * lib/fileblocks.c: Likewise.
65105         * lib/filemode.c: Likewise.
65106         * lib/filemode.h: Likewise.
65107         * lib/filename.h: Likewise.
65108         * lib/filenamecat.c: Likewise.
65109         * lib/filenamecat.h: Likewise.
65110         * lib/findprog.c: Likewise.
65111         * lib/findprog.h: Likewise.
65112         * lib/float.in.h: Likewise.
65113         * lib/floor.c: Likewise.
65114         * lib/floorf.c: Likewise.
65115         * lib/floorl.c: Likewise.
65116         * lib/fopen-safer.c: Likewise.
65117         * lib/fopen.c: Likewise.
65118         * lib/fpending.c: Likewise.
65119         * lib/fpending.h: Likewise.
65120         * lib/fprintf.c: Likewise.
65121         * lib/fprintftime.h: Likewise.
65122         * lib/fpucw.h: Likewise.
65123         * lib/fpurge.c: Likewise.
65124         * lib/fpurge.h: Likewise.
65125         * lib/freadable.c: Likewise.
65126         * lib/freadable.h: Likewise.
65127         * lib/freadahead.c: Likewise.
65128         * lib/freadahead.h: Likewise.
65129         * lib/freading.c: Likewise.
65130         * lib/freading.h: Likewise.
65131         * lib/free.c: Likewise.
65132         * lib/freopen.c: Likewise.
65133         * lib/frexp.c: Likewise.
65134         * lib/frexpl.c: Likewise.
65135         * lib/fseek.c: Likewise.
65136         * lib/fseterr.c: Likewise.
65137         * lib/fseterr.h: Likewise.
65138         * lib/fstatat.c: Likewise.
65139         * lib/fstrcmp.c: Likewise.
65140         * lib/fstrcmp.h: Likewise.
65141         * lib/fsusage.c: Likewise.
65142         * lib/fsusage.h: Likewise.
65143         * lib/ftell.c: Likewise.
65144         * lib/ftello.c: Likewise.
65145         * lib/fts-cycle.c: Likewise.
65146         * lib/fts.c: Likewise.
65147         * lib/fts_.h: Likewise.
65148         * lib/full-read.c: Likewise.
65149         * lib/full-read.h: Likewise.
65150         * lib/full-write.c: Likewise.
65151         * lib/full-write.h: Likewise.
65152         * lib/fwritable.c: Likewise.
65153         * lib/fwritable.h: Likewise.
65154         * lib/fwriteerror.c: Likewise.
65155         * lib/fwriteerror.h: Likewise.
65156         * lib/fwriting.c: Likewise.
65157         * lib/fwriting.h: Likewise.
65158         * lib/gcd.c: Likewise.
65159         * lib/gcd.h: Likewise.
65160         * lib/getcwd.c: Likewise.
65161         * lib/getdate.h: Likewise.
65162         * lib/getdate.y: Likewise.
65163         * lib/getdomainname.c: Likewise.
65164         * lib/getdomainname.h: Likewise.
65165         * lib/getgroups.c: Likewise.
65166         * lib/gethostname.c: Likewise.
65167         * lib/gethrxtime.c: Likewise.
65168         * lib/gethrxtime.h: Likewise.
65169         * lib/getloadavg.c: Likewise.
65170         * lib/getndelim2.c: Likewise.
65171         * lib/getndelim2.h: Likewise.
65172         * lib/getnline.c: Likewise.
65173         * lib/getnline.h: Likewise.
65174         * lib/getopt.c: Likewise.
65175         * lib/getopt.in.h: Likewise.
65176         * lib/getopt1.c: Likewise.
65177         * lib/getopt_int.h: Likewise.
65178         * lib/getpagesize.h: Likewise.
65179         * lib/getsubopt.c: Likewise.
65180         * lib/gettime.c: Likewise.
65181         * lib/getugroups.c: Likewise.
65182         * lib/getugroups.h: Likewise.
65183         * lib/getusershell.c: Likewise.
65184         * lib/gl_anyavltree_list1.h: Likewise.
65185         * lib/gl_anyavltree_list2.h: Likewise.
65186         * lib/gl_anyhash_list1.h: Likewise.
65187         * lib/gl_anyhash_list2.h: Likewise.
65188         * lib/gl_anylinked_list1.h: Likewise.
65189         * lib/gl_anylinked_list2.h: Likewise.
65190         * lib/gl_anyrbtree_list1.h: Likewise.
65191         * lib/gl_anyrbtree_list2.h: Likewise.
65192         * lib/gl_anytree_list1.h: Likewise.
65193         * lib/gl_anytree_list2.h: Likewise.
65194         * lib/gl_anytree_oset.h: Likewise.
65195         * lib/gl_anytreehash_list1.h: Likewise.
65196         * lib/gl_anytreehash_list2.h: Likewise.
65197         * lib/gl_array_list.c: Likewise.
65198         * lib/gl_array_list.h: Likewise.
65199         * lib/gl_array_oset.c: Likewise.
65200         * lib/gl_array_oset.h: Likewise.
65201         * lib/gl_avltree_list.c: Likewise.
65202         * lib/gl_avltree_list.h: Likewise.
65203         * lib/gl_avltree_oset.c: Likewise.
65204         * lib/gl_avltree_oset.h: Likewise.
65205         * lib/gl_avltreehash_list.c: Likewise.
65206         * lib/gl_avltreehash_list.h: Likewise.
65207         * lib/gl_carray_list.c: Likewise.
65208         * lib/gl_carray_list.h: Likewise.
65209         * lib/gl_linked_list.c: Likewise.
65210         * lib/gl_linked_list.h: Likewise.
65211         * lib/gl_linkedhash_list.c: Likewise.
65212         * lib/gl_linkedhash_list.h: Likewise.
65213         * lib/gl_list.c: Likewise.
65214         * lib/gl_list.h: Likewise.
65215         * lib/gl_oset.c: Likewise.
65216         * lib/gl_oset.h: Likewise.
65217         * lib/gl_rbtree_list.c: Likewise.
65218         * lib/gl_rbtree_list.h: Likewise.
65219         * lib/gl_rbtree_oset.c: Likewise.
65220         * lib/gl_rbtree_oset.h: Likewise.
65221         * lib/gl_rbtreehash_list.c: Likewise.
65222         * lib/gl_rbtreehash_list.h: Likewise.
65223         * lib/gl_sublist.c: Likewise.
65224         * lib/gl_sublist.h: Likewise.
65225         * lib/group-member.c: Likewise.
65226         * lib/group-member.h: Likewise.
65227         * lib/hard-locale.c: Likewise.
65228         * lib/hard-locale.h: Likewise.
65229         * lib/hash-pjw.c: Likewise.
65230         * lib/hash-pjw.h: Likewise.
65231         * lib/hash-triple.c: Likewise.
65232         * lib/hash.c: Likewise.
65233         * lib/hash.h: Likewise.
65234         * lib/human.c: Likewise.
65235         * lib/human.h: Likewise.
65236         * lib/i-ring.c: Likewise.
65237         * lib/i-ring.h: Likewise.
65238         * lib/idcache.c: Likewise.
65239         * lib/imaxabs.c: Likewise.
65240         * lib/imaxdiv.c: Likewise.
65241         * lib/inet_pton.c: Likewise.
65242         * lib/inet_pton.h: Likewise.
65243         * lib/intprops.h: Likewise.
65244         * lib/inttostr.c: Likewise.
65245         * lib/inttostr.h: Likewise.
65246         * lib/inttypes.in.h: Likewise.
65247         * lib/isapipe.c: Likewise.
65248         * lib/isdir.c: Likewise.
65249         * lib/isnan.c: Likewise.
65250         * lib/isnan.h: Likewise.
65251         * lib/isnanf.c: Likewise.
65252         * lib/isnanf.h: Likewise.
65253         * lib/isnanl-nolibm.h: Likewise.
65254         * lib/isnanl.c: Likewise.
65255         * lib/isnanl.h: Likewise.
65256         * lib/javacomp.c: Likewise.
65257         * lib/javacomp.h: Likewise.
65258         * lib/javaexec.c: Likewise.
65259         * lib/javaexec.h: Likewise.
65260         * lib/javaversion.c: Likewise.
65261         * lib/javaversion.h: Likewise.
65262         * lib/javaversion.java: Likewise.
65263         * lib/lbrkprop.h: Likewise.
65264         * lib/lchmod.h: Likewise.
65265         * lib/lchown.c: Likewise.
65266         * lib/ldexpl.c: Likewise.
65267         * lib/linebreak.c: Likewise.
65268         * lib/linebreak.h: Likewise.
65269         * lib/linebuffer.c: Likewise.
65270         * lib/linebuffer.h: Likewise.
65271         * lib/locale.in.h: Likewise.
65272         * lib/logl.c: Likewise.
65273         * lib/long-options.c: Likewise.
65274         * lib/long-options.h: Likewise.
65275         * lib/lstat.c: Likewise.
65276         * lib/lstat.h: Likewise.
65277         * lib/math.in.h: Likewise.
65278         * lib/mbchar.c: Likewise.
65279         * lib/mbchar.h: Likewise.
65280         * lib/mbfile.h: Likewise.
65281         * lib/mbiter.h: Likewise.
65282         * lib/mbscasecmp.c: Likewise.
65283         * lib/mbscasestr.c: Likewise.
65284         * lib/mbschr.c: Likewise.
65285         * lib/mbscspn.c: Likewise.
65286         * lib/mbslen.c: Likewise.
65287         * lib/mbsncasecmp.c: Likewise.
65288         * lib/mbsnlen.c: Likewise.
65289         * lib/mbspbrk.c: Likewise.
65290         * lib/mbspcasecmp.c: Likewise.
65291         * lib/mbsrchr.c: Likewise.
65292         * lib/mbssep.c: Likewise.
65293         * lib/mbsspn.c: Likewise.
65294         * lib/mbsstr.c: Likewise.
65295         * lib/mbstok_r.c: Likewise.
65296         * lib/mbswidth.c: Likewise.
65297         * lib/mbswidth.h: Likewise.
65298         * lib/mbuiter.h: Likewise.
65299         * lib/memcasecmp.c: Likewise.
65300         * lib/memcasecmp.h: Likewise.
65301         * lib/memchr.c: Likewise.
65302         * lib/memcmp.c: Likewise.
65303         * lib/memcoll.c: Likewise.
65304         * lib/memcoll.h: Likewise.
65305         * lib/memcpy.c: Likewise.
65306         * lib/memrchr.c: Likewise.
65307         * lib/mkancesdirs.c: Likewise.
65308         * lib/mkdir-p.c: Likewise.
65309         * lib/mkdir-p.h: Likewise.
65310         * lib/mkdir.c: Likewise.
65311         * lib/mkdirat.c: Likewise.
65312         * lib/mkdtemp.c: Likewise.
65313         * lib/mkstemp-safer.c: Likewise.
65314         * lib/mkstemp.c: Likewise.
65315         * lib/modechange.c: Likewise.
65316         * lib/modechange.h: Likewise.
65317         * lib/mountlist.c: Likewise.
65318         * lib/mountlist.h: Likewise.
65319         * lib/mpsort.c: Likewise.
65320         * lib/nanosleep.c: Likewise.
65321         * lib/obstack.c: Likewise.
65322         * lib/obstack.h: Likewise.
65323         * lib/open-safer.c: Likewise.
65324         * lib/open.c: Likewise.
65325         * lib/openat-die.c: Likewise.
65326         * lib/openat-priv.h: Likewise.
65327         * lib/openat-proc.c: Likewise.
65328         * lib/openat.c: Likewise.
65329         * lib/openat.h: Likewise.
65330         * lib/pagealign_alloc.c: Likewise.
65331         * lib/pagealign_alloc.h: Likewise.
65332         * lib/physmem.c: Likewise.
65333         * lib/physmem.h: Likewise.
65334         * lib/pipe-safer.c: Likewise.
65335         * lib/pipe.c: Likewise.
65336         * lib/pipe.h: Likewise.
65337         * lib/posixtm.c: Likewise.
65338         * lib/posixtm.h: Likewise.
65339         * lib/posixver.c: Likewise.
65340         * lib/printf-frexp.c: Likewise.
65341         * lib/printf-frexp.h: Likewise.
65342         * lib/printf-frexpl.c: Likewise.
65343         * lib/printf-frexpl.h: Likewise.
65344         * lib/printf.c: Likewise.
65345         * lib/progname.c: Likewise.
65346         * lib/progname.h: Likewise.
65347         * lib/progreloc.c: Likewise.
65348         * lib/putenv.c: Likewise.
65349         * lib/quote.c: Likewise.
65350         * lib/quote.h: Likewise.
65351         * lib/quotearg.c: Likewise.
65352         * lib/quotearg.h: Likewise.
65353         * lib/raise.c: Likewise.
65354         * lib/readline.c: Likewise.
65355         * lib/readline.h: Likewise.
65356         * lib/readlink.c: Likewise.
65357         * lib/readtokens.c: Likewise.
65358         * lib/readtokens.h: Likewise.
65359         * lib/readtokens0.c: Likewise.
65360         * lib/readtokens0.h: Likewise.
65361         * lib/readutmp.c: Likewise.
65362         * lib/readutmp.h: Likewise.
65363         * lib/realloc.c: Likewise.
65364         * lib/relocwrapper.c: Likewise.
65365         * lib/rename-dest-slash.c: Likewise.
65366         * lib/rename.c: Likewise.
65367         * lib/rmdir.c: Likewise.
65368         * lib/rpmatch.c: Likewise.
65369         * lib/safe-read.c: Likewise.
65370         * lib/safe-read.h: Likewise.
65371         * lib/safe-write.c: Likewise.
65372         * lib/safe-write.h: Likewise.
65373         * lib/same-inode.h: Likewise.
65374         * lib/same.c: Likewise.
65375         * lib/same.h: Likewise.
65376         * lib/save-cwd.c: Likewise.
65377         * lib/save-cwd.h: Likewise.
65378         * lib/savedir.c: Likewise.
65379         * lib/savedir.h: Likewise.
65380         * lib/savewd.c: Likewise.
65381         * lib/savewd.h: Likewise.
65382         * lib/search.in.h: Likewise.
65383         * lib/setenv.c: Likewise.
65384         * lib/setenv.h: Likewise.
65385         * lib/settime.c: Likewise.
65386         * lib/sh-quote.c: Likewise.
65387         * lib/sh-quote.h: Likewise.
65388         * lib/sig2str.c: Likewise.
65389         * lib/sig2str.h: Likewise.
65390         * lib/signal.in.h: Likewise.
65391         * lib/signbitd.c: Likewise.
65392         * lib/signbitf.c: Likewise.
65393         * lib/signbitl.c: Likewise.
65394         * lib/sigprocmask.c: Likewise.
65395         * lib/sincosl.c: Likewise.
65396         * lib/sleep.c: Likewise.
65397         * lib/sprintf.c: Likewise.
65398         * lib/sqrtl.c: Likewise.
65399         * lib/stat-time.h: Likewise.
65400         * lib/stdio--.h: Likewise.
65401         * lib/stdio-safer.h: Likewise.
65402         * lib/stdlib--.h: Likewise.
65403         * lib/stdlib-safer.h: Likewise.
65404         * lib/stdlib.in.h: Likewise.
65405         * lib/stpcpy.c: Likewise.
65406         * lib/stpncpy.c: Likewise.
65407         * lib/strchrnul.c: Likewise.
65408         * lib/strcspn.c: Likewise.
65409         * lib/strerror.c: Likewise.
65410         * lib/strftime.c: Likewise.
65411         * lib/strftime.h: Likewise.
65412         * lib/striconveh.c: Likewise.
65413         * lib/striconveh.h: Likewise.
65414         * lib/striconveha.c: Likewise.
65415         * lib/striconveha.h: Likewise.
65416         * lib/stripslash.c: Likewise.
65417         * lib/strnlen1.c: Likewise.
65418         * lib/strnlen1.h: Likewise.
65419         * lib/strtod.c: Likewise.
65420         * lib/strtoimax.c: Likewise.
65421         * lib/strtok_r.c: Likewise.
65422         * lib/strtol.c: Likewise.
65423         * lib/strtoll.c: Likewise.
65424         * lib/strtoul.c: Likewise.
65425         * lib/strtoull.c: Likewise.
65426         * lib/sysexits.in.h: Likewise.
65427         * lib/tempname.c: Likewise.
65428         * lib/tempname.h: Likewise.
65429         * lib/timespec.h: Likewise.
65430         * lib/tls.c: Likewise.
65431         * lib/tls.h: Likewise.
65432         * lib/tmpdir.c: Likewise.
65433         * lib/tmpdir.h: Likewise.
65434         * lib/tmpfile-safer.c: Likewise.
65435         * lib/tmpfile.c: Likewise.
65436         * lib/trigl.c: Likewise.
65437         * lib/trigl.h: Likewise.
65438         * lib/trim.c: Likewise.
65439         * lib/trim.h: Likewise.
65440         * lib/trunc.c: Likewise.
65441         * lib/truncf.c: Likewise.
65442         * lib/truncl.c: Likewise.
65443         * lib/tsearch.c: Likewise.
65444         * lib/unicodeio.c: Likewise.
65445         * lib/unicodeio.h: Likewise.
65446         * lib/unistd--.h: Likewise.
65447         * lib/unistd-safer.h: Likewise.
65448         * lib/unistdio/ulc-fprintf.c: Likewise.
65449         * lib/unistdio/ulc-vfprintf.c: Likewise.
65450         * lib/unlinkdir.c: Likewise.
65451         * lib/unlinkdir.h: Likewise.
65452         * lib/unlocked-io.h: Likewise.
65453         * lib/unsetenv.c: Likewise.
65454         * lib/userspec.c: Likewise.
65455         * lib/utime.c: Likewise.
65456         * lib/utimecmp.c: Likewise.
65457         * lib/utimecmp.h: Likewise.
65458         * lib/utimens.c: Likewise.
65459         * lib/verify.h: Likewise.
65460         * lib/verror.c: Likewise.
65461         * lib/verror.h: Likewise.
65462         * lib/version-etc-fsf.c: Likewise.
65463         * lib/version-etc.c: Likewise.
65464         * lib/version-etc.h: Likewise.
65465         * lib/vfprintf.c: Likewise.
65466         * lib/vprintf.c: Likewise.
65467         * lib/vsprintf.c: Likewise.
65468         * lib/w32spawn.h: Likewise.
65469         * lib/wait-process.c: Likewise.
65470         * lib/wait-process.h: Likewise.
65471         * lib/wcwidth.c: Likewise.
65472         * lib/write-any-file.c: Likewise.
65473         * lib/xalloc-die.c: Likewise.
65474         * lib/xalloc.h: Likewise.
65475         * lib/xasprintf.c: Likewise.
65476         * lib/xgetcwd.c: Likewise.
65477         * lib/xgetcwd.h: Likewise.
65478         * lib/xgetdomainname.c: Likewise.
65479         * lib/xgetdomainname.h: Likewise.
65480         * lib/xgethostname.c: Likewise.
65481         * lib/xmalloc.c: Likewise.
65482         * lib/xmalloca.c: Likewise.
65483         * lib/xmalloca.h: Likewise.
65484         * lib/xmemcoll.c: Likewise.
65485         * lib/xnanosleep.c: Likewise.
65486         * lib/xreadlink.c: Likewise.
65487         * lib/xreadlink.h: Likewise.
65488         * lib/xsetenv.c: Likewise.
65489         * lib/xsetenv.h: Likewise.
65490         * lib/xstriconv.c: Likewise.
65491         * lib/xstriconv.h: Likewise.
65492         * lib/xstrndup.c: Likewise.
65493         * lib/xstrndup.h: Likewise.
65494         * lib/xstrtod.c: Likewise.
65495         * lib/xstrtod.h: Likewise.
65496         * lib/xstrtol-error.c: Likewise.
65497         * lib/xstrtol.c: Likewise.
65498         * lib/xstrtol.h: Likewise.
65499         * lib/xtime.h: Likewise.
65500         * lib/xvasprintf.c: Likewise.
65501         * lib/xvasprintf.h: Likewise.
65502         * lib/yesno.c: Likewise.
65503         * lib/yesno.h: Likewise.
65504         * posix-modules: Likewise.
65505         * tests/test-alloca-opt.c: Likewise.
65506         * tests/test-arcfour.c: Likewise.
65507         * tests/test-arctwo.c: Likewise.
65508         * tests/test-argmatch.c: Likewise.
65509         * tests/test-argp-2.sh: Likewise.
65510         * tests/test-argp.c: Likewise.
65511         * tests/test-arpa_inet.c: Likewise.
65512         * tests/test-array_list.c: Likewise.
65513         * tests/test-array_oset.c: Likewise.
65514         * tests/test-atexit.c: Likewise.
65515         * tests/test-avltree_list.c: Likewise.
65516         * tests/test-avltree_oset.c: Likewise.
65517         * tests/test-avltreehash_list.c: Likewise.
65518         * tests/test-base64.c: Likewise.
65519         * tests/test-binary-io.c: Likewise.
65520         * tests/test-byteswap.c: Likewise.
65521         * tests/test-c-ctype.c: Likewise.
65522         * tests/test-c-strcasecmp.c: Likewise.
65523         * tests/test-c-strcasestr.c: Likewise.
65524         * tests/test-c-strncasecmp.c: Likewise.
65525         * tests/test-c-strstr.c: Likewise.
65526         * tests/test-canonicalize-lgpl.c: Likewise.
65527         * tests/test-canonicalize.c: Likewise.
65528         * tests/test-carray_list.c: Likewise.
65529         * tests/test-ceilf.c: Likewise.
65530         * tests/test-ceill.c: Likewise.
65531         * tests/test-count-one-bits.c: Likewise.
65532         * tests/test-crc.c: Likewise.
65533         * tests/test-dirname.c: Likewise.
65534         * tests/test-fbufmode.c: Likewise.
65535         * tests/test-fcntl.c: Likewise.
65536         * tests/test-fflush.c: Likewise.
65537         * tests/test-floorf.c: Likewise.
65538         * tests/test-floorl.c: Likewise.
65539         * tests/test-fopen.c: Likewise.
65540         * tests/test-fprintf-posix.c: Likewise.
65541         * tests/test-fprintf-posix.h: Likewise.
65542         * tests/test-fpurge.c: Likewise.
65543         * tests/test-freadable.c: Likewise.
65544         * tests/test-freadahead.c: Likewise.
65545         * tests/test-freading.c: Likewise.
65546         * tests/test-freopen.c: Likewise.
65547         * tests/test-frexp.c: Likewise.
65548         * tests/test-frexpl.c: Likewise.
65549         * tests/test-fseek.c: Likewise.
65550         * tests/test-fseeko.c: Likewise.
65551         * tests/test-fseterr.c: Likewise.
65552         * tests/test-fstrcmp.c: Likewise.
65553         * tests/test-ftell.c: Likewise.
65554         * tests/test-ftello.c: Likewise.
65555         * tests/test-fwritable.c: Likewise.
65556         * tests/test-fwriting.c: Likewise.
65557         * tests/test-getaddrinfo.c: Likewise.
65558         * tests/test-getpass.c: Likewise.
65559         * tests/test-gettimeofday.c: Likewise.
65560         * tests/test-hmac-md5.c: Likewise.
65561         * tests/test-hmac-sha1.c: Likewise.
65562         * tests/test-iconv.c: Likewise.
65563         * tests/test-iconvme.c: Likewise.
65564         * tests/test-inttypes.c: Likewise.
65565         * tests/test-isnan.c: Likewise.
65566         * tests/test-isnanf.c: Likewise.
65567         * tests/test-isnanl-nolibm.c: Likewise.
65568         * tests/test-isnanl.c: Likewise.
65569         * tests/test-isnanl.h: Likewise.
65570         * tests/test-ldexpl.c: Likewise.
65571         * tests/test-linked_list.c: Likewise.
65572         * tests/test-linkedhash_list.c: Likewise.
65573         * tests/test-locale.c: Likewise.
65574         * tests/test-localename.c: Likewise.
65575         * tests/test-lock.c: Likewise.
65576         * tests/test-lseek.c: Likewise.
65577         * tests/test-malloca.c: Likewise.
65578         * tests/test-math.c: Likewise.
65579         * tests/test-mbscasecmp.c: Likewise.
65580         * tests/test-mbscasestr1.c: Likewise.
65581         * tests/test-mbscasestr2.c: Likewise.
65582         * tests/test-mbscasestr3.c: Likewise.
65583         * tests/test-mbscasestr4.c: Likewise.
65584         * tests/test-mbschr.c: Likewise.
65585         * tests/test-mbscspn.c: Likewise.
65586         * tests/test-mbsncasecmp.c: Likewise.
65587         * tests/test-mbspbrk.c: Likewise.
65588         * tests/test-mbspcasecmp.c: Likewise.
65589         * tests/test-mbsrchr.c: Likewise.
65590         * tests/test-mbsspn.c: Likewise.
65591         * tests/test-mbsstr1.c: Likewise.
65592         * tests/test-mbsstr2.c: Likewise.
65593         * tests/test-mbsstr3.c: Likewise.
65594         * tests/test-md5.c: Likewise.
65595         * tests/test-memmem.c: Likewise.
65596         * tests/test-netinet_in.c: Likewise.
65597         * tests/test-open.c: Likewise.
65598         * tests/test-printf-frexp.c: Likewise.
65599         * tests/test-printf-frexpl.c: Likewise.
65600         * tests/test-printf-posix.c: Likewise.
65601         * tests/test-printf-posix.h: Likewise.
65602         * tests/test-rbtree_list.c: Likewise.
65603         * tests/test-rbtree_oset.c: Likewise.
65604         * tests/test-rbtreehash_list.c: Likewise.
65605         * tests/test-read-file.c: Likewise.
65606         * tests/test-rijndael.c: Likewise.
65607         * tests/test-search.c: Likewise.
65608         * tests/test-signbit.c: Likewise.
65609         * tests/test-sleep.c: Likewise.
65610         * tests/test-snprintf-posix.c: Likewise.
65611         * tests/test-snprintf-posix.h: Likewise.
65612         * tests/test-snprintf.c: Likewise.
65613         * tests/test-sprintf-posix.c: Likewise.
65614         * tests/test-sprintf-posix.h: Likewise.
65615         * tests/test-stat-time.c: Likewise.
65616         * tests/test-stdbool.c: Likewise.
65617         * tests/test-stdint.c: Likewise.
65618         * tests/test-stdio.c: Likewise.
65619         * tests/test-stdlib.c: Likewise.
65620         * tests/test-stpncpy.c: Likewise.
65621         * tests/test-strcasestr.c: Likewise.
65622         * tests/test-striconv.c: Likewise.
65623         * tests/test-striconveh.c: Likewise.
65624         * tests/test-striconveha.c: Likewise.
65625         * tests/test-string.c: Likewise.
65626         * tests/test-sys_select.c: Likewise.
65627         * tests/test-sys_socket.c: Likewise.
65628         * tests/test-sys_stat.c: Likewise.
65629         * tests/test-sys_time.c: Likewise.
65630         * tests/test-sysexits.c: Likewise.
65631         * tests/test-time.c: Likewise.
65632         * tests/test-tls.c: Likewise.
65633         * tests/test-trunc.c: Likewise.
65634         * tests/test-truncf.c: Likewise.
65635         * tests/test-truncl.c: Likewise.
65636         * tests/test-unistd.c: Likewise.
65637         * tests/test-vasnprintf-posix.c: Likewise.
65638         * tests/test-vasnprintf-posix2.c: Likewise.
65639         * tests/test-vasnprintf.c: Likewise.
65640         * tests/test-vasprintf-posix.c: Likewise.
65641         * tests/test-vasprintf.c: Likewise.
65642         * tests/test-verify.c: Likewise.
65643         * tests/test-vfprintf-posix.c: Likewise.
65644         * tests/test-vprintf-posix.c: Likewise.
65645         * tests/test-vsnprintf-posix.c: Likewise.
65646         * tests/test-vsnprintf.c: Likewise.
65647         * tests/test-vsprintf-posix.c: Likewise.
65648         * tests/test-wchar.c: Likewise.
65649         * tests/test-wctype.c: Likewise.
65650         * tests/test-wcwidth.c: Likewise.
65651         * tests/test-xstrtol.c: Likewise.
65652         * tests/test-xvasprintf.c: Likewise.
65653         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65654         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65655         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65656         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65657         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65658         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65659         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65660         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65661         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65662         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65663         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65664         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65665         * tests/uniname/test-uninames.c: Likewise.
65666         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65667         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65668         * tests/unistdio/test-u16-printf1.h: Likewise.
65669         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65670         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65671         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65672         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65673         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65674         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65675         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65676         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65677         * tests/unistdio/test-u32-printf1.h: Likewise.
65678         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65679         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65680         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65681         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65682         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65683         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65684         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65685         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65686         * tests/unistdio/test-u8-printf1.h: Likewise.
65687         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65688         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65689         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65690         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65691         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65692         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65693         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65694         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65695         * tests/unistdio/test-ulc-printf1.h: Likewise.
65696         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65697         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65698         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65699         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65700         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65701         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65702         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65703         * tests/uniwidth/test-u16-width.c: Likewise.
65704         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65705         * tests/uniwidth/test-u32-width.c: Likewise.
65706         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65707         * tests/uniwidth/test-u8-width.c: Likewise.
65708         * tests/uniwidth/test-uc_width.c: Likewise.
65709         * config/srclist-update: Likewise.
65710         (fixlicense): Update to GPLv3+.
65711
65712         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65713         * tests/test-tsearch.c: Change copyright notice.
65714
65715         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65716         * lib/c-strcaseeq.h: Change copyright notice.
65717         * lib/streq.h: Likewise.
65718         * lib/uniconv.h: Likewise.
65719         * lib/uniconv/u-conv-from-enc.h: Likewise.
65720         * lib/uniconv/u-conv-to-enc.h: Likewise.
65721         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65722         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65723         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65724         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65725         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65726         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65727         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65728         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65729         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65730         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65731         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65732         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65733         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65734         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65735         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65736         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65737         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65738         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65739         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65740         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65741         * lib/uniname.h: Likewise.
65742         * lib/uniname/uniname.c: Likewise.
65743         * lib/unistdio.h: Likewise.
65744         * lib/unistdio/u-asnprintf.h: Likewise.
65745         * lib/unistdio/u-asprintf.h: Likewise.
65746         * lib/unistdio/u-printf-args.c: Likewise.
65747         * lib/unistdio/u-printf-args.h: Likewise.
65748         * lib/unistdio/u-printf-parse.h: Likewise.
65749         * lib/unistdio/u-snprintf.h: Likewise.
65750         * lib/unistdio/u-sprintf.h: Likewise.
65751         * lib/unistdio/u-vasprintf.h: Likewise.
65752         * lib/unistdio/u-vsnprintf.h: Likewise.
65753         * lib/unistdio/u-vsprintf.h: Likewise.
65754         * lib/unistdio/u16-asnprintf.c: Likewise.
65755         * lib/unistdio/u16-asprintf.c: Likewise.
65756         * lib/unistdio/u16-printf-parse.c: Likewise.
65757         * lib/unistdio/u16-snprintf.c: Likewise.
65758         * lib/unistdio/u16-sprintf.c: Likewise.
65759         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65760         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65761         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65762         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65763         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65764         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65765         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65766         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65767         * lib/unistdio/u16-vasnprintf.c: Likewise.
65768         * lib/unistdio/u16-vasprintf.c: Likewise.
65769         * lib/unistdio/u16-vsnprintf.c: Likewise.
65770         * lib/unistdio/u16-vsprintf.c: Likewise.
65771         * lib/unistdio/u32-asnprintf.c: Likewise.
65772         * lib/unistdio/u32-asprintf.c: Likewise.
65773         * lib/unistdio/u32-printf-parse.c: Likewise.
65774         * lib/unistdio/u32-snprintf.c: Likewise.
65775         * lib/unistdio/u32-sprintf.c: Likewise.
65776         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65777         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65778         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65779         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65780         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65781         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65782         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65783         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65784         * lib/unistdio/u32-vasnprintf.c: Likewise.
65785         * lib/unistdio/u32-vasprintf.c: Likewise.
65786         * lib/unistdio/u32-vsnprintf.c: Likewise.
65787         * lib/unistdio/u32-vsprintf.c: Likewise.
65788         * lib/unistdio/u8-asnprintf.c: Likewise.
65789         * lib/unistdio/u8-asprintf.c: Likewise.
65790         * lib/unistdio/u8-printf-parse.c: Likewise.
65791         * lib/unistdio/u8-snprintf.c: Likewise.
65792         * lib/unistdio/u8-sprintf.c: Likewise.
65793         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65794         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65795         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65796         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65797         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65798         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65799         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65800         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65801         * lib/unistdio/u8-vasnprintf.c: Likewise.
65802         * lib/unistdio/u8-vasprintf.c: Likewise.
65803         * lib/unistdio/u8-vsnprintf.c: Likewise.
65804         * lib/unistdio/u8-vsprintf.c: Likewise.
65805         * lib/unistdio/ulc-asnprintf.c: Likewise.
65806         * lib/unistdio/ulc-asprintf.c: Likewise.
65807         * lib/unistdio/ulc-printf-parse.c: Likewise.
65808         * lib/unistdio/ulc-snprintf.c: Likewise.
65809         * lib/unistdio/ulc-sprintf.c: Likewise.
65810         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65811         * lib/unistdio/ulc-vasprintf.c: Likewise.
65812         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65813         * lib/unistdio/ulc-vsprintf.c: Likewise.
65814         * lib/unistr.h: Likewise.
65815         * lib/unistr/u-cpy-alloc.h: Likewise.
65816         * lib/unistr/u-cpy.h: Likewise.
65817         * lib/unistr/u-endswith.h: Likewise.
65818         * lib/unistr/u-move.h: Likewise.
65819         * lib/unistr/u-set.h: Likewise.
65820         * lib/unistr/u-startswith.h: Likewise.
65821         * lib/unistr/u-stpcpy.h: Likewise.
65822         * lib/unistr/u-stpncpy.h: Likewise.
65823         * lib/unistr/u-strcat.h: Likewise.
65824         * lib/unistr/u-strcpy.h: Likewise.
65825         * lib/unistr/u-strcspn.h: Likewise.
65826         * lib/unistr/u-strdup.h: Likewise.
65827         * lib/unistr/u-strlen.h: Likewise.
65828         * lib/unistr/u-strncat.h: Likewise.
65829         * lib/unistr/u-strncpy.h: Likewise.
65830         * lib/unistr/u-strnlen.h: Likewise.
65831         * lib/unistr/u-strpbrk.h: Likewise.
65832         * lib/unistr/u-strspn.h: Likewise.
65833         * lib/unistr/u-strstr.h: Likewise.
65834         * lib/unistr/u-strtok.h: Likewise.
65835         * lib/unistr/u16-check.c: Likewise.
65836         * lib/unistr/u16-chr.c: Likewise.
65837         * lib/unistr/u16-cmp.c: Likewise.
65838         * lib/unistr/u16-cpy-alloc.c: Likewise.
65839         * lib/unistr/u16-cpy.c: Likewise.
65840         * lib/unistr/u16-endswith.c: Likewise.
65841         * lib/unistr/u16-mblen.c: Likewise.
65842         * lib/unistr/u16-mbsnlen.c: Likewise.
65843         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65844         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65845         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65846         * lib/unistr/u16-mbtouc.c: Likewise.
65847         * lib/unistr/u16-mbtoucr.c: Likewise.
65848         * lib/unistr/u16-move.c: Likewise.
65849         * lib/unistr/u16-next.c: Likewise.
65850         * lib/unistr/u16-prev.c: Likewise.
65851         * lib/unistr/u16-set.c: Likewise.
65852         * lib/unistr/u16-startswith.c: Likewise.
65853         * lib/unistr/u16-stpcpy.c: Likewise.
65854         * lib/unistr/u16-stpncpy.c: Likewise.
65855         * lib/unistr/u16-strcat.c: Likewise.
65856         * lib/unistr/u16-strchr.c: Likewise.
65857         * lib/unistr/u16-strcmp.c: Likewise.
65858         * lib/unistr/u16-strcpy.c: Likewise.
65859         * lib/unistr/u16-strcspn.c: Likewise.
65860         * lib/unistr/u16-strdup.c: Likewise.
65861         * lib/unistr/u16-strlen.c: Likewise.
65862         * lib/unistr/u16-strmblen.c: Likewise.
65863         * lib/unistr/u16-strmbtouc.c: Likewise.
65864         * lib/unistr/u16-strncat.c: Likewise.
65865         * lib/unistr/u16-strncmp.c: Likewise.
65866         * lib/unistr/u16-strncpy.c: Likewise.
65867         * lib/unistr/u16-strnlen.c: Likewise.
65868         * lib/unistr/u16-strpbrk.c: Likewise.
65869         * lib/unistr/u16-strrchr.c: Likewise.
65870         * lib/unistr/u16-strspn.c: Likewise.
65871         * lib/unistr/u16-strstr.c: Likewise.
65872         * lib/unistr/u16-strtok.c: Likewise.
65873         * lib/unistr/u16-to-u32.c: Likewise.
65874         * lib/unistr/u16-to-u8.c: Likewise.
65875         * lib/unistr/u16-uctomb-aux.c: Likewise.
65876         * lib/unistr/u16-uctomb.c: Likewise.
65877         * lib/unistr/u32-check.c: Likewise.
65878         * lib/unistr/u32-chr.c: Likewise.
65879         * lib/unistr/u32-cmp.c: Likewise.
65880         * lib/unistr/u32-cpy-alloc.c: Likewise.
65881         * lib/unistr/u32-cpy.c: Likewise.
65882         * lib/unistr/u32-endswith.c: Likewise.
65883         * lib/unistr/u32-mblen.c: Likewise.
65884         * lib/unistr/u32-mbsnlen.c: Likewise.
65885         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65886         * lib/unistr/u32-mbtouc.c: Likewise.
65887         * lib/unistr/u32-mbtoucr.c: Likewise.
65888         * lib/unistr/u32-move.c: Likewise.
65889         * lib/unistr/u32-next.c: Likewise.
65890         * lib/unistr/u32-prev.c: Likewise.
65891         * lib/unistr/u32-set.c: Likewise.
65892         * lib/unistr/u32-startswith.c: Likewise.
65893         * lib/unistr/u32-stpcpy.c: Likewise.
65894         * lib/unistr/u32-stpncpy.c: Likewise.
65895         * lib/unistr/u32-strcat.c: Likewise.
65896         * lib/unistr/u32-strchr.c: Likewise.
65897         * lib/unistr/u32-strcmp.c: Likewise.
65898         * lib/unistr/u32-strcpy.c: Likewise.
65899         * lib/unistr/u32-strcspn.c: Likewise.
65900         * lib/unistr/u32-strdup.c: Likewise.
65901         * lib/unistr/u32-strlen.c: Likewise.
65902         * lib/unistr/u32-strmblen.c: Likewise.
65903         * lib/unistr/u32-strmbtouc.c: Likewise.
65904         * lib/unistr/u32-strncat.c: Likewise.
65905         * lib/unistr/u32-strncmp.c: Likewise.
65906         * lib/unistr/u32-strncpy.c: Likewise.
65907         * lib/unistr/u32-strnlen.c: Likewise.
65908         * lib/unistr/u32-strpbrk.c: Likewise.
65909         * lib/unistr/u32-strrchr.c: Likewise.
65910         * lib/unistr/u32-strspn.c: Likewise.
65911         * lib/unistr/u32-strstr.c: Likewise.
65912         * lib/unistr/u32-strtok.c: Likewise.
65913         * lib/unistr/u32-to-u16.c: Likewise.
65914         * lib/unistr/u32-to-u8.c: Likewise.
65915         * lib/unistr/u32-uctomb.c: Likewise.
65916         * lib/unistr/u8-check.c: Likewise.
65917         * lib/unistr/u8-chr.c: Likewise.
65918         * lib/unistr/u8-cmp.c: Likewise.
65919         * lib/unistr/u8-cpy-alloc.c: Likewise.
65920         * lib/unistr/u8-cpy.c: Likewise.
65921         * lib/unistr/u8-endswith.c: Likewise.
65922         * lib/unistr/u8-mblen.c: Likewise.
65923         * lib/unistr/u8-mbsnlen.c: Likewise.
65924         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65925         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65926         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65927         * lib/unistr/u8-mbtouc.c: Likewise.
65928         * lib/unistr/u8-mbtoucr.c: Likewise.
65929         * lib/unistr/u8-move.c: Likewise.
65930         * lib/unistr/u8-next.c: Likewise.
65931         * lib/unistr/u8-prev.c: Likewise.
65932         * lib/unistr/u8-set.c: Likewise.
65933         * lib/unistr/u8-startswith.c: Likewise.
65934         * lib/unistr/u8-stpcpy.c: Likewise.
65935         * lib/unistr/u8-stpncpy.c: Likewise.
65936         * lib/unistr/u8-strcat.c: Likewise.
65937         * lib/unistr/u8-strchr.c: Likewise.
65938         * lib/unistr/u8-strcmp.c: Likewise.
65939         * lib/unistr/u8-strcpy.c: Likewise.
65940         * lib/unistr/u8-strcspn.c: Likewise.
65941         * lib/unistr/u8-strdup.c: Likewise.
65942         * lib/unistr/u8-strlen.c: Likewise.
65943         * lib/unistr/u8-strmblen.c: Likewise.
65944         * lib/unistr/u8-strmbtouc.c: Likewise.
65945         * lib/unistr/u8-strncat.c: Likewise.
65946         * lib/unistr/u8-strncmp.c: Likewise.
65947         * lib/unistr/u8-strncpy.c: Likewise.
65948         * lib/unistr/u8-strnlen.c: Likewise.
65949         * lib/unistr/u8-strpbrk.c: Likewise.
65950         * lib/unistr/u8-strrchr.c: Likewise.
65951         * lib/unistr/u8-strspn.c: Likewise.
65952         * lib/unistr/u8-strstr.c: Likewise.
65953         * lib/unistr/u8-strtok.c: Likewise.
65954         * lib/unistr/u8-to-u16.c: Likewise.
65955         * lib/unistr/u8-to-u32.c: Likewise.
65956         * lib/unistr/u8-uctomb-aux.c: Likewise.
65957         * lib/unistr/u8-uctomb.c: Likewise.
65958         * lib/unitypes.h: Likewise.
65959         * lib/uniwidth.h: Likewise.
65960         * lib/uniwidth/cjk.h: Likewise.
65961         * lib/uniwidth/u16-strwidth.c: Likewise.
65962         * lib/uniwidth/u16-width.c: Likewise.
65963         * lib/uniwidth/u32-strwidth.c: Likewise.
65964         * lib/uniwidth/u32-width.c: Likewise.
65965         * lib/uniwidth/u8-strwidth.c: Likewise.
65966         * lib/uniwidth/u8-width.c: Likewise.
65967         * lib/uniwidth/width.c: Likewise.
65968
65969 2007-10-07  Bruno Haible  <bruno@clisp.org>
65970
65971         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65972         The file is still under LGPL (see modules/inttypes).
65973
65974 2007-10-06  Bruno Haible  <bruno@clisp.org>
65975
65976         * modules/trunc (Dependencies): Add 'extensions'.
65977         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65978         Reported by Ben Pfaff <blp@gnu.org>.
65979
65980 2007-10-06  Bruno Haible  <bruno@clisp.org>
65981
65982         * modules/freopen-tests: New file.
65983         * tests/test-freopen.c: New file.
65984
65985         * modules/fopen-tests: New file.
65986         * tests/test-fopen.c: New file.
65987
65988         * modules/fopen: New file.
65989         * lib/fopen.c: New file.
65990         * m4/fopen.m4: New file.
65991         * modules/freopen: New file.
65992         * lib/freopen.c: New file.
65993         * m4/freopen.m4: New file.
65994         * lib/stdio.in.h (fopen, freopen): New declarations.
65995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65996         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65997         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65998         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65999         * doc/functions/fopen.texi: Mention the 'fopen' module.
66000         * doc/functions/freopen.texi: Mention the 'freopen' module.
66001
66002 2007-10-06  Bruno Haible  <bruno@clisp.org>
66003
66004         * modules/open-tests: New file.
66005         * tests/test-open.c: New file.
66006
66007         * modules/open: New file.
66008         * lib/open.c: New file.
66009         * m4/open.m4: New file.
66010         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66011         lib/open.c does.
66012         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66013         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66014         macros.
66015         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66016         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66017         REPLACE_OPEN.
66018         * doc/functions/open.texi: Mention the 'open' module.
66019
66020 2007-10-04  Bruno Haible  <bruno@clisp.org>
66021
66022         * modules/ceill-tests: New file.
66023         * tests/test-ceill.c: New file.
66024
66025         * modules/ceill: New file.
66026         * lib/ceill.c: Replace entire file.
66027         * m4/ceill.m4: New file.
66028         * lib/math.in.h (ceill): Replace declaration.
66029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66030         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66031         * doc/functions/ceill.texi: Mention the 'ceill' module.
66032         * modules/mathl (Files): Remove lib/ceill.c.
66033         (Depends-on): Add ceill.
66034
66035 2007-10-04  Bruno Haible  <bruno@clisp.org>
66036
66037         * modules/ceilf-tests: New file.
66038         * tests/test-ceilf.c: New file.
66039
66040         * modules/ceilf: New file.
66041         * lib/ceil.c: New file.
66042         * lib/ceilf.c: New file.
66043         * m4/ceilf.m4: New file.
66044         * lib/math.in.h (ceilf): New declaration.
66045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66046         HAVE_DECL_CEILF.
66047         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66048         HAVE_DECL_CEILF.
66049         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66050
66051 2007-10-04  Bruno Haible  <bruno@clisp.org>
66052
66053         * modules/floorl-tests: New file.
66054         * tests/test-floorl.c: New file.
66055
66056         * modules/floorl: New file.
66057         * lib/floorl.c: Replace entire file.
66058         * m4/floorl.m4: New file.
66059         * lib/math.in.h (floorl): Replace declaration.
66060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66061         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66062         * doc/functions/floorl.texi: Mention the 'floorl' module.
66063         * modules/mathl (Files): Remove lib/floorl.c.
66064         (Depends-on): Add floorl.
66065
66066 2007-10-04  Bruno Haible  <bruno@clisp.org>
66067
66068         * modules/floorf-tests: New file.
66069         * tests/test-floorf.c: New file.
66070
66071         * modules/floorf: New file.
66072         * lib/floor.c: New file.
66073         * lib/floorf.c: New file.
66074         * m4/floorf.m4: New file.
66075         * lib/math.in.h (floorf): New declaration.
66076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66077         HAVE_DECL_FLOORF.
66078         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66079         HAVE_DECL_FLOORF.
66080         * doc/functions/floorf.texi: Mention the 'floorf' module.
66081
66082 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66083             Bruno Haible  <bruno@clisp.org>
66084
66085         Advertise for the Git server instead of the CVS server.
66086         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66087         repository instead of the CVS one.
66088         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66089         about all VCS systems generically.
66090         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66091
66092 2007-10-04  Bruno Haible  <bruno@clisp.org>
66093
66094         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66095         means.
66096         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66097
66098 2007-10-04  Bruno Haible  <bruno@clisp.org>
66099
66100         * modules/truncl-tests: New file.
66101         * tests/test-truncl.c: New file.
66102
66103         * modules/truncl: New file.
66104         * lib/truncl.c: New file.
66105         * m4/truncl.m4: New file.
66106         * lib/math.in.h (truncl): New declaration.
66107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66108         HAVE_DECL_TRUNCL.
66109         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66110         HAVE_DECL_TRUNCL.
66111         * doc/functions/truncl.texi: Mention the 'truncl' module.
66112
66113 2007-10-04  Bruno Haible  <bruno@clisp.org>
66114
66115         * modules/truncf-tests: New file.
66116         * tests/test-truncf.c: New file.
66117
66118         * modules/truncf: New file.
66119         * lib/trunc.c: Make paramerizable through USE_* macros.
66120         * lib/truncf.c: New file.
66121         * m4/truncf.m4: New file.
66122         * lib/math.in.h (truncf): New declaration.
66123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66124         HAVE_DECL_TRUNCF.
66125         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66126         HAVE_DECL_TRUNCF.
66127         * doc/functions/truncf.texi: Mention the 'truncf' module.
66128
66129 2007-10-03  Bruno Haible  <bruno@clisp.org>
66130
66131         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66132         augmentation also for tests modules.
66133         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66134         * modules/atexit-tests (Makefile.am): Likewise.
66135         * modules/binary-io-tests (Makefile.am): Likewise.
66136         * modules/c-strcase-tests (Makefile.am): Likewise.
66137         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66138         * modules/canonicalize-tests (Makefile.am): Likewise.
66139         * modules/closein-tests (Makefile.am): Likewise.
66140         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66141         * modules/freadahead-tests (Makefile.am): Likewise.
66142         * modules/fseek-tests (Makefile.am): Likewise.
66143         * modules/fseeko-tests (Makefile.am): Likewise.
66144         * modules/ftell-tests (Makefile.am): Likewise.
66145         * modules/ftello-tests (Makefile.am): Likewise.
66146         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66147         * modules/isnanl-tests (Makefile.am): Likewise.
66148         * modules/lseek-tests (Makefile.am): Likewise.
66149         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66150         * modules/mbscasestr-tests (Makefile.am): Likewise.
66151         * modules/mbschr-tests (Makefile.am): Likewise.
66152         * modules/mbscspn-tests (Makefile.am): Likewise.
66153         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66154         * modules/mbspbrk-tests (Makefile.am): Likewise.
66155         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66156         * modules/mbsrchr-tests (Makefile.am): Likewise.
66157         * modules/mbsspn-tests (Makefile.am): Likewise.
66158         * modules/mbsstr-tests (Makefile.am): Likewise.
66159         * modules/printf-posix-tests (Makefile.am): Likewise.
66160         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66161         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66162         * modules/tsearch-tests (Makefile.am): Likewise.
66163         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66164         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66165         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66166         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66167         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66168         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66169         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66170         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66171         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66172         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66173         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66174         * modules/xstrtol-tests (Makefile.am): Likewise.
66175         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66176         * modules/yesno-tests (Makefile.am): Likewise.
66177
66178 2007-10-03  Bruno Haible  <bruno@clisp.org>
66179
66180         * modules/trunc-tests: New file.
66181         * tests/test-trunc.c: New file.
66182
66183         * modules/trunc: New file.
66184         * lib/trunc.c: New file.
66185         * m4/trunc.m4: New file.
66186         * lib/math.in.h (trunc): New declaration.
66187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66188         HAVE_DECL_TRUNC.
66189         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66190         HAVE_DECL_TRUNC.
66191         * doc/functions/trunc.texi: Mention the 'trunc' module.
66192
66193 2007-10-03  Bruno Haible  <bruno@clisp.org>
66194
66195         * tests/test-fpending.c: New file, mostly copied
66196         from coreutils/lib/t-fpending.c.
66197         * modules/fpending-tests: New file.
66198
66199 2007-10-03  Bruno Haible  <bruno@clisp.org>
66200
66201         Port the stdio extensions to QNX (untested).
66202         * lib/fseterr.c (fseterr): Add support for QNX.
66203         * lib/fbufmode.c (fbufmode): Likewise.
66204         * lib/freadable.c (freadable): Likewise.
66205         * lib/fwritable.c (fwritable): Likewise.
66206         * lib/freading.c (freading): Likewise.
66207         * lib/fwriting.c (fwriting): Likewise.
66208         * lib/freadahead.c (freadahed): Likewise.
66209         * lib/fpurge.c (fpurge): Likewise.
66210         * lib/fseeko.c (rpl_fseeko): Likewise.
66211
66212 2007-10-03  Bruno Haible  <bruno@clisp.org>
66213             Jim Meyering  <jim@meyering.net>
66214             Eric Blake  <ebb9@byu.net>
66215
66216         * doc/relocatable.texi: Use @command instead of @program.
66217
66218 2007-10-02  Jim Meyering  <jim@meyering.net>
66219
66220         Perform one more "_.h" -> ".in.h" substitution.
66221         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66222         instead of unistd_.h here, too.
66223
66224 2007-10-01  Bruno Haible  <bruno@clisp.org>
66225
66226         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66227         Needed for the alloca-opt module.
66228
66229 2007-09-30  Bruno Haible  <bruno@clisp.org>
66230
66231         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66232         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66233         alloca_.h.
66234         * lib/argz.in.h: Renamed from lib/argz_.h.
66235         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66236         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66237         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66238         byteswap_.h.
66239         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66240         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66241         dirent_.h.
66242         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66243         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66244         fcntl_.h.
66245         * lib/float.in.h: Renamed from lib/float_.h.
66246         * modules/float (Files, Makefile.am): Use float.in.h instead of
66247         float_.h.
66248         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66249         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66250         fnmatch_.h.
66251         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66252         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66253         getopt_.h.
66254         * lib/glob.in.h: Renamed from lib/glob_.h.
66255         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66256         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66257         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66258         iconv_.h.
66259         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66260         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66261         inttypes_.h.
66262         * lib/locale.in.h: Renamed from lib/locale_.h.
66263         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66264         locale_.h.
66265         * lib/math.in.h: Renamed from lib/math_.h.
66266         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66267         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66268         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66269         of netinet_in_.h. Add dependency.
66270         * lib/poll.in.h: Renamed from lib/poll_.h.
66271         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66272         * lib/search.in.h: Renamed from lib/search_.h.
66273         * modules/search (Files, Makefile.am): Use search.in.h instead of
66274         search_.h.
66275         * lib/signal.in.h: Renamed from lib/signal_.h.
66276         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66277         _signal.h.
66278         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66279         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66280         stdbool_.h.
66281         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66282         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66283         stdint_.h.
66284         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66285         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66286         stdio_.h.
66287         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66288         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66289         stdlib_.h.
66290         * lib/string.in.h: Renamed from lib/string_.h.
66291         * modules/string (Files, Makefile.am): Use string.in.h instead of
66292         string_.h.
66293         * doc/gnulib-tool.texi (Initial import): Update.
66294         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66295         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66296         of sys_select_.h. Add dependency.
66297         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66298         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66299         of sys_socket_.h.
66300         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66301         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66302         sys_stat_.h.
66303         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66304         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66305         sys_time_.h.
66306         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66307         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66308         sysexits_.h.
66309         * lib/time.in.h: Renamed from lib/time_.h.
66310         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66311         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66312         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66313         unistd_.h.
66314         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66315         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66316         wchar_.h.
66317         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66318         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66319         wctype_.h.
66320         * build-aux/bootstrap (slurp): Update.
66321         * lib/.cppi-disable: Update.
66322
66323 2007-09-30  Bruno Haible  <bruno@clisp.org>
66324
66325         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66326         Needed on BeOS.
66327
66328 2007-09-30  Bruno Haible  <bruno@clisp.org>
66329
66330         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66331
66332 2007-09-29  Bruno Haible  <bruno@clisp.org>
66333
66334         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66335
66336 2007-09-29  Bruno Haible  <bruno@clisp.org>
66337
66338         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66339         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66340         * build-aux/install-reloc: Compile also areadlink.c.
66341         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66342
66343 2007-09-29  Bruno Haible  <bruno@clisp.org>
66344
66345         * gnulib-tool (func_emit_initmacro_done): Indentation.
66346
66347 2007-09-29  Bruno Haible  <bruno@clisp.org>
66348
66349         * README: Add CVS checkout update instructions.
66350         Info from Bob Proulx <bob@proulx.com>.
66351
66352 2007-09-28  Eric Blake  <ebb9@byu.net>
66353
66354         Provide move-if-change.
66355         * build-aux/move-if-change: New file, based on best practice
66356         rather than any canonical upstream location.
66357
66358 2007-09-28  Jim Meyering  <jim@meyering.net>
66359
66360         Fix canonicalize loop-detection corner case.
66361         Do not attempt to stat the symlink values stored via seen_triple.
66362         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66363         on linux-2.6.18, (but not 2.6.22).
66364         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66365         triple_compare.  The former compares dev,ino,filename, while the latter
66366         would actually stat dirname(filename) when dev and ino were equal.
66367         * lib/hash-triple.c: Install <string.h>.
66368         (STREQ): Define.
66369         (triple_compare_ino_str): New function.
66370         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66371
66372 2007-09-28  Eric Blake  <ebb9@byu.net>
66373
66374         Enforce that AC_REPLACE_FUNCS files exist.
66375         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66376         override check for typos.
66377
66378         Fix test-closein on Solaris 10.
66379         * tests/test-closein.c (main): Don't assume stdin can be inherited
66380         closed on all systems.
66381         * tests/test-closein.sh: Likewise.
66382         Reported by Piotr Tarnowski.
66383
66384 2007-09-28  Jim Meyering  <jim@meyering.net>
66385
66386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66387
66388 2007-09-27  Jim Meyering  <jim@meyering.net>
66389
66390         canonicalize: Avoid a false-positive cycle failure.
66391         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66392         Sort.  Remove cycle-check.
66393         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66394         not cycle-check.h.
66395         (seen_triple): New function.
66396         (canonicalize_filename_mode): Use it instead of cycle-check.
66397         * tests/test-canonicalize.c: Add a test for this bug.
66398         * tests/test-canonicalize.sh: Set up and run the test.
66399
66400         New module, file-set, from coreutils.
66401         * modules/file-set: Define it.
66402         * lib/file-set.c, lib/file-set.h: Implement.
66403
66404         New module, hash-triple, from coreutils.
66405         * modules/hash-triple: Define it.
66406         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66407
66408 2007-09-25  Eric Blake  <ebb9@byu.net>
66409
66410         Fix strerror on Interix.
66411         * lib/string_.h (strerror): Declare replacement.
66412         * doc/functions/strerror.texi (strerror): Document the Interix
66413         shortcoming.
66414         * modules/string (Makefile.am): Support new hooks.
66415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66416         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66417         gl_FUNC_STRERROR_SEPARATE.
66418         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66419         * lib/strerror.c (rpl_strerror): Provide replacement.
66420         * modules/strerror (Depends-on): Add string.
66421         (configure.ac): Detect use of module.
66422         * tests/test-strerror.c: New file.
66423         * modules/strerror-tests: New test module.
66424         * modules/argp (Depends-on): Add strerror.
66425         * modules/error (Depends-on): Likewise.
66426         Reported by Martin Koeppe.
66427
66428 2007-09-24  Bruno Haible  <bruno@clisp.org>
66429
66430         * README: Update git instructions.
66431
66432 2007-09-24  Eric Blake  <ebb9@byu.net>
66433
66434         Revert fpending breakage from 2007-09-08.
66435         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66436         __fpending.c.
66437
66438 2007-09-24  Jim Meyering  <jim@meyering.net>
66439
66440         filenamecat.c: Add a test.
66441         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66442         showing how the function works when DIR is the empty string.
66443
66444 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66445
66446         * tests/test-canonicalize.sh: Turn on executable bit.
66447
66448 2007-09-19  Eric Blake  <ebb9@byu.net>
66449
66450         * README: Update CVS instructions.
66451
66452 2007-09-18  Bruno Haible  <bruno@clisp.org>
66453
66454         * modules/areadlink: New file.
66455         * lib/areadlink.h (areadlink): New declaration.
66456         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66457
66458 2007-09-17  Jim Meyering  <jim@meyering.net>
66459
66460         * lib/savewd.c (ESTALE) [!defined]: Define.
66461         Reported to be required on Interix by Martin Koeppe.
66462
66463 2007-09-17  Bruno Haible  <bruno@clisp.org>
66464
66465         * gnulib-tool (func_version): Use $version.
66466
66467 2007-09-16  Bruno Haible  <bruno@clisp.org>
66468
66469         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66470         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66471         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66472         Reported by Greg Schafer <gschafer@zip.com.au>.
66473
66474 2007-09-15  Bruno Haible  <bruno@clisp.org>
66475
66476         * gnulib-tool (sed): Try a little harder to make bash understand the
66477         alias.
66478         Reported by Bruce Korb <bruce.korb@gmail.com>.
66479
66480 2007-09-13  Eric Blake  <ebb9@byu.net>
66481
66482         * ChangeLog: Remove conflict markers.
66483
66484 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66485
66486         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66487         Reported by Bruno Haible <bruno@clisp.org>.
66488
66489 2007-09-12  Bruno Haible  <bruno@clisp.org>
66490
66491         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66492         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66493         is not defined.
66494
66495 2007-09-12  Eric Blake  <ebb9@byu.net>
66496
66497         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66498         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66499         Autoconf definition.
66500         * modules/euidaccess (Depends-on): Add extensions, for
66501         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66502         * modules/fnmatch (Depends-on): Likewise.
66503         * modules/getaddrinfo (Depends-on): Likewise.
66504         * modules/getdelim (Depends-on): Likewise.
66505         * modules/getline (Depends-on): Likewise.
66506         * modules/getsubopt (Depends-on): Likewise.
66507         * modules/gettext (Depends-on): Likewise.
66508         * modules/group-member (Depends-on): Likewise.
66509         * modules/mbchar (Depends-on): Likewise.
66510         * modules/memmem (Depends-on): Likewise.
66511         * modules/mempcpy (Depends-on): Likewise.
66512         * modules/memrchr (Depends-on): Likewise.
66513         * modules/pagealign_alloc (Depends-on): Likewise.
66514         * modules/readutmp (Depends-on): Likewise.
66515         * modules/stpcpy (Depends-on): Likewise.
66516         * modules/stpncpy (Depends-on): Likewise.
66517         * modules/strchrnul (Depends-on): Likewise.
66518         * modules/strndup (Depends-on): Likewise.
66519         * modules/strsep (Depends-on): Likewise.
66520         * modules/strverscmp (Depends-on): Likewise.
66521         * modules/vasprintf (Depends-on): Likewise.
66522         * modules/wcwidth (Depends-on): Likewise.
66523         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66524         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66525         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66526         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66527         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66528         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66529         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66530         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66531         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66532         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66533         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66534         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66535         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66536         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66537         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66538         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66539         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66540         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66541         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66542         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66543         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66544         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66545         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66546         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66547         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66549         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66550         so that lock.m4 can be used in gettext without extensions module.
66551
66552 2007-09-11  Bruno Haible  <bruno@clisp.org>
66553
66554         * m4/isc-posix.m4: Remove file.
66555         Suggested by Eric Blake.
66556
66557 2007-09-11  Eric Blake  <ebb9@byu.net>
66558
66559         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66560
66561 2007-09-10  Bruno Haible  <bruno@clisp.org>
66562
66563         * posix-modules: Fix typo in error message.
66564         Reported by Matt <mkraai@beckman.com>.
66565
66566 2007-09-09  Bruno Haible  <bruno@clisp.org>
66567
66568         * doc/functions/getdelim.texi: Update list of platforms lacking the
66569         function.
66570         * doc/functions/getline.texi: Likewise.
66571
66572 2007-09-09  Jim Meyering  <jim@meyering.net>
66573
66574         * lib/hash.c (hash_initialize): Detect calloc failure.
66575         Reported by Bruno Haible.
66576
66577 2007-09-09  Bruno Haible  <bruno@clisp.org>
66578
66579         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66580         malloc or realloc fails.
66581
66582 2007-09-09  Bruno Haible  <bruno@clisp.org>
66583
66584         * modules/getcwd (Depends-on): Add malloc-posix.
66585         * modules/glob (Depends-on): Likewise.
66586         * modules/putenv (Depends-on): Likewise.
66587         * modules/strdup (Depends-on): Likewise.
66588         * modules/getdelim (Depends-on): Add realloc-posix.
66589         * modules/read-file (Depends-on): Likewise.
66590
66591 2007-09-09  Bruno Haible  <bruno@clisp.org>
66592
66593         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66594         (gl_FUNC_MALLOC_POSIX): Require it.
66595         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66596         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66597         * modules/realloc (Files): Add m4/malloc.m4.
66598         * modules/calloc (Files): Likewise.
66599
66600 2007-09-09  Bruno Haible  <bruno@clisp.org>
66601
66602         * modules/malloc-posix: New file.
66603         * modules/malloc (Depends-on): Add malloc-posix.
66604         * lib/malloc.c: Include errno.h.
66605         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66606         and a POSIX-compatible malloc into a single function. Set ENOMEM
66607         when returning NULL.
66608         * m4/malloc.m4: New file.
66609         * doc/functions/malloc.texi: Mention the malloc-posix module.
66610         * lib/stdlib_.h (malloc): New declaration.
66611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66612         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66613         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66614         and HAVE_MALLOC_POSIX.
66615
66616 2007-09-09  Bruno Haible  <bruno@clisp.org>
66617
66618         * modules/realloc-posix: New file.
66619         * modules/realloc (Depends-on): Add realloc-posix.
66620         * lib/realloc.c: Include errno.h.
66621         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66622         and a POSIX-compatible realloc into a single function. Set ENOMEM
66623         when returning NULL.
66624         * m4/realloc.m4: New file.
66625         * doc/functions/realloc.texi: Mention the realloc-posix module.
66626         * lib/stdlib_.h (realloc): New declaration.
66627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66628         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66629         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66630         and HAVE_REALLOC_POSIX.
66631
66632 2007-09-09  Bruno Haible  <bruno@clisp.org>
66633
66634         * modules/calloc-posix: New file.
66635         * modules/calloc (Depends-on): Add calloc-posix.
66636         * lib/calloc.c: Include errno.h.
66637         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66638         and a POSIX-compatible calloc into a single function. Set ENOMEM
66639         when returning NULL.
66640         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66641         * doc/functions/calloc.texi: Mention the calloc-posix module.
66642         * lib/stdlib_.h (calloc): New declaration.
66643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66644         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66645         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66646         and HAVE_CALLOC_POSIX.
66647
66648 2007-09-09  Bruno Haible  <bruno@clisp.org>
66649
66650         Allow for modules to show an arbitrary notice.
66651         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66652         * gnulib-tool: New option --extract-notice.
66653         (func_usage): Document it.
66654         (sed_extract_prog): Update.
66655         (func_get_notice): New function.
66656         (func_modules_notice): New function.
66657         (func_import, func_create_testdir): Invoke it.
66658         Suggested by Jim Meyering.
66659
66660 2007-09-09  Bruno Haible  <bruno@clisp.org>
66661
66662         * gnulib-tool: New options --verbose, --quiet.
66663         (func_usage): Document them.
66664         (verbose): New variable.
66665         (func_execute_command): New function.
66666         (func_import): Don't show the module list and the file list if
66667         $verbose < 0.
66668         (func_create_testdir): Likewise. Use func_execute_command.
66669         (func_create_megatestdir): Use func_execute_command.
66670
66671 2007-09-08  Bruno Haible  <bruno@clisp.org>
66672
66673         * gnulib-tool (func_import): Prefer rsync over wget when available,
66674         for fetching the PO files.
66675
66676 2007-09-08  Bruno Haible  <bruno@clisp.org>
66677
66678         * posix-modules: New file. Portions copied from gnulib-tool.
66679         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66680
66681 2007-09-08  Jim Meyering  <jim@meyering.net>
66682
66683         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66684         * lib/fpending.h: Rename from __fpending.h.
66685         * lib/fpending.c: Rename from __fpending.c.
66686         Include "fpending.h", not "__fpending.h".
66687         * lib/__fpending.h, lib/__fpending.c: Remove files.
66688         * modules/fpending (Files): Reflect new file names.
66689         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66690
66691 2007-09-08  Bruno Haible  <bruno@clisp.org>
66692
66693         * m4/inttypes-h.m4: Remove stub file.
66694
66695 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66696
66697         * doc/headers/stdint.texi: Discuss #include_next issue.
66698
66699 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66700
66701         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66702
66703 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66704
66705         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66706         in variable name.
66707
66708 2007-09-03  Jim Meyering  <jim@meyering.net>
66709
66710         New module: git-version-gen.
66711         * modules/git-version-gen: New file.
66712
66713         Import changes from coreutils for bootstrap script.
66714
66715         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66716
66717         bootstrap: uses rsync to download the .po files
66718         * build-aux/bootstrap (po_download_command_format): New global.
66719         (download_po_files): Use rsync.
66720         (update_po_files): Don't remove .po files after download,
66721         so future rsync runs can take advantage of the copies.
66722
66723         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66724
66725         Solve the unnecessary-.po-file-regeneration problem once and for all.
66726         * build-aux/bootstrap (download_po_files): New function, renamed from
66727         get_translations.  Now, downloads, but doesn't update LINGUAS.
66728         (update_po_files): New function.
66729
66730         bootstrap: Ignore more.
66731         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66732         uniwidth to e.g., lib/.gitignore.
66733         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66734
66735         * build-aux/bootstrap: New setting: vc_ignore.
66736         (insert_sorted_if_absent): Create $file if absent.
66737         Adapt to new, possibly empty, list: $vc_ignore.
66738
66739         bootstrap: generate more ignorable names
66740         * build-aux/bootstrap (slurp): When generating ignorable names,
66741         also map .sin to .sed, .gperf to .c, and .y to .c.
66742
66743 2007-09-03  Jim Meyering  <jim@meyering.net>
66744
66745         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66746         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66747
66748 2007-09-02  Bruno Haible  <bruno@clisp.org>
66749
66750         Fix mis-recognition of 'mcs' on QNX 6.
66751         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66752         output contains the string "Mono".
66753         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66754         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66755
66756 2007-09-01  Bruno Haible  <bruno@clisp.org>
66757
66758         Fix collision between uniwidth/* and linebreak modules.
66759         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66760         u32_width): Remove declarations.
66761         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66762         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66763         streq3, streq2, streq1, streq0): Remove functions.
66764         (STREQ): Remove macro.
66765         (is_cjk_encoding): Remove function.
66766         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66767         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66768         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66769         * NEWS: Document the change.
66770
66771 2007-09-01  Bruno Haible  <bruno@clisp.org>
66772
66773         * lib/streq.h: Add double-inclusion guard.
66774
66775 2007-09-01  Karl Berry  <karl@gnu.org>
66776
66777         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66778
66779 2007-08-28  Jim Meyering  <jim@meyering.net>
66780
66781         Rename mreadlink_with_size to areadlink_with_size.
66782         * NEWS: Document the change.
66783         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66784         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66785         * lib/mreadlink.h: Rename this to...
66786         * lib/areadlink.h: ...this.
66787         * modules/mreadlink-with-size: Rename this to...
66788         * modules/areadlink-with-size: ...this.
66789         * lib/canonicalize.c: Reflect the renaming.
66790         * modules/canonicalize: Likewise.
66791
66792 2007-08-26  Bruno Haible  <bruno@clisp.org>
66793
66794         * gnulib-tool (func_import): When deciding which files to remove,
66795         consider also dangling symbolic links.
66796         Reported by Eric Blake.
66797
66798 2007-08-26  Bruno Haible  <bruno@clisp.org>
66799
66800         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66801
66802 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66803
66804         * lib/readline.c: Don't include getline.h, the prototype is now
66805         found in stdio.h.
66806
66807 2007-08-23  Jim Meyering  <jim@meyering.net>
66808
66809         Getdelim touchup.
66810         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66811         around the funlockfile call, since funlockfile never sets errno.
66812         Don't set errno upon failed realloc.
66813
66814 2007-08-22  Eric Blake  <ebb9@byu.net>
66815
66816         Getline touchups.
66817         * lib/getdelim.c (getdelim): Revert regression that required *n to
66818         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66819         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66820         getdelim, rather than whether implementation is missing.
66821         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66822         * lib/stdio_.h (getline): Also declare if replacement is
66823         required.
66824         * doc/functions/getdelim.texi: New file.
66825         * doc/functions/getline.texi: Likewise.
66826         * doc/gnulib.texi (Function Substitutes): Add new files.
66827         Reported by Bruno Haible.
66828
66829 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66830
66831         * users.txt: Add Guile.
66832
66833 2007-08-22  Eric Blake  <ebb9@byu.net>
66834
66835         * tests/test-getdelim.c (main): Use remove, not unlink.
66836         * tests/test-getline.c (main): Likewise.
66837
66838         Move getline and getdelim into stdio.h, per POSIX 200x.
66839         * modules/getline (Files): Remove getline.h.
66840         (Depends-on): Add stdio.
66841         (configure.ac): Add module indicator.
66842         * modules/getdelim (Files): Remove getdelim.h.
66843         (Depends-on): Add stdio.
66844         (configure.ac): Add module indicator.
66845         * modules/stdio (Makefile.am): Work with new indicators.
66846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66847         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66848         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66849         * lib/getdelim.h: Delete.
66850         * lib/getline.h: Delete.
66851         * lib/stdio_.h (getdelim, getline): Declare.
66852         * modules/getdelim-tests: New module.
66853         * modules/getline-tests: Likewise.
66854         * tests/test-getdelim.c: New file.
66855         * tests/test-getline.c: Likewise.
66856         * NEWS: Document the change.
66857         * lib/getline.c: Update choice of header.
66858         * lib/csharpcomp.c: Likewise.
66859         * lib/getpass.c: Likewise.
66860         * lib/javacomp.c: Likewise.
66861         * lib/javaversion.c: Likewise.
66862         * lib/yesno.c: Likewise.
66863         * lib/getdelim.c: Likewise.
66864         (getdelim): Set errno on failure, and avoid memory leak.
66865
66866 2007-08-19  Bruno Haible  <bruno@clisp.org>
66867
66868         * modules/closein (Depends-on): Add freadahead.
66869         * lib/closein.c: Include freadahead.h.
66870         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66871         is zero.
66872
66873 2007-08-19  Bruno Haible  <bruno@clisp.org>
66874
66875         * modules/freadahead-tests: New file.
66876         * tests/test-freadahead.sh: New file.
66877         * tests/test-freadahead.c: New file.
66878
66879         * modules/freadahead: New file.
66880         * lib/freadahead.h: New file.
66881         * lib/freadahead.c: New file.
66882         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66883         fbufmode, fpurge, freadable, fwritable.
66884
66885 2007-08-19  Eric Blake  <ebb9@byu.net>
66886
66887         Test yesno in combination with closein.
66888         * lib/yesno.c (yesno): Document use of stdin.
66889         * modules/yesno-tests (Files): New module.
66890         * tests/test-yesno.c (main): New file.
66891         * tests/test-yesno.sh: Likewise.
66892
66893 2007-08-19  Bruno Haible  <bruno@clisp.org>
66894
66895         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66896         * lib/fseeko.c (rpl_fseeko): Likewise.
66897         * lib/fseterr.c (fseterr): Likewise.
66898
66899 2007-08-19  Bruno Haible  <bruno@clisp.org>
66900
66901         * tests/test-lseek.c (main): Disable a test for BeOS.
66902         * doc/functions/lseek.texi: Document the BeOS bug.
66903
66904 2007-08-19  Bruno Haible  <bruno@clisp.org>
66905             Eric Blake  <ebb9@byu.net>
66906
66907         * lib/lseek.c: Include <sys/stat.h>.
66908         (rpl_lseek): Add workaround code also for Unix platforms.
66909         Needed for BeOS.
66910         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66911         * doc/functions/lseek.texi: Document BeOS definiency.
66912
66913 2007-08-18  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/fstrcmp-tests: New file.
66916         * tests/test-fstrcmp.c: New file.
66917
66918 2007-08-18  Bruno Haible  <bruno@clisp.org>
66919
66920         * modules/fstrcmp: New file, from GNU gettext with modifications.
66921         * lib/fstrcmp.h: New file, from GNU gettext.
66922         * lib/fstrcmp.c: New file, from GNU gettext.
66923         * MODULES.html.sh (String handling): Add fstrcmp.
66924
66925 2007-08-18  Bruno Haible  <bruno@clisp.org>
66926
66927         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66928         'bool'.
66929         (diag, compareseq): Remove const from the ctxt argument.
66930         (USE_HEURISTIC): Undefine at the end.
66931
66932 2007-08-18  Jim Meyering  <jim@meyering.net>
66933
66934         New file: lib/idcache.h
66935         * NEWS: Mention the addition.
66936         * modules/idcache (Files): Add lib/idcache.h
66937         * lib/idcache.c: Include "idcache.h".
66938         Don't include <sys/types.h>.
66939         Add a FIXME comment.
66940         Move file-scoped "static" declarations to the top.
66941         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66942
66943 2007-08-17  Bruno Haible  <bruno@clisp.org>
66944         and Paul Eggert  <eggert@cs.ucla.edu>
66945
66946         * MODULES.html.sh: Add diffseq.
66947         * modules/diffseq: New file.
66948         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66949         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66950
66951 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         Import changes from coreutils for bootstrap script.
66954
66955         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66956
66957         * build-aux/bootstrap (slurp): Work even in environments where
66958         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66959         current code does not slurp files whose names start with ".", and
66960         this looks like it might be a troublesome area.
66961
66962         2007-07-11  Jim Meyering  <jim@meyering.net>
66963
66964         If there's a GPL vN copyright comment, require that N == 3.
66965
66966         2007-07-08  Jim Meyering  <jim@meyering.net>
66967
66968         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66969         * build-aux/bootstrap (mam_template): Move definition out of loop.
66970
66971         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66972
66973         * build-aux/bootstrap (symlink_to_dir): Rename function from
66974         symlink_to_gnulib.  Add a directory parameter.  Update all
66975         callers.
66976         (cp_mark_as_generated): Also check for -- and link to -- files in
66977         gl/.
66978
66979         2007-07-08  Jim Meyering  <jim@meyering.net>
66980
66981         Adapt to deeper hierarchy in gnulib.
66982         * build-aux/bootstrap (symlink_to_dir): If the destination
66983         directory doesn't exist, create it. This is required at least for
66984         "lib/uniwidth/cjk.h".
66985
66986         2007-05-15  Jim Meyering  <jim@meyering.net>
66987
66988         * build-aux/bootstrap: Now that generated Makefile.am files
66989         are no longer under version control, they must be created at
66990         bootstrap time.
66991
66992 2007-08-14  Ben Pfaff  <blp@gnu.org>
66993
66994         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66995
66996 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66997
66998         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66999         given the changes below.
67000         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67001         even on hosts that have padding bits beyond the supported 64.
67002
67003 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67004
67005         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67006         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67007         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67008         depends on it.
67009         (xstrtol_error): Remove.
67010         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67011         but with a different signature.
67012         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67013         * lib/xstrtol-error.c: Include exitfail.h.
67014         (xstrtol_fatal): New function, with a different signature from the
67015         old xstrtol_error, so that the caller need not worry about passing
67016         in an exit status, or about storage management of the option argument.
67017         (xstrtol_error): Now a static function.  Redo signature to
67018         implement xstrtol_fatal.  Output the correct number of hyphens in
67019         front of the option so that the caller need not worry about
67020         storage management.
67021         (N_): New macro.
67022         (_): Remove; not used now.
67023         * modules/xstrtol: Depend on getopt.
67024         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67025         of old STRTOL_FATAL_ERROR macro.
67026         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67027         of test program.
67028         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67029         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67030
67031 2007-08-08  Eric Blake  <ebb9@byu.net>
67032
67033         * lib/xstrtol-error.c: Add missing include.
67034
67035         Move xstrtol messages into gnulib domain, when --pobase is used.
67036         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67037         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67038         * modules/xstrtol (Files): Distribute new file.
67039         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67040         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67041         * tests/test-xstrtol.c: ...into new file.
67042         * tests/test-xstrtoul.c: Also test xstrtoul.
67043         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67044         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67045         * tests/test-xstrtol.sh: Drive the tests.
67046         * tests/test-xstrtoimax.sh: Likewise.
67047         * tests/test-xstrtoumax.sh: Likewise.
67048         * modules/xstrtol-tests: New module.
67049         * modules/xstrtoimax-tests: Likewise.
67050         * modules/xstrtoumax-tests: Likewise.
67051
67052 2007-08-08  Jim Meyering  <jim@meyering.net>
67053
67054         New function: mfile_name_concat.
67055         * lib/filenamecat.c (mfile_name_concat): New function, just like
67056         file_name_concat, but return NULL upon failure rather than exiting
67057         with a diagnostic.
67058         * lib/filenamecat.h: Declare it.
67059
67060 2007-08-07  Bruno Haible  <bruno@clisp.org>
67061
67062         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67063         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67064         warning from gcc.
67065         Reported by Eric Blake.
67066
67067 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67068
67069         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67070         * modules/crypto/arcfour (License): Likewise.
67071         * modules/crypto/des-tests (License): Likewise.
67072         * modules/crypto/gc-arctwo-tests (License): Likewise.
67073         * modules/crypto/gc-des-tests (License): Likewise.
67074         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67075         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67076         * modules/crypto/gc-md2-tests (License): Likewise.
67077         * modules/crypto/gc-md4-tests (License): Likewise.
67078         * modules/crypto/gc-md5-tests (License): Likewise.
67079         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67080         * modules/crypto/gc-rijndael-tests (License): Likewise.
67081         * modules/crypto/gc-sha1-tests (License): Likewise.
67082         * modules/crypto/gc-tests (License): Likewise.
67083         * modules/crypto/hmac-md5 (License): Likewise.
67084         * modules/crypto/hmac-sha1 (License): Likewise.
67085         * modules/crypto/md2-tests (License): Likewise.
67086         * modules/crypto/md4-tests (License): Likewise.
67087         * modules/crypto/md5 (License): Likewise.
67088         * modules/crypto/rijndael (License): Likewise.
67089         * modules/crypto/sha1 (License): Likewise.
67090         * modules/memxor (License): Likewise.
67091
67092 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67093         and Bruno Haible  <bruno@clisp.org>
67094
67095         * NEWS: Describe interface changes to human, xstrtol.
67096         * lib/human.h: Include <xstrtol.h>.
67097         (human_options): Return enum strtol_error, not int.  Remove
67098         bool arg; take int * instead.
67099         * lib/human.c: Don't include "gettext.h".
67100         (_): Remove; no longer used.
67101         Don't include <xstrtol.h>, since human.h does it.
67102         (human_options): Adjust to abovementioned interface changes.
67103         Do not report error to stderr; that's now the caller's
67104         responsibility.
67105         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67106         interface change.
67107         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67108         Str, Argument_type_string.  All uses changed.  Put " argument"
67109         in diagnostics to make them clearer.  Change wording of suffix
67110         message for clarity.
67111         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67112         Argument_type_string.
67113         (STRTOL_FATAL_WARN): Remove; no longer used.
67114         * modules/human (Depends-on): Remove gettext-h.
67115
67116 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67117
67118         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67119
67120 2007-07-31  Bruno Haible  <bruno@clisp.org>
67121
67122         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67123         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67124         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67125
67126 2007-07-31  Bruno Haible  <bruno@clisp.org>
67127
67128         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67129         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67130
67131 2007-07-30  Bruno Haible  <bruno@clisp.org>
67132
67133         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67134         * modules/c-ctype (License): Likewise.
67135         * modules/c-strcase (License): Likewise.
67136         * modules/check-version (License): Likewise.
67137         * modules/iconv (License): Likewise.
67138         * modules/iconv_open (License): Likewise.
67139         * modules/read-file (License): Likewise.
67140         * modules/striconv (License): Likewise.
67141         * modules/strverscmp (License): Likewise.
67142         * modules/vasprintf (License): Likewise.
67143         * modules/crypto/des (License): Likewise.
67144         * modules/crypto/gc (License): Likewise.
67145         * modules/crypto/gc-arcfour (License): Likewise.
67146         * modules/crypto/gc-arctwo (License): Likewise.
67147         * modules/crypto/gc-des (License): Likewise.
67148         * modules/crypto/gc-hmac-md5 (License): Likewise.
67149         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67150         * modules/crypto/gc-md2 (License): Likewise.
67151         * modules/crypto/gc-md4 (License): Likewise.
67152         * modules/crypto/gc-md5 (License): Likewise.
67153         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67154         * modules/crypto/gc-random (License): Likewise.
67155         * modules/crypto/gc-rijndael (License): Likewise.
67156         * modules/crypto/gc-sha1 (License): Likewise.
67157         * modules/crypto/md2 (License): Likewise.
67158         * modules/crypto/md4 (License): Likewise.
67159
67160 2007-07-30  Jim Meyering  <jim@meyering.net>
67161
67162         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67163         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67164         it has valid stat data.  This bug would cause du not to count the
67165         sizes of inaccessible directories.
67166         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67167         in <http://bugzilla.redhat.com/250077>.
67168
67169 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67170             Bruno Haible  <bruno@clisp.org>
67171
67172         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67173         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67174         #include_next, gives a diagnostic about it, but reports no error in
67175         the exit code.
67176         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67177
67178 2007-07-24  Ben Pfaff  <blp@gnu.org>
67179
67180         Improve name: "count-one-bits" is better than "popcount".
67181         * MODULES.html.sh: Update name.
67182         * lib/popcount.h: Renamed lib/count-one-bits.h.
67183         (popcount): Renamed count_one_bits.
67184         (popcountl): Renamed count_one_bits_l.
67185         (popcountll): Renamed count_one_bits_ll.
67186         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67187         * modules/popcount: Renamed module/count-one-bits.
67188         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67189         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67190
67191 2007-07-23  Ben Pfaff  <blp@gnu.org>
67192
67193         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67194         better code generation, and add U to large constants to avoid
67195         warnings, in non-GCC case.
67196         Suggested by Bruno Haible.
67197
67198 2007-07-23  Ben Pfaff  <blp@gnu.org>
67199
67200         * lib/popcount.h: Use verify_true instead of if...abort.
67201         * modules/popcount: Depend on verify module.
67202         Suggested by Jim Meyering.
67203
67204 2007-07-23  Bruno Haible  <bruno@clisp.org>
67205
67206         * gnulib-tool (func_import): Create a .cvsignore file also when the
67207         directory is not yet in CVS but the toplevel directory is. When
67208         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67209         Reported by Karl Berry.
67210
67211 2007-07-22  Ben Pfaff  <blp@gnu.org>
67212
67213         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67214         case.
67215         Suggested by Eric Blake.
67216
67217 2007-07-22  Ben Pfaff  <blp@gnu.org>
67218
67219         New module: popcount.
67220         * MODULES.html.sh: Add popcount.
67221         * modules/popcount: New file.
67222         * modules/popcount-tests: New file.
67223         * tests/test-popcount.c: New file.
67224         * lib/popcount.h: New file.
67225         * m4/popcount.m4: New file.
67226
67227 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67228
67229         * build-aux/announce-gen: Update to GPLv3.
67230
67231         * build-aux/config.guess: Update from config.
67232
67233 2007-07-21  Bruno Haible  <bruno@clisp.org>
67234
67235         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67236         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67237
67238 2007-07-20  Jim Meyering  <jim@meyering.net>
67239
67240         * check-module: Diagnose a self-dependency.
67241
67242 2007-07-19  Bruno Haible  <bruno@clisp.org>
67243
67244         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67245         empty.
67246         Reported by Eric Blake.
67247
67248 2007-07-18  Bruno Haible  <bruno@clisp.org>
67249
67250         * gnulib-tool: New options --po-base, --po-domain.
67251         (func_usage): Document them.
67252         (pobase, po_domain): New variables.
67253         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67254         DEFAULT_TEXT_DOMAIN.
67255         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67256         (func_import): Consider pobase and po_domain. Create a po/ directory.
67257         (func_create_testdir): Set pobase and po_domain to empty.
67258         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67259         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67260
67261 2007-07-18  Bruno Haible  <bruno@clisp.org>
67262
67263         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67264         EXTRA_DIST augmentation for files in build-aux/.
67265
67266 2007-07-16  Bruno Haible  <bruno@clisp.org>
67267
67268         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67269         * modules/getdelim (License): Likewise.
67270
67271 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67272
67273         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67274         * modules/d-type (License): Likewise.
67275         * modules/extensions (License): Likewise.
67276         * modules/fnmatch (License): Likewise.
67277         * modules/fseeko (License): Likewise.
67278         * modules/getaddrinfo (License): Likewise.
67279         * modules/getline (License): Likewise.
67280         * modules/getlogin_r (License): Likewise.
67281         * modules/getpass (License): Likewise.
67282         * modules/gettimeofday (License): Likewise.
67283         * modules/glob (License): Likewise.
67284         * modules/inet_ntop (License): Likewise.
67285         * modules/malloc (License): Likewise.
67286         * modules/malloca (License): Likewise.
67287         * modules/memmem (License): Likewise.
67288         * modules/mempcpy (License): Likewise.
67289         * modules/memset (License): Likewise.
67290         * modules/minmax (License): Likewise.
67291         * modules/mktime (License): Likewise.
67292         * modules/netinet_in (License): Likewise.
67293         * modules/pathmax (License): Likewise.
67294         * modules/poll (License): Likewise.
67295         * modules/regex (License): Likewise.
67296         * modules/snprintf (License): Likewise.
67297         * modules/stdbool (License): Likewise.
67298         * modules/stdint (License): Likewise.
67299         * modules/stdio (License): Likewise.
67300         * modules/strcase (License): Likewise.
67301         * modules/strcasestr (License): Likewise.
67302         * modules/strdup (License): Likewise.
67303         * modules/string (License): Likewise.
67304         * modules/strndup (License): Likewise.
67305         * modules/strnlen (License): Likewise.
67306         * modules/strpbrk (License): Likewise.
67307         * modules/strptime (License): Likewise.
67308         * modules/strsep (License): Likewise.
67309         * modules/sys_select (License): Likewise.
67310         * modules/sys_socket (License): Likewise.
67311         * modules/sys_stat (License): Likewise.
67312         * modules/sys_time (License): Likewise.
67313         * modules/time (License): Likewise.
67314         * modules/time_r (License): Likewise.
67315         * modules/timegm (License): Likewise.
67316         * modules/unistd (License): Likewise.
67317         * modules/vsnprintf (License): Likewise.
67318         * modules/wctype (License): Likewise.
67319
67320 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67321
67322         * modules/argz (License): LGPLv2+.
67323
67324 2007-07-15  Karl Berry  <karl@gnu.org>
67325
67326         * doc/gnulib.texi: revise node structure per new fdl.texi.
67327
67328 2007-07-14  Bruno Haible  <bruno@clisp.org>
67329
67330         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67331         the output file.
67332         * lib/uniname/uninames.h: Regenerated.
67333
67334 2007-07-14  Karl Berry  <karl@gnu.org>
67335
67336         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67337         omitting sectioning and index commands.
67338
67339 2007-07-13  Bruno Haible  <bruno@clisp.org>
67340
67341         New gnulib-tool option --more-symlinks.
67342         * gnulib-tool (func_usage): Document --more-symlinks.
67343         (do_copyrights): New variable.
67344         Recognize option --more-symlinks.
67345         (func_import): Don't add a copyright notice transform to
67346         sed_transform_lib_file if do_copyrights is empty.
67347
67348 2007-07-13  Bruno Haible  <bruno@clisp.org>
67349
67350         * lib/vasnprintf.c (decimal_point_char): Define also if
67351         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67352         && !NEED_PRINTF_DIRECTIVE_A.
67353         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67354         Gary V. Vaughan <gary@gnu.org>.
67355
67356 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67357
67358         * lib/inttypes_.h: Undo previous change, since it was fixed
67359         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67360
67361 2007-07-13  Bruno Haible  <bruno@clisp.org>
67362
67363         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67364         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67365
67366 2007-07-13  Jim Meyering  <jim@meyering.net>
67367
67368         df: Don't fail for Tru64's "file-on-file mount".
67369         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67370         so we fall through and use statfs instead.  Details here:
67371         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67372         Reported by Albert Chin.
67373
67374 2007-07-13  Bruno Haible  <bruno@clisp.org>
67375
67376         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67377         * modules/configmake (License): Likewise.
67378         * modules/gettext (License): Likewise.
67379         * modules/gettext-h (License): Likewise.
67380         * modules/include_next (License): Likewise.
67381         * modules/link-warning (License): Likewise.
67382         * modules/localcharset (License): Likewise.
67383         * modules/localename (License): Likewise.
67384         * modules/lock (License): Likewise.
67385         * modules/relocatable-lib-lgpl (License): Likewise.
67386         * modules/size_max (License): Likewise.
67387         * modules/vasnprintf (License): Likewise.
67388         * modules/wchar (License): Likewise.
67389         * modules/xsize (License): Likewise.
67390
67391 2007-07-13  Bruno Haible  <bruno@clisp.org>
67392
67393         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67394         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67395
67396 2007-07-12  Bruno Haible  <bruno@clisp.org>
67397
67398         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67399         in the modules files.
67400
67401 2007-07-11  Karl Berry  <karl@gnu.org>
67402
67403         * MODULES.html.sh (func_module): use
67404          sed -e '\|^'"${includefile}"'$|d'
67405          instead of /.../d, to avoid errors on $includefile's containing /.
67406
67407 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67408
67409         * gnulib-tool (func_import): Avoid duplication of --avoid
67410         statements
67411         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67412         names to `_' in variable names.
67413
67414 2007-07-10  Eric Blake  <ebb9@byu.net>
67415
67416         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67417         * NEWS: Document this change.
67418
67419 2007-07-08  Bruno Haible  <bruno@clisp.org>
67420
67421         Update to Unicode 5.0.
67422         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67423         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67424         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67425         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67426         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67427         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67428         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67429         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67430         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67431         U+10A3F, U+1D242..U+1D244.
67432         (nonspacing_table_ind): Update.
67433         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67434         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67435
67436 2007-07-08  Bruno Haible  <bruno@clisp.org>
67437
67438         Update to Unicode 5.0.
67439         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67440         code transform. Extend the name index field of unicode_name_to_code and
67441         unicode_code_to_name from 16 to 24 bits.
67442         * lib/uniname/uniname.c (unicode_character_name,
67443         unicode_name_character): Add the range 0x12xxx to the code transform.
67444         * lib/uniname/uninames.h: Regenerated.
67445         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67446
67447 2007-07-07  Bruno Haible  <bruno@clisp.org>
67448
67449         * modules/wcwidth-tests: New file.
67450         * tests/test-wcwidth.c: New file.
67451
67452         Work around MacOS X wcwidth() bug.
67453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67454         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67455         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67456         original wcwidth in non-UTF-8 locales.
67457         * modules/wcwidth (Depends-on): Add localcharset, streq,
67458         uniwidth/width.
67459         * doc/functions/wcwidth.texi: Update.
67460
67461 2007-07-07  Bruno Haible  <bruno@clisp.org>
67462
67463         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67464         (wcwidth): New declaration.
67465         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67466         macros.
67467         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67468         here. Prepare for creating <wchar.h> unconditionally.
67469         * modules/wchar (Depends-on): Add link-warning.
67470         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67471         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67472         * lib/wcwidth.h: Remove file.
67473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67474         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67475         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67476         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67477         (Include): Replace wcwidth.h with <wchar.h>.
67478         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67479         * lib/mbchar.h: Don't include wcwidth.h.
67480         * lib/mbswidth.c: Likewise.
67481         * NEWS: Mention the change.
67482
67483 2007-07-07  Bruno Haible  <bruno@clisp.org>
67484
67485         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67486         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67487         definition with an external declaration.
67488         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67489         defined as a function. Remove AC_C_INLINE requirement.
67490         * modules/wcwidth (Files): Add lib/wcwidth.c.
67491         (Makefile.am): Remove redundant statement.
67492
67493 2007-07-07  Bruno Haible  <bruno@clisp.org>
67494
67495         * MODULES.html.sh (Unicode string functions): Add the new modules.
67496
67497         * tests/uniwidth/test-u32-strwidth.c: New file.
67498         * modules/uniwidth/u32-strwidth-tests: New file.
67499
67500         * lib/uniwidth/u32-strwidth.c: New file.
67501         * modules/uniwidth/u32-strwidth: New file.
67502
67503         * tests/uniwidth/test-u16-strwidth.c: New file.
67504         * modules/uniwidth/u16-strwidth-tests: New file.
67505
67506         * lib/uniwidth/u16-strwidth.c: New file.
67507         * modules/uniwidth/u16-strwidth: New file.
67508
67509         * tests/uniwidth/test-u8-strwidth.c: New file.
67510         * modules/uniwidth/u8-strwidth-tests: New file.
67511
67512         * lib/uniwidth/u8-strwidth.c: New file.
67513         * modules/uniwidth/u8-strwidth: New file.
67514
67515         * tests/uniwidth/test-u32-width.c: New file.
67516         * modules/uniwidth/u32-width-tests: New file.
67517
67518         * lib/uniwidth/u32-width.c: New file.
67519         * modules/uniwidth/u32-width: New file.
67520
67521         * tests/uniwidth/test-u16-width.c: New file.
67522         * modules/uniwidth/u16-width-tests: New file.
67523
67524         * lib/uniwidth/u16-width.c: New file.
67525         * modules/uniwidth/u16-width: New file.
67526
67527         * tests/uniwidth/test-u8-width.c: New file.
67528         * modules/uniwidth/u8-width-tests: New file.
67529
67530         * lib/uniwidth/u8-width.c: New file.
67531         * modules/uniwidth/u8-width: New file.
67532
67533         * tests/uniwidth/test-uc_width.c: New file.
67534         * modules/uniwidth/width-tests: New file.
67535
67536         * lib/uniwidth/width.c: New file, from GNU libiconv.
67537         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67538         * modules/uniwidth/width: New file.
67539
67540         * lib/uniwidth.h: New file, from GNU libiconv.
67541         * modules/uniwidth/base: New file.
67542
67543 2007-07-07  Bruno Haible  <bruno@clisp.org>
67544
67545         * lib/uniname.h: New file, from GNU gettext.
67546         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67547         * lib/uniname/uninames.h: New file, from GNU gettext.
67548         * lib/uniname/uniname.c: New file, from GNU gettext.
67549         * tests/uniname/test-uninames.sh: New file.
67550         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67551         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67552         * modules/uniname/base: New file.
67553         * modules/uniname/uniname: New file.
67554         * modules/uniname/uniname-tests: New file.
67555         * MODULES.html.sh (Unicode string functions): Add the new modules.
67556
67557 2007-07-06  Bruno Haible  <bruno@clisp.org>
67558
67559         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67560
67561 2007-07-06  Bruno Haible  <bruno@clisp.org>
67562
67563         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67564         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67565         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67566         include <sys/time.h>.
67567         Reported by Eric Blake.
67568
67569 2007-07-06  Eric Blake  <ebb9@byu.net>
67570
67571         Fix testing canonicalize on cygwin.
67572         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67573         Revert patch from 2007-06-19.
67574         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67575         canonicalize module is also in use.
67576         * tests/test-canonicalize.c: New file.
67577         * tests/test-canonicalize.sh: Likewise.
67578         * modules/canonicalize-tests: Likewise.
67579
67580 2007-07-06  Jim Meyering  <jim@meyering.net>
67581
67582         * lib/getugroups.c (getugroups): Detect getgrent failure.
67583         Adjust comment to reflect reality: this function may return -1.
67584
67585 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67586
67587         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67588         the new TP address.
67589         (usage): Fix typo
67590         (gnulib_mk): New variable.
67591
67592 2007-07-05  Jim Meyering  <jim@meyering.net>
67593
67594         Don't let endgrent clobber errno, no matter how improbable.
67595         * lib/getugroups.c (getugroups): Save and restore errno around
67596         endgrent call.
67597
67598         Close the group DB even when failing with 2^31 or more members.
67599         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67600
67601 2007-07-04  Jim Meyering  <jim@meyering.net>
67602
67603         * lib/getugroups.h: New file.
67604         * lib/getugroups.c: Include "getugroups.h".
67605         Remove uses of "register" keyword.
67606         Move local variable, "cp", down into scope where used.
67607         Give "username" parameter the "const" attribute.
67608         * modules/getugroups (Files): Add lib/getugroups.h
67609
67610 2007-07-04  Karl Berry  <karl@gnu.org>
67611
67612         * MODULES.html.sh (func_all_modules): Complete rename of
67613         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67614
67615 2007-07-02  Bruno Haible  <bruno@clisp.org>
67616
67617         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67618         mode, when inttypes.h comes from gnulib.
67619         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67620
67621 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67622
67623         * NEWS: Mention lgpl module name change.
67624
67625         * modules/lgpl-2.1: Renamed from lgpl.
67626
67627         * NEWS: Mention gpl module name change.
67628
67629         * modules/gpl-3.0: New file, based on gpl-2.0.
67630
67631         * modules/gpl-2.0: Renamed from gpl.
67632
67633         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67634         doc/gpl-2.0.texi.
67635
67636 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67637
67638         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67639         #define __STDC_LIMIT_MACROS temporarily while including
67640         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67641         Problem reported by Joel E. Denny in
67642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67643
67644 2007-07-01  Bruno Haible  <bruno@clisp.org>
67645
67646         * lib/unistdio.h: New file.
67647         * lib/unistdio/u-asnprintf.h: New file.
67648         * lib/unistdio/u-asprintf.h: New file.
67649         * lib/unistdio/u-printf-args.c: New file.
67650         * lib/unistdio/u-printf-args.h: New file.
67651         * lib/unistdio/u-printf-parse.h: New file.
67652         * lib/unistdio/u-snprintf.h: New file.
67653         * lib/unistdio/u-sprintf.h: New file.
67654         * lib/unistdio/u-vasprintf.h: New file.
67655         * lib/unistdio/u-vsnprintf.h: New file.
67656         * lib/unistdio/u-vsprintf.h: New file.
67657         * lib/unistdio/ulc-asnprintf.c: New file.
67658         * lib/unistdio/ulc-asprintf.c: New file.
67659         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67660         * lib/unistdio/ulc-printf-parse.c: New file.
67661         * lib/unistdio/ulc-snprintf.c: New file.
67662         * lib/unistdio/ulc-sprintf.c: New file.
67663         * lib/unistdio/ulc-vasnprintf.c: New file.
67664         * lib/unistdio/ulc-vasprintf.c: New file.
67665         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67666         * lib/unistdio/ulc-vsnprintf.c: New file.
67667         * lib/unistdio/ulc-vsprintf.c: New file.
67668         * lib/unistdio/u8-asnprintf.c: New file.
67669         * lib/unistdio/u8-asprintf.c: New file.
67670         * lib/unistdio/u8-printf-parse.c: New file.
67671         * lib/unistdio/u8-snprintf.c: New file.
67672         * lib/unistdio/u8-sprintf.c: New file.
67673         * lib/unistdio/u8-vasnprintf.c: New file.
67674         * lib/unistdio/u8-vasprintf.c: New file.
67675         * lib/unistdio/u8-vsnprintf.c: New file.
67676         * lib/unistdio/u8-vsprintf.c: New file.
67677         * lib/unistdio/u8-u8-asnprintf.c: New file.
67678         * lib/unistdio/u8-u8-asprintf.c: New file.
67679         * lib/unistdio/u8-u8-snprintf.c: New file.
67680         * lib/unistdio/u8-u8-sprintf.c: New file.
67681         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67682         * lib/unistdio/u8-u8-vasprintf.c: New file.
67683         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67684         * lib/unistdio/u8-u8-vsprintf.c: New file.
67685         * lib/unistdio/u16-asnprintf.c: New file.
67686         * lib/unistdio/u16-asprintf.c: New file.
67687         * lib/unistdio/u16-printf-parse.c: New file.
67688         * lib/unistdio/u16-snprintf.c: New file.
67689         * lib/unistdio/u16-sprintf.c: New file.
67690         * lib/unistdio/u16-vasnprintf.c: New file.
67691         * lib/unistdio/u16-vasprintf.c: New file.
67692         * lib/unistdio/u16-vsnprintf.c: New file.
67693         * lib/unistdio/u16-vsprintf.c: New file.
67694         * lib/unistdio/u16-u16-asnprintf.c: New file.
67695         * lib/unistdio/u16-u16-asprintf.c: New file.
67696         * lib/unistdio/u16-u16-snprintf.c: New file.
67697         * lib/unistdio/u16-u16-sprintf.c: New file.
67698         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67699         * lib/unistdio/u16-u16-vasprintf.c: New file.
67700         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67701         * lib/unistdio/u16-u16-vsprintf.c: New file.
67702         * lib/unistdio/u32-asnprintf.c: New file.
67703         * lib/unistdio/u32-asprintf.c: New file.
67704         * lib/unistdio/u32-printf-parse.c: New file.
67705         * lib/unistdio/u32-snprintf.c: New file.
67706         * lib/unistdio/u32-sprintf.c: New file.
67707         * lib/unistdio/u32-vasnprintf.c: New file.
67708         * lib/unistdio/u32-vasprintf.c: New file.
67709         * lib/unistdio/u32-vsnprintf.c: New file.
67710         * lib/unistdio/u32-vsprintf.c: New file.
67711         * lib/unistdio/u32-u32-asnprintf.c: New file.
67712         * lib/unistdio/u32-u32-asprintf.c: New file.
67713         * lib/unistdio/u32-u32-snprintf.c: New file.
67714         * lib/unistdio/u32-u32-sprintf.c: New file.
67715         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67716         * lib/unistdio/u32-u32-vasprintf.c: New file.
67717         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67718         * lib/unistdio/u32-u32-vsprintf.c: New file.
67719         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67720         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67721         * tests/unistdio/test-ulc-printf1.h: New file.
67722         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67723         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67724         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67725         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67726         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67727         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67728         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67729         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67730         * tests/unistdio/test-u8-asnprintf1.c: New file.
67731         * tests/unistdio/test-u8-asnprintf1.h: New file.
67732         * tests/unistdio/test-u8-printf1.h: New file.
67733         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67734         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67735         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67736         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67737         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67738         * tests/unistdio/test-u8-vasprintf1.c: New file.
67739         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67740         * tests/unistdio/test-u8-vsprintf1.c: New file.
67741         * tests/unistdio/test-u16-asnprintf1.c: New file.
67742         * tests/unistdio/test-u16-asnprintf1.h: New file.
67743         * tests/unistdio/test-u16-printf1.h: New file.
67744         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67745         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67746         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67747         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67748         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67749         * tests/unistdio/test-u16-vasprintf1.c: New file.
67750         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67751         * tests/unistdio/test-u16-vsprintf1.c: New file.
67752         * tests/unistdio/test-u32-asnprintf1.c: New file.
67753         * tests/unistdio/test-u32-asnprintf1.h: New file.
67754         * tests/unistdio/test-u32-printf1.h: New file.
67755         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67756         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67757         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67758         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67759         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67760         * tests/unistdio/test-u32-vasprintf1.c: New file.
67761         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67762         * tests/unistdio/test-u32-vsprintf1.c: New file.
67763         * modules/unistdio/base: New file.
67764         * modules/unistdio/u-printf-args: New file.
67765         * modules/unistdio/ulc-asnprintf: New file.
67766         * modules/unistdio/ulc-asprintf: New file.
67767         * modules/unistdio/ulc-fprintf: New file.
67768         * modules/unistdio/ulc-printf-parse: New file.
67769         * modules/unistdio/ulc-snprintf: New file.
67770         * modules/unistdio/ulc-sprintf: New file.
67771         * modules/unistdio/ulc-vasnprintf: New file.
67772         * modules/unistdio/ulc-vasprintf: New file.
67773         * modules/unistdio/ulc-vfprintf: New file.
67774         * modules/unistdio/ulc-vsnprintf: New file.
67775         * modules/unistdio/ulc-vsprintf: New file.
67776         * modules/unistdio/u8-asnprintf: New file.
67777         * modules/unistdio/u8-asprintf: New file.
67778         * modules/unistdio/u8-printf-parse: New file.
67779         * modules/unistdio/u8-snprintf: New file.
67780         * modules/unistdio/u8-sprintf: New file.
67781         * modules/unistdio/u8-vasnprintf: New file.
67782         * modules/unistdio/u8-vasprintf: New file.
67783         * modules/unistdio/u8-vsnprintf: New file.
67784         * modules/unistdio/u8-vsprintf: New file.
67785         * modules/unistdio/u8-u8-asnprintf: New file.
67786         * modules/unistdio/u8-u8-asprintf: New file.
67787         * modules/unistdio/u8-u8-snprintf: New file.
67788         * modules/unistdio/u8-u8-sprintf: New file.
67789         * modules/unistdio/u8-u8-vasnprintf: New file.
67790         * modules/unistdio/u8-u8-vasprintf: New file.
67791         * modules/unistdio/u8-u8-vsnprintf: New file.
67792         * modules/unistdio/u8-u8-vsprintf: New file.
67793         * modules/unistdio/u16-asnprintf: New file.
67794         * modules/unistdio/u16-asprintf: New file.
67795         * modules/unistdio/u16-printf-parse: New file.
67796         * modules/unistdio/u16-snprintf: New file.
67797         * modules/unistdio/u16-sprintf: New file.
67798         * modules/unistdio/u16-vasnprintf: New file.
67799         * modules/unistdio/u16-vasprintf: New file.
67800         * modules/unistdio/u16-vsnprintf: New file.
67801         * modules/unistdio/u16-vsprintf: New file.
67802         * modules/unistdio/u16-u16-asnprintf: New file.
67803         * modules/unistdio/u16-u16-asprintf: New file.
67804         * modules/unistdio/u16-u16-snprintf: New file.
67805         * modules/unistdio/u16-u16-sprintf: New file.
67806         * modules/unistdio/u16-u16-vasnprintf: New file.
67807         * modules/unistdio/u16-u16-vasprintf: New file.
67808         * modules/unistdio/u16-u16-vsnprintf: New file.
67809         * modules/unistdio/u16-u16-vsprintf: New file.
67810         * modules/unistdio/u32-asnprintf: New file.
67811         * modules/unistdio/u32-asprintf: New file.
67812         * modules/unistdio/u32-printf-parse: New file.
67813         * modules/unistdio/u32-snprintf: New file.
67814         * modules/unistdio/u32-sprintf: New file.
67815         * modules/unistdio/u32-vasnprintf: New file.
67816         * modules/unistdio/u32-vasprintf: New file.
67817         * modules/unistdio/u32-vsnprintf: New file.
67818         * modules/unistdio/u32-vsprintf: New file.
67819         * modules/unistdio/u32-u32-asnprintf: New file.
67820         * modules/unistdio/u32-u32-asprintf: New file.
67821         * modules/unistdio/u32-u32-snprintf: New file.
67822         * modules/unistdio/u32-u32-sprintf: New file.
67823         * modules/unistdio/u32-u32-vasnprintf: New file.
67824         * modules/unistdio/u32-u32-vasprintf: New file.
67825         * modules/unistdio/u32-u32-vsnprintf: New file.
67826         * modules/unistdio/u32-u32-vsprintf: New file.
67827         * modules/unistdio/ulc-asnprintf-tests: New file.
67828         * modules/unistdio/ulc-vasnprintf-tests: New file.
67829         * modules/unistdio/ulc-vasprintf-tests: New file.
67830         * modules/unistdio/ulc-vsnprintf-tests: New file.
67831         * modules/unistdio/ulc-vsprintf-tests: New file.
67832         * modules/unistdio/u8-asnprintf-tests: New file.
67833         * modules/unistdio/u8-vasnprintf-tests: New file.
67834         * modules/unistdio/u8-vasprintf-tests: New file.
67835         * modules/unistdio/u8-vsnprintf-tests: New file.
67836         * modules/unistdio/u8-vsprintf-tests: New file.
67837         * modules/unistdio/u16-asnprintf-tests: New file.
67838         * modules/unistdio/u16-vasnprintf-tests: New file.
67839         * modules/unistdio/u16-vasprintf-tests: New file.
67840         * modules/unistdio/u16-vsnprintf-tests: New file.
67841         * modules/unistdio/u16-vsprintf-tests: New file.
67842         * modules/unistdio/u32-asnprintf-tests: New file.
67843         * modules/unistdio/u32-vasnprintf-tests: New file.
67844         * modules/unistdio/u32-vasprintf-tests: New file.
67845         * modules/unistdio/u32-vsnprintf-tests: New file.
67846         * modules/unistdio/u32-vsprintf-tests: New file.
67847         * MODULES.html.sh (Unicode string functions): Add the new modules.
67848
67849 2007-07-01  Bruno Haible  <bruno@clisp.org>
67850
67851         * lib/sprintf.c (sprintf): Limit the available length estimation,
67852         to avoid address wraparound.
67853         * lib/vsprintf.c (vsprintf): Likewise.
67854         * modules/sprintf-posix (Dependencies): Add stdint.
67855         * modules/vsprintf-posix (Dependencies): Likewise.
67856
67857 2007-07-01  Bruno Haible  <bruno@clisp.org>
67858
67859         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67860         Windows PATH as well. Conservative double-quoting. Comments.
67861
67862 2007-07-01  Bruno Haible  <bruno@clisp.org>
67863             Eric Blake  <ebb9@byu.net>
67864             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67865
67866         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67867         empty components in $PATH, denoting '.'.
67868
67869 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67870
67871         * gnulib-tool: Fix indentation.
67872         (func_create_megatestdir): Likewise.
67873         Report by Bruno Haible.
67874
67875 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67876
67877         Sync from Automake.
67878         * build-aux/gnupload: Fix shell portability issues with for loops.
67879         Report by Karl Berry.
67880
67881 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67882
67883         * build-aux/maint.mk (POURL): Use translationproject.org.
67884
67885 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67886             Bruno Haible  <bruno@clisp.org>
67887
67888         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67889         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67890         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67891         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67892         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67893
67894 2007-06-27  Bruno Haible  <bruno@clisp.org>
67895
67896         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67897         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67898
67899 2007-06-26  Karl Berry  <karl@gnu.org>
67900
67901         * MODULES.html.sh: remove xreadlink-with-size.
67902
67903 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67906         method that I hope also handles the double-include problem noted
67907         by Bruno Haible in
67908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67909
67910 2007-06-23  Bruno Haible  <bruno@clisp.org>
67911
67912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67913         Don't let the 'mostlyclean' target fail if the last subdirectory could
67914         not be removed.
67915         Reported by Karl Berry.
67916
67917 2007-06-23  Bruno Haible  <bruno@clisp.org>
67918
67919         * gnulib-tool (echo): Add a speedier workaround for ksh.
67920         * tests/test-echo.sh: Likewise.
67921
67922 2007-06-23  Bruno Haible  <bruno@clisp.org>
67923
67924         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67925         * tests/test-echo.sh: Likewise.
67926
67927 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67928
67929         * gnulib-tool (IFS): Initialize early, so we don't set it to
67930         empty later.
67931         (self_abspathname): Rewrite algorithm to set it, reindent.
67932         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67933         (func_create_megatestdir): Merge some sed scripts.
67934
67935 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67938         exposed by Sun Studio 11 cc on Solaris 8.
67939
67940 2007-06-22  Bruno Haible  <bruno@clisp.org>
67941
67942         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67943         backslashes.
67944         * tests/test-echo.sh: New file.
67945
67946 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67947
67948         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67949         simplify `sed_replace_build_aux' scripts, they are portable but
67950         echoing them with `echo' is not.
67951         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67952
67953 2007-06-21  Karl Berry  <karl@gnu.org>
67954
67955         * config/srclist.txt: guess we can't handle the licenses via
67956         srclist at the moment.
67957
67958 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67959
67960         * MODULES.html.sh: Add include_next.
67961         * modules/include_next: New file.
67962
67963 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67964
67965         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67966         INCLUDE_NEXT.
67967         (gl_CHECK_NEXT_HEADERS): New macro.
67968         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67969         the obsolescent gl_ABSOLUTE_HEADER.
67970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67971         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67972         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67973         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67974         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67975         * m4/math_h.m4 (gl_MATH_H): Likewise.
67976         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67977         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67978         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67979         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67980         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67981         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67982         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67983         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67985         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67986         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67987         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67988         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67989         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67990         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67991         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67992         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67993         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67994         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67995         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67996         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67997         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67998         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67999         * lib/float_.h: Likewise.
68000         * lib/inttypes_.h: Likewise.
68001         * lib/math_.h: Likewise.
68002         * lib/search_.h: Likewise.
68003         * lib/signal_.h: Likewise.
68004         * lib/stdint_.h: Likewise.
68005         * lib/stdio_.h: Likewise.
68006         * lib/stdlib_.h: Likewise.
68007         * lib/string_.h: Likewise.
68008         * lib/sys_stat_.h: Likewise.
68009         * lib/sys_time_.h: Likewise.
68010         * lib/time_.h: Likewise.
68011         * lib/unistd_.h: Likewise.
68012         * lib/wchar_.h: Likewise.
68013         * lib/wctype_.h: Likewise.
68014         * lib/dirent_.h: Likewise.
68015         * lib/iconv_.h: Likewise.
68016         * lib/locale_.h: Likewise.
68017         * lib/netinet_in_.h: Likewise.
68018         * lib/sys_select_.h: Likewise.
68019         * lib/sys_socket_.h: Likewise.
68020         * lib/sysexits_.h: Likewise.
68021         * modules/fcntl (Depends-on): Depend on include_next, not
68022         absolute_header.
68023         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68024         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68025         * modules/fchdir: Likewise.
68026         * modules/float: Likewise.
68027         * modules/iconv_open: Likewise.
68028         * modules/inttypes: Likewise.
68029         * modules/locale: Likewise.
68030         * modules/math: Likewise.
68031         * modules/netinet_in: Likewise.
68032         * modules/search: Likewise.
68033         * modules/signal: Likewise.
68034         * modules/stdint: Likewise.
68035         * modules/stdio: Likewise.
68036         * modules/stdlib: Likewise.
68037         * modules/string: Likewise.
68038         * modules/sys_select: Likewise.
68039         * modules/sys_socket: Likewise.
68040         * modules/sys_stat: Likewise.
68041         * modules/sys_time: Likewise.
68042         * modules/sysexits: Likewise.
68043         * modules/time: Likewise.
68044         * modules/unistd: Likewise.
68045         * modules/wchar: Likewise.
68046         * modules/wctype: Likewise.
68047         * modules/sys_stat: Change maintainer to "all".
68048         * modules/unistd: Likewise.
68049
68050 2007-06-20  Karl Berry  <karl@gnu.org>
68051
68052         * config/srclist.txt: track www changes in license files.
68053
68054 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68055
68056         * build-aux/bootstrap: Remove stray dot.
68057         Make sure build_aux settings are honored when linking
68058         gnulib_extra_files.
68059
68060 2007-06-19  Eric Blake  <ebb9@byu.net>
68061
68062         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68063         Allow compilation on cygwin.
68064
68065 2007-06-19  Jim Meyering  <jim@meyering.net>
68066
68067         xreadlink-with-size: Remove module.  No longer used.
68068         Ex-callers now use xreadlink or mreadlink-with-size.
68069         * modules/xreadlink-with-size: Remove module.
68070         * lib/xreadlink-with-size.c: Remove file.
68071         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68072         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68073         just before the function definition *is* accurate.
68074
68075         Eliminate one way canonicalize_filename_mode could exit.
68076         * lib/canonicalize.c (canonicalize_filename_mode):
68077         Use mreadlink_with_size, not xreadlink_with_size.
68078
68079 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68080
68081         Detect porting problems to FreeBSD/arm, which has time_t wider than
68082         long int.  Original problem reported for GNU diff by Xin Li in
68083         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68084         * modules/getdate (Depends-on): Add intprops, verify.
68085         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68086         is an integer type no wider than long int.
68087
68088 2007-06-18  Jim Meyering  <jim@meyering.net>
68089
68090         New module: mreadlink-with-size.
68091         * MODULES.html.sh: Add mreadlink-with-size.
68092         * modules/mreadlink-with-size: New module
68093         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68094         not xreadlink-with-size.
68095         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68096
68097 2007-06-16  Bruno Haible  <bruno@clisp.org>
68098
68099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68100         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68101         Reported by Gary V. Vaughan <gary@gnu.org>.
68102
68103 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         Revamp lchown so that it lives in unistd.h where it belongs.
68106         * lib/lchown.h: Remove.
68107         * lib/dirchownmod.c: Don't include lib/lchown.h.
68108         * lib/fchownat.c: Likewise.
68109         * lib/openat.c: Likewise.
68110         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68111         does not follow symlinks.
68112         (EOPNOTSUPP): Define if not defined.
68113         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68114         is defined to 0.
68115         (lchown): New decl.
68116         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68117         Do not check for lchown decl.
68118         Set REPLACE_LCHOWN.
68119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68120         REPLACE_LCHOWN.
68121         * modules/chown: Make it clear it follows symlinks.
68122         * modules/lchown: Make it clear it doesn't follow symlinks.
68123         (Files): Remove lib/lchown.h
68124         (Depends-on): Add unistd.
68125         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68126         (Include): Include <unistd.h>, not "lchown.h".
68127         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68128         REPLACE_LCHOWN.
68129
68130 2007-06-15  Jim Meyering  <jim@meyering.net>
68131
68132         Change license (GPL to LGPL) of fsusage and dependents.
68133         * modules/fsusage (License): Change to LGPL.
68134         * modules/full-read (License): Likewise.
68135         * modules/full-write (License): Likewise.
68136         * modules/safe-read (License): Likewise.
68137         * modules/safe-write (License): Likewise.
68138
68139 2007-06-14  Ben Pfaff  <blp@gnu.org>
68140
68141         Missing part of allocsa -> malloca transition.
68142         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68143         gl_MALLOCA.
68144
68145 2007-06-12  Bruno Haible  <bruno@clisp.org>
68146
68147         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68148         to ia64, x86_64, i386.
68149         Reported by Eric Blake.
68150
68151 2007-06-12  Bruno Haible  <bruno@clisp.org>
68152
68153         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68154         cross-compiling to x86_64.
68155
68156 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68157
68158         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68159         glitch reported by Ralf Wildenhues in
68160         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68161
68162         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68163         Vin Shelton.
68164
68165 2007-06-11  Bruno Haible  <bruno@clisp.org>
68166
68167         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68168         replacement string.
68169         Reported by Eric Blake.
68170
68171 2007-06-10  Bruno Haible  <bruno@clisp.org>
68172
68173         Prepare vasnprintf code for use with Unicode strings.
68174         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68175         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68176         TYPE_U32_STRING.
68177         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68178         a_u32_string variants.
68179         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68180         * lib/printf-args.c: Don't include config.h and the specification
68181         header if PRINTF_FETCHARGS is already defined.
68182         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68183         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68184         TYPE_U16_STRING, TYPE_U32_STRING.
68185         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68186         u16_directive, u16_directives, u32_directive, u32_directives): New
68187         types.
68188         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68189         New declarations.
68190         * lib/printf-parse.c: Don't include config.h and the specification
68191         header if PRINTF_PARSE is already defined. Eliminate the set of
68192         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68193         them now. Include c-ctype.h.
68194         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68195         directive and CHAR_T_ONLY_ASCII.
68196         * lib/vasnprintf.c: Don't include config.h and the specification header
68197         if VASNPRINTF is already defined.
68198         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68199         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68200         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68201         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68202         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68203         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68204         code accordingly.
68205         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68206         pad_ourselves also in this case, with the 'c' and 's' directives, and
68207         with a different notion of "width".
68208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68209
68210 2007-06-10  Bruno Haible  <bruno@clisp.org>
68211
68212         * modules/unistr/u32-mbsnlen: New file.
68213         * lib/unistr/u32-mbsnlen.c: New file.
68214
68215         * modules/unistr/u16-mbsnlen: New file.
68216         * lib/unistr/u16-mbsnlen.c: New file.
68217
68218         * modules/unistr/u8-mbsnlen: New file.
68219         * lib/unistr/u8-mbsnlen.c: New file.
68220
68221         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68222         declarations.
68223
68224 2007-06-10  Bruno Haible  <bruno@clisp.org>
68225
68226         * lib/string_.h (mbsnlen): New declaration.
68227         * lib/mbsnlen.c: New file.
68228         * m4/mbsnlen.m4: New file.
68229         * modules/mbsnlen: New file.
68230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68231         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68232         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68233
68234 2007-06-10  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68237
68238 2007-06-10  Bruno Haible  <bruno@clisp.org>
68239
68240         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68241         * lib/mbuiter.h: Likewise.
68242
68243 2007-06-10  Bruno Haible  <bruno@clisp.org>
68244
68245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68246         declaration.
68247
68248 2007-06-10  Karl Berry  <karl@gnu.org>
68249
68250         * config/srclist.txt: remove gettext entries, Bruno prefers
68251         to update individually.
68252
68253 2007-06-10  Bruno Haible  <bruno@clisp.org>
68254
68255         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68256         'maxlen'. Ensure only length + width bytes are allocated, not
68257         length + 1 + width.
68258
68259 2007-06-09  Bruno Haible  <bruno@clisp.org>
68260
68261         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68262         (CHAR_T): Remove macro.
68263         (VASNPRINTF): Update.
68264
68265 2007-06-09  Bruno Haible  <bruno@clisp.org>
68266
68267         * MODULES.html.sh (Unicode string functions): Add the new modules.
68268
68269         * modules/uniconv/u32-conv-to-enc: New file.
68270         * lib/uniconv/u32-conv-to-enc.c: New file.
68271         * modules/uniconv/u32-conv-to-enc-tests: New file.
68272         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68273
68274         * modules/uniconv/u16-conv-to-enc: New file.
68275         * lib/uniconv/u16-conv-to-enc.c: New file.
68276         * lib/uniconv/u-conv-to-enc.h: New file.
68277         * modules/uniconv/u16-conv-to-enc-tests: New file.
68278         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68279
68280         * modules/uniconv/u8-conv-to-enc: New file.
68281         * lib/uniconv/u8-conv-to-enc.c: New file.
68282         * modules/uniconv/u8-conv-to-enc-tests: New file.
68283         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68284
68285         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68286         u32_conv_to_encoding): New declarations.
68287
68288 2007-06-09  Bruno Haible  <bruno@clisp.org>
68289
68290         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68291
68292 2007-06-09  Bruno Haible  <bruno@clisp.org>
68293
68294         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68295         * modules/malloca: Renamed from modules/allocsa, updated.
68296         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68297         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68298         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68299         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68300         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68301         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68302         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68303         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68304         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68305         * modules/c-strcasestr (Depends-on): Update.
68306         * lib/c-strcasestr.c: Update.
68307         * modules/c-strstr (Depends-on): Update.
68308         * lib/c-strstr.c: Update.
68309         * modules/canonicalize-lgpl (Depends-on): Update.
68310         * lib/canonicalize-lgpl.c: Update.
68311         * modules/clean-temp (Depends-on): Update.
68312         * lib/clean-temp.c: Update.
68313         * modules/csharpcomp (Depends-on): Update.
68314         * lib/csharpcomp.c: Update.
68315         * modules/csharpexec (Depends-on): Update.
68316         * lib/csharpexec.c: Update.
68317         * modules/javacomp (Depends-on): Update.
68318         * lib/javacomp.c: Update.
68319         * modules/javaexec (Depends-on): Update.
68320         * lib/javaexec.c: Update.
68321         * modules/mbscasestr (Depends-on): Update.
68322         * lib/mbscasestr.c: Update.
68323         * modules/mbsstr (Depends-on): Update.
68324         * lib/mbsstr.c: Update.
68325         * modules/setenv (Depends-on): Update.
68326         * lib/setenv.c: Update.
68327         * modules/strcasestr (Depends-on): Update.
68328         * lib/strcasestr.c: Update.
68329         * modules/striconveha (Depends-on): Update.
68330         * lib/striconveha.c: Update.
68331         * modules/relocatable-prog-wrapper (Files): Update.
68332         * lib/relocwrapper.c: Update.
68333         * build-aux/install-reloc: Update.
68334         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68335
68336 2007-06-08  Bruno Haible  <bruno@clisp.org>
68337
68338         Port to uClibc.
68339         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68340         * lib/fpurge.c (fpurge): Likewise.
68341         * lib/freading.c (freading): Likewise.
68342         * lib/fseeko.c (rpl_fseeko): Likewise.
68343         * lib/fseterr.c (fseterr): Likewise.
68344         * lib/fwriting.c (fwriting): Likewise.
68345         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68346
68347 2007-06-08  Bruno Haible  <bruno@clisp.org>
68348
68349         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68350         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68351         * modules/gettext (Files): Add m4/intlmacosx.m4.
68352
68353 2007-06-07  Bruno Haible  <bruno@clisp.org>
68354
68355         * modules/localename-tests: New file.
68356         * tests/test-localename.c: New file.
68357
68358         New module 'localename'.
68359         * lib/localename.h: New file.
68360         * lib/localename.c: New file, from GNU gettext.
68361         * m4/localename.m4: New file.
68362         * modules/localename: New file.
68363
68364 2007-06-07  Bruno Haible  <bruno@clisp.org>
68365
68366         Work around the lack of <wchar.h> on some builds of uClibc.
68367         * doc/headers/wchar.texi: Update.
68368         * lib/wchar_.h: Include <wchar.h> only if it exists.
68369         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68370         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68371         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68372         doesn't exist.
68373         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68374         * modules/mbfile (Depends-on): Add wchar.
68375         * modules/mbiter (Depends-on): Likewise.
68376         * modules/mbuiter (Depends-on): Likewise.
68377         Reported by Simon Josefsson.
68378
68379 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         Work around problem reported by Steven M. Schweda in
68382         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68383         Tru64 5.1B with the Compaq compiler environment installed declares
68384         an 'isblank' function but does not define it in the C library.
68385         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68386         * lib/regex_internal.h (isblank): Likewise.
68387         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68388         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68389
68390 2007-06-05  Bruno Haible  <bruno@clisp.org>
68391
68392         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68393         ia64.
68394         * modules/printf-safe: New file.
68395         * modules/fprintf-posix (Depends-on): Add printf-safe.
68396         * modules/printf-posix (Depends-on): Likewise.
68397         * modules/snprintf-posix (Depends-on): Likewise.
68398         * modules/sprintf-posix (Depends-on): Likewise.
68399         * modules/vasnprintf-posix (Depends-on): Likewise.
68400         * modules/vasprintf-posix (Depends-on): Likewise.
68401         * modules/vfprintf-posix (Depends-on): Likewise.
68402         * modules/vprintf-posix (Depends-on): Likewise.
68403         * modules/vsnprintf-posix (Depends-on): Likewise.
68404         * modules/vsprintf-posix (Depends-on): Likewise.
68405         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68406         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68407         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68408         "no" on i386, x86_64, ia64.
68409         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68410         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68411         on i386, x86_64, ia64.
68412         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68413         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68414         on i386, x86_64, ia64.
68415         * tests/test-vasnprintf-posix.c: Include float.h.
68416         (LDBL80_WORDS): New macro.
68417         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68418         on i386, x86_64, ia64.
68419         * tests/test-vasprintf-posix.c: Include float.h.
68420         (LDBL80_WORDS): New macro.
68421         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68422         on i386, x86_64, ia64.
68423         * tests/test-snprintf-posix.c: Include float.h.
68424         * tests/test-sprintf-posix.c: Likewise.
68425         * tests/test-vsnprintf-posix.c: Likewise.
68426         * tests/test-vsprintf-posix.c: Likewise.
68427
68428 2007-06-05  Bruno Haible  <bruno@clisp.org>
68429
68430         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68431         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68432         non-IEEE numbers on i386, x86_64, ia64.
68433         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68434         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68435         * tests/test-isnanl.h: Include float.h.
68436         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68437
68438 2007-06-05  Bruno Haible  <bruno@clisp.org>
68439
68440         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68441         also the %a / %A. Handle the %a / %A code before this extra handling.
68442
68443 2007-06-05  Bruno Haible  <bruno@clisp.org>
68444
68445         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68446         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68447
68448 2007-06-05  Bruno Haible  <bruno@clisp.org>
68449
68450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68451         typo in variable name.
68452
68453 2007-06-05  Eric Blake  <ebb9@byu.net>
68454
68455         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68456         Reported by Simon Josefsson.
68457
68458 2007-06-04  Bruno Haible  <bruno@clisp.org>
68459
68460         Avoid test failures on some PowerPC platforms.
68461         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68462         Define differently for PowerPC.
68463         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68464         Reported by Gary V. Vaughan <gary@gnu.org>.
68465
68466 2007-06-02  Bruno Haible  <bruno@clisp.org>
68467
68468         Fix test-stdint failure on FreeBSD/ia64.
68469         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68470         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68471         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68472         * doc/headers/stdint.texi: Update.
68473
68474 2007-06-01  Bruno Haible  <bruno@clisp.org>
68475
68476         * tests/test-binary-io.c (main): Pass a third argument to open().
68477         Reported by Gary V. Vaughan <gary@gnu.org>.
68478
68479 2007-06-01  Bruno Haible  <bruno@clisp.org>
68480
68481         * doc/functions/frexpl.texi: Update for mingw.
68482
68483 2007-06-01  Bruno Haible  <bruno@clisp.org>
68484
68485         * tests/test-lseek.c (main): Disable test of errno for invalid third
68486         argument.
68487         * doc/functions/lseek.texi: Update.
68488         Reported by Gary V. Vaughan <gary@gnu.org>.
68489
68490 2007-05-28  Bruno Haible  <bruno@clisp.org>
68491
68492         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68493
68494 2007-05-31  Eric Blake  <ebb9@byu.net>
68495
68496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68497         cross compiling.
68498
68499 2007-05-30  Eric Blake  <ebb9@byu.net>
68500         and Bruno Haible  <bruno@clisp.org>
68501
68502         Work around mingw test failures exposed by m4-1.4.9b.
68503         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68504         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68505         moment.
68506
68507 2007-05-30  Bruno Haible  <bruno@clisp.org>
68508
68509         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68510         assuming that they are closed. Needed on HP-UX 11.
68511
68512 2007-05-29  Bruno Haible  <bruno@clisp.org>
68513
68514         Fix a problem with #include_next.
68515         * lib/dirent_.h: Split the double-inclusion guard.
68516         * lib/fcntl_.h: Likewise.
68517         * lib/float_.h: Likewise.
68518         * lib/iconv_.h: Likewise.
68519         * lib/inttypes_.h: Likewise.
68520         * lib/locale_.h: Likewise.
68521         * lib/math_.h: Likewise.
68522         * lib/netinet_in_.h: Likewise.
68523         * lib/search_.h: Likewise.
68524         * lib/signal_.h: Likewise.
68525         * lib/stdint_.h: Likewise.
68526         * lib/stdio_.h: Likewise.
68527         * lib/stdlib_.h: Likewise.
68528         * lib/string_.h: Likewise.
68529         * lib/sys_select_.h: Likewise.
68530         * lib/sys_socket_.h: Likewise.
68531         * lib/sys_stat_.h: Likewise.
68532         * lib/sys_time_.h: Likewise.
68533         * lib/sysexits_.h: Likewise.
68534         * lib/time_.h: Likewise.
68535         * lib/unistd_.h: Likewise.
68536         * lib/wchar_.h: Likewise.
68537         * lib/wctype_.h: Likewise.
68538
68539 2007-05-29  Bruno Haible  <bruno@clisp.org>
68540
68541         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68542         for the moment.
68543
68544 2007-05-29  Bruno Haible  <bruno@clisp.org>
68545
68546         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68547         invocation.
68548         Reported by Eric Blake.
68549
68550 2007-05-29  Bruno Haible  <bruno@clisp.org>
68551
68552         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68553         compiling case.
68554
68555 2007-05-29  Eric Blake  <ebb9@byu.net>
68556             Bruno Haible  <bruno@clisp.org>
68557
68558         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68559         cross compiles.
68560
68561 2007-05-28  Eric Blake  <ebb9@byu.net>
68562
68563         * modules/closein-tests (test_closein_LDADD): Support test on
68564         cygwin with libtool.
68565
68566 2007-05-28  Bruno Haible  <bruno@clisp.org>
68567
68568         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68569         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68570         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68571         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68572         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68573         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68574         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68575         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68576         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68577
68578 2007-05-28  Eric Blake  <ebb9@byu.net>
68579
68580         Unconditionally include <config.h> in unit tests.
68581         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68582         * tests/test-allocsa.c, tests/test-arcfour.c,
68583         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68584         tests/test-array_list.c, tests/test-array_oset.c,
68585         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68586         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68587         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68588         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68589         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68590         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68591         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68592         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68593         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68594         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68595         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68596         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68597         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68598         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68599         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68600         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68601         test-md5.c, test-memmem.c, test-printf-posix.c,
68602         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68603         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68604         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68605         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68606         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68607         test-vasnprintf-posix2.c, test-vasnprintf.c,
68608         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68609         test-vfprintf-posix.c, test-vprintf-posix.c,
68610         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68611         test-xvasprintf.c: Likewise.
68612
68613 2007-05-28  Bruno Haible  <bruno@clisp.org>
68614
68615         * gnulib-tool (func_import): Remember the --with-tests command-line
68616         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68617         Reported by Eric Blake.
68618
68619 2007-05-28  Bruno Haible  <bruno@clisp.org>
68620
68621         * modules/ftell-tests: New file.
68622         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68623         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68624
68625         * lib/ftell.c: New file.
68626         * modules/ftell: New file.
68627         * m4/ftell.m4: New file.
68628         * doc/functions/ftell.texi: Update.
68629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68630         REPLACE_FTELL.
68631         * lib/stdio_.h (rpl_ftell): New declaration.
68632         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68633         REPLACE_FTELL.
68634
68635 2007-05-28  Eric Blake  <ebb9@byu.net>
68636
68637         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68638
68639 2007-05-28  Bruno Haible  <bruno@clisp.org>
68640
68641         * modules/fseek-tests: New file.
68642         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68643         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68644
68645         * lib/fseek.c: New file.
68646         * modules/fseek: New file.
68647         * m4/fseek.m4: New file.
68648         * doc/functions/fseek.texi: Update.
68649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68650         REPLACE_FSEEK.
68651         * lib/stdio_.h (rpl_fseek): New declaration.
68652         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68653         REPLACE_FSEEK.
68654
68655 2007-05-28  Bruno Haible  <bruno@clisp.org>
68656
68657         * lib/stdio_.h (fflush): More comments.
68658
68659 2007-05-28  Bruno Haible  <bruno@clisp.org>
68660
68661         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68662         runtime test.
68663
68664 2007-05-28  Eric Blake  <ebb9@byu.net>
68665
68666         Improve lseek module.
68667         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68668         * lib/unistd_.h (lseek): Scale back link warning message.
68669         * tests/test-lseek.c: Beef up test.
68670         * tests/test-lseek.sh: Exercise more facets of lseek.
68671         Reported by Bruno Haible.
68672
68673 2007-05-28  Bruno Haible  <bruno@clisp.org>
68674
68675         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68676         to define.
68677
68678 2007-05-27  Bruno Haible  <bruno@clisp.org>
68679
68680         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68681
68682 2007-05-27  Bruno Haible  <bruno@clisp.org>
68683
68684         * modules/openmp: New file.
68685         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68686         Noah Misch.
68687
68688 2007-05-26  Bruno Haible  <bruno@clisp.org>
68689
68690         * modules/chdir-long (Depends-on): Add fchdir.
68691         * modules/chdir-safer (Depends-on): Likewise.
68692         * modules/fts (Depends-on): Likewise.
68693         * modules/fts-lgpl (Depends-on): Likewise.
68694         * modules/openat (Depends-on): Likewise.
68695         * modules/savewd (Depends-on): Likewise.
68696
68697 2007-05-24  Eric Blake  <ebb9@byu.net>
68698
68699         Fix lseek on mingw.
68700         * modules/lseek: New module.
68701         * m4/lseek.m4: New file.
68702         * lib/lseek.c: New file.
68703         * modules/lseek-tests: New file.
68704         * tests/test-lseek.c: New file.
68705         * tests/test-lseek.sh: New file.
68706         * MODULES.html.sh: Document lseek module.
68707         * modules/fflush (Depends-on): Add lseek, fseeko.
68708         * modules/fseeko (Depends-on): Likewise.
68709         * modules/ftello (Depends-on): Likewise.
68710         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68711         broken.
68712         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68713         broken.
68714         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68715         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68716         * lib/ftello.c (rpl_ftello): Likewise.
68717         * tests/test-fseeko.c (main): Test this.
68718         * tests/test-fseeko.sh: Likewise.
68719         * tests/test-ftello.c (main): Likewise.
68720         * tests/test-ftello.sh: Likewise.
68721         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68722         implies replacing fseek.
68723         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68724         HAVE_FTELLO.
68725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68726         * modules/unistd (Makefile.am): Likewise.
68727         * lib/unistd_.h (lseek): Declare a replacement.
68728         * doc/functions/lseek.texi (lseek): Document this fix.
68729         * doc/functions/fseek.texi (fseek): Likewise.
68730         * doc/functions/ftell.texi (ftell): Likewise.
68731
68732 2007-05-24  Bruno Haible  <bruno@clisp.org>
68733
68734         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68735         in the printed representation of a NaN.
68736         * tests/test-vasprintf-posix.c (test_function): Likewise.
68737         * tests/test-snprintf-posix.h (test_function): Likewise.
68738         * tests/test-sprintf-posix.h (test_function): Likewise.
68739         Reported by Eric Blake.
68740
68741 2007-05-23  Eric Blake  <ebb9@byu.net>
68742
68743         Fix fseeko/ftello on cygwin 1.5.24.
68744         * doc/functions/fseeko.texi (fseeko): Document the fix.
68745         * doc/functions/ftello.texi (ftello): Document the fix.
68746         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68747         * doc/functions/stdout.text (stdout): New file.
68748         * doc/functions/stderr.text (stderr): New file.
68749         * doc/gnulib.texi (Function Substitutes): Use new files.
68750         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68751         prior to 1.7.0.
68752         * tests/test-ftello.c (main): Likewise for ftello.
68753         * tests/test-fseeko.sh: New file.
68754         * tests/test-ftello.sh: New file.
68755         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68756         with seekable stdin.
68757         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68758         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68759         (gl_REPLACE_FSEEKO): New macro.
68760         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68761         * modules/fseeko (Files): Distribute fseeko.c.
68762         * modules/ftello (Files): Distribute ftello.c.
68763         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68764         mode.
68765         * lib/ftello.c (rpl_ftello): New file.
68766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68767         fseeko, ftello.
68768         (gl_STDIN_LARGE_OFFSET): New macro.
68769         * modules/stdio (Makefile.am): Perform the replacement.
68770         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68771
68772 2007-05-23  Bruno Haible  <bruno@clisp.org>
68773
68774         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68775         GNULIB_POSIXCHECK is defined.
68776
68777 2007-05-21  Bruno Haible  <bruno@clisp.org>
68778
68779         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68780         Check also the output for NaN arguments. When cross-compiling, guess
68781         no on IRIX.
68782         * lib/vasnprintf.c: Update comments.
68783         * tests/test-vasnprintf-posix.c (strisnan): New function.
68784         (test_function): Use it.
68785         * tests/test-vasprintf-posix.c (strisnan): New function.
68786         (test_function): Use it.
68787         * tests/test-snprintf-posix.h (strisnan): New function.
68788         (test_function): Use it.
68789         * tests/test-sprintf-posix.h (strisnan): New function.
68790         (test_function): Use it.
68791         Reported by Eric Blake.
68792
68793 2007-05-20  Bruno Haible  <bruno@clisp.org>
68794
68795         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68796         numbers that fails on BeOS.
68797         * doc/functions/frexpl.texi: Update.
68798
68799 2007-05-20  Jim Meyering  <jim@meyering.net>
68800
68801         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68802         forced upon us by glibc-2.6.
68803
68804 2007-05-20  Bruno Haible  <bruno@clisp.org>
68805
68806         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68807         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68808         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68809         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68810         NEED_PRINTF_INFINITE.
68811         (is_infinitel): New function.
68812         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68814         gl_PREREQ_VASNPRINTF_INFINITE.
68815         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68817         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68818         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68819         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68820         gl_PREREQ_VASNPRINTF_INFINITE.
68821         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68822         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68825         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68827         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68828         * doc/functions/fprintf.texi: Update.
68829         * doc/functions/printf.texi: Update.
68830         * doc/functions/snprintf.texi: Update.
68831         * doc/functions/sprintf.texi: Update.
68832         * doc/functions/vfprintf.texi: Update.
68833         * doc/functions/vprintf.texi: Update.
68834         * doc/functions/vsnprintf.texi: Update.
68835         * doc/functions/vsprintf.texi: Update.
68836
68837 2007-05-20  Bruno Haible  <bruno@clisp.org>
68838
68839         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68840         was not found in libc.
68841         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68842
68843 2007-05-20  Bruno Haible  <bruno@clisp.org>
68844
68845         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68846         printed as "-nan" instead of "nan".
68847         * tests/test-vasprintf-posix.c (test_function): Likewise.
68848         * tests/test-snprintf-posix.h (test_function): Likewise.
68849         * tests/test-sprintf-posix.h (test_function): Likewise.
68850         Needed for HP-UX 11.
68851
68852 2007-05-20  Jim Meyering  <jim@meyering.net>
68853
68854         Fix buggy test for the fchownat-deref bug.
68855         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68856         symlink required for the run-test.  Without it, this test would
68857         always declare that fchownat doesn't work, and client code would
68858         unnecessarily use the replacement function with fixed libc.
68859         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68860         Reported by Greg Schafer.
68861
68862 2007-05-19  Bruno Haible  <bruno@clisp.org>
68863
68864         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68865         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68866         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68867         Needed for IRIX 6.5 and Solaris 2.5.1.
68868
68869 2007-05-19  Bruno Haible  <bruno@clisp.org>
68870
68871         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68872         (test_function): Skip tests involving -0.0 on platforms where
68873         -0.0 = 0.0.
68874         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68875         (test_function): Skip tests involving -0.0 on platforms where
68876         -0.0 = 0.0.
68877         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68878         (test_function): Skip tests involving -0.0 on platforms where
68879         -0.0 = 0.0.
68880         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68881         (test_function): Skip tests involving -0.0 on platforms where
68882         -0.0 = 0.0.
68883         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68884         tests.
68885         * tests/test-printf-posix.h (test_function): Likewise.
68886         * tests/test-printf-posix.output: Remove all -0.0 related results.
68887         Needed for IRIX 6.5.
68888
68889 2007-05-19  Bruno Haible  <bruno@clisp.org>
68890
68891         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68892         printed as "nan0x7fffffff" instead of "nan".
68893         * tests/test-vasprintf-posix.c (test_function): Likewise.
68894         * tests/test-snprintf-posix.h (test_function): Likewise.
68895         * tests/test-sprintf-posix.h (test_function): Likewise.
68896         * tests/test-fprintf-posix.h (NaN): Remove macro.
68897         (test_function): Remove all NaN related tests.
68898         * tests/test-printf-posix.h (NaN): Remove macro.
68899         (test_function): Remove all NaN related tests.
68900         * tests/test-printf-posix.output: Remove all NaN related results.
68901         Needed for IRIX 6.5.
68902
68903 2007-05-19  Bruno Haible  <bruno@clisp.org>
68904
68905         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68906         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68907
68908 2007-05-19  Bruno Haible  <bruno@clisp.org>
68909
68910         * lib/float_.h: New file.
68911         * m4/float_h.m4: New file.
68912         * modules/float: New file.
68913         * modules/isnanl (Dependencies): Add float.
68914         * modules/isnanl-nolibm (Dependencies): Likewise.
68915         * modules/mathl (Dependencies): Likewise.
68916         * modules/printf-frexpl (Dependencies): Likewise.
68917         * modules/signbit (Dependencies): Likewise.
68918         * modules/vasnprintf (Dependencies): Likewise.
68919         * doc/headers/float.texi: Update.
68920
68921 2007-05-19  Jim Meyering  <jim@meyering.net>
68922
68923         * lib/utimens.c (gl_futimens): Rename from futimens,
68924         now that glibc-2.6 declares futimens.
68925         * lib/utimens.h: Likewise.
68926
68927 2007-05-19  Bruno Haible  <bruno@clisp.org>
68928
68929         Avoid test failures on mingw.
68930         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68931         * tests/test-printf-posix.sh: Likewise.
68932         * tests/test-vfprintf-posix.sh: Likewise.
68933         * tests/test-vprintf-posix.sh: Likewise.
68934
68935 2007-05-19  Bruno Haible  <bruno@clisp.org>
68936
68937         Fix *printf result for NaN, Inf, -0.0 on mingw.
68938         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68939         * lib/vasnprintf.c: Include math.h and isnan.h.
68940         (is_infinite_or_zero): New function.
68941         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68942         values in the %f, %F, %e, %E, %g, %G directives.
68943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68944         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68945         gl_PRINTF_INFINITE and test its result. Invoke
68946         gl_PREREQ_VASNPRINTF_INFINITE.
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         * doc/functions/fprintf.texi: Update.
68955         * doc/functions/printf.texi: Update.
68956         * doc/functions/snprintf.texi: Update.
68957         * doc/functions/sprintf.texi: Update.
68958         * doc/functions/vfprintf.texi: Update.
68959         * doc/functions/vprintf.texi: Update.
68960         * doc/functions/vsnprintf.texi: Update.
68961         * doc/functions/vsprintf.texi: Update.
68962
68963 2007-05-19  Bruno Haible  <bruno@clisp.org>
68964
68965         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68966         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68967         Instead of multiplying with 10^k, set extra_zeroes to k.
68968         (scale10_round_long_double): Remove function.
68969
68970 2007-05-18  Bruno Haible  <bruno@clisp.org>
68971
68972         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68973         introduced on 2007-05-06.
68974
68975 2007-05-18  Bruno Haible  <bruno@clisp.org>
68976
68977         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68978         %g directives.
68979         * tests/test-vasprintf-posix.c (test_function): Likewise.
68980         * tests/test-snprintf-posix.h (test_function): Likewise.
68981         * tests/test-sprintf-posix.h (test_function): Likewise.
68982
68983 2007-05-18  Bruno Haible  <bruno@clisp.org>
68984
68985         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68986         (strmatch): New function.
68987         (test_function): Test the %f directive on numbers of various exponents.
68988         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68989         (strmatch): New function.
68990         (test_function): Test the %f directive on numbers of various exponents.
68991         * tests/test-snprintf-posix.h (strmatch): New function.
68992         (test_function): Test the %f directive on numbers of various exponents.
68993         * tests/test-sprintf-posix.h (strmatch): New function.
68994         (test_function): Test the %f directive on numbers of various exponents.
68995         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68996         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68997         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68998         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68999
69000 2007-05-18  Bruno Haible  <bruno@clisp.org>
69001
69002         Add support for 'long double' number output.
69003         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69004         * lib/vasnprintf.c: Include math.h and float+.h.
69005         (mp_limb_t): New type.
69006         (GMP_LIMB_BITS): New macro.
69007         (mp_twolimb_t): New type.
69008         (GMP_TWOLIMB_BITS): New macro.
69009         (mpn_t): New type.
69010         (multiply, divide, convert_to_decimal, decode_long_double,
69011         scale10_round_long_double, scale10_round_decimal_long_double,
69012         floorlog10l): New functions.
69013         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69014         for the %f, %F, %e, %E, %g, %G directives.
69015         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69016         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69017         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69018         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69019         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69020         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69021         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69022         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69023         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69024         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69025         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69026         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69027         * modules/snprintf-posix (Depends-on): Likewise.
69028         * modules/sprintf-posix (Depends-on): Likewise.
69029         * modules/vasnprintf-posix (Depends-on): Likewise.
69030         * modules/vasprintf-posix (Depends-on): Likewise.
69031         * modules/vfprintf-posix (Depends-on): Likewise.
69032         * modules/vsnprintf-posix (Depends-on): Likewise.
69033         * modules/vsprintf-posix (Depends-on): Likewise.
69034         * modules/vasnprintf (Files): Add lib/float+.h.
69035         * doc/functions/fprintf.texi: Update.
69036         * doc/functions/printf.texi: Update.
69037         * doc/functions/snprintf.texi: Update.
69038         * doc/functions/sprintf.texi: Update.
69039         * doc/functions/vfprintf.texi: Update.
69040         * doc/functions/vprintf.texi: Update.
69041         * doc/functions/vsnprintf.texi: Update.
69042         * doc/functions/vsprintf.texi: Update.
69043
69044 2007-05-18  Bruno Haible  <bruno@clisp.org>
69045
69046         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69047
69048 2007-05-18  Bruno Haible  <bruno@clisp.org>
69049
69050         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69051         for printing 64-bit integers. Needed for mingw.
69052
69053 2007-05-18  Bruno Haible  <bruno@clisp.org>
69054
69055         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69056         gl_FUNC_FREXPL_WORKS.
69057         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69058
69059 2007-05-18  Bruno Haible  <bruno@clisp.org>
69060
69061         * modules/frexpl-nolibm-tests: New file.
69062
69063         * modules/frexpl-nolibm: New file.
69064         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69065
69066 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69067
69068         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69069         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69070         GCC 4.2, which otherwise issues a lot of warnings.
69071         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69072         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69073         Likewise.
69074         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69075         * modules/iconv_open (iconv.h): Likewise.
69076         * modules/locale (locale.h): Likewise.
69077         * modules/netinet_in (netinet/in.h): Likewise.
69078         * modules/sys_select (sys_select.h): Likewise.
69079         * modules/sys_socket (sys/socket.h): Likewise.
69080         * modules/sys_stat (sys/stat.h): Likewise.
69081         * modules/sysexits (sysexits.h): Likewise.
69082         * modules/unistd (unistd.h): Likewise.
69083
69084 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69085
69086         * modules/closein-tests (Makefile.am): Distribute
69087         `test-closein.sh'.
69088
69089 2007-05-17  Bruno Haible  <bruno@clisp.org>
69090
69091         * tests/test-printf-posix.output: Renamed from
69092         tests/test-fprintf-posix.out.
69093         * modules/fprintf-posix-tests: Update.
69094         * modules/printf-posix-tests: Update.
69095         * modules/vfprintf-posix-tests: Update.
69096         * modules/vprintf-posix-tests: Update.
69097         * tests/test-fprintf-posix.sh: Update.
69098         * tests/test-printf-posix.sh: Update.
69099         * tests/test-vfprintf-posix.sh: Update.
69100         * tests/test-vprintf-posix.sh: Update.
69101         Reported by Ralf Wildenhues.
69102
69103 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69106         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69107         GCC 4.2, which otherwise issues a lot of warnings.
69108         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69109         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69110         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69111         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69112         it should no longer be needed.
69113         * lib/string_.h: Likewise.
69114         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69115         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69116         * modules/inttypes (inttypes.h): Likewise.
69117         * modules/math (math.h): Likewise.
69118         * modules/search (search.h): Likewise.
69119         * modules/signal (signal.h): Likewise.
69120         * modules/stdint (stdint.h): Likewise.
69121         * modules/stdio (stdio.h): Likewise.
69122         * modules/stdlib (stdlib.h): Likewise.
69123         * modules/string (string.h): Likewise.
69124         * modules/sys_time (sys/time.h): Likewise.
69125         * modules/time (time.h): Likewise.
69126         * modules/wchar (wchar.h): Likewise.
69127         * modules/wctype (wtype.h): Likewise.
69128
69129 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69130
69131         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69132
69133 2007-05-13  Bruno Haible  <bruno@clisp.org>
69134
69135         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69136         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69137         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69138         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69139         (gl_PREREQ_STRTOK_R): Don't require it here.
69140
69141 2007-05-13  Bruno Haible  <bruno@clisp.org>
69142
69143         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69144         when used in C++ mode.
69145
69146 2007-05-12  Bruno Haible  <bruno@clisp.org>
69147
69148         * lib/linebuffer.h: Tweak doc.
69149         * lib/linebuffer.c: Likewise.
69150
69151 2007-05-12  James Youngman  <jay@gnu.org>
69152
69153         * lib/linebuffer.c (readlinebuffer_delim): New function,
69154         like readlinebuffer, but use a caller-specified delimiter.
69155         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69156         as the delimiter.
69157         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69158
69159 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69160
69161         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69162         * modules/openat (Files): Remove openat-die.c.
69163         (Depends-on): Add openat-die.
69164         * modules/openat-die: New module.
69165
69166 2007-05-06  Bruno Haible  <bruno@clisp.org>
69167
69168         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69169         Update with info about Cygwin.
69170         * doc/functions/fprintf.texi: Update.
69171         * doc/functions/printf.texi: Update.
69172         * doc/functions/snprintf.texi: Update.
69173         * doc/functions/sprintf.texi: Update.
69174         * doc/functions/vfprintf.texi: Update.
69175         * doc/functions/vprintf.texi: Update.
69176         * doc/functions/vsnprintf.texi: Update.
69177         * doc/functions/vsprintf.texi: Update.
69178         Reported by Eric Blake.
69179
69180 2007-05-06  Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69183         padding ourselves for the floating-point directives.
69184         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69186         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69187         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69188         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69190         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69196         * tests/test-snprintf-posix.h (test_function): Also check the width
69197         and some flags in the %f directive.
69198         * tests/test-sprintf-posix.h (test_function): Likewise.
69199         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69200         * tests/test-vasprintf-posix.c (test_function): Likewise.
69201         * doc/functions/fprintf.texi: Update.
69202         * doc/functions/printf.texi: Update.
69203         * doc/functions/snprintf.texi: Update.
69204         * doc/functions/sprintf.texi: Update.
69205         * doc/functions/vfprintf.texi: Update.
69206         * doc/functions/vprintf.texi: Update.
69207         * doc/functions/vsnprintf.texi: Update.
69208         * doc/functions/vsprintf.texi: Update.
69209
69210 2007-05-06  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69213         pass the ' flag character to sprintf or snprintf.
69214         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69216         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69217         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69218         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69220         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69221         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69223         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69225         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69226         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69227         flag.
69228         * tests/test-sprintf-posix.h (test_function): Likewise.
69229         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69230         * tests/test-vasprintf-posix.c (test_function): Likewise.
69231         * doc/functions/fprintf.texi: Update.
69232         * doc/functions/printf.texi: Update.
69233         * doc/functions/snprintf.texi: Update.
69234         * doc/functions/sprintf.texi: Update.
69235         * doc/functions/vfprintf.texi: Update.
69236         * doc/functions/vprintf.texi: Update.
69237         * doc/functions/vsnprintf.texi: Update.
69238         * doc/functions/vsprintf.texi: Update.
69239
69240 2007-05-01  Bruno Haible  <bruno@clisp.org>
69241
69242         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69243
69244 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69245
69246         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69247         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69248
69249 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69250
69251         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69252         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69254
69255 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69256
69257         * lib/argp-help.c (struct hol_entry): New member `ord'.
69258         (HOL_ENTRY_PTRCMP): Use ord for comparison
69259         (hol_sort): Initialize ord.
69260
69261 2007-05-01  Bruno Haible  <bruno@clisp.org>
69262
69263         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69264         Reported by Eric Blake.
69265         * doc/gnulib.texi (Function Substitutes): Update.
69266
69267 2007-05-01  Bruno Haible  <bruno@clisp.org>
69268
69269         * doc/functions.texi: Remove file, now redundant through
69270         doc/functions/*.texi.
69271
69272 2007-05-01  Bruno Haible  <bruno@clisp.org>
69273
69274         * modules/argp (Depends-on): Add sleep.
69275
69276 2007-05-01  Bruno Haible  <bruno@clisp.org>
69277
69278         * modules/sleep-tests: New file.
69279         * tests/test-sleep.c: New file.
69280
69281         * modules/sleep: New file.
69282         * lib/sleep.c: New file.
69283         * m4/sleep.m4: New file.
69284         * lib/unistd_.h (sleep): New declaration.
69285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69286         HAVE_SLEEP.
69287         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69288         * doc/functions/sleep.texi: Document the sleep module.
69289
69290 2007-05-01  Bruno Haible  <bruno@clisp.org>
69291
69292         * lib/sigprocmask.h: Remove file.
69293         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69294         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69295         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69296         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69297         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69298         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69299         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69300         HAVE_SIGSET_T as a shell variable.
69301         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69302         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69303         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69304         (Depends-on): Add signal. Remove verify.
69305         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69306         (Include): Mention <signal.h> instead of sigprocmask.h.
69307         * NEWS: Mention the change.
69308         * lib/fatal-signal.c: Don't include sigprocmask.h.
69309
69310 2007-05-01  Bruno Haible  <bruno@clisp.org>
69311
69312         * modules/signal: New file.
69313         * lib/signal_.h: New file.
69314         * m4/signal_h.m4: New file.
69315
69316 2007-05-01  Bruno Haible  <bruno@clisp.org>
69317
69318         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69319         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69320         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69321         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69322
69323 2007-05-01  Bruno Haible  <bruno@clisp.org>
69324
69325         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69326         configure time.
69327         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69328         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69329         * modules/sys_stat (Makefile.am): Substitute their values into
69330         sys/stat.h.
69331
69332 2007-05-01  Bruno Haible  <bruno@clisp.org>
69333
69334         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69335         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69336         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69337
69338 2007-05-01  Bruno Haible  <bruno@clisp.org>
69339
69340         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69341         'assert' module here.
69342
69343 2007-05-01  Bruno Haible  <bruno@clisp.org>
69344
69345         * doc/functions/*.texi: New files.
69346         * doc/functions/google-ranking.txt: New file.
69347         * doc/gnulib.texi (Function Substitutes): New chapter.
69348         (ctime, inet_ntoa): Remove sections.
69349         * doc/ctime.texi: Remove file.
69350         * doc/inet_ntoa.texi: Remove file.
69351         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69352         dependencies.
69353         (%.info): New rule, specifying a --reference-limit.
69354
69355 2007-05-01  Bruno Haible  <bruno@clisp.org>
69356
69357         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69358
69359 2007-05-01  Bruno Haible  <bruno@clisp.org>
69360
69361         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69362         the portability of 'mkdir' to mingw systems.
69363
69364 2007-05-01  Bruno Haible  <bruno@clisp.org>
69365
69366         * doc/headers/google-ranking.txt: New file.
69367
69368 2007-04-30  Eric Blake  <ebb9@byu.net>
69369
69370         Prefer fseeko to fseek.
69371         * modules/getpass (Depends-on): Add fseeko.
69372         * lib/getpass.c (getpass): Use fseeko, not fseek.
69373
69374 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69375
69376         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69377         assumes the sorting is stable, while most qsort implementations
69378         are not.  Use argument addresses to ensure they never compare as
69379         equal.
69380
69381         * tests/test-argp-2.sh (usage-indent test): Fix output
69382         (func_compare): Restore diff options
69383         * tests/test-argp.c: Restore #include "progname.h"
69384
69385 2007-04-29  Bruno Haible  <bruno@clisp.org>
69386
69387         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69388         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69389         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69391         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69392         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69393         (TESTS, check_PROGRAMS): Add test-snprintf.
69394         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69395         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69396         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69397         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69398         assertions that fail on HP-UX, OSF/1, or IRIX.
69399         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69400
69401 2007-04-29  Bruno Haible  <bruno@clisp.org>
69402
69403         * MODULES.html.sh (posix_functions): Remove 'contents'.
69404
69405 2007-04-29  Karl Berry  <karl@gnu.org>
69406
69407         * config/srclist.txt (gendocs_template_min): new entry.
69408
69409 2007-04-29  Bruno Haible  <bruno@clisp.org>
69410
69411         Work around fpurge bug on BSD systems.
69412         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69413         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69414         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69415         fpurge to rpl_fpurge if the system already has this function.
69416         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69417         the case where the system already has this function. Correct invariants
69418         on BSD systems.
69419         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69420         BSD systems.
69421
69422 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69423
69424         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69425         proposed by Sven Verdoolaege.
69426
69427         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69428         options.
69429         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69430         (usage and help tests): Update
69431
69432 2007-04-29  Bruno Haible  <bruno@clisp.org>
69433
69434         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69435         Print more information in case of failure. Disable a test on BeOS.
69436
69437 2007-04-29  Bruno Haible  <bruno@clisp.org>
69438
69439         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69440         This helps debugging on systems on which no gdb is available.
69441
69442 2007-04-29  Bruno Haible  <bruno@clisp.org>
69443
69444         * lib/freading.h: Improve comments.
69445         * lib/fwriting.h: Likewise.
69446         * tests/test-freading.c (main): Don't check freading immediately after
69447         repositioning. Needed for glibc.
69448
69449 2007-04-29  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/freading.c (freading): Trivial simplification.
69452
69453 2007-04-28  Bruno Haible  <bruno@clisp.org>
69454
69455         * tests/test-fwriting.c (main): Also test the interaction between
69456         fflush and fwriting.
69457         * modules/fwriting-tests (Depends-on): Add fflush.
69458
69459         * tests/test-freading.c (main): Also test the interaction between
69460         fflush and freading.
69461         * modules/freading-tests (Depends-on): Add fflush.
69462
69463 2007-04-28  Bruno Haible  <bruno@clisp.org>
69464
69465         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69466         fseeko and ftello.
69467         Suggested by Eric Blake.
69468
69469 2007-04-28  Jim Meyering  <jim@meyering.net>
69470
69471         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69472         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69473         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69474
69475 2007-04-27  Eric Blake  <ebb9@byu.net>
69476
69477         * doc/headers/assert.texi (assert.h): Document assert module use.
69478
69479 2007-04-27  Bruno Haible  <bruno@clisp.org>
69480
69481         * doc/headers/*.texi: New files.
69482         * doc/gnulib.texi (Header File Substitutes): New chapter.
69483         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69484         dependencies.
69485         (standards.info ,standards.html, standards.dvi): Update dependencies.
69486         (mostlyclean, clean): New targets.
69487
69488 2007-04-27  Bruno Haible  <bruno@clisp.org>
69489
69490         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69491         * modules/sysexits (Files, Makefile.am): Update.
69492
69493         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69494         * modules/sys_socket (Files, Makefile.am): Update.
69495
69496         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69497         * modules/sys_stat (Files, Makefile.am): Update.
69498
69499 2007-04-27  Eric Blake  <ebb9@byu.net>
69500
69501         * lib/freading.h: Improve comments.
69502         * lib/fwriting.h: Likewise.
69503         * lib/fflush.c: Likewise.
69504
69505         Fix closein for mingw.
69506         * modules/closein-tests: Add tests for closein.
69507         * tests/test-closein.c: New file.
69508         * tests/test-closein.sh: Likewise.
69509         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69510         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69511
69512 2007-04-27  Bruno Haible  <bruno@clisp.org>
69513
69514         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69515         version is < 6.
69516         * lib/math_.h [__DECC]: Likewise.
69517         * lib/stdio_.h [__DECC]: Likewise.
69518         * lib/stdlib_.h [__DECC]: Likewise.
69519         * lib/string_.h [__DECC]: Likewise.
69520         * lib/time_.h [__DECC]: Likewise.
69521         * lib/wchar_.h [__DECC]: Likewise.
69522         * lib/wctype_.h [__DECC]: Likewise.
69523
69524 2007-04-27  Bruno Haible  <bruno@clisp.org>
69525
69526         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69527
69528 2007-04-27  Bruno Haible  <bruno@clisp.org>
69529
69530         * lib/fflush.c: Add comments.
69531         * modules/fpurge-tests (Depends-on): Add fflush.
69532         * modules/freadable-tests (Depends-on): Likewise.
69533         * modules/fwritable-tests (Depends-on): Likewise.
69534
69535 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69536
69537         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69538         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69539         Report by Bruno Haible <bruno@clisp.org>.
69540
69541 2007-04-26  Eric Blake  <ebb9@byu.net>
69542
69543         Fix fflush on mingw.
69544         * modules/fflush (Depends-on): Add freading.
69545         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69546         but unread data.
69547
69548 2007-04-26  Eric Blake  <ebb9@byu.net>
69549         and Bruno Haible  <bruno@clisp.org>
69550
69551         Implement freading and fwriting.
69552         * lib/freading.c: New file.
69553         * lib/freading.h: Likewise.
69554         * m4/freading.m4: Likewise.
69555         * modules/freading: Likewise.
69556         * modules/freading-tests: Likewise.
69557         * tests/test-freading.c: Likewise.
69558         * lib/fwriting.c: New file.
69559         * lib/fwriting.h: Likewise.
69560         * m4/fwriting.m4: Likewise.
69561         * modules/fwriting: Likewise.
69562         * modules/fwriting-tests: Likewise.
69563         * tests/test-fwriting.c: Likewise.
69564         * MODULES.html.sh (File stream based Input/Output): Mention them.
69565
69566 2007-04-26  Bruno Haible  <bruno@clisp.org>
69567
69568         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69569         'long' when we assume it.
69570         Suggested by Eric Blake.
69571
69572 2007-04-26  Bruno Haible  <bruno@clisp.org>
69573
69574         Ensure fseeko, ftello are declared on glibc systems.
69575         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69576         * modules/fseeko (configure.ac-early): Likewise.
69577         * modules/ftello (configure.ac-early): Likewise.
69578         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69579         AC_FUNC_FSEEKO for this.
69580         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69581         (gl_CHECK_FSEEKO): Remove macro.
69582
69583 2007-04-26  Bruno Haible  <bruno@clisp.org>
69584
69585         * tests/test-fflush.c (main): Also check the ftell result after
69586         fflush and fseek/fseeko.
69587         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69588         file descriptor position cache in the stream.
69589         * lib/fseeko.c (rpl_fseeko): Likewise.
69590
69591 2007-04-26  Bruno Haible  <bruno@clisp.org>
69592
69593         * modules/fflush-tests (Depends-on): Add fseeko.
69594
69595 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69596             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69597
69598         * lib/argz_.h: ensure error_t definition is obtained in same
69599         mechanism system argz.h would have.
69600         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69601         argz facilities are known bad.  Err on the side of caution if
69602         cross-compiling.
69603
69604 2007-04-25  Eric Blake  <ebb9@byu.net>
69605
69606         * lib/fpurge.c (includes): Use stdlib.h for free.
69607         * tests/test-fflush.c (main): Also test fflush-fseeko.
69608
69609 2007-04-25  Bruno Haible  <bruno@clisp.org>
69610
69611         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69612         * lib/fseeko.c: New file.
69613         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69614         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69615         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69616         gl_FUNC_FSEEKO.
69617         (gl_FUNC_FSEEKO): Invoke it.
69618         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69619         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69620         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69621
69622 2007-04-25  Bruno Haible  <bruno@clisp.org>
69623
69624         * modules/fflush (Depends-on): Add ftello.
69625
69626 2007-04-25  Bruno Haible  <bruno@clisp.org>
69627
69628         * modules/ftello-tests: New file.
69629         * tests/test-ftello.c: New file.
69630
69631         * modules/ftello: New file.
69632         * m4/ftello.m4: New file.
69633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69634         HAVE_FTELLO.
69635         * lib/stdio_.h (ftello): New declaration.
69636         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69637         HAVE_FTELLO.
69638
69639 2007-04-25  Bruno Haible  <bruno@clisp.org>
69640
69641         * modules/fseeko-tests: New file.
69642         * tests/test-fseeko.c: New file.
69643
69644         * modules/fseeko: New file.
69645         * m4/fseeko.m4: New file.
69646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69647         HAVE_FSEEKO.
69648         * lib/stdio_.h (fseeko): New declaration.
69649         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69650         HAVE_FSEEKO.
69651
69652 2007-04-25  Bruno Haible  <bruno@clisp.org>
69653
69654         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69655
69656 2007-04-25  Bruno Haible  <bruno@clisp.org>
69657
69658         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69659         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69660         * tests/test-unistd.c: Likewise.
69661         * tests/test-fcntl.c: Likewise.
69662
69663 2007-04-23  Eric Blake  <ebb9@byu.net>
69664
69665         * lib/fflush.c: Fix missing include.
69666         Reported by Bruno Haible.
69667
69668 2007-04-23  Bruno Haible  <bruno@clisp.org>
69669
69670         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69671         Reported by Eric Blake.
69672
69673 2007-04-23  Bruno Haible  <bruno@clisp.org>
69674
69675         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69676
69677 2007-04-23  Bruno Haible  <bruno@clisp.org>
69678
69679         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69680
69681 2007-04-23  Bruno Haible  <bruno@clisp.org>
69682
69683         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69684         Needed on HP-UX 11.
69685
69686 2007-04-16  Eric Blake  <ebb9@byu.net>
69687
69688         Make fflush rely on fpurge.
69689         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69690         open coding all variants.
69691         * modules/fflush (Depends-on): Add fpurge and unistd.
69692         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69693         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69694
69695         Fix --with-tests compilation on cygwin.
69696         * modules/argmatch-tests (Makefile.am): List gnulib library first
69697         in LDADD.
69698         * modules/argp-tests (Makefile.am): Likewise.
69699         * modules/array-list-tests (Makefile.am): Likewise.
69700         * modules/array-oset-tests (Makefile.am): Likewise.
69701         * modules/avltree-list-tests (Makefile.am): Likewise.
69702         * modules/avltree-oset-tests (Makefile.am): Likewise.
69703         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69704         * modules/carray-list-tests (Makefile.am): Likewise.
69705         * modules/dirname-tests (Makefile.am): Likewise.
69706         * modules/frexp-tests (Makefile.am): Likewise.
69707         * modules/isnanl-tests (Makefile.am): Likewise.
69708         * modules/linked-list-tests (Makefile.am): Likewise.
69709         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69710         * modules/lock-tests (Makefile.am): Likewise.
69711         * modules/rbtree-list-tests (Makefile.am): Likewise.
69712         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69713         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69714         * modules/tls-tests (Makefile.am): Likewise.
69715         * modules/tsearch-tests (Makefile.am): Likewise.
69716         * modules/xvasprintf-tests (Makefile.am): Likewise.
69717
69718         Fix fpurge for cygwin.
69719         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69720         value.
69721         * modules/fpurge-tests (Depends-on): Clean up trash.
69722
69723 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69724
69725         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69726
69727         * m4/autobuild.m4: Re-indent.
69728
69729 2007-04-13  Bruno Haible  <bruno@clisp.org>
69730
69731         * modules/fpurge-tests: New file.
69732         * tests/test-fpurge.c: New file.
69733
69734         * modules/fpurge: New file.
69735         * lib/fpurge.h: New file.
69736         * lib/fpurge.c: New file.
69737         * m4/fpurge.m4: New file.
69738
69739 2007-04-13  Bruno Haible  <bruno@clisp.org>
69740
69741         * modules/fbufmode-tests: New file.
69742         * tests/test-fbufmode.c: New file.
69743
69744         * modules/fbufmode: New file.
69745         * lib/fbufmode.h: New file.
69746         * lib/fbufmode.c: New file.
69747         * m4/fbufmode.m4: New file.
69748
69749 2007-04-13  Bruno Haible  <bruno@clisp.org>
69750
69751         * modules/fwritable-tests: New file.
69752         * tests/test-fwritable.c: New file.
69753
69754         * modules/fwritable: New file.
69755         * lib/fwritable.h: New file.
69756         * lib/fwritable.c: New file.
69757         * m4/fwritable.m4: New file.
69758
69759 2007-04-13  Bruno Haible  <bruno@clisp.org>
69760
69761         * modules/freadable-tests: New file.
69762         * tests/test-freadable.c: New file.
69763
69764         * modules/freadable: New file.
69765         * lib/freadable.h: New file.
69766         * lib/freadable.c: New file.
69767         * m4/freadable.m4: New file.
69768
69769 2007-04-13  Bruno Haible  <bruno@clisp.org>
69770
69771         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69772         MOSTLYCLEANFILES.
69773
69774 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69775
69776         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69777         gzip bootstrap.conf to avoid dragging in i18n machinery.
69778         (gnulib_tool_option): Use it.
69779
69780 2007-04-13  Bruno Haible  <bruno@clisp.org>
69781
69782         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69783         %F directives.
69784         * tests/test-vasprintf-posix.c (test_function): Likewise.
69785         * tests/test-snprintf-posix.h (test_function): Likewise.
69786         * tests/test-sprintf-posix.h (test_function): Likewise.
69787         * tests/test-fprintf-posix.h (test_function): Likewise.
69788         * tests/test-printf-posix.h (test_function): Likewise.
69789         * tests/test-fprintf-posix.out: Likewise.
69790
69791 2007-04-13  Bruno Haible  <bruno@clisp.org>
69792
69793         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69794         * modules/tls-tests (configure.ac): Likewise.
69795         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69796
69797 2007-04-13  Bruno Haible  <bruno@clisp.org>
69798
69799         * lib/tls.c (glthread_tls_get): Fix return type.
69800         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69801
69802 2007-04-12  Eric Blake  <ebb9@byu.net>
69803
69804         * modules/gettime (Depends-on): Remove gettime.
69805         Reported by Dmitry V. Levin.
69806
69807 2007-04-12  Bruno Haible  <bruno@clisp.org>
69808
69809         * modules/fflush (Include): Mention <stdio.h>.
69810         * modules/strtoimax (Include): Mention <inttypes.h>.
69811         * modules/strtoumax (Include): Likewise.
69812
69813 2007-04-12  Eric Blake  <ebb9@byu.net>
69814
69815         * .cvsignore: New file.
69816         * .gitignore: Likewise.
69817
69818 2007-04-12  Bruno Haible  <bruno@clisp.org>
69819
69820         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69821         not before, since $(LDADD) often contains libgnu.a.
69822         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69823         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69824         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69825         Needed on Cygwin.
69826
69827 2007-04-12  Eric Blake  <ebb9@byu.net>
69828
69829         Work around glibc's failure to flush stdin on fclose.
69830         * lib/closein.c (close_stdin): Flush stdin before closing.
69831
69832         Work around glibc's failure to reset seekable stdin on exit.
69833         * modules/closein: New module.
69834         * lib/closein.c: New file.
69835         * lib/closein.h: Likewise.
69836         * m4/closein.m4: Likewise.
69837         * MODULES.html.sh (File stream based Input/Output): Document it.
69838
69839 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69840
69841         * gnulib-tool: Rename generated 'autobuild' script to
69842         'do-autobuild' in --create-megatestdir output.
69843
69844         * doc/gnulib.texi (Build robot for gnulib): Fix.
69845
69846 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69847
69848         * modules/sysexits (Depends-on): Add absolute-header.
69849
69850 2007-04-12  Eric Blake  <ebb9@byu.net>
69851
69852         No need to preserve errno on success.
69853         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69854         Reported by Bruno Haible.
69855
69856 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69857
69858         * MODULES.html.sh (Support for maintaining and releasing
69859         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69860
69861 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69862
69863         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69864
69865 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69866
69867         * modules/autobuild: New module.
69868
69869         * m4/autobuild.m4: New file.
69870
69871 2007-04-11  Bruno Haible  <bruno@clisp.org>
69872
69873         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69874         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69877         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69878         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69879         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69881         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69882         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69883         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69884         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69885         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69886         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69887         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69888         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69890         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69891         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69892         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69893         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69894         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69896         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69897         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69899         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69900         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69901         Reported by Eric Blake.
69902
69903 2007-04-11  Bruno Haible  <bruno@clisp.org>
69904
69905         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69906
69907 2007-04-10  Bruno Haible  <bruno@clisp.org>
69908
69909         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69910         for NaN and Infinity. Needed on FreeBSD 6.1.
69911         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69912         regarding results for "%010a" of Infinity and NaN.
69913         * tests/test-vasprintf-posix.c (test_function): Likewise.
69914         * tests/test-snprintf-posix.h (test_function): Likewise.
69915         * tests/test-sprintf-posix.h (test_function): Likewise.
69916         * tests/test-fprintf-posix.h (test_function): Likewise.
69917         * tests/test-printf-posix.h (test_function): Likewise.
69918         * tests/test-fprintf-posix.out: Likewise.
69919
69920 2007-04-10  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/locale-tests: New file.
69923         * tests/test-locale.c: New file.
69924
69925         * modules/locale: New file.
69926         * lib/locale_.h: New file.
69927         * m4/locale_h.m4: New file.
69928
69929 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69930             Bruno Haible  <bruno@clisp.org>
69931
69932         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69933         be determined, test for availability of the copysignf, copysign,
69934         copysignl functions.
69935         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69936         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69937         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69938
69939 2007-04-09  Eric Blake  <ebb9@byu.net>
69940
69941         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69942         * modules/stdio (Makefile.am): Support fflush.
69943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69944         * modules/fflush: New file.
69945         * lib/fflush.c: Likewise.
69946         * m4/fflush.m4: Likewise.
69947         * modules/fflush-tests: New test.
69948         * tests/test-fflush.c: Likewise.
69949         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69950
69951 2007-04-06  Bruno Haible  <bruno@clisp.org>
69952
69953         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69954         (VASNPRINTF): Use signbit for faster determination whether to print a
69955         minus sign.
69956         * modules/vasnprintf (Files): Remove lib/float+.h.
69957         * modules/fprintf-posix (Depends-on): Add signbit.
69958         * modules/snprintf-posix (Depends-on): Likewise.
69959         * modules/sprintf-posix (Depends-on): Likewise.
69960         * modules/vasnprintf-posix (Depends-on): Likewise.
69961         * modules/vasprintf-posix (Depends-on): Likewise.
69962         * modules/vfprintf-posix (Depends-on): Likewise.
69963         * modules/vsnprintf-posix (Depends-on): Likewise.
69964         * modules/vsprintf-posix (Depends-on): Likewise.
69965
69966 2007-04-06  Bruno Haible  <bruno@clisp.org>
69967
69968         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69969         * tests/test-frexpl.c (main): Likewise.
69970         * tests/test-ldexpl.c (main): Likewise.
69971         * modules/frexp-tests (Depends-on): Add signbit.
69972         * modules/frexpl-tests (Depdends-on): Likewise.
69973         * modules/ldexpl-tests (Depdends-on): Likewise.
69974
69975 2007-04-06  Bruno Haible  <bruno@clisp.org>
69976
69977         * modules/signbit-tests: New file.
69978         * tests/test-signbit.c: New file.
69979
69980         * modules/signbit: New file.
69981         * lib/signbitf.c: New file.
69982         * lib/signbitd.c: New file.
69983         * lib/signbitl.c: New file.
69984         * m4/signbit.m4: New file.
69985         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69986         (signbit): New macro.
69987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69988         REPLACE_SIGNBIT.
69989         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69990         REPLACE_FREXPL into math.h.
69991
69992 2007-04-06  Bruno Haible  <bruno@clisp.org>
69993
69994         * modules/isnanf-nolibm-tests: New file.
69995         * tests/test-isnanf.c: New file.
69996
69997         * modules/isnanf-nolibm: New file.
69998         * lib/isnanf.h: New file.
69999         * lib/isnanf.c: New file.
70000         * lib/isnan.c: Consider the USE_FLOAT macro.
70001         * m4/isnanf.m4: New file.
70002
70003 2007-04-06  Bruno Haible  <bruno@clisp.org>
70004
70005         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70006         (Link): New section.
70007
70008         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70009
70010 2007-04-06  Bruno Haible  <bruno@clisp.org>
70011
70012         Assume the 'long double' type.
70013         * m4/longdouble.m4: Remove file.
70014         * config/srclist.txt: Don't mention longdouble.m4.
70015         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70016         * lib/float+.h: Likewise.
70017         * lib/frexp.c: Likewise.
70018         * lib/printf-args.h: Likewise.
70019         * lib/printf-args.c: Likewise.
70020         * lib/printf-frexp.c: Likewise.
70021         * lib/printf-parse.c: Likewise.
70022         * lib/vasnprintf.c: Likewise.
70023         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70024         * m4/intl.m4: Likewise.
70025         * m4/isnanl.m4: Likewise.
70026         * m4/printf.m4: Likewise.
70027         * m4/printf-frexpl.m4: Likewise.
70028         * m4/vasnprintf.m4: Likewise.
70029         * modules/allocsa (Files): Remove m4/longdouble.m4.
70030         * modules/gettext (Files): Likewise.
70031         * modules/relocatable-prog-wrapper (Files): Likewise.
70032         * modules/vasnprintf (Files): Likewise.
70033         * modules/isnanl (Files): Likewise.
70034         (Include): Simplify.
70035         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70036         (Include): Simplify.
70037         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70038         (Include): Simplify.
70039         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70040         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70041         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70042         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70043         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70044         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70045         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70046         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70047         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70048         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70049         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70050         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70051         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70052         * tests/test-isnanl.c: Likewise.
70053         * tests/test-snprintf-posix.h: Likewise.
70054         * tests/test-sprintf-posix.h: Likewise.
70055         * tests/test-vasnprintf-posix.c: Likewise.
70056         * tests/test-vasnprintf-posix2.c: Likewise.
70057         * tests/test-vasprintf-posix.c: Likewise.
70058
70059 2007-04-06  Bruno Haible  <bruno@clisp.org>
70060
70061         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70062         * lib/math_.h [__DECC]: Include the overridden include file through
70063         #include_next, outside the double-inclusion guard.
70064         * lib/stdio_.h [__DECC]: Likewise.
70065         * lib/stdlib_.h [__DECC]: Likewise.
70066         * lib/string_.h [__DECC]: Likewise.
70067         * lib/time_.h [__DECC]: Likewise.
70068         * lib/wchar_.h [__DECC]: Likewise.
70069         * lib/wctype_.h [__DECC]: Likewise.
70070         * lib/inttypes_.h [__DECC]: Likewise.
70071         Reported by Albert Chin <china@thewrittenword.com> in
70072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70073
70074 2007-04-04  Eric Blake  <ebb9@byu.net>
70075
70076         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70077         1.5.x.
70078
70079 2007-04-04  Bruno Haible  <bruno@clisp.org>
70080
70081         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70082         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70083
70084 2007-04-04  Bruno Haible  <bruno@clisp.org>
70085
70086         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70087         results for "%010a" of Infinity and NaN.
70088         * tests/test-vasprintf-posix.c (test_function): Likewise.
70089         * tests/test-snprintf-posix.h (test_function): Likewise.
70090         * tests/test-sprintf-posix.h (test_function): Likewise.
70091         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70092         * tests/test-printf-posix.h (test_function): Likewise.
70093         * tests/test-fprintf-posix.out: Update.
70094         Needed for FreeBSD 6.1.
70095
70096 2007-04-04  Bruno Haible  <bruno@clisp.org>
70097
70098         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70099         directly used by the gnulib modules nor by gnulib-tool.
70100
70101 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         * DEPENDENCIES: Give overall description of version dependency
70104         desirability.  Use more-typical names for apps.
70105         Add shell, coreutils, diffutils, grep, tar, gzip.
70106
70107 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70108
70109         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70110
70111 2007-04-04  Karl Berry  <karl@gnu.org>
70112
70113         * MODULES.html.sh (func_module): missing '.
70114
70115 2007-04-03  Bruno Haible  <bruno@clisp.org>
70116
70117         * modules/argmatch-tests (Makefile.am): New variable
70118         test_argmatch_LDADD.
70119         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70120         * modules/array-list-tests (Makefile.am): New variable
70121         test_array_list_LDADD.
70122         * modules/array-oset-tests (Makefile.am): New variable
70123         test_array_oset_LDADD.
70124         * modules/avltree-list-tests (Makefile.am): New variable
70125         test_avltree_list_LDADD.
70126         * modules/avltree-oset-tests (Makefile.am): New variable
70127         test_avltree_oset_LDADD.
70128         * modules/avltreehash-list-tests (Makefile.am): New variable
70129         test_avltreehash_list_LDADD.
70130         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70131         test_canonicalize_lgpl_LDADD.
70132         * modules/carray-list-tests (Makefile.am): New variable
70133         test_carray_list_LDADD.
70134         * modules/dirname-tests (Makefile.am): New variable
70135         test_dirname_LDADD.
70136         * modules/linked-list-tests (Makefile.am): New variable
70137         test_linked_list_LDADD.
70138         * modules/linkedhash-list-tests (Makefile.am): New variable
70139         test_linkedhash_list_LDADD.
70140         * modules/rbtree-list-tests (Makefile.am): New variable
70141         test_rbtree_list_LDADD.
70142         * modules/rbtree-oset-tests (Makefile.am): New variable
70143         test_rbtree_oset_LDADD.
70144         * modules/rbtreehash-list-tests (Makefile.am): New variable
70145         test_rbtreehash_list_LDADD.
70146         * modules/xvasprintf-tests (Makefile.am): New variable
70147         test_xvasprintf_LDADD.
70148         Reported by Eric Blake.
70149
70150 2007-04-03  Eric Blake  <ebb9@byu.net>
70151
70152         * DEPENDENCIES: Weaken m4 requirements.
70153
70154 2007-04-03  Bruno Haible  <bruno@clisp.org>
70155
70156         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70157         * modules/isnanl-tests (configure.ac): Likewise.
70158
70159 2007-04-03  Ben Pfaff  <blp@gnu.org>
70160
70161         * modules/iconv_open: Add $(srcdir)/ to source directory
70162         references in Makefile fragments that call gperf, to fix VPATH
70163         builds.
70164
70165 2007-04-03  Bruno Haible  <bruno@clisp.org>
70166
70167         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70168         * lib/ldexpl.c: Undo last change.
70169
70170 2007-04-03  Bruno Haible  <bruno@clisp.org>
70171
70172         * modules/printf-frexpl (Depends-on): Undo last change.
70173         (Files): Add m4/ldexpl.m4.
70174
70175 2007-04-03  Bruno Haible  <bruno@clisp.org>
70176
70177         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70178         * modules/isnanl (Link): New section.
70179
70180         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70181         * modules/frexp (Link): New section.
70182
70183         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70184         * modules/frexpl (Link): New section.
70185
70186         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70187         * modules/ldexpl (Link): New section.
70188
70189 2007-04-03  Bruno Haible  <bruno@clisp.org>
70190
70191         * modules/TEMPLATE-EXTENDED: New file.
70192         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70193
70194 2007-04-03  Bruno Haible  <bruno@clisp.org>
70195
70196         * DEPENDENCIES: New file.
70197         Suggested by Simon Josefsson.
70198
70199 2007-04-03  Bruno Haible  <bruno@clisp.org>
70200
70201         * doc/gnulib.texi: Escape @.
70202
70203 2007-04-03  James Youngman  <jay@gnu.org>
70204         and Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70207         birthtime on all systems that have birthtime, not just those which
70208         use st_birthtimensec rather than st_birthtim.  Putting zero in
70209         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70210         that the birth time is not available for files on an NFS mount.
70211
70212 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70213
70214         * modules/memxor: Move back from crypto/, suggested by Bruno.
70215         * modules/crypto/hmac-sha1: Fix memxor dependency.
70216
70217         * modules/crypto/gc: Moved from ../.
70218
70219 2007-04-02  Eric Blake  <ebb9@byu.net>
70220
70221         * lib/ldexpl.c (includes): Avoid libm.
70222
70223         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70224
70225 2007-04-02  Bruno Haible  <bruno@clisp.org>
70226
70227         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70228         on IRIX.
70229
70230 2007-04-02  Bruno Haible  <bruno@clisp.org>
70231
70232         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70233         x86 or x86_64 platforms running MacOS X.
70234         Reported by Ryan Schmidt <@ryandesign.com>.
70235
70236 2007-04-02  Bruno Haible  <bruno@clisp.org>
70237
70238         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70239         i386.
70240
70241 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70242
70243         * modules/crypto/arcfour: Moved from ../.
70244         * modules/crypto/arcfour-tests: Moved from ../.
70245         * modules/crypto/arctwo: Moved from ../.
70246         * modules/crypto/arctwo-tests: Moved from ../.
70247         * modules/crypto/des: Moved from ../.
70248         * modules/crypto/des-tests: Moved from ../.
70249         * modules/crypto/gc-arcfour: Moved from ../.
70250         * modules/crypto/gc-arcfour-tests: Moved from ../.
70251         * modules/crypto/gc-arctwo: Moved from ../.
70252         * modules/crypto/gc-arctwo-tests: Moved from ../.
70253         * modules/crypto/gc-des: Moved from ../.
70254         * modules/crypto/gc-des-tests: Moved from ../.
70255         * modules/crypto/gc-hmac-md5: Moved from ../.
70256         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70257         * modules/crypto/gc-hmac-sha1: Moved from ../.
70258         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70259         * modules/crypto/gc-md2: Moved from ../.
70260         * modules/crypto/gc-md2-tests: Moved from ../.
70261         * modules/crypto/gc-md4: Moved from ../.
70262         * modules/crypto/gc-md4-tests: Moved from ../.
70263         * modules/crypto/gc-md5: Moved from ../.
70264         * modules/crypto/gc-md5-tests: Moved from ../.
70265         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70266         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70267         * modules/crypto/gc-random: Moved from ../.
70268         * modules/crypto/gc-rijndael: Moved from ../.
70269         * modules/crypto/gc-rijndael-tests: Moved from ../.
70270         * modules/crypto/gc-sha1: Moved from ../.
70271         * modules/crypto/gc-sha1-tests: Moved from ../.
70272         * modules/crypto/gc-tests: Moved from ../.
70273         * modules/crypto/hmac-md5: Moved from ../.
70274         * modules/crypto/hmac-md5-tests: Moved from ../.
70275         * modules/crypto/hmac-sha1: Moved from ../.
70276         * modules/crypto/hmac-sha1-tests: Moved from ../.
70277         * modules/crypto/md2: Moved from ../.
70278         * modules/crypto/md2-tests: Moved from ../.
70279         * modules/crypto/md4: Moved from ../.
70280         * modules/crypto/md4-tests: Moved from ../.
70281         * modules/crypto/md5: Moved from ../.
70282         * modules/crypto/md5-tests: Moved from ../.
70283         * modules/crypto/memxor: Moved from ../.
70284         * modules/crypto/rijndael: Moved from ../.
70285         * modules/crypto/rijndael-tests: Moved from ../.
70286         * modules/crypto/sha1: Moved from ../.
70287
70288 2007-03-30  James Youngman  <jay@gnu.org>
70289
70290         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70291         rename() to change the ctime of a file (because ctime is unaffected
70292         by rename on jfs2 on AIX 5.1).
70293         (main): Start by doing cleanup, in case a previous run failed leaving
70294         test files behind.
70295
70296 2007-03-31  Bruno Haible  <bruno@clisp.org>
70297
70298         Support old proprietary implementations of iconv.
70299         * modules/iconv_open: New file.
70300         * lib/iconv_.h: New file.
70301         * m4/iconv_h.m4: New file.
70302         * lib/iconv_open.c: New file.
70303         * lib/iconv_open-aix.gperf: New file.
70304         * lib/iconv_open-hpux.gperf: New file.
70305         * lib/iconv_open-irix.gperf: New file.
70306         * lib/iconv_open-osf.gperf: New file.
70307         * m4/iconv_open.m4: New file.
70308         * modules/linebreak (Depends-on): Add iconv_open.
70309         * modules/striconv (Depends-on): Likewise.
70310         * modules/striconveh (Depends-on): Likewise.
70311         * modules/unicodeio (Depends-on): Likewise.
70312         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70313         (iconv_t)(-1).
70314         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70315         conversion if cd is (iconv_t)(-1).
70316         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70317         is not possible.
70318
70319 2007-03-31  Bruno Haible  <bruno@clisp.org>
70320
70321         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70322         work on Solaris either. Protect also second use of "autodetect_jp".
70323
70324 2007-03-31  Bruno Haible  <bruno@clisp.org>
70325
70326         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70327         the function is not present.
70328
70329 2007-03-31  Bruno Haible  <bruno@clisp.org>
70330
70331         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70332         the function is not present.
70333
70334 2007-03-31  Bruno Haible  <bruno@clisp.org>
70335
70336         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70337         a bug in HP-UX iconv_open().
70338
70339 2007-03-31  Bruno Haible  <bruno@clisp.org>
70340
70341         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70342         (Mathematics <math.h>): New section, add fpieee.
70343         (Input/output <stdio.h>): Add fseterr.
70344         (Mathematics <math.h>): New section, add printf-frexp.
70345         (Container data structures): Add sublist.
70346         (Core language properties): Add fpucw, inline.
70347         (Functions for greatest-width integer types <inttypes.h>): Add
70348         imaxabs, imaxdiv, inttypes.
70349         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70350         isnanl-nolibm, ldexp.
70351         (Mathematics <math.h>): New section, add printf-frexpl.
70352         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70353         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70354         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70355         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70356         (Unicode string functions): Add unistr/u*-mbtoucr.
70357         (Java): Add javacomp-script, javaexec-script.
70358         (C#): Add csharpcomp-script, csharpexec-script.
70359         (Support for building libraries and executables): Add havelib,
70360         relocatable-*.
70361         (Support for maintaining and releasing projects): Renamed from
70362         'Support for maintaining and release projects'. Add announce-gen.
70363
70364 2007-03-31  Bruno Haible  <bruno@clisp.org>
70365
70366         * README: Talk primarily about git.
70367         (git and CVS): Renamed from CVS.
70368         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70369         gnulib is available through git.
70370         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70371
70372 2007-03-30  Bruno Haible  <bruno@clisp.org>
70373
70374         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70375         * lib/poll_.h: Likewise.
70376         * lib/stat_.h: Likewise.
70377         * lib/sys_time_.h: Likewise.
70378         * lib/sysexit_.h: Likewise.
70379         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70380         * lib/stdbool_.h: Likewise.
70381         * lib/byteswap_.h: Add double-inclusion guard.
70382
70383 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70384
70385         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70386
70387 2007-03-30  Karl Berry  <karl@gnu.org>
70388
70389         * config/srclist-update: double space after USA in the license
70390         substitution, since that's how it's usually (?) written.
70391
70392 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70393
70394         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70395         reported by Bruno Haible.
70396
70397 2007-03-29  Bruno Haible  <bruno@clisp.org>
70398
70399         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70400         a bug in AIX iconv().
70401
70402 2007-03-29  Bruno Haible  <bruno@clisp.org>
70403
70404         * modules/ldexpl-tests: New file.
70405         * tests/test-ldexpl.c: New file.
70406
70407 2007-03-29  Bruno Haible  <bruno@clisp.org>
70408
70409         * lib/ldexpl.c: Include fpucw.h.
70410         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70411         multiplication.
70412         * modules/ldexpl (Depends-on): Add fpucw.
70413
70414 2007-03-29  Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/ldexpl: New file.
70417         * m4/ldexpl.m4: New file.
70418         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70419         set.
70420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70421         REPLACE_LDEXPL.
70422         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70423         REPLACE_LDEXPL.
70424         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70425         gl_FUNC_LDEXPL_WORKS.
70426         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70427         * modules/mathl (Files): Remove lib/ldexpl.c.
70428         (Depends-on): Add ldexpl.
70429
70430 2007-03-29  Bruno Haible  <bruno@clisp.org>
70431
70432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70433
70434 2007-03-29  Bruno Haible  <bruno@clisp.org>
70435
70436         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70437         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70438         and possibly also HP-UX.
70439         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70440         work on AIX, IRIX, HP-UX, OSF/1.
70441         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70442         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70443         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70444         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70445         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70446         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70447
70448 2007-03-29  Bruno Haible  <bruno@clisp.org>
70449
70450         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70451
70452 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70455         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70456
70457 2007-03-29  Eric Blake  <ebb9@byu.net>
70458
70459         * lib/acl-internal.h: Remove redundant include.
70460         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70461         Cygwin when a file is locked.
70462
70463 2007-03-29  Bruno Haible  <bruno@clisp.org>
70464
70465         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70466         file.
70467         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70468
70469 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70470
70471         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70472         try to remove a parent directory if the child couldn't be removed
70473         (except for the first rmdir, which could fail because the child
70474         doesn't exist).  Problem reported by Jeff Blaine in
70475         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70476
70477 2007-03-28  Bruno Haible  <bruno@clisp.org>
70478
70479         * lib/striconveh.c (utf8conv_carefully): New function.
70480         (mem_cd_iconveh_internal): Invoke it.
70481
70482 2007-03-28  Bruno Haible  <bruno@clisp.org>
70483
70484         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70485         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70486         input.
70487         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70488         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70489         unistr/u8-uctomb.
70490
70491 2007-03-28  Bruno Haible  <bruno@clisp.org>
70492
70493         * modules/unistr/u8-mbtoucr: New file.
70494         * lib/unistr/u8-mbtoucr.c: New file.
70495         * modules/unistr/u16-mbtoucr: New file.
70496         * lib/unistr/u16-mbtoucr.c: New file.
70497         * modules/unistr/u16-mbtoucr: New file.
70498         * lib/unistr/u16-mbtoucr.c: New file.
70499         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70500
70501 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70502             Bruno Haible  <bruno@clisp.org>
70503
70504         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70505         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70506         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70507
70508         * m4/stdio_h.m4: Add stubs for vasprintf too.
70509
70510         * modules/stdio: Support vasprintf in sed command.
70511
70512         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70513         vasprintf.h.  Add stdio module indicator.
70514
70515         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70516         vasprintf.h.
70517
70518         * lib/vasprintf.h: File removed.
70519
70520         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70521         * lib/vasprintf.c: Ditto.
70522         * lib/xvasprintf.c: Ditto.
70523         * tests/test-vasprintf-posix.c: Ditto.
70524         * tests/test-vasprintf.c: Ditto.
70525
70526 2007-03-27  Bruno Haible  <bruno@clisp.org>
70527
70528         Make vasnprintf multithread-safe.
70529         * lib/vasnprintf.c (decimal_point_char): New function.
70530         (VASNPRINTF): Use it.
70531         Suggested by Simon Josefsson.
70532
70533 2007-03-27  Eric Blake  <ebb9@byu.net>
70534
70535         Support sub-second birthtime on cygwin.
70536         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70537         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70538         (get_stat_birthtime): Also work with st_birthtim.
70539
70540 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70543         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70544         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70545         (get_stat_birthtime_ns): Simplify compile-time tests.
70546         (get_stat_birthtime): Change the API to look like
70547         get_stat_mtime etc., except return a negative tv_nsec on error.
70548         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70549         Don't check for "spare" fields.
70550         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70551         or for struct stat.st_birthtime, as these tests aren't used.
70552         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70553
70554 2007-03-27  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/stat-time.h: Include <sys/stat.h>.
70557
70558 2007-03-27  James Youngman  <jay@gnu.org>
70559
70560         * lib/stat-time.h (get_stat_birthtime): New function for
70561           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70562         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70563           and its variants.
70564         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70565         * modules/stat-time-test: New file.
70566         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70567
70568 2007-03-26  Bruno Haible  <bruno@clisp.org>
70569
70570         Better support of signalling NaNs.
70571         * lib/atanl.c: Include isnanl.h.
70572         (atanl): Perform test for NaN at the beginning of the function and
70573         through a call to isnanl.
70574         * lib/cosl.c: Include isnanl.h.
70575         (cosl): Perform test for NaN at the beginning of the function and
70576         through a call to isnanl.
70577         * lib/ldexpl.c: Include isnanl.h.
70578         (ldexpl): Perform test for NaN through a call to isnanl.
70579         * lib/logl.c: Include isnanl.h.
70580         (logl): Perform test for NaN at the beginning of the function and
70581         through a call to isnanl.
70582         * lib/sinl.c: Include isnanl.h.
70583         (sinl): Perform test for NaN at the beginning of the function and
70584         through a call to isnanl.
70585         * lib/sqrtl.c: Include isnanl.h.
70586         (sqrtl): Perform test for NaN at the beginning of the function and
70587         through a call to isnanl.
70588         * lib/tanl.c: Include isnanl.h.
70589         (tanl): Perform test for NaN at the beginning of the function and
70590         through a call to isnanl.
70591         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70592         * modules/mathl (Depends-on): Add isnanl.
70593
70594 2007-03-26  Eric Blake  <ebb9@byu.net>
70595
70596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70597         regression in logic sense of previous patch.
70598
70599 2007-03-26  Bruno Haible  <bruno@clisp.org>
70600
70601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70602         unportable shell command "if ! ...".
70603         Reported by Ralf Wildenhues.
70604
70605 2007-03-25  Bruno Haible  <bruno@clisp.org>
70606
70607         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70608         <sysexits.h> file, and only add EX_CONFIG.
70609         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70610         absolute file name and whether it is sufficient. Substitute also
70611         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70612         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70613         ABSOLUTE_SYSEXITS_H into sysexits.h.
70614
70615 2007-03-25  Bruno Haible  <bruno@clisp.org>
70616
70617         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70618         hints is NULL.
70619
70620 2007-03-25  Bruno Haible  <bruno@clisp.org>
70621
70622         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70623         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70624
70625 2007-03-25  Bruno Haible  <bruno@clisp.org>
70626
70627         * lib/vasnprintf.c: Include langinfo.h.
70628         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70629         multithread-safe.
70630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70631         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70633         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70634         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70635         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70636         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70637         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70638         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70639         Reported by Simon Josefsson.
70640
70641 2007-03-25  Bruno Haible  <bruno@clisp.org>
70642
70643         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70644         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70645         * modules/vasnprintf (Depends-on): Add stdint.
70646
70647 2007-03-25  Bruno Haible  <bruno@clisp.org>
70648
70649         * modules/fpieee: New file.
70650         * m4/fpieee.m4: New file.
70651         * modules/isnan-nolibm (Depends-on): Add fpieee.
70652         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70653         * modules/isnanl (Depends-on): Add fpieee.
70654
70655 2007-03-25  Bruno Haible  <bruno@clisp.org>
70656
70657         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70658
70659 2007-03-25  Bruno Haible  <bruno@clisp.org>
70660
70661         Avoid test failures on IRIX 6.5.
70662         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70663         (main): Use it.
70664         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70665         macros.
70666         (main): Use them.
70667
70668 2007-03-25  Bruno Haible  <bruno@clisp.org>
70669
70670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70671         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70672         exists but doesn't work.
70673         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70674         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70676         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70677         math.h.
70678
70679 2007-03-25  Bruno Haible  <bruno@clisp.org>
70680
70681         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70682         returns inf. Needed on IRIX 6.5.
70683
70684 2007-03-25  Bruno Haible  <bruno@clisp.org>
70685
70686         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70687         (main): Use isnanl instead of x != x idiom.
70688         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70689
70690         * tests/test-frexp.c: Include isnan.h.
70691         (main): Use isnan instead of x != x idiom.
70692         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70693
70694 2007-03-25  Bruno Haible  <bruno@clisp.org>
70695
70696         * tests/test-frexp.c (NaN): New function/macro.
70697         (main): Use it instead of 0.0 / 0.0.
70698         * tests/test-isnan.c (NaN): New function/macro.
70699         (main): Use it instead of 0.0 / 0.0.
70700         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70701         (test_function): Use it instead of 0.0 / 0.0.
70702         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70703         (test_function): Use it instead of 0.0 / 0.0.
70704         * tests/test-snprintf-posix.h (NaN): New function/macro.
70705         (test_function): Use it instead of 0.0 / 0.0.
70706         * tests/test-sprintf-posix.h (NaN): New function/macro.
70707         (test_function): Use it instead of 0.0 / 0.0.
70708         * tests/test-fprintf-posix.h (NaN): New function/macro.
70709         (test_function): Use it instead of 0.0 / 0.0.
70710         * tests/test-printf-posix.h (NaN): New function/macro.
70711         (test_function): Use it instead of 0.0 / 0.0.
70712
70713         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70714
70715 2007-03-25  Bruno Haible  <bruno@clisp.org>
70716
70717         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70718
70719 2007-03-25  Bruno Haible  <bruno@clisp.org>
70720
70721         * lib/regexec.c (merge_state_with_log): Make static.
70722
70723 2007-03-25  Bruno Haible  <bruno@clisp.org>
70724
70725         * lib/trigl.c (kernel_rem_pio2): Make static.
70726
70727 2007-03-25  Bruno Haible  <bruno@clisp.org>
70728
70729         * lib/sincosl.c (sincosl_table): Make static.
70730
70731 2007-03-25  Bruno Haible  <bruno@clisp.org>
70732
70733         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70734         if the compiler does not support C99.
70735
70736 2007-03-25  Bruno Haible  <bruno@clisp.org>
70737
70738         * modules/time (Makefile.am): Ensure all rule action lines start with a
70739         tab.
70740
70741 2007-03-24  Bruno Haible  <bruno@clisp.org>
70742
70743         * modules/tsearch-tests: New file.
70744         * tests/test-tsearch.sh: New file.
70745         * tests/test-tsearch.c: New file, mostly copied from glibc.
70746
70747         * modules/search-tests: New file.
70748         * tests/test-search.c: New file.
70749
70750         * modules/search: New file.
70751         * lib/search_.h: New file, incorporating lib/tsearch.h.
70752         * m4/search_h.m4: New file.
70753         * lib/tsearch.h: Remove file.
70754         * lib/tsearch.c: Include search.h instead of tsearch.h.
70755         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70756         HAVE_TSEARCH.
70757         * modules/tsearch (Files): Remove lib/tsearch.h.
70758         (Depends-on): Add search.
70759         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70760         (Include): Change tsearch.h into search.h.
70761
70762 2007-03-24  Bruno Haible  <bruno@clisp.org>
70763
70764         * modules/fpucw: New file.
70765         * lib/fpucw.h: New file.
70766         * lib/frexp.c: Include fpucw.h.
70767         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70768         (FUNC): Use them.
70769         * lib/printf-frexp.c: Include fpucw.h.
70770         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70771         (FUNC): Use them.
70772         * lib/vasnprintf.c: Include fpucw.h.
70773         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70774         'long double' calculations.
70775         * tests/test-frexpl.c: Include fpucw.h.
70776         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70777         * tests/test-printf-frexpl.c: Include fpucw.h.
70778         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70779         * modules/frexpl (Depends-on): Add fpucw.
70780         * modules/printf-frexpl (Depends-on): Likewise.
70781         * modules/fprintf-posix (Depends-on): Likewise.
70782         * modules/snprintf-posix (Depends-on): Likewise.
70783         * modules/sprintf-posix (Depends-on): Likewise.
70784         * modules/vasnprintf-posix (Depends-on): Likewise.
70785         * modules/vasprintf-posix (Depends-on): Likewise.
70786         * modules/vfprintf-posix (Depends-on): Likewise.
70787         * modules/vsnprintf-posix (Depends-on): Likewise.
70788         * modules/vsprintf-posix (Depends-on): Likewise.
70789         * modules/frexpl-tests (Depends-on): Likewise.
70790         * modules/printf-frexpl-tests (Depends-on): Likewise.
70791
70792 2007-03-24  Bruno Haible  <bruno@clisp.org>
70793
70794         * lib/float+.h: New file.
70795         * lib/isnan.c: Include float+.h.
70796         (SIZE): New macro.
70797         (FUNC): Compare only SIZE bytes of the value.
70798         * lib/vasnprintf.c: Include float+.h.
70799         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70800         SIZEOF_LDBL or SIZEOF_DBL bytes.
70801         * modules/isnan-nolibm (Files): Add lib/float+.h.
70802         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70803         * modules/isnanl (Files): Add lib/float+.h.
70804         * modules/vasnprintf (Files): Add lib/float+.h.
70805
70806 2007-03-24  Bruno Haible  <bruno@clisp.org>
70807
70808         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70809         include isnanl-nolibm.h.
70810
70811 2007-03-24  Bruno Haible  <bruno@clisp.org>
70812
70813         * tests/test-read-file.c (main): Don't produce spurious output for
70814         expected situations. Make the test fail if it encountered unexpected
70815         results.
70816
70817 2007-03-24  Bruno Haible  <bruno@clisp.org>
70818
70819         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70820         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70821
70822 2007-03-24  Bruno Haible  <bruno@clisp.org>
70823
70824         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70825
70826 2007-03-24  Bruno Haible  <bruno@clisp.org>
70827
70828         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70829         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70830
70831         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70832         * modules/utf8-ucs4: Turn into a symbolic link to module
70833         unistr/u8-mbtouc.
70834
70835         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70836         utf8-ucs4-unsafe.
70837         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70838         unistr/u8-mbtouc-unsafe.
70839
70840         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70841         * modules/utf16-ucs4: Turn into a symbolic link to module
70842         unistr/u16-mbtouc.
70843
70844         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70845         utf16-ucs4-unsafe.
70846         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70847         unistr/u16-mbtouc-unsafe.
70848
70849         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70850         * modules/ucs4-utf8: Turn into a symbolic link to module
70851         unistr/u8-ubtomb.
70852
70853         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70854         * modules/ucs4-utf16: Turn into a symbolic link to module
70855         unistr/u16-ubtomb.
70856
70857 2007-03-24  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70860         Enable the function only if HAVE_INLINE.
70861         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70862         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70863         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70864         Enable the function only if HAVE_INLINE.
70865         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70866         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70867         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70868         Enable the function only if HAVE_INLINE.
70869         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70870         Enable the function only if HAVE_INLINE.
70871         * modules/utf8-ucs4: Update.
70872         * modules/utf8-ucs4-unsafe: Update.
70873         * modules/utf16-ucs4: Update.
70874         * modules/utf16-ucs4-unsafe: Update.
70875         * modules/ucs4-utf8: Update.
70876         * modules/ucs4-utf16: Update.
70877
70878 2007-03-24  Bruno Haible  <bruno@clisp.org>
70879
70880         * lib/utf8-ucs4.h: Remove file.
70881         * lib/utf8-ucs4-unsafe.h: Remove file.
70882         * lib/utf16-ucs4.h: Remove file.
70883         * lib/utf16-ucs4-unsafe.h: Remove file.
70884         * lib/ucs4-utf8.h: Remove file.
70885         * lib/ucs4-utf16.h: Remove file.
70886         * lib/unistr.h: Include their previous contents.
70887         * m4/utf-ucs4.m4: Remove file.
70888         * m4/ucs4-utf.m4: Remove file.
70889         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70890         (Depends-on): Add unistr/base.
70891         (configure.ac): Remove gl_UTF_UCS4.
70892         (Makefile.am): Update.
70893         (Include): Change to unistr.h.
70894         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70895         (Depends-on): Add unistr/base.
70896         (configure.ac): Remove gl_UTF_UCS4.
70897         (Makefile.am): Update.
70898         (Include): Change to unistr.h.
70899         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70900         (Depends-on): Add unistr/base.
70901         (configure.ac): Remove gl_UTF_UCS4.
70902         (Makefile.am): Update.
70903         (Include): Change to unistr.h.
70904         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70905         (Depends-on): Add unistr/base.
70906         (configure.ac): Remove gl_UTF_UCS4.
70907         (Makefile.am): Update.
70908         (Include): Change to unistr.h.
70909         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70910         (Depends-on): Add unistr/base.
70911         (configure.ac): Remove gl_UCS4_UTF.
70912         (Makefile.am): Update.
70913         (Include): Change to unistr.h.
70914         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70915         (Depends-on): Add unistr/base.
70916         (configure.ac): Remove gl_UCS4_UTF.
70917         (Makefile.am): Update.
70918         (Include): Change to unistr.h.
70919         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70920         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70921         utf8-ucs4-unsafe.h.
70922         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70923         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70924         utf16-ucs4-unsafe.h.
70925         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70926         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70927         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70928         * lib/unistr/u8-strchr.c: Likewise.
70929         * lib/unistr/u8-strrchr.c: Likewise.
70930         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70931         * lib/unistr/u16-strchr.c: Likewise.
70932         * lib/unistr/u16-strrchr.c: Likewise.
70933         * lib/striconveh.c: Update.
70934         * lib/linebreak.c: Update.
70935
70936 2007-03-24  Bruno Haible  <bruno@clisp.org>
70937
70938         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70939         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70940
70941 2007-03-22  Bruno Haible  <bruno@clisp.org>
70942
70943         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70944
70945 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * MODULES.html.sh (File system functions): New module write-any-file.
70948         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70949         * m4/write-any-file.m4: New files.
70950
70951 2007-03-23  Eric Blake  <ebb9@byu.net>
70952
70953         * gnulib-tool: Rearrange space-tab sequences, since some editors
70954         like to eat them.
70955
70956 2007-03-23  Eric Blake  <ebb9@byu.net>
70957
70958         * lib/version-etc.c (version_etc_va): Update license wording to
70959         be more concise.  Recommended by Richard Stallman.
70960
70961 2007-03-22  Bruno Haible  <bruno@clisp.org>
70962
70963         * lib/poll.c (MSG_PEEK): New fallback definition.
70964
70965 2007-03-22  Bruno Haible  <bruno@clisp.org>
70966
70967         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70968         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70969         (main): Update.
70970         Fixes a compilation error on BeOS.
70971
70972 2007-03-22  Bruno Haible  <bruno@clisp.org>
70973
70974         * modules/frexpl-tests: New file.
70975         * tests/test-frexpl.c: New file.
70976
70977         * modules/frexpl: New file.
70978         * m4/frexpl.m4: New file.
70979         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70980         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70982         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70983         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70984         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70985
70986 2007-03-22  Bruno Haible  <bruno@clisp.org>
70987
70988         * lib/frexpl.c: Share code with lib/frexp.c.
70989         * modules/mathl (Files): Add lib/frexp.c.
70990         (Depends-on): Add isnanl-nolibm.
70991
70992 2007-03-22  Bruno Haible  <bruno@clisp.org>
70993
70994         * modules/printf-frexp (Files): Add m4/frexp.m4.
70995         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70996         only if the found frexp function actually works.
70997
70998 2007-03-22  Bruno Haible  <bruno@clisp.org>
70999
71000         * lib/frexp.c: Remove older implementation that uses divisions.
71001
71002 2007-03-21  Bruno Haible  <bruno@clisp.org>
71003
71004         * modules/frexp-tests: New file.
71005         * tests/test-frexp.c: New file.
71006
71007         * modules/frexp: New file.
71008         * lib/frexp.c: New file.
71009         * m4/frexp.m4: New file.
71010         * lib/math_.h (frexp): New declaration.
71011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71012         REPLACE_FREXP.
71013         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71014
71015 2007-03-21  Bruno Haible  <bruno@clisp.org>
71016
71017         * modules/isnanl-tests: New file.
71018         * tests/test-isnanl.c: New file.
71019
71020         * modules/isnanl: New file.
71021         * lib/isnanl.h: New file.
71022         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71023         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71024         gl_FUNC_ISNANL_WORKS.
71025         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71026         New macros.
71027
71028 2007-03-21  Bruno Haible  <bruno@clisp.org>
71029
71030         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71031         lib/isnanl.h.
71032         (Include): Update.
71033         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71034         * lib/vasnprintf.c: Update.
71035         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71036         tests/test-isnanl.h, remove tests/test-isnanl.c.
71037         (Makefile.am): Update.
71038         * tests/test-isnanl-nolibm.c: New file.
71039         * tests/test-isnanl.h: New file.
71040         * tests/test-isnanl.c: Remove file.
71041
71042 2007-03-21  Jim Meyering  <jim@meyering.net>
71043
71044         When trying to open ".", treat ESTALE like EACCES.
71045         * lib/savewd.c (savewd_save): Resort to forking not just upon
71046         failure with EACCES, but also when errno is ESTALE.
71047
71048 2007-03-20  Bruno Haible  <bruno@clisp.org>
71049
71050         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71051         Needed on AIX 5.1. Reported by Matthew Woehlke.
71052
71053 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71054
71055         Suggestions by Bruno Haible:
71056         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71057         our own.
71058         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71059         * modules/acl (Depends-on): Add gettext.
71060
71061 2007-03-19  Bruno Haible  <bruno@clisp.org>
71062
71063         * modules/iconvme: Remove file.
71064         * lib/iconvme.h: Remove file.
71065         * lib/iconvme.c: Remove file.
71066         * m4/iconvme.m4: Remove file.
71067
71068 2007-03-19  Bruno Haible  <bruno@clisp.org>
71069
71070         * doc/relocatable-maint.texi: Break long shell script line.
71071         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71072
71073 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71074
71075         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71076         handle file_has_acl.
71077         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71078         * lib/acl.c: Move header inclusions and related macro defns into
71079         lib/acl-internal.h.
71080         (S_ISLNK): Remove defn, since that's now done for us.
71081         (file_has_acl): Move to lib/file-has-acl.c.
71082         Call acl_trivial if available.  This is the crucial part of the fix.
71083         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71084         shared within the library.  Rewrite a bit, partly to make it compatible
71085         with the GNU coding style.
71086         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71087         Remove unnecessary double-quotes.
71088         Don't test for acl_to_text; the build will catch that.
71089         Replace acl_entries if it doesn't exist and it is needed.
71090         Check for -lsec and acl_trivial (as used on Solaris 10).
71091         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71092         lib/file-has-acl.c.
71093         (Depends-on): Add sys_stat, for S_ISLNK.
71094
71095 2007-03-19  Ben Pfaff  <blp@gnu.org>
71096
71097         * doc/gnulib.texi: Fix typos.
71098         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71099
71100 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71103         If size is zero here, buf must be zero.
71104
71105 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71106
71107         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71108         <bruno@clisp.org>.
71109
71110 2007-03-18  Bruno Haible  <bruno@clisp.org>
71111
71112         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71113         Suggested by Eric Blake.
71114
71115 2007-03-18  Ben Pfaff  <blp@gnu.org>
71116
71117         * doc/relocatable.texi: Recommend using as prefix a directory
71118         that does not exist and will never be created.  Based on
71119         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71120         and others.
71121
71122 2007-03-17  Bruno Haible  <bruno@clisp.org>
71123
71124         * lib/fchownat.c: Include lchown.h.
71125
71126 2007-03-17  Bruno Haible  <bruno@clisp.org>
71127
71128         Fix endless loop when the given allocated size was > INT_MAX.
71129         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71130         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71131         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71132         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71133         * lib/sprintf.c (sprintf): Likewise.
71134
71135 2007-03-17  Bruno Haible  <bruno@clisp.org>
71136
71137         * tests/test-argp-2.sh (func_compare): Output a context diff.
71138
71139 2007-03-17  Bruno Haible  <bruno@clisp.org>
71140
71141         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71142         locale's decimal-point character.
71143
71144 2007-03-17  Bruno Haible  <bruno@clisp.org>
71145
71146         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71147         before comparing it. Needed because on some platforms (e.g. x86) a
71148         'long double' occupies less bytes than sizeof (long double).
71149
71150 2007-03-17  Bruno Haible  <bruno@clisp.org>
71151
71152         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71153         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71154         * tests/test-getaddrinfo.c (simple): Likewise.
71155         * tests/test-read-file.c (main): Likewise.
71156
71157 2007-03-17  Bruno Haible  <bruno@clisp.org>
71158
71159         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71160
71161 2007-03-17  Bruno Haible  <bruno@clisp.org>
71162
71163         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71164         unused variable.
71165
71166 2007-03-17  Bruno Haible  <bruno@clisp.org>
71167
71168         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71169         * tests/test-c-strncasecmp.c: Likewise.
71170
71171 2007-03-17  Bruno Haible  <bruno@clisp.org>
71172
71173         * modules/stdlib (Depends-on): Add unistd.
71174         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71175         Needed for MacOS X 10.3.
71176
71177 2007-03-17  Bruno Haible  <bruno@clisp.org>
71178
71179         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71180
71181 2007-03-17  Bruno Haible  <bruno@clisp.org>
71182
71183         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71184
71185 2007-03-17  Bruno Haible  <bruno@clisp.org>
71186
71187         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71188         to reflect files copied from gnulib (with or without modifications).
71189         Suggested by Jim Meyering.
71190
71191 2007-03-17  Eric Blake  <ebb9@byu.net>
71192
71193         * NEWS: Document stdlib change from 2007-02-18.
71194
71195 2007-03-17  Jim Meyering  <jim@meyering.net>
71196
71197         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71198         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71199         someone uses a name containing shell meta-characters.
71200         Reported by Alfred M. Szmidt.
71201
71202         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71203
71204 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71205
71206         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71207         and copy gettext configuration files only if configure.ac contains
71208         a use of AM_GNU_GETTEXT_VERSION.
71209
71210 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71211
71212         * build-aux/bootstrap (gnulib_name): New variable.
71213         (gnulib_tool_options): Use it.
71214
71215 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71216
71217         * tests/test-des.c: Use new namespace.
71218
71219 2007-03-15  Bruno Haible  <bruno@clisp.org>
71220
71221         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71222         Reported by James Youngman <jay@gnu.org>.
71223
71224 2007-03-15  Bruno Haible  <bruno@clisp.org>
71225
71226         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71227         declared prototype. Needed with cc on OSF/1 5.1.
71228
71229 2007-03-15  Bruno Haible  <bruno@clisp.org>
71230
71231         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71232         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71233         (struct gl_list_implementation): Add dispose_fn argument to the
71234         'create_empty', 'create' methods.
71235         (struct gl_list_impl_base): Add field 'dispose_fn'.
71236         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71237         argument.
71238         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71239         dispose_fn argument.
71240         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71241         dispose_fn on the dropped values.
71242         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71243         dispose_fn argument.
71244         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71245         dropped values.
71246         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71247         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71248         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71249         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71250         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71251         argument.
71252         (gl_tree_list_free): Call dispose_fn on the dropped values.
71253         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71254         the dropped values.
71255         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71256         Add dispose_fn argument.
71257         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71258         Call dispose_fn on the dropped values.
71259         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71260         Add dispose_fn argument.
71261         (gl_sublist_create): Initialize the 'dispose_fn' field.
71262         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71263         * tests/test-array_list.c (main): Update.
71264         * tests/test-carray_list.c (main): Update.
71265         * tests/test-avltree_list.c (main): Update.
71266         * tests/test-rbtree_list.c (main): Update.
71267         * tests/test-avltreehash_list.c (main): Update.
71268         * tests/test-rbtreehash_list.c (main): Update.
71269         * tests/test-linked_list.c (main): Update.
71270         * tests/test-linkedhash_list.c (main): Update.
71271         * tests/test-array_oset.c (main): Update.
71272
71273 2007-03-15  Bruno Haible  <bruno@clisp.org>
71274
71275         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71276         (gl_oset_create_empty): Add dispose_fn argument.
71277         (struct gl_oset_implementation): Add dispose_fn argument to
71278         'create_empty' method.
71279         (struct gl_oset_impl_base): Add dispose_fn field.
71280         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71281         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71282         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71283         values.
71284         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71285         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71286         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71287         dropped value.
71288         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71289         dropped value.
71290         * tests/test-array_oset.c (main): Update.
71291         * tests/test-avltree_oset.c (main): Update.
71292         * tests/test-rbtree_oset.c (main): Update.
71293         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71294
71295 2007-03-13  Bruno Haible  <bruno@clisp.org>
71296
71297         * tests/test-stdbool.c (i): Update after last patch.
71298
71299 2007-03-12  Bruno Haible  <bruno@clisp.org>
71300
71301         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71302         the iswprint macro. Needed on Solaris 2.5.1.
71303
71304 2007-03-12  Bruno Haible  <bruno@clisp.org>
71305
71306         * tests/test-printf-frexp.c (main): Declare x as volatile.
71307
71308 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71309
71310         * doc/gnulib.texi (Build robot for gnulib): New section.
71311
71312 2007-03-12  Jim Meyering  <jim@meyering.net>
71313
71314         * build-aux/bootstrap: New file.
71315         * build-aux/bootstrap.conf: New file, from coreutils.
71316
71317 2007-03-11  Bruno Haible  <bruno@clisp.org>
71318
71319         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71320
71321 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71322
71323         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71324         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71325         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71326
71327 2007-03-11  Bruno Haible  <bruno@clisp.org>
71328
71329         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71330         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71331
71332 2007-03-11  Bruno Haible  <bruno@clisp.org>
71333
71334         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71335         formula. Needed for SunPRO C 5.0.
71336
71337 2007-03-11  Bruno Haible  <bruno@clisp.org>
71338
71339         * modules/long-options (Depends-on): Add getopt.
71340
71341 2007-03-11  Bruno Haible  <bruno@clisp.org>
71342
71343         * modules/modechange (Depends-on): Add stdbool.
71344
71345 2007-03-11  Bruno Haible  <bruno@clisp.org>
71346
71347         * modules/i-ring (Depends-on): Add stdbool.
71348
71349 2007-03-11  Bruno Haible  <bruno@clisp.org>
71350
71351         * modules/gc-des (Depends-on): Add stdbool.
71352
71353 2007-03-11  Bruno Haible  <bruno@clisp.org>
71354
71355         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71356
71357 2007-03-11  Bruno Haible  <bruno@clisp.org>
71358
71359         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71360
71361 2007-03-11  Bruno Haible  <bruno@clisp.org>
71362
71363         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71364
71365 2007-03-11  Bruno Haible  <bruno@clisp.org>
71366
71367         * lib/vasnprintf.c (sprintf): Undefine.
71368
71369 2007-03-11  Bruno Haible  <bruno@clisp.org>
71370
71371         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71372         initializers in SunPRO C and Compaq C compilers.
71373
71374 2007-03-11  Bruno Haible  <bruno@clisp.org>
71375
71376         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71377         decrementing code ANSI C compliant.
71378
71379 2007-03-11  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71382         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71383
71384 2007-03-11  Bruno Haible  <bruno@clisp.org>
71385
71386         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71387         <stdbool.h> substitute doesn't pass.
71388
71389 2007-03-11  Bruno Haible  <bruno@clisp.org>
71390
71391         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71392
71393 2007-03-11  Bruno Haible  <bruno@clisp.org>
71394
71395         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71396         script, for submission to autobuild.josefsson.org.
71397
71398 2007-03-10  Bruno Haible  <bruno@clisp.org>
71399
71400         * modules/canonicalize-lgpl-tests: New file.
71401         * tests/test-canonicalize-lgpl.sh: New file.
71402         * tests/test-canonicalize-lgpl.c: New file.
71403
71404         * modules/c-strcase-tests: New file.
71405         * tests/test-c-strcase.sh: New file.
71406         * tests/test-c-strcasecmp.c: New file.
71407         * tests/test-c-strncasecmp.c: New file.
71408
71409         * modules/atexit-tests: New file.
71410         * tests/test-atexit.sh: New file.
71411         * tests/test-atexit.c: New file.
71412
71413 2007-03-10  Bruno Haible  <bruno@clisp.org>
71414
71415         * tests/test-binary-io.sh: Use temporary filenames that are not so
71416         likely to clash with those of other tests (in a parallel make).
71417         * tests/test-binary-io.c: Likewise.
71418
71419 2007-03-10  Bruno Haible  <bruno@clisp.org>
71420
71421         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71422         fallback; use #error instead.
71423         Suggested by Simon Josefsson.
71424
71425 2007-03-10  Bruno Haible  <bruno@clisp.org>
71426
71427         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71428         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71429         first and the last.
71430
71431 2007-03-10  Bruno Haible  <bruno@clisp.org>
71432
71433         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71434
71435 2007-03-10  Bruno Haible  <bruno@clisp.org>
71436
71437         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71438         "make distcheck".
71439         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71440         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71441         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71442
71443 2007-03-10  Bruno Haible  <bruno@clisp.org>
71444
71445         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71446         variable.
71447         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71448         variable.
71449
71450 2007-03-09  Eric Blake  <ebb9@byu.net>
71451         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71452
71453         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71454         types are not being provided by gnulib.
71455         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71456         types are supported.
71457
71458 2007-03-10  Bruno Haible  <bruno@clisp.org>
71459
71460         * lib/stdio_.h (__attribute__): New macro.
71461         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71462         vsprintf): Specify __attribute__ __format__ for GCC.
71463         Suggested by Eric Blake.
71464
71465 2007-03-09  Bruno Haible  <bruno@clisp.org>
71466
71467         * modules/printf-posix-tests: New file.
71468         * tests/test-printf-posix.sh: New file.
71469         * tests/test-printf-posix.c: New file.
71470
71471         * modules/printf-posix: New file.
71472         * lib/printf.c: New file.
71473         * m4/printf-posix-rpl.m4: New file.
71474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71475         REPLACE_PRINTF.
71476         * lib/stdio_.h (printf): New declaration.
71477         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71478         ____strfmon____): New macros.
71479         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71480         REPLACE_PRINTF.
71481
71482 2007-03-09  Bruno Haible  <bruno@clisp.org>
71483
71484         * tests/test-vasnprintf-posix2.sh: New file.
71485         * tests/test-vasnprintf-posix2.c: New file.
71486         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71487         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71488         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71489
71490         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71491         a locale dependent decimal point, rather than always '.'.
71492
71493 2007-03-09  Eric Blake  <ebb9@byu.net>
71494
71495         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71496         spite of platforms like Tandem/NSK that define it to -1.
71497
71498 2007-03-08  Bruno Haible  <bruno@clisp.org>
71499
71500         * modules/vprintf-posix-tests: New file.
71501         * tests/test-vprintf-posix.sh: New file.
71502         * tests/test-vprintf-posix.c: New file.
71503         * tests/test-printf-posix.h: New file.
71504
71505         * modules/vprintf-posix: New file.
71506         * lib/vprintf.c: New file.
71507         * m4/vprintf-posix.m4: New file.
71508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71509         REPLACE_VPRINTF.
71510         * lib/stdio_.h (vprintf): New declaration.
71511         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71512         REPLACE_VPRINTF.
71513
71514 2007-03-08  Bruno Haible  <bruno@clisp.org>
71515
71516         * modules/fprintf-posix-tests: New file.
71517         * tests/test-fprintf-posix.sh: New file.
71518         * tests/test-fprintf-posix.c: New file.
71519
71520         * modules/fprintf-posix: New file.
71521         * lib/fprintf.c: New file.
71522         * m4/fprintf-posix.m4: New file.
71523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71524         REPLACE_FPRINTF.
71525         * lib/stdio_.h (fprintf): New declaration.
71526         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71527         REPLACE_FPRINTF.
71528
71529 2007-03-08  Bruno Haible  <bruno@clisp.org>
71530
71531         * modules/vfprintf-posix-tests: New file.
71532         * tests/test-vfprintf-posix.sh: New file.
71533         * tests/test-vfprintf-posix.c: New file.
71534         * tests/test-fprintf-posix.h: New file.
71535         * tests/test-fprintf-posix.out: New file.
71536
71537         * modules/vfprintf-posix: New file.
71538         * lib/vfprintf.c: New file.
71539         * m4/vfprintf-posix.m4: New file.
71540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71541         REPLACE_VFPRINTF.
71542         * lib/stdio_.h (vfprintf): New declaration.
71543         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71544         REPLACE_VFPRINTF.
71545
71546 2007-03-08  Bruno Haible  <bruno@clisp.org>
71547
71548         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71549
71550 2007-03-08  Bruno Haible  <bruno@clisp.org>
71551
71552         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71553         instead of 'expr' invocations.
71554         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71556         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71557         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71558         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71559         Suggested by Paul Eggert.
71560
71561 2007-03-08  Bruno Haible  <bruno@clisp.org>
71562
71563         * modules/fseterr-tests: New file.
71564         * tests/test-fseterr.c: New file.
71565
71566         * modules/fseterr: New file.
71567         * lib/fseterr.h: New file.
71568         * lib/fseterr.c: New file.
71569
71570 2007-03-08  Bruno Haible  <bruno@clisp.org>
71571
71572         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71573         * lib/getopt_.h: Likewise.
71574         * lib/mbswidth.h: Likewise.
71575         * lib/setenv.h: Likewise.
71576         * lib/vasnprintf.h: Likewise.
71577         * lib/vasprintf.h: Likewise.
71578         * lib/verror.h: Likewise.
71579         * lib/xsetenv.h: Likewise.
71580         * lib/xvasprintf.h: Likewise.
71581
71582 2007-03-08  Jim Meyering  <jim@meyering.net>
71583
71584         * users.txt: Add parted.
71585
71586         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71587
71588 2007-03-07  Bruno Haible  <bruno@clisp.org>
71589
71590         * m4/printf.m4: Make the shell script snippets copy&pastable.
71591
71592 2007-03-02  Bruno Haible  <bruno@clisp.org>
71593
71594         * lib/netinet_in_.h: New file.
71595         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71596         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71597         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71598         (Depends-on): Add absolute-header.
71599         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71600         into netinet/in.h.
71601
71602 2007-03-03  Bruno Haible  <bruno@clisp.org>
71603
71604         * lib/sys_select_.h: New file.
71605         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71606         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71607         * modules/sys_select (Files): Add lib/sys_select_.h.
71608         (Depends-on): Add absolute-header.
71609         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71610         into sys/select.h.
71611
71612 2007-03-02  Bruno Haible  <bruno@clisp.org>
71613
71614         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71615         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71616         values.
71617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71618         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71619         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71620         * modules/sys_socket (Depends-on): Add absolute-header.
71621         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71622         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71623         (Include): Remove requirement of inclusion of <sys/types.h>.
71624
71625 2007-03-02  Bruno Haible  <bruno@clisp.org>
71626
71627         * lib/byteswap_.h (bswap_32): Fix formula.
71628
71629 2007-03-06  Bruno Haible  <bruno@clisp.org>
71630
71631         * modules/sprintf-posix-tests: New file.
71632         * tests/test-sprintf-posix.c: New file.
71633
71634         * modules/sprintf-posix: New file.
71635         * lib/sprintf.c: New file.
71636         * m4/sprintf-posix.m4: New file.
71637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71638         REPLACE_SPRINTF.
71639         * lib/stdio_.h (sprintf): New declaration.
71640         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71641         REPLACE_SPRINTF.
71642
71643 2007-03-06  Bruno Haible  <bruno@clisp.org>
71644
71645         * modules/vsprintf-posix-tests: New file.
71646         * tests/test-vsprintf-posix.c: New file.
71647         * tests/test-sprintf-posix.h: New file.
71648
71649         * modules/vsprintf-posix: New file.
71650         * lib/vsprintf.c: New file.
71651         * m4/vsprintf-posix.m4: New file.
71652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71653         REPLACE_VSPRINTF.
71654         * lib/stdio_.h (vsprintf): New declaration.
71655         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71656         REPLACE_VSPRINTF.
71657
71658 2007-03-06  Bruno Haible  <bruno@clisp.org>
71659
71660         * modules/vsnprintf (Depend-on): Remove minmax.
71661
71662 2007-03-06  Bruno Haible  <bruno@clisp.org>
71663
71664         * modules/snprintf-posix-tests: New file.
71665         * tests/test-snprintf-posix.c: New file.
71666
71667         * modules/snprintf-posix: New file.
71668         * m4/snprintf-posix.m4: New file.
71669         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71670         gl_FUNC_SNPRINTF.
71671         (gl_FUNC_SNPRINTF): Invoke it.
71672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71673         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71674         is set.
71675         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71676
71677 2007-03-06  Bruno Haible  <bruno@clisp.org>
71678
71679         * modules/vsnprintf-posix-tests: New file.
71680         * tests/test-vsnprintf-posix.c: New file.
71681         * tests/test-snprintf-posix.h: New file.
71682
71683         * modules/vsnprintf-posix: New file.
71684         * m4/vsnprintf-posix.m4: New file.
71685         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71686         gl_FUNC_VSNPRINTF.
71687         (gl_FUNC_VSNPRINTF): Invoke it.
71688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71689         * lib/stdio_.h (vsnprintf): Define as a replacement if
71690         REPLACE_VSNPRINTF is set.
71691         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71692
71693 2007-03-06  Bruno Haible  <bruno@clisp.org>
71694
71695         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71696         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71697
71698 2007-03-06  Bruno Haible  <bruno@clisp.org>
71699
71700         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71701         (asinl): Declare also if HAVE_DECL_ASINL is set.
71702         (atanl): Declare also if HAVE_DECL_ATANL is set.
71703         (ceill): Declare also if HAVE_DECL_CEILL is set.
71704         (cosl): Declare also if HAVE_DECL_COSL is set.
71705         (expl): Declare also if HAVE_DECL_EXPL is set.
71706         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71707         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71708         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71709         (logl): Declare also if HAVE_DECL_LOGL is set.
71710         (sinl): Declare also if HAVE_DECL_SINL is set.
71711         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71712         (tanl): Declare also if HAVE_DECL_TANL is set.
71713         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71715         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71716         declaration of frexpl, ldexpl.
71717         * modules/printf-frexpl (Depends-on): Add math.
71718         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71719
71720 2007-03-05  Bruno Haible  <bruno@clisp.org>
71721
71722         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71723         frexpl and ldexpl are declared.
71724         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71725
71726 2007-03-05  Bruno Haible  <bruno@clisp.org>
71727
71728         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71729         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71730
71731 2007-03-05  Bruno Haible  <bruno@clisp.org>
71732
71733         * lib/stdio_.h: Include <stddef.h>.
71734
71735 2007-03-05  Bruno Haible  <bruno@clisp.org>
71736
71737         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71738
71739 2007-03-05  Bruno Haible  <bruno@clisp.org>
71740
71741         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71742         NetBSD 4, from Ralf Wildenhues.
71743
71744 2007-03-04  Bruno Haible  <bruno@clisp.org>
71745
71746         * lib/vasprintf.h: Update #if logic for the case when the functions
71747         exist but are overridden.
71748
71749 2007-03-04  Bruno Haible  <bruno@clisp.org>
71750
71751         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71752         implementations: glibc-2.4 and MacOS X 10.3.
71753         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71754         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71755         * tests/test-vasprintf-posix.c (test_function): Likewise.
71756
71757 2007-03-04  Bruno Haible  <bruno@clisp.org>
71758
71759         * modules/vasprintf-posix-tests: New file.
71760         * tests/test-vasprintf-posix.c: New file.
71761
71762         * modules/vasprintf-posix: New file.
71763         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71764         defined.
71765         * m4/vasprintf-posix.m4: New file.
71766         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71767         gl_FUNC_VASPRINTF.
71768         (gl_FUNC_VASPRINTF): Invoke it.
71769         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71770         here.
71771         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71772
71773 2007-03-04  Bruno Haible  <bruno@clisp.org>
71774
71775         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71776         REPLACE_GETTIMEOFDAY.
71777         * modules/sys_time (Makefile.am): Likewise.
71778         * m4/sys_time_h.m4: Likewise.
71779         * m4/gettimeofday.m4: Likewise.
71780
71781 2007-03-04  Bruno Haible  <bruno@clisp.org>
71782
71783         * modules/vasnprintf-posix-tests: New file.
71784         * tests/test-vasnprintf-posix.c: New file.
71785
71786         * modules/vasnprintf-posix: New file.
71787         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71788         printf-frexpl.h.
71789         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71790         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71791         REPLACE_VASNPRINTF is defined.
71792         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71793         gl_FUNC_VASNPRINTF.
71794         (gl_FUNC_VASNPRINTF): Invoke it.
71795         * m4/vasnprintf-posix.m4: New file.
71796         * m4/printf.m4: New file.
71797
71798 2007-03-04  Bruno Haible  <bruno@clisp.org>
71799
71800         Compile progreloc.c only if --enable-relocatable is specified.
71801         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71802         if --enable-relocatable was specified.
71803         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71804         lib_SOURCES.
71805
71806 2007-03-04  Jim Meyering  <jim@meyering.net>
71807
71808         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71809         Use it consistently, rather than enumerating errno constants.
71810
71811 2007-03-04  Bruno Haible  <bruno@clisp.org>
71812
71813         * modules/xvasprintf-tests: New file.
71814         * tests/test-xvasprintf.c: New file.
71815
71816         * modules/vasprintf-tests: New file.
71817         * tests/test-vasprintf.c: New file.
71818
71819         * modules/vasnprintf-tests: New file.
71820         * tests/test-vasnprintf.c: New file.
71821
71822         * modules/vsnprintf-tests: New file.
71823         * tests/test-vsnprintf.c: New file.
71824
71825         * modules/snprintf-tests: New file.
71826         * tests/test-snprintf.c: New file.
71827
71828 2007-03-04  Bruno Haible  <bruno@clisp.org>
71829
71830         Compile relocatable.c only if --enable-relocatable is specified.
71831         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71832         gl_RELOCATABLE_LIBRARY.
71833         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71834         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71835         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71836         gl_RELOCATABLE_LIBRARY.
71837         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71838         (Makefile.am): Remove lib_SOURCES.
71839         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71840         gl_RELOCATABLE_LIBRARY.
71841         (Makefile.am): Remove lib_SOURCES.
71842         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71843         always.
71844         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71845         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71846
71847 2007-03-04  Bruno Haible  <bruno@clisp.org>
71848
71849         * modules/argmatch-tests: New file.
71850         * tests/test-argmatch.c: New file.
71851
71852         * tests/test-allocsa.c (main): Halve the number of loop runs.
71853
71854         * modules/alloca-opt-tests: New file.
71855         * tests/test-alloca-opt.c: New file.
71856
71857 2007-03-04  Jim Meyering  <jim@meyering.net>
71858
71859         Work around difference between Linux ACLs and Solaris 10 ZFS.
71860         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71861         for EINVAL.
71862
71863 2007-03-03  Bruno Haible  <bruno@clisp.org>
71864
71865         * modules/relocatable-prog (Depends-on): Add back progreloc's
71866         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71867
71868 2007-03-03  Bruno Haible  <bruno@clisp.org>
71869
71870         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71871         * modules/relocatable-lib: New file.
71872
71873 2007-03-03  Bruno Haible  <bruno@clisp.org>
71874
71875         * modules/relocatable-prog: Renamed from modules/relocatable.
71876         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71877
71878 2007-03-03  Bruno Haible  <bruno@clisp.org>
71879
71880         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71881         m4/relocatable-lib.m4.
71882         (Depends-on): Remove 'relocatable'.
71883         (configure.ac): Add gl_RELOCATABLE_NOP.
71884
71885 2007-03-03  Bruno Haible  <bruno@clisp.org>
71886
71887         * modules/relocatable-prog-wrapper: New file.
71888         * modules/relocatable (Depends-on): Add it. Remove all other
71889         dependencies except progname.
71890         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71891
71892         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71893         (gl_FUNC_STRERROR): Nop.
71894         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71895
71896         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71897         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71898
71899         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71900         (gl_FUNC_READLINK): Update.
71901
71902         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71903
71904 2007-03-03  Bruno Haible  <bruno@clisp.org>
71905
71906         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71907         * modules/xreadlink (Depends-on): Add unistd.
71908         * modules/xreadlink-with-size (Depends-on): Likewise.
71909
71910 2007-03-03  Bruno Haible  <bruno@clisp.org>
71911
71912         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71913         extracted from gt_FUNC_SETENV.
71914         (gt_FUNC_SETENV): Remove macro.
71915         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71916         remove gt_FUNC_SETENV.
71917
71918 2007-03-03  Bruno Haible  <bruno@clisp.org>
71919
71920         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71921         ENABLE_RELOCATABLE here.
71922         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71923
71924 2007-03-03  Bruno Haible  <bruno@clisp.org>
71925
71926         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71927         * tests/test-rbtreehash_list.c: Include progname.h.
71928         (main): Call set_program_name.
71929
71930         * modules/rbtree-oset-tests (Depends-on): Add progname.
71931         * tests/test-rbtree_oset.c: Include progname.h.
71932         (main): Call set_program_name.
71933
71934         * modules/rbtree-list-tests (Depends-on): Add progname.
71935         * tests/test-rbtree_list.c: Include progname.h.
71936         (main): Call set_program_name.
71937
71938         * modules/linked-list-tests (Depends-on): Add progname.
71939         * tests/test-linked_list.c: Include progname.h.
71940         (main): Call set_program_name.
71941
71942 2007-03-03  Bruno Haible  <bruno@clisp.org>
71943
71944         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71945         All uses of __restrict changed to _Restrict_.
71946         * lib/glob_.h (__restrict): Remove macro.
71947
71948 2007-03-02  Bruno Haible  <bruno@clisp.org>
71949
71950         * modules/gettext (configure.ac): Require gettext infrastructure
71951         from version 0.16.1.
71952
71953 2007-03-02  Bruno Haible  <bruno@clisp.org>
71954
71955         * modules/linkedhash-list-tests (Depends-on): Add progname.
71956         * tests/test-linkedhash_list.c: Include progname.h.
71957         (main): Call set_program_name.
71958
71959         * modules/carray-list-tests (Depends-on): Add progname.
71960         * tests/test-carray_list.c: Include progname.h.
71961         (main): Call set_program_name.
71962
71963         * modules/avltreehash-list-tests (Depends-on): Add progname.
71964         * tests/test-avltreehash_list.c: Include progname.h.
71965         (main): Call set_program_name.
71966
71967         * modules/avltree-oset-tests (Depends-on): Add progname.
71968         * tests/test-avltree_oset.c: Include progname.h.
71969         (main): Call set_program_name.
71970
71971         * modules/avltree-list-tests (Depends-on): Add progname.
71972         * tests/test-avltree_list.c: Include progname.h.
71973         (main): Call set_program_name.
71974
71975         * modules/array-oset-tests (Depends-on): Add progname.
71976         * tests/test-array_oset.c: Include progname.h.
71977         (main): Call set_program_name.
71978
71979         * modules/array-list-tests (Depends-on): Add progname.
71980         * tests/test-array_list.c: Include progname.h.
71981         (main): Call set_program_name.
71982
71983         * modules/argp-tests (Depends-on): Add progname.
71984         * tests/test-argp.c: Include argp.h first. Include progname.h.
71985         (main): Call set_program_name.
71986
71987 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         * doc/gnulib-tool.texi (Initial import): Reword description of
71990         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71991         limited effect even if defined after the first system include.
71992
71993 2007-03-01  Bruno Haible  <bruno@clisp.org>
71994
71995         * build-aux/config.libpath: Update to libtool-1.5.22.
71996         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71997
71998 2007-03-01  Bruno Haible  <bruno@clisp.org>
71999
72000         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72001         foo_CFLAGS.
72002         Reported by Ralf Wildenhues.
72003
72004 2007-03-01  Bruno Haible  <bruno@clisp.org>
72005
72006         * build-aux/install-reloc: Remove object files left over by some
72007         compilers.
72008         Reported by Ralf Wildenhues.
72009
72010 2007-03-01  Bruno Haible  <bruno@clisp.org>
72011
72012         * build-aux/install-reloc: Break long lines.
72013
72014 2007-03-01  Bruno Haible  <bruno@clisp.org>
72015
72016         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72017         Reported by Ralf Wildenhues.
72018
72019 2007-03-01  Bruno Haible  <bruno@clisp.org>
72020
72021         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72022         include ordering constraints.
72023
72024 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72025
72026         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72027         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72028         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72029         as another example.
72030         * lib/time_.h: Fix misspelling.
72031         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72032         Require gl_HEADER_TIME_H_DEFAULTS.
72033         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72034         * m4/time_r.m4 (gl_TIME_R): Likewise.
72035         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72036
72037 2007-03-01  Bruno Haible  <bruno@clisp.org>
72038
72039         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72040         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72041
72042 2007-03-01  Jim Meyering  <jim@meyering.net>
72043
72044         * modules/xreadlink (Maintainer): Add my name.
72045         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72046
72047 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72048             Bruno Haible  <bruno@clisp.org>
72049
72050         * build-aux/install-reloc: Compile also c-ctype.c.
72051         * build-aux/relocatable.sh.in: New file.
72052         * doc/relocatable.texi: New file.
72053         * doc/relocatable-maint.texi: New file.
72054         * doc/gnulib.texi: Include relocatable-maint.texi.
72055         * lib/progreloc.c: Include unistd.h unconditionally.
72056         * lib/relocwrapper.c: Include unistd.h unconditionally.
72057         Include c-ctype.h.
72058         (add_dotbin): Use c_tolower.
72059         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72060         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72061         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72062         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72063         to m4/relocatable-lib.m4.
72064         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72065         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72066         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72067         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72068         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72069         * modules/relocatable: New file.
72070         * modules/relocatable-lib: New file.
72071         * modules/relocatable-script: New file.
72072
72073 2007-02-28  Bruno Haible  <bruno@clisp.org>
72074
72075         Import --enable-relocatable infrastructure.
72076         * build-aux/config.libpath: New file, from GNU gettext.
72077         * build-aux/install-reloc: New file, from GNU gettext.
72078         * build-aux/reloc-ldflags: New file, from GNU gettext.
72079         * lib/relocatable.h: New file, from GNU gettext.
72080         * lib/relocatable.c: New file, from GNU gettext.
72081         * lib/relocwrapper.c: New file, from GNU gettext.
72082         * m4/relocatable.m4: New file, from GNU gettext.
72083
72084 2007-02-28  Bruno Haible  <bruno@clisp.org>
72085
72086         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72087
72088         * modules/xreadlink: New file, from GNU gettext with modifications.
72089         * lib/xreadlink.c: New file, from GNU gettext.
72090         * lib/xreadlink.h: Add comments.
72091         (xreadlink): New declaration.
72092
72093         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72094         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72095         lib/xreadlink-with-size.c.
72096         (configure.ac): Remove gl_XREADLINK invocation.
72097         (Makefile.am): Augment lib_SOURCES.
72098         * m4/xreadlink.m4: Remove file.
72099         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72100         (xreadlink_with_size): Renamed from xreadink.
72101         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72102         * modules/canonicalize (Depends-on): Replace xreadlink with
72103         xreadlink-with-size.
72104         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72105
72106 2007-02-25  Jim Meyering  <jim@meyering.net>
72107
72108         * build-aux/announce-gen: When complaining about excess arguments,
72109         list them.
72110
72111 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * README: Document signed integer overflow situation more
72114         accurately.
72115
72116 2007-02-25  Bruno Haible  <bruno@clisp.org>
72117
72118         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72119         'a' or 'A' conversion.
72120
72121 2007-02-25  Bruno Haible  <bruno@clisp.org>
72122
72123         * modules/filename: Renamed from modules/pathname.
72124         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72125         lib/concatpath.c with lib/concat-filename.c.
72126         (Makefile.am): Update.
72127         (Include): Replace pathname.h with filename.h.
72128         * lib/filename.h: Renamed from lib/pathname.h.
72129         (concatenated_filename): Renamed from concatenated_pathname.
72130         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72131         (concatenated_filename): Renamed from concatenated_pathname.
72132         * lib/findprog.c: Include filename.h instead of pathname.h.
72133         (find_in_path): Update.
72134         * lib/javacomp.c: Include filename.h instead of pathname.h.
72135         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72136         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72137         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72138         is_oldgcj_14_13_usable, is_javac_usable): Update.
72139         * lib/javaexec.c: Include filename.h instead of pathname.h.
72140         (execute_java_class): Update.
72141         * modules/findprog: Update.
72142         * modules/javacomp: Update.
72143         * modules/javaexec: Update.
72144         * MODULES.html.sh (File system functions): Add 'filename', remove
72145         'pathname'.
72146
72147 2007-02-25  Bruno Haible  <bruno@clisp.org>
72148
72149         * modules/printf-frexpl-tests: New file.
72150         * tests/test-printf-frexpl.c: New file.
72151
72152         * modules/printf-frexpl: New file.
72153         * lib/printf-frexpl.h: New file.
72154         * lib/printf-frexpl.c: New file.
72155         * m4/printf-frexpl.m4: New file.
72156
72157 2007-02-25  Bruno Haible  <bruno@clisp.org>
72158
72159         * modules/printf-frexp-tests: New file.
72160         * tests/test-printf-frexp.c: New file.
72161
72162         * modules/printf-frexp: New file.
72163         * lib/printf-frexp.h: New file.
72164         * lib/printf-frexp.c: New file.
72165         * m4/printf-frexp.m4: New file.
72166
72167 2007-02-25  Bruno Haible  <bruno@clisp.org>
72168
72169         Assume automake >= 1.10 for the tests.
72170         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72171         * modules/arctwo-tests: Likewise.
72172         * modules/argp-tests: Likewise.
72173         * modules/avltree-list-tests: Likewise.
72174         * modules/avltree-oset-tests: Likewise.
72175         * modules/avltreehash-list-tests: Likewise.
72176         * modules/carray-list-tests: Likewise.
72177         * modules/crc-tests: Likewise.
72178         * modules/des-tests: Likewise.
72179         * modules/gc-arcfour-tests: Likewise.
72180         * modules/gc-arctwo-tests: Likewise.
72181         * modules/gc-des-tests: Likewise.
72182         * modules/gc-hmac-md5-tests: Likewise.
72183         * modules/gc-hmac-sha1-tests: Likewise.
72184         * modules/gc-md2-tests: Likewise.
72185         * modules/gc-md4-tests: Likewise.
72186         * modules/gc-md5-tests: Likewise.
72187         * modules/gc-pbkdf2-sha1-tests: Likewise.
72188         * modules/gc-rijndael-tests: Likewise.
72189         * modules/gc-sha1-tests: Likewise.
72190         * modules/gc-tests: Likewise.
72191         * modules/getaddrinfo-tests: Likewise.
72192         * modules/hmac-md5-tests: Likewise.
72193         * modules/hmac-sha1-tests: Likewise.
72194         * modules/linked-list-tests: Likewise.
72195         * modules/linkedhash-list-tests: Likewise.
72196         * modules/lock-tests: Likewise.
72197         * modules/md2-tests: Likewise.
72198         * modules/md4-tests: Likewise.
72199         * modules/md5-tests: Likewise.
72200         * modules/rbtree-list-tests: Likewise.
72201         * modules/rbtree-oset-tests: Likewise.
72202         * modules/rbtreehash-list-tests: Likewise.
72203         * modules/read-file-tests: Likewise.
72204         * modules/rijndael-tests: Likewise.
72205         * modules/stdint-tests: Likewise.
72206         * modules/tls-tests: Likewise.
72207
72208 2007-02-24  Bruno Haible  <bruno@clisp.org>
72209
72210         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72211         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72212         function; instead check whether isnan with a double argument links.
72213         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72214         function; instead check whether isnan with a 'long double' argument
72215         links.
72216         Reported by Eric Blake <ebb9@byu.net>.
72217
72218 2007-02-24  Bruno Haible  <bruno@clisp.org>
72219
72220         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72221         defined.
72222         * lib/isnanl.c: Remove all code. Just include isnan.c.
72223         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72224
72225 2007-02-25  Jim Meyering  <jim@meyering.net>
72226
72227         Avoid conflicting types for 'unsetenv' on FreeBSD.
72228         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72229         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72230         in stdlib.h.
72231
72232 2007-02-24  Bruno Haible  <bruno@clisp.org>
72233
72234         * modules/isnanl-nolibm-tests: New file.
72235         * tests/test-isnanl.c: New file.
72236
72237         * modules/isnanl-nolibm: New file.
72238         * lib/isnanl.h: New file.
72239         * lib/isnanl.c: New file.
72240         * m4/isnanl.m4: New file.
72241
72242 2007-02-24  Bruno Haible  <bruno@clisp.org>
72243
72244         * modules/isnan-nolibm-tests: New file.
72245         * tests/test-isnan.c: New file.
72246
72247         * modules/isnan-nolibm: New file.
72248         * lib/isnan.h: New file.
72249         * lib/isnan.c: New file.
72250         * m4/isnan.m4: New file.
72251
72252 2007-02-24  Bruno Haible  <bruno@clisp.org>
72253
72254         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72255         assume that an exponent fits in 20 bits.
72256
72257 2007-02-24  Jim Meyering  <jim@meyering.net>
72258
72259         * m4/regex.m4: Update the description of the configure-time option,
72260         --without-included-regex, to state accurately what the defaults are,
72261         and perhaps to give people an idea why using this option is risky.
72262
72263 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72264
72265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72266         loops on small arguments.  This attempts to avoid the problem
72267         Bruno Haible reported for AIX 4.3.2 in
72268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72269
72270 2007-02-23  Bruno Haible  <bruno@clisp.org>
72271
72272         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72273         Needed for help2man.
72274
72275 2007-02-23  Karl Berry  <karl@gnu.org>
72276
72277         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72278         exists, foo.h should be cvs-ignored, not committed.
72279
72280 2007-02-23  Eric Blake  <ebb9@byu.net>
72281
72282         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72283         * lib/stat-time.h (includes): Likewise.
72284         * lib/utimecmp.c (includes): Likewise.
72285         * lib/utimens.h (includes): Likewise.
72286         * lib/getdate.y (includes): Also include "timespec.h" for use
72287         internal to the module.
72288         * modules/utimens (Depends-on): Revert yesterday's patch.
72289         * modules/nanosleep (Depends-on): Add missing dependency.
72290
72291 2007-02-22  Bruno Haible  <bruno@clisp.org>
72292
72293         * lib/glob.c: Don't include getlogin_r.h.
72294
72295 2007-02-22  Jim Meyering  <jim@meyering.net>
72296
72297         * modules/utimens (Depends-on): Add timespec, required for
72298         utimens.h's inclusion of timespec.h.
72299
72300 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72301
72302         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72303         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72304         Schwab in
72305         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72306         I'll try to think of a better way to fix the Solaris problem.
72307
72308         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72309         like glibc; on Solaris 10, it fails with errno == EINVAL.
72310         POSIX says the behavior is unspecified if the first argument is NULL,
72311         so play it safe and never pass NULL to the system getcwd.
72312
72313 2007-02-21  Jim Meyering  <jim@meyering.net>
72314
72315         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72316         of gettimeofday.  It would conflict with the one now always
72317         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72318         an IRIX 6.5 build failure.
72319
72320 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72321
72322         Minor fixups to port to Solaris 10 with Sun C 5.8.
72323         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72324         * modules/getcwd (Depends-on): Add dirfd.
72325         * lib/putenv.c (putenv): #undef it.
72326         (rpl_putenv): New decl.
72327         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72328
72329 2007-02-20  Bruno Haible  <bruno@clisp.org>
72330
72331         * modules/stdio-tests: New file.
72332         * tests/test-stdio.c: New file.
72333
72334         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72335         (Depends-on): Add stdio.
72336         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72337         (Include): Use <stdio.h> instead of vsnprintf.h.
72338         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72339         HAVE_DECL_VSNPRINTF.
72340         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72341
72342         * modules/snprintf (Files): Remove lib/snprintf.h.
72343         (Depends-on): Add stdio.
72344         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72345         (Include): Use <stdio.h> instead of snprintf.h.
72346         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72347         HAVE_DECL_SNPRINTF.
72348         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72349         * lib/getaddrinfo.c: Likewise.
72350
72351         * modules/stdio: New file.
72352         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72353         * lib/snprintf.h: Remove file.
72354         * lib/vsnprintf.h: Remove file.
72355         * lib/.cppi-disable: Remove snprintf.h.
72356         * m4/stdio_h.m4: New file.
72357         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72358
72359 2007-02-20  Jim Meyering  <jim@meyering.net>
72360
72361         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72362         used by e.g., mingw.  From Bruno Haible.
72363
72364 2007-02-19  Bruno Haible  <bruno@clisp.org>
72365
72366         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72367         warnings.
72368         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72369
72370 2007-02-19  Bruno Haible  <bruno@clisp.org>
72371
72372         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72373         from mingw users.
72374
72375 2007-02-19  Bruno Haible  <bruno@clisp.org>
72376
72377         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72378         warnings.
72379         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72380
72381 2007-02-19  Jim Meyering  <jim@meyering.net>
72382
72383         Don't use FD after a successful "fdopendir (fd)".
72384         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72385         Reset it by calling dirfd on the just-obtained DIR*.
72386
72387         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72388         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72389
72390 2007-02-18  Bruno Haible  <bruno@clisp.org>
72391
72392         * lib/readlink.c: Include <unistd.h>.
72393         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72394         HAVE_READLINK.
72395         * modules/readlink (Depends-on): Add unistd.
72396         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72397         (Include): Add <unistd.h>.
72398
72399         * lib/getlogin_r.h: Remove file.
72400         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72401         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72402         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72403         HAVE_DECL_GETLOGIN_R.
72404         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72405         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72406         (Include): Use <unistd.h> instead of getlogin_r.h.
72407
72408         * lib/getcwd.h: Remove file.
72409         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72410         * lib/xgetcwd.c: Likewise.
72411         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72412         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72413         * modules/getcwd (Files): Remove lib/getcwd.h.
72414         (Depends-on): Add unistd.
72415         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72416         (Include): Use <unistd.h> instad of getcwd.h.
72417
72418         * lib/ftruncate.c: Include <unistd.h> first.
72419         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72420         Set HAVE_FTRUNCATE.
72421         * modules/ftruncate (Depends-on): Add unistd.
72422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72423
72424         * lib/fchdir.c: Include <unistd.h> first.
72425         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72427         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72428         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72429         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72430
72431         * lib/dup2.c: Include <unistd.h> first.
72432         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72433         HAVE_DUP2.
72434         * modules/dup2 (Depends-on): Add unistd.
72435         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72436
72437         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72438         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72439         REPLACE_CHOWN. Don't define chown as a macro here.
72440         * modules/chown (Depends-on): Add unistd.
72441         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72442
72443         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72444         Add definition for GL_LINK_WARNING.
72445         (chown, dup2): New declarations.
72446         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72447         link warning.
72448         (ftruncate): New declaration.
72449         (getcwd): New declaration, taken from old getcwd.h.
72450         (getlogin_r): New declaration, taken from old getlogin_r.h.
72451         (readlink): New declaration.
72452         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72453         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72454         (gl_PREREQ_UNISTD): Remove macro.
72455         (gl_UNISTD_MODULE_INDICATOR): New macro.
72456         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72457         many new variables. Don't set UNISTD_H.
72458         * modules/unistd (Description): Change.
72459         (Depends-on): Add link-warning.
72460         (configure.ac): Update.
72461         (Makefile.am): Create unistd.h always. Substitute many new variables
72462         into it.
72463
72464 2007-02-18  Bruno Haible  <bruno@clisp.org>
72465
72466         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72467         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72468         HAVE_GETSUBOPT.
72469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72470         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72471         * lib/getsubopt.h: Remove file.
72472         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72473         (Depends-on): Add stdlib.
72474         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72475         (Includes): Use <stdlib.h> instead of getsubopt.h.
72476         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72477         Set HAVE_GETSUBOPT.
72478         * lib/getsubopt.c: Don't include getsubopt.h.
72479
72480 2007-02-18  Bruno Haible  <bruno@clisp.org>
72481
72482         * modules/fchdir (Depends-on): Add dup2.
72483
72484 2007-02-18  Bruno Haible  <bruno@clisp.org>
72485
72486         * lib/stdlib_.h: Handle glibc's special invocation convention
72487         specially.
72488
72489 2007-02-18  Bruno Haible  <bruno@clisp.org>
72490
72491         * modules/stdlib-tests: New file.
72492         * tests/test-stdlib.c: New file.
72493
72494         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72495         (Depends-on): Add stdlib.
72496         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72497         (Includes): Use <stdlib.h> instead of mkstemp.h.
72498         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72499         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72500         * lib/mkstemp.c: Don't include mkstemp.h.
72501         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72502         * lib/stdlib--.h: Don't include mkstemp.h.
72503
72504         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72505         (Depends-on): Add stdlib.
72506         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72507         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72508         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72509         HAVE_MKDTEMP.
72510         * lib/mkdtemp.c: Don't include mkdtemp.h.
72511         * lib/clean-temp.c: Don't include mkdtemp.h.
72512
72513         * modules/exit (Files): Remove lib/exit.h.
72514         (Depends-on): Add stdlib.
72515         (Makefile.am): Remove lib_SOURCES.
72516         (Include): Use <stdlib.h> instead of exit.h.
72517         * lib/argmatch.c: Don't include exit.h.
72518         * lib/execute.c: Likewise.
72519         * lib/pagealign_alloc.c: Likewise.
72520         * lib/pipe.c: Likewise.
72521         * lib/wait-process.c: Likewise.
72522         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72523         * lib/exitfail.c: Likewise.
72524         * lib/savewd.c: Likewise.
72525         * lib/xsetenv.c: Likewise.
72526
72527         * modules/stdlib: New file.
72528         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72529         and extra comments about mkstemp().
72530         * lib/exit.h: Remove file.
72531         * lib/mkdtemp.h: Remove file.
72532         * lib/mkstemp.h: Remove file.
72533         * m4/stdlib_h.m4: New file.
72534         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72535
72536 2007-02-18  Bruno Haible  <bruno@clisp.org>
72537
72538         * modules/math-tests: New file.
72539         * tests/test-math.c: New file.
72540
72541         * modules/math: New file.
72542         * modules/mathl (Files): Remove lib/mathl.h.
72543         (Depends-on): Add math.
72544         (Makefile.am): Don't mention mathl.h.
72545         (Include): Use <math.h> instead of mathl.h.
72546         * lib/math_.h: New file.
72547         * lib/mathl.h: Remove file.
72548         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72549         mathl.h.
72550         * lib/asinl.c: Likewise.
72551         * lib/atanl.c: Likewise.
72552         * lib/ceill.c: Likewise.
72553         * lib/cosl.c: Likewise.
72554         * lib/expl.c: Likewise.
72555         * lib/floorl.c: Likewise.
72556         * lib/frexpl.c: Likewise.
72557         * lib/ldexpl.c: Likewise.
72558         * lib/logl.c: Likewise.
72559         * lib/sincosl.c: Likewise.
72560         * lib/sinl.c: Likewise.
72561         * lib/sqrtl.c: Likewise.
72562         * lib/tanl.c: Likewise.
72563         * lib/trigl.c: Likewise.
72564         * m4/math_h.m4: New file.
72565         * MODULES.html.sh (Mathematics): Add math.
72566
72567 2007-02-17  Bruno Haible  <bruno@clisp.org>
72568
72569         * modules/wctype-tests: New file.
72570         * tests/test-wctype.c: New file.
72571
72572         * modules/wchar-tests: New file.
72573         * tests/test-wchar.c: New file.
72574
72575         * modules/unistd-tests: New file.
72576         * tests/test-unistd.c: New file.
72577
72578         * modules/time-tests: New file.
72579         * tests/test-time.c: New file.
72580
72581         * modules/sysexits-tests: New file.
72582         * tests/test-sysexits.c: New file.
72583
72584         * modules/sys_time-tests: New file.
72585         * tests/test-sys_time.c: New file.
72586
72587         * modules/sys_stat-tests: New file.
72588         * tests/test-sys_stat.c: New file.
72589
72590         * modules/sys_socket-tests: New file.
72591         * tests/test-sys_socket.c: New file.
72592
72593         * modules/sys_select-tests: New file.
72594         * tests/test-sys_select.c: New file.
72595
72596         * modules/string-tests: New file.
72597         * tests/test-string.c: New file.
72598
72599         * modules/stdbool-tests: New file.
72600         * tests/test-stdbool.c: New file.
72601
72602         * modules/netinet_in-tests: New file.
72603         * tests/test-netinet_in.c: New file.
72604
72605         * modules/inttypes-tests: New file.
72606         * tests/test-inttypes.c: New file.
72607
72608         * modules/fcntl-tests: New file.
72609         * tests/test-fcntl.c: New file.
72610
72611         * modules/byteswap-tests: New file.
72612         * tests/test-byteswap.c: New file.
72613
72614         * modules/arpa_inet-tests: New file.
72615         * tests/test-arpa_inet.c: New file.
72616
72617 2007-02-17  Bruno Haible  <bruno@clisp.org>
72618
72619         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72620         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72621         if the corresponding module is not enabled. Emit link warnings if
72622         the function is used nevertheless.
72623         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72624         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72625         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72626         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72627         * modules/inttypes (Depends-on): Add link-warning.
72628         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72629         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72630         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72631         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72632         * modules/imaxdiv (configure.ac): Likewise.
72633         * modules/strtoimax (configure.ac): Likewise.
72634         * modules/strtoumax (configure.ac): Likewise.
72635
72636 2007-02-17  Bruno Haible  <bruno@clisp.org>
72637
72638         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72639         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72640         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72641         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72642
72643 2007-02-17  Bruno Haible  <bruno@clisp.org>
72644
72645         * modules/link-warning: New file.
72646         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72647         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72648         * modules/string (Depends-on): Add link-warning.
72649         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72650         string.h.
72651         * MODULES.html.sh (Support for building libraries and executables): Add
72652         link-warning.
72653
72654 2007-02-17  Bruno Haible  <bruno@clisp.org>
72655
72656         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72657         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72658         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72659         long lines.
72660
72661 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72662             Bruno Haible  <bruno@clisp.org>
72663
72664         * modules/tmpfile: New file.
72665         * lib/tmpfile.c: New file.
72666         * m4/tmpfile.m4: New file.
72667         * MODULES.html.sh (func_all_modules): New section "Input/output".
72668
72669 2007-02-15  Bruno Haible  <bruno@clisp.org>
72670
72671         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72672         (supports_delete_on_close): New function.
72673         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72674
72675 2007-02-14  Bruno Haible  <bruno@clisp.org>
72676
72677         * modules/mbspcasecmp-tests: New file.
72678         * tests/test-mbspcasecmp.sh: New file.
72679         * tests/test-mbspcasecmp.c: New file.
72680
72681         New module mbspcasecmp.
72682         * modules/mbspcasecmp: New file.
72683         * lib/mbspcasecmp.c: New file.
72684         * lib/string_.h (strncasecmp): Change warning message.
72685         (mbspcasecmp): New declaration.
72686         * m4/mbspcasecmp.m4: New file.
72687         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72688         GNULIB_MBSPCASECMP.
72689         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72690         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72691
72692 2007-02-14  Bruno Haible  <bruno@clisp.org>
72693
72694         * modules/mbsncasecmp-tests: New file.
72695         * tests/test-mbsncasecmp.sh: New file.
72696         * tests/test-mbsncasecmp.c: New file.
72697
72698         New module mbsncasecmp.
72699         * modules/mbsncasecmp: New file.
72700         * lib/mbsncasecmp.c: New file.
72701         * lib/string_.h (mbsncasecmp): New declaration.
72702         * m4/mbsncasecmp.m4: New file.
72703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72704         GNULIB_MBSNCASECMP.
72705         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72706         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72707
72708 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72711         Verify that it doesn't overlap with our flags.
72712         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72713         do not have the desired effect in multibyte locales; instead, use
72714         mbscasecmp.
72715         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72716         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72717         we don't require GNU fnmatch ourselves (if our users require it, they
72718         should do so explicitly).
72719
72720         Fix regex code so it doesn't rely on strcasecmp.
72721         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72722         Otherwise, include gnulib's langinfo.h.
72723         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72724         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72725         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72726         * modules/regex (FILES): Remove m4/codeset.m4.
72727         (Depends-on): Add localcharset.  Remove strcase.
72728
72729 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72730
72731         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72732         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72733
72734 2007-02-13  Bruno Haible  <bruno@clisp.org>
72735
72736         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72737         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72738
72739 2007-02-12  Bruno Haible  <bruno@clisp.org>
72740
72741         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72742         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72743         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72744         time warning rather than a link error.
72745
72746 2007-02-12  Bruno Haible  <bruno@clisp.org>
72747
72748         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72749         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72750         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72751
72752 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72753
72754         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72755         args, not 2.
72756
72757 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72758
72759         New module 'time', so that apps can include <time.h> as per
72760         POSIX and GNU instead of separate include files like time_r.h
72761         and timegm.h.  This implementation tries out a simpler approach
72762         for replacing decls in standard include files (as compared to
72763         the string module), somewhat as an experiment.
72764
72765         * config/srclist.txt: Comment out mktime.c for now.
72766         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72767         since it doesn't apply any more.  Use generic wording instead.
72768         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72769         'time'.
72770         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72771         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72772         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72773         Don't include <sys/types.h>; no longer needed since we assume C89.
72774         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72775         * lib/strftime.c: Likewise.
72776         * lib/time_r.c: Likewise.
72777         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72778         * lib/nanosleep.c: Include <time.h> first, to check interface.
72779         * lib/strptime.c: Likewise.
72780         * lib/time_r.c: Likewise.
72781         * lib/timegm.c: Likewise.
72782         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72783         needed.
72784         * lib/timegm.c: Don't include timegm.h; no longer needed.
72785         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72786         time.h now handles any problems in that area.
72787         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72788         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72789         that time.h defines struct timespec.
72790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72791         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72792         handles that.
72793         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72794         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72795         needed.  Set REPLACE_LOCALTIME.
72796         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72797         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72798         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72799         nanosleep; time_h.m4 now does that.  Don't require
72800         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72801         module handles this now.
72802         * modules/getdate (Depends-on): Remove timespec.  Add time.
72803         * modules/nanosleep (Depends-on): Likewise.
72804         * modules/stat-time (Depends-on): Likewise.
72805         * modules/nanosleep (Include): Include time.h, not timespec.h.
72806         * modules/strptime (Files): Remove lib/strptime.h.
72807         (Depends-on): Add extensions, time.
72808         (Include): Include time.h, not strptime.h.
72809         * modules/time_r (Files): Remove lib/time_r.h.
72810         (Depends-on): Add time.
72811         (Include): Include time.h, not time_r.h.
72812         * modules/timegm: Likewise.
72813         * modules/timespec (Description): Now does timespec-related decls
72814         of our own, instead of struct timespec itself.
72815         (Depends-on): Add time; remove extensions.
72816         (Maintainer): Add self.
72817         * modules/utimecmp (Depends-on): Add time; remove timespec.
72818         * modules/utimens (Depends-on): Likewise.
72819         * modules/xnanosleep (Depends-on): Likewise.
72820
72821 2007-02-11  Bruno Haible  <bruno@clisp.org>
72822
72823         * lib/c-strstr.c: Include allocsa.h.
72824         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72825         * lib/c-strcasestr.c: Include allocsa.h.
72826         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72827         * lib/strcasestr.c: Include allocsa.h.
72828         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72829         * lib/mbsstr.c: Include allocsa.h.
72830         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72831         allocsa/freesa instead of malloc/free.
72832         * lib/mbscasestr.c: Include allocsa.h.
72833         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72834         allocsa/freesa instead of malloc/free.
72835         * modules/c-strstr (Depends-on): Add allocsa.
72836         * modules/c-strcasestr (Depends-on): Likewise.
72837         * modules/strcasestr (Depends-on): Likewise.
72838         * modules/mbsstr (Depends-on): Likewise.
72839         * modules/mbscasestr (Depends-on): Likewise.
72840
72841 2007-02-11  Bruno Haible  <bruno@clisp.org>
72842
72843         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72844
72845         * modules/mbsspn-tests: New file.
72846         * tests/test-mbsspn.sh: New file.
72847         * tests/test-mbsspn.c: New file.
72848
72849 2007-02-11  Bruno Haible  <bruno@clisp.org>
72850
72851         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72852
72853         * modules/mbspbrk-tests: New file.
72854         * tests/test-mbspbrk.sh: New file.
72855         * tests/test-mbspbrk.c: New file.
72856
72857 2007-02-11  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72860         unneeded cast.
72861
72862         * modules/mbscspn-tests: New file.
72863         * tests/test-mbscspn.sh: New file.
72864         * tests/test-mbscspn.c: New file.
72865
72866 2007-02-11  Bruno Haible  <bruno@clisp.org>
72867
72868         * modules/mbscasecmp-tests: New file.
72869         * tests/test-mbscasecmp.sh: New file.
72870         * tests/test-mbscasecmp.c: New file.
72871
72872 2007-02-11  Bruno Haible  <bruno@clisp.org>
72873
72874         Ensure O(n) worst-case complexity of mbscasestr.
72875         * lib/mbscasestr.c: Include stdbool.h.
72876         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72877         functions.
72878         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72879         the bookkeeping indicates that it's worth it.
72880         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72881
72882         * modules/mbscasestr-tests: New file.
72883         * tests/test-mbscasestr1.c: New file.
72884         * tests/test-mbscasestr2.sh: New file.
72885         * tests/test-mbscasestr2.c: New file.
72886         * tests/test-mbscasestr3.sh: New file.
72887         * tests/test-mbscasestr3.c: New file.
72888         * tests/test-mbscasestr4.sh: New file.
72889         * tests/test-mbscasestr4.c: New file.
72890         * m4/locale-tr.m4: New file.
72891
72892 2007-02-11  Bruno Haible  <bruno@clisp.org>
72893
72894         Ensure O(n) worst-case complexity of mbsstr.
72895         * lib/mbsstr.c: Include stdbool.h.
72896         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72897         functions.
72898         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72899         bookkeeping indicates that it's worth it.
72900         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72901
72902         * modules/mbsstr-tests: New file.
72903         * tests/test-mbsstr1.c: New file.
72904         * tests/test-mbsstr2.sh: New file.
72905         * tests/test-mbsstr2.c: New file.
72906         * tests/test-mbsstr3.sh: New file.
72907         * tests/test-mbsstr3.c: New file.
72908         * m4/locale-fr.m4: New file.
72909
72910 2007-02-11  Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/mbsrchr.c (mbsrchr): Fix bug.
72913
72914         * modules/mbsrchr-tests: New file.
72915         * tests/test-mbsrchr.sh: New file.
72916         * tests/test-mbsrchr.c: New file.
72917
72918 2007-02-11  Bruno Haible  <bruno@clisp.org>
72919
72920         * lib/mbschr.c (mbschr): Fix bug.
72921
72922         * modules/mbschr-tests: New file.
72923         * tests/test-mbschr.sh: New file.
72924         * tests/test-mbschr.c: New file.
72925         * m4/locale-zh.m4: New file.
72926
72927 2007-02-11  Bruno Haible  <bruno@clisp.org>
72928
72929         Support for copying multibyte string iterators.
72930         * lib/mbiter.h: Include <string.h>.
72931         (mbiter_multi_copy): New function.
72932         (mbi_copy): New macro.
72933         * lib/mbuiter.h: Include <string.h>.
72934         (mbuiter_multi_copy): New function.
72935         (mbui_copy): New macro.
72936
72937 2007-02-11  Bruno Haible  <bruno@clisp.org>
72938
72939         New module mbslen.
72940         * modules/mbslen: New file.
72941         * lib/mbslen.c: New file.
72942         * lib/string_.h (mbslen): New declaration.
72943         * m4/mbslen.m4: New file.
72944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72945         GNULIB_MBSLEN.
72946         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72947         * MODULES.html.sh (Internationalization functions): Add mbslen.
72948
72949 2007-02-11  Bruno Haible  <bruno@clisp.org>
72950
72951         Ensure O(n) worst-case complexity of strcasestr substitute.
72952         * lib/strcasestr.c: Include stdbool.h.
72953         (knuth_morris_pratt): New function.
72954         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72955         bookkeeping indicates that it's worth it.
72956         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72957
72958         * modules/strcasestr-tests: New file.
72959         * tests/test-strcasestr.c: New file.
72960
72961 2007-02-11  Bruno Haible  <bruno@clisp.org>
72962
72963         Ensure O(n) worst-case complexity of c_strcasestr.
72964         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72965         (knuth_morris_pratt): New function.
72966         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72967         the bookkeeping indicates that it's worth it.
72968         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72969
72970         * modules/c-strcasestr-tests: New file.
72971         * tests/test-c-strcasestr.c: New file.
72972
72973 2007-02-11  Bruno Haible  <bruno@clisp.org>
72974
72975         Ensure O(n) worst-case complexity of c_strstr.
72976         * lib/c-strstr.c: Include stdbool.h, string.h.
72977         (knuth_morris_pratt): New function.
72978         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72979         bookkeeping indicates that it's worth it.
72980         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72981
72982         * lib/c-strstr.c: Complete rewrite for maintainability.
72983
72984         * modules/c-strstr-tests: New file.
72985         * tests/test-c-strstr.c: New file.
72986
72987 2007-02-11  Bruno Haible  <bruno@clisp.org>
72988
72989         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72990         5.2.1 and earlier, whereby \055 was treated just like the range
72991         delimiter '-'.
72992         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72993
72994 2007-02-08  Bruno Haible  <bruno@clisp.org>
72995
72996         * modules/regex (Depends-on): Add stdbool.
72997         Reported by Dalibor Topic <robilad@kaffe.org>.
72998
72999 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73002         Prefer returning from main to exiting from it.
73003         Remove unnecessary parens after sizeof.
73004
73005 2007-02-05  Bruno Haible  <bruno@clisp.org>
73006
73007         New module mbssep.
73008         * modules/mbssep: New file.
73009         * lib/mbssep.c: New file.
73010         * lib/string_.h (strsep): Add a conditional link warning.
73011         (mbssep): New declaration.
73012         * m4/mbssep.m4: New file.
73013         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73014         GNULIB_MBSSEP.
73015         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73016         * MODULES.html.sh (Internationalization functions): Add mbssep.
73017
73018 2007-02-05  Bruno Haible  <bruno@clisp.org>
73019
73020         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73021         Optimize search in case of 1 delimiter.
73022
73023 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73024
73025         * lib/acl.h: Include sys/types.h before sys/acl.h.
73026
73027 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73028
73029         Merge upstream fix for glibc bugzilla #3957:
73030
73031         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73032
73033         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73034         bit for RE_HAT_LISTS_NOT_NEWLINE.
73035         (build_charclass_op): Remove bogus comment.
73036
73037 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73038
73039         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73040
73041 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73042
73043         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73044         * lib/memmem.c [!defined _LIBC]: Include config.h.
73045
73046 2007-02-04  Bruno Haible  <bruno@clisp.org>
73047
73048         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73049         warning message.
73050
73051 2007-02-04  Bruno Haible  <bruno@clisp.org>
73052
73053         New module mbstok_r.
73054         * modules/mbstok_r: New file.
73055         * lib/mbstok_r.c: New file.
73056         * lib/string_.h (strtok_r): Change argument names to match the
73057         comments. Add a conditional link warning.
73058         (mbstok_r): New declaration.
73059         * m4/mbstok_r.m4: New file.
73060         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73061         GNULIB_MBSTOK_R.
73062         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73063         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73064
73065 2007-02-04  Bruno Haible  <bruno@clisp.org>
73066
73067         New module mbsspn.
73068         * modules/mbsspn: New file.
73069         * lib/mbsspn.c: New file.
73070         * lib/string_.h (strspn): Add a conditional link warning.
73071         (mbsspn): New declaration.
73072         * m4/mbsspn.m4: New file.
73073         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73074         GNULIB_MBSSPN.
73075         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73076         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73077
73078 2007-02-04  Bruno Haible  <bruno@clisp.org>
73079
73080         New module mbspbrk.
73081         * modules/mbspbrk: New file.
73082         * lib/mbspbrk.c: New file.
73083         * lib/string_.h (strpbrk): Add a conditional link warning.
73084         (mbspbrk): New declaration.
73085         * m4/mbspbrk.m4: New file.
73086         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73087         GNULIB_MBSPBRK.
73088         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73089         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73090
73091 2007-02-04  Bruno Haible  <bruno@clisp.org>
73092
73093         New module mbscspn.
73094         * modules/mbscspn: New file.
73095         * lib/mbscspn.c: New file.
73096         * lib/string_.h (strcspn): Add a conditional link warning.
73097         (mbscspn): New declaration.
73098         * m4/mbscspn.m4: New file.
73099         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73100         GNULIB_MBSCSPN.
73101         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73102         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73103
73104 2007-02-04  Bruno Haible  <bruno@clisp.org>
73105
73106         New module mbscasestr, reduced goal of strcasestr.
73107         * modules/mbscasestr: New file.
73108         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73109         (mbscasestr): Renamed from strcasestr.
73110         * lib/strcasestr.c: Don't include mbuiter.h.
73111         (strcasestr): Remove support for multibyte locales.
73112         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73113         Change the conditional link warning.
73114         (mbscasestr): New declaration.
73115         * m4/mbscasestr.m4: New file.
73116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73117         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73118         REPLACE_STRCASESTR.
73119         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73121         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73122         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73123         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73124         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73125         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73126         (Depends-on): Remove mbuiter.
73127         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73128
73129 2007-02-04  Bruno Haible  <bruno@clisp.org>
73130
73131         Simplify handling of strncasecmp.
73132         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73133         the conditional link warning.
73134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73135         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73136         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73137         * modules/strcase (configure.ac): Don't invoke
73138         gl_STRING_MODULE_INDICATOR.
73139         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73140
73141 2007-02-04  Bruno Haible  <bruno@clisp.org>
73142
73143         New module mbscasecmp, reduced goal of strcasecmp.
73144         * modules/mbscasecmp: New file.
73145         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73146         (mbscasecmp): Renamed from strcasecmp.
73147         * lib/strcasecmp.c: Don't include mbuiter.h.
73148         (strcasecmp): Remove support for multibyte locales.
73149         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73150         Change the conditional link warning.
73151         (mbscasecmp): New declaration.
73152         * m4/mbscasecmp.m4: New file.
73153         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73154         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73155         REPLACE_STRCASECMP.
73156         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73158         GNULIB_MBSCASECMP.
73159         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73160         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73161         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73162         (Depends-on): Remove mbuiter.
73163         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73164
73165 2007-02-04  Bruno Haible  <bruno@clisp.org>
73166
73167         New module mbsstr. Remove module strstr.
73168         * modules/mbsstr: New file.
73169         * modules/strstr: Remove file.
73170         * lib/mbsstr.c: Renamed from lib/strstr.c.
73171         (mbsstr): Renamed from strstr.
73172         * lib/string_.h (strstr): Remove declaration. Change the conditional
73173         link warning.
73174         (mbsstr): New declaration.
73175         * m4/mbsstr.m4: New file.
73176         * m4/strstr.m4: Remove file.
73177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73178         REPLACE_STRSTR.
73179         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73180         Don't initialize GNULIB_STRSTR.
73181         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73182         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73183         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73184         (Support for systems lacking ANSI C 89): Remove strstr.
73185
73186 2007-02-04  Bruno Haible  <bruno@clisp.org>
73187
73188         New module mbsrchr.
73189         * modules/mbsrchr: New file.
73190         * lib/mbsrchr.c: New file.
73191         * lib/string_.h (strrchr): Add a conditional link warning.
73192         (mbsrchr): New declaration.
73193         * m4/mbsrchr.m4: New file.
73194         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73195         GNULIB_MBSRCHR.
73196         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73197         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73198
73199 2007-02-04  Bruno Haible  <bruno@clisp.org>
73200
73201         New module mbschr.
73202         * modules/mbschr: New file.
73203         * lib/mbschr.c: New file.
73204         * lib/string_.h (strchr): Add a conditional link warning.
73205         (mbschr): New declaration.
73206         * m4/mbschr.m4: New file.
73207         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73208         GNULIB_MBSCHR.
73209         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73210         * MODULES.html.sh (Internationalization functions): Add mbschr.
73211
73212 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73213
73214         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73215
73216         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73217
73218 2007-02-04  Bruno Haible  <bruno@clisp.org>
73219
73220         New module description section 'configure.ac-early'.
73221         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73222         (func_get_autoconf_early_snippet): New function.
73223         (func_import, func_create_testdir): Use it. Remove special cases for
73224         modules 'extensions' and 'lock'.
73225         * modules/extensions (configure.ac-early): Require
73226         gl_USE_SYSTEM_EXTENSIONS.
73227         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73228
73229 2007-02-04  Bruno Haible  <bruno@clisp.org>
73230
73231         Make use of gcj-4.3's -fsource and -ftarget option.
73232         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73233         and if so try the options -fsource and -ftarget.
73234         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73235         source_version, ftarget_option, target_version arguments.
73236         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73237         (is_envjavac_oldgcj_14_14_usable): Renamed from
73238         is_envjavac_gcj_14_14_usable.
73239         (is_envjavac_oldgcj_14_13_usable): Renamed from
73240         is_envjavac_gcj_14_13_usable.
73241         (is_gcj_present): Update.
73242         (is_gcj_43, is_gcj43_usable): New functions.
73243         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73244         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73245         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73246         try the options -fsource and -ftarget.
73247
73248 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73249
73250         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73251         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73252         larger value.
73253
73254 2007-02-03  Jim Meyering  <jim@meyering.net>
73255
73256         Give tools a better chance to allocate space for very large buffers.
73257         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73258
73259         Make pwd and readlink work also when run with an unreadable parent dir
73260         on systems with openat support.
73261         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73262         provided getcwd function, even when we have openat support.
73263         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73264
73265 2007-02-02  Bruno Haible  <bruno@clisp.org>
73266
73267         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73268         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73269         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73270         portability problems if one of these functions is only used on specific
73271         platforms.
73272         Reported by Paul Eggert.
73273
73274 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73275
73276         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73277         is causing more trouble than it's curing.
73278         * lib/regex_internal.h (__mempcpy): Remove.
73279         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73280         (and make the code a tad smaller to boot).
73281         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73282
73283 2007-02-02  Jim Meyering  <jim@meyering.net>
73284
73285         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73286         section, not in the Makefile.am: one.
73287
73288 2007-02-02  Eric Blake  <ebb9@byu.net>
73289
73290         * lib/strchrnul.c: Always include config.h first.
73291
73292         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73293         gnulib strstr is not necessary here.
73294
73295 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73296
73297         * m4/socklen.m4: Fix typo.
73298
73299 2007-02-02  Eric Blake  <ebb9@byu.net>
73300
73301         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73302         * modules/netinet_in (Makefile.am): Likewise.
73303
73304 2007-02-01  Bruno Haible  <bruno@clisp.org>
73305
73306         * lib/string_.h (GL_LINK_WARNING): New macro.
73307         (strcasecmp, strstr, strcasestr): If provided by the system,
73308         conditionally define as a macro that leads to a warning instead of to
73309         an error.
73310         (strncasecmp): Conditionally define as a macro that leads to a warning.
73311
73312 2007-02-01  Karl Berry  <karl@gnu.org>
73313
73314         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73315
73316 2007-02-01  Bruno Haible  <bruno@clisp.org>
73317
73318         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73319         renamings.
73320
73321 2007-02-01  Eric Blake  <ebb9@byu.net>
73322
73323         * modules/regex (Depends-on): Revert dependence on mempcpy.
73324         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73325         module's definition of mempcpy.
73326         Reported by Paul Eggert.
73327
73328 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73329
73330         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73331         the symbol XYZ before redefining it.  This fixes a problem with
73332         programs that don't use XYZ, when compiled on systems that define
73333         XYZ to something else.
73334
73335 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73336
73337         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73338         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73339         writeable to group or other and (2) is intended to have a special
73340         mode bit that is set or cleared.  In such a case, the directory
73341         should be neither group- nor other-writeable until the special
73342         mode bits are right.
73343
73344 2007-01-31  Eric Blake  <ebb9@byu.net>
73345
73346         * modules/mountlist (Depends-on): Add strstr.
73347
73348         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73349         bug.
73350         * modules/string (Makefile.am): Remove redundant replacement.
73351         * modules/regex (Depends-on): Add mempcpy.
73352
73353 2007-01-31  Bruno Haible  <bruno@clisp.org>
73354
73355         New module description field 'Link'.
73356         * gnulib-tool (func_usage): Document --extract-link-directive.
73357         (sed_extract_prog): Recognize 'Link' directive.
73358         (func_get_link_directive): New function.
73359         (func_import): Show summary of link directives.
73360         Handle --extract-link-directive option.
73361         * modules/acl (Link): New section.
73362         * modules/clock-time (Link): New section.
73363         * modules/euidaccess (Link): New section.
73364         * modules/gettext (Link): New section.
73365         * modules/iconv (Link): New section.
73366         * modules/lock (Link): New section.
73367         * modules/nanosleep (Link): New section.
73368         * modules/readline (Link): New section.
73369
73370 2007-01-27  Bruno Haible  <bruno@clisp.org>
73371
73372         Enforce the use of gnulib modules for unportable <string.h> functions.
73373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73374         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73375         (gl_HEADER_STRING_H_BODY): Require it.
73376         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73377         the symbol XYZ to one that gives a link error.
73378         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73379         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73380         * modules/mempcpy (configure.ac): Likewise.
73381         * modules/memrchr (configure.ac): Likewise.
73382         * modules/stpcpy (configure.ac): Likewise.
73383         * modules/stpncpy (configure.ac): Likewise.
73384         * modules/strcase (configure.ac): Likewise.
73385         * modules/strcasestr (configure.ac): Likewise.
73386         * modules/strchrnul (configure.ac): Likewise.
73387         * modules/strdup (configure.ac): Likewise.
73388         * modules/strndup (configure.ac): Likewise.
73389         * modules/strnlen (configure.ac): Likewise.
73390         * modules/strpbrk (configure.ac): Likewise.
73391         * modules/strsep (configure.ac): Likewise.
73392         * modules/strstr (configure.ac): Likewise.
73393         * modules/strtok_r (configure.ac): Likewise.
73394
73395 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73396
73397         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73398
73399 2007-01-30  Jim Meyering  <jim@meyering.net>
73400
73401         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73402
73403 2007-01-29  Bruno Haible  <bruno@clisp.org>
73404
73405         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73406         * lib/execute.c: Likewise.
73407         * lib/pipe.c: Likewise.
73408         * lib/printf-args.h: Likewise.
73409         * lib/printf-args.c: Likewise.
73410         * lib/printf-parse.c: Likewise.
73411         * lib/vasnprintf.c: Likewise.
73412
73413 2007-01-29  Eric Blake  <ebb9@byu.net>
73414
73415         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73416         declaration.
73417
73418 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73419
73420         * lib/strptime.h (strptime): Use 'restrict' for args where
73421         POSIX requires this.
73422         * lib/strptime.c (strptime): Likewise.
73423         Change license notice from LGPL to GPL, since gnulib-tool will
73424         change this as needed.
73425         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73426         defined.
73427         Include "strptime.h" first, to check interface.
73428         Do not #undef _LIBC and _NL_CURRENT.
73429         Do not include <stdlib.h>; no longer needed.
73430         Include "time_r.h" and declare ptime_locale_status
73431         only if _LIBC is not defined.
73432         (__P): Remove unused macro.
73433         (match_string): Bring back glibc version, but use it only if _LIBC
73434         is defined.
73435         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73436         Remove unnecessary assertion and abort() call.
73437         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73438         * m4/strptime.m4: Fix serial number comment.
73439         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73440         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73441         (Depends-on): Add time_r.
73442
73443 2007-01-29  Bruno Haible  <bruno@clisp.org>
73444
73445         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73446         strptime.
73447         * modules/strptime (Depends-on): Add stdbool.
73448         * lib/strptime.h: Include <time.h> always. Add comments.
73449
73450 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73451
73452         * modules/strptime: New file.
73453         * lib/strptime.h: New file.
73454         * lib/strptime.c: New file.
73455         * m4/strptime.m4: New file.
73456
73457 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73458
73459         * MODULES.html.sh: New module mpsort.
73460         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73461
73462         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73463         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73464         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73465         All uses changed.
73466         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73467         All uses changed.
73468         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73469         to _Restrict_.
73470         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73471         the parameter matches the prototype.
73472
73473 2007-01-28  Jim Meyering  <jim@meyering.net>
73474
73475         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73476         sys/time.h here, reverting that part of the previous patch:
73477         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73478
73479 2007-01-28  Bruno Haible  <bruno@clisp.org>
73480
73481         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73482         value of $(SYS_TIME_H).
73483         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73484         remove it conditionally, too. [added by Jim Meyering]
73485         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73486         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73487         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73488         GETTIMEOFDAY_REPLACEMENT to 1.
73489
73490 2007-01-28  Bruno Haible  <bruno@clisp.org>
73491
73492         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73493         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73495         Set UNISTD_H instead of UNISTD_H2.
73496         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73497
73498 2007-01-28  Bruno Haible  <bruno@clisp.org>
73499
73500         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73501         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73502
73503 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73504
73505         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73506         (func_create_testdir): Ensure C locale for `grep' and `tr'
73507         character ranges.
73508         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73509         ACLOCAL_AMFLAGS parsing state machine.
73510
73511 2007-01-27  Bruno Haible  <bruno@clisp.org>
73512
73513         * modules/unistr/base: Update.
73514
73515 2007-01-27  Bruno Haible  <bruno@clisp.org>
73516
73517         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73518         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73519         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73520         modules/unistr/u32-mbtouc.
73521         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73522         * lib/unistr.h: Update.
73523         * lib/linebreak.c: Update.
73524         * modules/unistr/u32-mbtouc: Renamed from
73525         modules/unistr/u32-mbtouc-safe.
73526         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73527         * lib/unistr.h: Update.
73528         * lib/unistr/u32-to-u8.c: Update.
73529         * lib/unistr/u32-to-u16.c: Update.
73530
73531 2007-01-27  Bruno Haible  <bruno@clisp.org>
73532
73533         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73534         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73535         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73536         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73537         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73538         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73539         modules/unistr/u16-mbtouc.
73540         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73541         * lib/unistr.h: Update.
73542         * lib/linebreak.c: Update.
73543         * modules/linebreak: Update.
73544         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73545         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73546         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73547         * modules/unistr/u16-mbtouc: Renamed from
73548         modules/unistr/u16-mbtouc-safe.
73549         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73550         * lib/unistr.h: Update.
73551         * lib/unistr/u16-to-u8.c: Update.
73552         * modules/unistr/u16-to-u8: Update.
73553         * lib/unistr/u16-to-u32.c: Update.
73554         * modules/unistr/u16-to-u32: Update.
73555
73556 2007-01-27  Bruno Haible  <bruno@clisp.org>
73557
73558         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73559         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73560         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73561         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73562         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73563         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73564         modules/unistr/u8-mbtouc.
73565         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73566         * lib/unistr.h: Update.
73567         * lib/striconveh.c: Update.
73568         * modules/striconveh: Update.
73569         * lib/linebreak.c: Update.
73570         * modules/linebreak: Update.
73571         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73572         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73573         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73574         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73575         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73576         * lib/unistr.h: Update.
73577         * lib/striconveh.c: Update.
73578         * modules/striconveh: Update.
73579         * lib/unistr/u8-to-u16.c: Update.
73580         * modules/unistr/u8-to-u16: Update.
73581         * lib/unistr/u8-to-u32.c: Update.
73582         * modules/unistr/u8-to-u32: Update.
73583
73584 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73585
73586         Sync from Libtool.
73587         * lib/argz.c: Do not include strings.h nor memory.h, include
73588         string.h unconditionally.  Patch by Simon Josefsson.
73589
73590 2007-01-27  Bruno Haible  <bruno@clisp.org>
73591
73592         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73593         from gl_HEADER_STRING_H_BODY.
73594         (gl_HEADER_STRING_H_BODY): Require it.
73595         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73596         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73597         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73598         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73599         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73600         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73602         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73603         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73604         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73605         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73606         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73607         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73608         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73609         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73610
73611 2007-01-27  Bruno Haible  <bruno@clisp.org>
73612
73613         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73614         check_PROGRAMS into noinst_PROGRAMS.
73615         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73616         check_PROGRAMS in this case.
73617         (func_import): Set for_test to false.
73618         (func_create_testdir): Set for_test to true.
73619
73620 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73621             Bruno Haible  <bruno@clisp.org>
73622
73623         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73624         (Depends-on): Add string.
73625         (Includes): Use <string.h> instead of strcasestr.h.
73626         * modules/string (Makefile.am): Also substitute the value of
73627         REPLACE_STRCASESTR.
73628         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73629         assume strcasestr is declared in <string.h> not <strings.h>. Also
73630         set REPLACE_STRCASESTR.
73631         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73632         REPLACE_STRCASESTR.
73633         * lib/strcasestr.h: Remove file.
73634         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73635         * lib/string_.h (strcasestr): New declaration.
73636
73637 2007-01-27  Bruno Haible  <bruno@clisp.org>
73638
73639         * lib/string_.h: Use 'extern'.
73640
73641 2007-01-27  Jim Meyering  <jim@meyering.net>
73642
73643         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73644         of set-but-not-used local, "q".
73645
73646         * lib/mempcpy.c: Include <config.h> before <string.h>.
73647         This fixes a compilation error on HP-UX, due to the system's
73648         "restrict"-using mempcpy prototype.
73649
73650 2007-01-26  Bruno Haible  <bruno@clisp.org>
73651
73652         Small optimization.
73653         * lib/javacomp.c: Include c-strstr.h.
73654          (is_envjavac_gcj): Use c_strstr instead of strstr.
73655         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73656
73657 2007-01-26  Bruno Haible  <bruno@clisp.org>
73658
73659         * MODULES.html.sh (Unicode string functions): Add the new modules.
73660
73661         * modules/uniconv/u32-strconv-to-locale: New file.
73662         * lib/uniconv/u32-strconv-to-locale.c: New file.
73663
73664         * modules/uniconv/u16-strconv-to-locale: New file.
73665         * lib/uniconv/u16-strconv-to-locale.c: New file.
73666
73667         * modules/uniconv/u8-strconv-to-locale: New file.
73668         * lib/uniconv/u8-strconv-to-locale.c: New file.
73669
73670         * modules/uniconv/u32-strconv-from-locale: New file.
73671         * lib/uniconv/u32-strconv-from-locale.c: New file.
73672
73673         * modules/uniconv/u16-strconv-from-locale: New file.
73674         * lib/uniconv/u16-strconv-from-locale.c: New file.
73675
73676         * modules/uniconv/u8-strconv-from-locale: New file.
73677         * lib/uniconv/u8-strconv-from-locale.c: New file.
73678
73679         * modules/uniconv/u32-strconv-to-enc: New file.
73680         * lib/uniconv/u32-strconv-to-enc.c: New file.
73681         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73682         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73683
73684         * modules/uniconv/u16-strconv-to-enc: New file.
73685         * lib/uniconv/u16-strconv-to-enc.c: New file.
73686         * lib/uniconv/u-strconv-to-enc.h: New file.
73687         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73688         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73689
73690         * modules/uniconv/u8-strconv-to-enc: New file.
73691         * lib/uniconv/u8-strconv-to-enc.c: New file.
73692         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73693         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73694
73695         * modules/uniconv/u32-strconv-from-enc: New file.
73696         * lib/uniconv/u32-strconv-from-enc.c: New file.
73697         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73698         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73699
73700         * modules/uniconv/u16-strconv-from-enc: New file.
73701         * lib/uniconv/u16-strconv-from-enc.c: New file.
73702         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73703         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73704
73705         * modules/uniconv/u8-strconv-from-enc: New file.
73706         * lib/uniconv/u8-strconv-from-enc.c: New file.
73707         * lib/uniconv/u-strconv-from-enc.h: New file.
73708         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73709         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73710
73711         * modules/uniconv/u32-conv-from-enc: New file.
73712         * lib/uniconv/u32-conv-from-enc.c: New file.
73713         * modules/uniconv/u32-conv-from-enc-tests: New file.
73714         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73715
73716         * modules/uniconv/u16-conv-from-enc: New file.
73717         * lib/uniconv/u16-conv-from-enc.c: New file.
73718         * lib/uniconv/u-conv-from-enc.h: New file.
73719         * modules/uniconv/u16-conv-from-enc-tests: New file.
73720         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73721
73722         * modules/uniconv/u8-conv-from-enc: New file.
73723         * lib/uniconv/u8-conv-from-enc.c: New file.
73724         * modules/uniconv/u8-conv-from-enc-tests: New file.
73725         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73726
73727         * modules/uniconv/base: New file.
73728         * lib/uniconv.h: New file.
73729
73730 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73731
73732         * doc/gnulib-tool.texi (Initial import): Update to match current
73733         behavior with strdup module.
73734         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73735         * lib/memmem.h: Remove; all uses removed.  This is now done
73736         by <string.h>.
73737         * lib/mempcpy.h: Likewise.
73738         * lib/memrchr.h: Likewise.
73739         * lib/stpcpy.h: Likewise.
73740         * lib/stpncpy.h: Likewise.
73741         * lib/strcase.h: Likewise.
73742         * lib/strchrnul.h: Likewise.
73743         * lib/strdup.h: Likewise.
73744         * lib/strndup.h: Likewise.
73745         * lib/strnlen.h: Likewise.
73746         * lib/strpbrk.h: Likewise.
73747         * lib/strsep.h: Likewise.
73748         * lib/strstr.h: Likewise.
73749         * lib/strtok_r.h: Likewise.
73750         * lib/string_.h: New file.
73751         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73752         Rely on <string.h> instead.
73753         * lib/canon-host.c: Likewise.
73754         * lib/chdir-long.c: Likewise.
73755         * lib/concatpath.c: Likewise.
73756         * lib/exclude.c: Likewise.
73757         * lib/fchdir.c: Likewise.
73758         * lib/getaddrinfo.c: Likewise.
73759         * lib/getcwd.c: Likewise.
73760         * lib/getsubopt.c: Likewise.
73761         * lib/glob.c: Likewise.
73762         * lib/hard-locale.c: Likewise.
73763         * lib/iconvme.c: Likewise.
73764         * lib/javacomp.c: Likewise.
73765         * lib/mempcpy.c: Likewise.
73766         * lib/memrchr.c: Likewise.
73767         * lib/regex_internal.h: Likewise.
73768         * lib/stpncpy.c: Likewise.
73769         * lib/strcasecmp.c: Likewise.
73770         * lib/strchrnul.c: Likewise.
73771         * lib/strdup.c: Likewise.
73772         * lib/striconv.c: Likewise.
73773         * lib/striconveh.c: Likewise.
73774         * lib/striconveha.c: Likewise.
73775         * lib/strncasecmp.c: Likewise.
73776         * lib/strndup.c: Likewise.
73777         * lib/strnlen.c: Likewise.
73778         * lib/strsep.c: Likewise.
73779         * lib/strstr.c: Likewise.
73780         * lib/strtok_r.c: Likewise.
73781         * lib/userspec.c: Likewise.
73782         * lib/w32spawn.h: Likewise.
73783         * lib/xstrndup.c: Likewise.
73784         * lib/mountlist.c (strstr): Remove decl.
73785         * m4/string_h.m4: New file.
73786         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73787         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73788         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73789         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73790         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73791         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73792         Set REPLACE_STRCASECMP if necessary.
73793         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73794         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73795         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73797         HAVE_DECL_STRDUP if necessary.
73798         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73799         since gl_FUNC_STRNDUP does that now.
73800         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73801         Check for decl here...
73802         (gl_PREREQ_STRNLEN): ... not here.
73803         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73804         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73805         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73806         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73807         necessary.
73808         * modules/string: New file.
73809         * modules/memmem (Files): Remove special-purpose include file.
73810         (Depends-on): Add string.
73811         (Include): Include <string.h>, not the removed file.
73812         * modules/mempcpy: Likewise.
73813         * modules/memrchr: Likewise.
73814         * modules/stpcpy: Likewise.
73815         * modules/stpncpy: Likewise.
73816         * modules/strcase: Likewise.
73817         * modules/strchrnul: Likewise.
73818         * modules/strdup: Likewise.
73819         * modules/strndup: Likewise.
73820         * modules/strnlen: Likewise.
73821         * modules/strpbrk: Likewise.
73822         * modules/strsep: Likewise.
73823         * modules/strstr: Likewise.
73824         * modules/strtok_r: Likewise.
73825         * tests/test-dirname.c: Don't include "strdup.h", since
73826         <string.h> now suffices.
73827         * tests/test-memmem.c: Don't include "memmem.h", since
73828         <string.h> now suffices.
73829
73830 2007-01-25  Bruno Haible  <bruno@clisp.org>
73831
73832         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73833         *resultp is 0.
73834
73835         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73836         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73837         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73838         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73839
73840         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73841         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73842         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73843         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73844         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73845         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73846
73847 2007-01-24  Bruno Haible  <bruno@clisp.org>
73848
73849         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73850         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73851         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73852         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73853         gl_FUNC_FTS_CORE.
73854         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73855         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73856         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73857         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73858         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73859         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73860         gl_FUNC_FCHOWNAT.
73861         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73862         gl_FUNC_STRFTIME.
73863         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73864         Reported by Ralf Wildenhues.
73865
73866 2007-01-24  Bruno Haible  <bruno@clisp.org>
73867
73868         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73869         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73870         gl_GETADDRINFO.
73871         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73872         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73873         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73874
73875 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73876
73877         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73878         Don't use 'exit'; just return from 'main'.
73879         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73880
73881         * lib/fnmatch_.h: Readjust white space and comments to match
73882         glibc, to avoid spurious diffs.
73883
73884 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73885
73886         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73887         2004-12-01 change by Jakub Jelinek, since this code won't compile
73888         if !LIBC.  Problem reported by Bob Proulx.
73889
73890 2007-01-23  Bruno Haible  <bruno@clisp.org>
73891
73892         * lib/striconveh.c: Include c-strcaseeq.h.
73893         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73894         * modules/striconveh (Depends-on): Add c-strcaseeq.
73895
73896 2007-01-23  Bruno Haible  <bruno@clisp.org>
73897
73898         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73899
73900         * modules/c-strcaseeq: New file.
73901         * lib/c-strcaseeq.h: New file.
73902
73903         * modules/streq: New file.
73904         * lib/streq.h: New file.
73905
73906 2007-01-23  Bruno Haible  <bruno@clisp.org>
73907
73908         * modules/striconveha-tests: New file.
73909         * tests/test-striconveha.c: New file.
73910
73911         * lib/striconveha.h: Include <stdbool.h>.
73912         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73913         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73914         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73915         (mem_iconveha): New function.
73916         (str_iconveha_notranslit): Renamed from str_iconveha.
73917         (str_iconveha): New function.
73918         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73919         c-strcase.
73920
73921 2007-01-23  Bruno Haible  <bruno@clisp.org>
73922
73923         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73924         encodings without forgiving before trying any encoding with handler.
73925         (str_iconveha): Try all encodings without forgiving before trying any
73926         encoding with handler.
73927
73928 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73929
73930         Import the following changes from libc.
73931
73932         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73933
73934         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73935
73936         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73937
73938         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73939         normal_bracket label.
73940
73941         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73942
73943         [BZ #361]
73944         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73945         to normal_bracket after fetching the next character.
73946
73947 2007-01-22  Bruno Haible  <bruno@clisp.org>
73948
73949         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73950         argument.
73951         * lib/striconveh.c (iconv_carefully_1): New function.
73952         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73953         argument.
73954         (str_cd_iconveh): Update.
73955         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73956         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73957         * tests/test-striconveh.c (MAGIC): New macro.
73958         (new_offsets): New function.
73959         (main): Test call with and without offsets.
73960
73961 2007-01-22  Bruno Haible  <bruno@clisp.org>
73962
73963         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73964         * modules/sys_select (Makefile.am): Likewise.
73965         * modules/sys_socket (Makefile.am): Likewise.
73966         * modules/sys_time (Makefile.am): Likewise.
73967
73968 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73969
73970         * modules/gettimeofday (License): Change from GPL to LGPL, since
73971         gettimeofday is a library function.
73972
73973 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73974
73975         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73976
73977 2007-01-21  Bruno Haible  <bruno@clisp.org>
73978
73979         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73980
73981 2007-01-21  Bruno Haible  <bruno@clisp.org>
73982
73983         * modules/striconveha: New file.
73984         * lib/striconveha.h: New file.
73985         * lib/striconveha.c: New file.
73986         * MODULES.html.sh (Internationalization functions): Add striconveha.
73987         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73988         string.
73989         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73990
73991 2007-01-21  Bruno Haible  <bruno@clisp.org>
73992
73993         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73994         * lib/striconveh.c (str_iconveh): Likewise.
73995
73996 2007-01-21  Bruno Haible  <bruno@clisp.org>
73997
73998         * lib/striconveh.h (mem_iconveh): New declaration.
73999         * lib/striconveh.c (mem_iconveh): New function.
74000         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74001
74002 2007-01-21  Bruno Haible  <bruno@clisp.org>
74003
74004         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74005
74006         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74007         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74008         original result buffer.
74009         (str_cd_iconveh): Update.
74010         * tests/test-striconveh.c (main): Update.
74011
74012         * lib/striconv.h (mem_cd_iconv): Change specification.
74013         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74014         result buffer.
74015         (str_cd_iconv): Update.
74016         * tests/test-striconv.c (main): Update.
74017
74018 2007-01-21  Bruno Haible  <bruno@clisp.org>
74019
74020         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74021
74022 2007-01-20  Jim Meyering  <jim@meyering.net>
74023
74024         * lib/userspec.c (parse_with_separator): If a user or group string
74025         starts with "+", skip the corresponding name-to-ID look-up, since
74026         such a look-up must fail: user and group names may not include "+".
74027
74028 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74029
74030         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74031         since we now assume the sys_time module.
74032         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74033         check for sys/time.h; no longer needed.
74034         * modules/poll (Depends-on): Depend on sys_time.
74035
74036 2007-01-18  Bruno Haible  <bruno@clisp.org>
74037
74038         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74039         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74040
74041         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74042         gettimeofday.
74043
74044         * tests/test-gettimeofday.c: Include <time.h>.
74045         (dummy): Remove variable.
74046
74047         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74048         gl_HEADER_SYS_TIME_H.
74049         (gl_HEADER_SYS_TIME_H): New macro.
74050
74051         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74052         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74053         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74054         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74055         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74056         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74057         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74058         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74059         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74060         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74061         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74062
74063         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74064         last change; it caused a compilation error when cross-compiling to
74065         Cygwin.
74066
74067 2007-01-18  Jim Meyering  <jim@meyering.net>
74068
74069         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74070         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74071         than the race-prone "test -d sys || mkdir sys".
74072         (configure.ac): Use AC_PROG_MKDIR_P.
74073         * modules/sys_select: Likewise.
74074         * modules/sys_socket: Likewise.
74075         * modules/sys_time: Likewise.
74076
74077 2007-01-18  Eric Blake  <ebb9@byu.net>
74078
74079         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74080         replace gettimeofday.
74081         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74082         name, to avoid infinite recursion.
74083
74084 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74085
74086         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74087         module sys_time.
74088         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74089         assume timespec.h defines struct timeval.
74090         * lib/settime.c: Likewise.
74091         * lib/utimens.c: Likewise.
74092         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74093         since we now assume the gettimeofday module.
74094         * lib/tempname.c (__gen_tempname): Likewise.
74095         * lib/gettimeofday.h: Remove.
74096         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74097         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74098         Include <time.h>, for 'time()'.
74099         (localtime_buffer_addr): Also use this workaround if
74100         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74101         to simplify the uses.  All uses changed.
74102         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74103         that #undef is inside {}, and 'const' follows type name consistently.
74104         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74105         (gettimeofday): Do not use the maximum possible value for
74106         tv->tv_usec, since that might break usages other than ls.c.
74107         Instead, we'll leave ls.c alone.  This undoes today's patch
74108         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74109         we've never observed the problem but might as well keep the
74110         canary.
74111         * lib/nanosleep.c: Include timespec.h first, for interface check.
74112         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74113         now assume the sys_time module.
74114         * lib/tempname.c: Likewise.
74115         * lib/timespec.h: Likewise.
74116         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74117         needed.
74118         * lib/strftime.c: Likewise.
74119         * lib/timespec.h: Likewise.
74120         * lib/posixtm.c: Include posixtm.h first, for interface check.
74121         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74122         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74123         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74124         * lib/sys_time_.h: New file.
74125         * lib/timespec.h (struct timespec): Use long int, not long.
74126         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74127         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74128         Remove obsolescent call to AC_HEADER_TIME.
74129         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74131         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74132         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74133         Likewise.
74134         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74135         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74136         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74137         into the sys_time module.  Check for gettimeofday just once.
74138         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74139         for gettimeofday signature to just check the signature.  Merely
74140         compile it, since linking doesn't test signature.  Improve test for
74141         whether gettimeofday.o is actually needed.
74142         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74143         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74144         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74145         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74146         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74147         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74148         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74149         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74150         than worrying about sys/time.h.
74151         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74152         Don't bother worrying about TIME_WITH_SYS_TIME.
74153         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74154         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74155         * m4/sys_time_h.m4: New file.
74156         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74157         Don't include sys/time.h.  Return from main rather than exiting.
74158         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74159         all uses changed.
74160         * modules/gethrxtime (Depends-on): Add sys_time.
74161         * modules/gettime (Depends-on): Likewise.
74162         * modules/gettimeofday (Depends-on): Likewise.
74163         * modules/nanosleep (Depends-on): Likewise.
74164         * modules/settime (Depends-on): Likewise.
74165         * modules/tempname (Depends-on): Likewise.
74166         * modules/utimens (Depends-on): Likewise.
74167         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74168         (Include): Change back to <sys/time.h>.
74169         (Maintainer): Add self.
74170         * modules/sys_time: New file.
74171         * modules/tempname (Depends-on): Add gettimeofday.
74172         * tests/test-gettimeofday.c: Include <sys/time.h>
74173         rather than gettimeofday.h.
74174
74175 2007-01-17  Bruno Haible  <bruno@clisp.org>
74176
74177         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74178         the license default to GPL.
74179         (func_create_testdir): Don't complain if a module is LGPL and its
74180         tests module depends on GPLed modules.
74181
74182 2007-01-17  Bruno Haible  <bruno@clisp.org>
74183
74184         * lib/gettimeofday.c (gettimeofday): Add code for the case
74185         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74186         maximum possible value for tv->tv_usec, rather than the minimum one.
74187
74188 2005-10-08  Martin Lambers  <marlam@marlam.de>
74189 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74190 2007-01-16  Bruno Haible  <bruno@clisp.org>
74191
74192         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74193         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74194         gl_FUNC_GETTIMEOFDAY.
74195         (Include): Add gettimeofday.h.
74196         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74197         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74198         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74199         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74200         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74201         * lib/gettimeofday.h: New file.
74202         * lib/gettimeofday.c: Include <sys/timeb.h>.
74203         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74204         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74205         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74206         fall back on time().
74207
74208         * tests/test-gettimeofday.c: New file.
74209         * modules/gettimeofday-tests: New file.
74210
74211 2007-01-16  Eric Blake  <ebb9@byu.net>
74212
74213         * modules/fnmatch (Depends-on): Depend on wchar.
74214         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74215         * m4/fnmatch.m4: Likewise.
74216         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74217         * m4/mbchar.m4: Likewise.
74218         * modules/mbswidth (Depends-on): Depend on wchar.
74219         * lib/mbswidth.c: Assume <wchar.h>.
74220         * m4/mbswidth.m4: Likewise.
74221         * modules/quotearg (Depends-on): Depend on wchar.
74222         * lib/quotearg.c: Assume <wchar.h>.
74223         * m4/quotearg.m4: Likewise.
74224         * modules/regex (Depends-on): Depend on wchar.
74225         * lib/regex_internal.h: Assume <wchar.h>.
74226         * m4/regex.m4: Likewise.
74227         * modules/stdint (Depends-on): Depend on wchar.
74228         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74229         * m4/stdint.m4: Likewise.
74230         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74231         * modules/strftime (Depends-on): Depend on wchar.
74232         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74233         * modules/strtol (Depends-on): Depend on wchar.
74234         * lib/strtol.c: Assume <wchar.h>.
74235         * modules/wcwidth (Depends-on): Depend on wchar.
74236         * lib/wcwidth.h: Assume <wchar.h>.
74237         * m4/wcwidth.m4: Likewise.
74238
74239 2007-01-16  Bruno Haible  <bruno@clisp.org>
74240
74241         * modules/csharpexec-script: New, created from...
74242         * modules/csharpexec: ... this.
74243
74244 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74245
74246         * modules/javaexec-script: New, created from...
74247         * modules/javaexec: ... this.
74248
74249 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74250
74251         * modules/poll (Dependencies): Add sys_select.
74252
74253 2007-01-15  Jim Meyering  <jim@meyering.net>
74254
74255         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74256         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74257         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74258         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74259
74260 2007-01-15  Bruno Haible  <bruno@clisp.org>
74261
74262         * modules/striconveh: New file.
74263         * lib/striconveh.h: New file.
74264         * lib/striconveh.c: New file.
74265         * MODULES.html.sh (Internationalization functions): Add striconveh.
74266
74267         * modules/striconveh-tests: New file.
74268         * tests/test-striconveh.c: New file.
74269
74270 2007-01-15  Bruno Haible  <bruno@clisp.org>
74271
74272         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74273         not from GNU libiconv or GNU libc.
74274
74275 2007-01-15  Bruno Haible  <bruno@clisp.org>
74276
74277         * doc/gnulib-intro.texi (Copyright): Explain the different license
74278         terms for module descriptions, autoconf macros, tests, documentation.
74279
74280 2007-01-14  Bruno Haible  <bruno@clisp.org>
74281
74282         * modules/striconv-tests: New file.
74283         * tests/test-striconv.c: New file.
74284
74285 2007-01-14  Bruno Haible  <bruno@clisp.org>
74286
74287         * modules/iconv-tests: New file.
74288         * tests/test-iconv.c: New file.
74289
74290 2007-01-14  Bruno Haible  <bruno@clisp.org>
74291
74292         * gnulib-tool (func_get_license): For test modules, use the license of
74293         the main module.
74294
74295 2007-01-14  Bruno Haible  <bruno@clisp.org>
74296
74297         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74298         if iconv is found to exist.
74299
74300 2007-01-14  Bruno Haible  <bruno@clisp.org>
74301
74302         * modules/c-ctype-tests: New file.
74303         * tests/test-c-ctype.c: New file.
74304
74305 2007-01-14  Bruno Haible  <bruno@clisp.org>
74306
74307         * modules/binary-io-tests: New file.
74308         * tests/test-binary-io.sh: New file.
74309         * tests/test-binary-io.c: New file.
74310
74311 2007-01-14  Bruno Haible  <bruno@clisp.org>
74312
74313         * modules/array-oset-tests: New file.
74314         * tests/test-array_oset.c: New file.
74315
74316 2007-01-14  Bruno Haible  <bruno@clisp.org>
74317
74318         * modules/array-list-tests: New file.
74319         * tests/test-array_list.c: New file.
74320
74321 2007-01-14  Bruno Haible  <bruno@clisp.org>
74322
74323         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74324         and make.
74325         Reported by Simon Josefsson in
74326         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74327
74328 2007-01-14  Bruno Haible  <bruno@clisp.org>
74329
74330         * modules/allocsa-tests: New file.
74331         * tests/test-allocsa.c: New file.
74332
74333 2007-01-14  Bruno Haible  <bruno@clisp.org>
74334
74335         * modules/fchdir (Depends-on): Add absolute-header.
74336         * modules/unistd (Depends-on): Likewise.
74337
74338 2006-12-30  Bruno Haible  <bruno@clisp.org>
74339
74340         * modules/fchdir: New file.
74341         * modules/unistd (Files): Add lib/unistd_.h.
74342         (Makefile.am): Generate unistd.h from unistd_.h.
74343         * lib/fchdir.c: New file.
74344         * lib/dirent_.h: New file.
74345         * lib/unistd_.h: New file.
74346         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74347         * m4/fchdir.m4: New file.
74348         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74349         (gl_HEADER_UNISTD): Invoke it.
74350         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74351         function.
74352         * lib/backupfile.c (opendir, closedir): Undefine.
74353         * lib/chown.c (open, close): Undefine.
74354         * lib/clean-temp.c (open, close): Undefine.
74355         * lib/copy-file.c (open, close): Undefine.
74356         * lib/execute.c (open, close): Undefine.
74357         * lib/fsusage.c (open, close): Undefine.
74358         * lib/gc-gnulib.c (open, close): Undefine.
74359         * lib/getcwd.c (opendir, closedir): Undefine.
74360         * lib/glob.c (opendir, closedir): Undefine.
74361         * lib/javacomp.c (open, close): Undefine.
74362         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74363         * lib/openat-proc.c (open, close): Undefine.
74364         * lib/pagealign_alloc.c (open, close): Undefine.
74365         * lib/pipe.c (open, close): Undefine.
74366         * lib/progreloc.c (open, close): Undefine.
74367         * lib/savedir.c (opendir, closedir): Undefine.
74368         * lib/utime.c (open, close): Undefine.
74369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74370
74371 2007-01-10  Bruno Haible  <bruno@clisp.org>
74372
74373         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74374
74375 2007-01-12  Eric Blake  <ebb9@byu.net>
74376
74377         Provide a robust <wchar.h>.  Further simplifications are now
74378         possible in other modules, but not included here.
74379         * modules/wchar: New module.
74380         * m4/wchar.m4: New file.
74381         * lib/wchar_.h: Likewise.
74382         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74383         of the new module.
74384         * MODULES.html.sh (Extended multibyte and wide character utilities):
74385         New section.
74386
74387 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74388
74389         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74390         to a reasonable default for memory allocation.
74391         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74392         file system that reports garbage st_size values for symlinks.
74393         Problem reported by Liyang Hu.
74394
74395 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74396
74397         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74398         Emacs .#* auto-save files).
74399
74400 2007-01-11  Bruno Haible  <bruno@clisp.org>
74401
74402         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74403         directory.
74404
74405 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         Use @...@ consistently in lib/wctype_.h.
74408         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74409         on it being set to 1 or 0.
74410         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74411         go back to AC_SUBSTing it.
74412         * modules/wctype (Makefile.am): Undo previous change.
74413
74414 2007-01-10  Eric Blake  <ebb9@byu.net>
74415
74416         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74417         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74418         * modules/wctype (Makefile.am): Likewise.
74419         Reported by Chris McGuire.
74420
74421 2007-01-10  Jim Meyering  <jim@meyering.net>
74422
74423         fts.c: a small readability/maintainability improvement
74424         * lib/fts.c (fts_read): Make this code slightly more readable and
74425         maintainable by hoisting the "sp->fts_cur = p" assignments to
74426         immediately follow the statements that set P.  Derived from
74427         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74428
74429 2007-01-10  Eric Blake  <ebb9@byu.net>
74430
74431         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74432         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74434         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74435         Reported by Chris McGuire.
74436
74437 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74438
74439         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74440         in sed script.
74441
74442 2007-01-09  Bruno Haible  <bruno@clisp.org>
74443
74444         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74445         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74446         variables.
74447         (func_module): Use them.
74448
74449 2007-01-09  Bruno Haible  <bruno@clisp.org>
74450
74451         * modules/unistr/base: New file.
74452         * lib/unistr.h: New file.
74453
74454         * modules/unistr/u8-to-u16: New file.
74455         * lib/unistr/u8-to-u16.c: New file.
74456
74457         * modules/unistr/u8-to-u32: New file.
74458         * lib/unistr/u8-to-u32.c: New file.
74459
74460         * modules/unistr/u16-to-u8: New file.
74461         * lib/unistr/u16-to-u8.c: New file.
74462
74463         * modules/unistr/u16-to-u32: New file.
74464         * lib/unistr/u16-to-u32.c: New file.
74465
74466         * modules/unistr/u32-to-u8: New file.
74467         * lib/unistr/u32-to-u8.c: New file.
74468
74469         * modules/unistr/u32-to-u16: New file.
74470         * lib/unistr/u32-to-u16.c: New file.
74471
74472         * modules/unistr/u8-check: New file.
74473         * modules/unistr/u16-check: New file.
74474         * modules/unistr/u32-check: New file.
74475         * lib/unistr/u8-check.c: New file.
74476         * lib/unistr/u16-check.c: New file.
74477         * lib/unistr/u32-check.c: New file.
74478
74479         * modules/unistr/u8-chr: New file.
74480         * modules/unistr/u16-chr: New file.
74481         * modules/unistr/u32-chr: New file.
74482         * lib/unistr/u8-chr.c: New file.
74483         * lib/unistr/u16-chr.c: New file.
74484         * lib/unistr/u32-chr.c: New file.
74485
74486         * modules/unistr/u8-cmp: New file.
74487         * modules/unistr/u16-cmp: New file.
74488         * modules/unistr/u32-cmp: New file.
74489         * lib/unistr/u8-cmp.c: New file.
74490         * lib/unistr/u16-cmp.c: New file.
74491         * lib/unistr/u32-cmp.c: New file.
74492
74493         * modules/unistr/u8-cpy: New file.
74494         * modules/unistr/u16-cpy: New file.
74495         * modules/unistr/u32-cpy: New file.
74496         * lib/unistr/u8-cpy.c: New file.
74497         * lib/unistr/u16-cpy.c: New file.
74498         * lib/unistr/u32-cpy.c: New file.
74499         * lib/unistr/u-cpy.h: New file.
74500
74501         * modules/unistr/u8-cpy-alloc: New file.
74502         * modules/unistr/u16-cpy-alloc: New file.
74503         * modules/unistr/u32-cpy-alloc: New file.
74504         * lib/unistr/u8-cpy-alloc.c: New file.
74505         * lib/unistr/u16-cpy-alloc.c: New file.
74506         * lib/unistr/u32-cpy-alloc.c: New file.
74507         * lib/unistr/u-cpy-alloc.h: New file.
74508
74509         * modules/unistr/u8-endswith: New file.
74510         * modules/unistr/u16-endswith: New file.
74511         * modules/unistr/u32-endswith: New file.
74512         * lib/unistr/u8-endswith.c: New file.
74513         * lib/unistr/u16-endswith.c: New file.
74514         * lib/unistr/u32-endswith.c: New file.
74515         * lib/unistr/u-endswith.h: New file.
74516
74517         * modules/unistr/u8-mblen: New file.
74518         * modules/unistr/u16-mblen: New file.
74519         * modules/unistr/u32-mblen: New file.
74520         * lib/unistr/u8-mblen.c: New file.
74521         * lib/unistr/u16-mblen.c: New file.
74522         * lib/unistr/u32-mblen.c: New file.
74523
74524         * modules/unistr/u8-mbtouc: New file.
74525         * modules/unistr/u16-mbtouc: New file.
74526         * modules/unistr/u32-mbtouc: New file.
74527         * lib/unistr/u8-mbtouc.c: New file.
74528         * lib/unistr/u16-mbtouc.c: New file.
74529         * lib/unistr/u32-mbtouc.c: New file.
74530
74531         * modules/unistr/u8-mbtouc-safe: New file.
74532         * modules/unistr/u16-mbtouc-safe: New file.
74533         * modules/unistr/u32-mbtouc-safe: New file.
74534         * lib/unistr/u8-mbtouc-safe.c: New file.
74535         * lib/unistr/u16-mbtouc-safe.c: New file.
74536         * lib/unistr/u32-mbtouc-safe.c: New file.
74537
74538         * modules/unistr/u8-move: New file.
74539         * modules/unistr/u16-move: New file.
74540         * modules/unistr/u32-move: New file.
74541         * lib/unistr/u8-move.c: New file.
74542         * lib/unistr/u16-move.c: New file.
74543         * lib/unistr/u32-move.c: New file.
74544         * lib/unistr/u-move.h: New file.
74545
74546         * modules/unistr/u8-next: New file.
74547         * modules/unistr/u16-next: New file.
74548         * modules/unistr/u32-next: New file.
74549         * lib/unistr/u8-next.c: New file.
74550         * lib/unistr/u16-next.c: New file.
74551         * lib/unistr/u32-next.c: New file.
74552
74553         * modules/unistr/u8-prev: New file.
74554         * modules/unistr/u16-prev: New file.
74555         * modules/unistr/u32-prev: New file.
74556         * lib/unistr/u8-prev.c: New file.
74557         * lib/unistr/u16-prev.c: New file.
74558         * lib/unistr/u32-prev.c: New file.
74559
74560         * modules/unistr/u8-set: New file.
74561         * modules/unistr/u16-set: New file.
74562         * modules/unistr/u32-set: New file.
74563         * lib/unistr/u8-set.c: New file.
74564         * lib/unistr/u16-set.c: New file.
74565         * lib/unistr/u32-set.c: New file.
74566         * lib/unistr/u-set.h: New file.
74567
74568         * modules/unistr/u8-startswith: New file.
74569         * modules/unistr/u16-startswith: New file.
74570         * modules/unistr/u32-startswith: New file.
74571         * lib/unistr/u8-startswith.c: New file.
74572         * lib/unistr/u16-startswith.c: New file.
74573         * lib/unistr/u32-startswith.c: New file.
74574         * lib/unistr/u-startswith.h: New file.
74575
74576         * modules/unistr/u8-stpcpy: New file.
74577         * modules/unistr/u16-stpcpy: New file.
74578         * modules/unistr/u32-stpcpy: New file.
74579         * lib/unistr/u8-stpcpy.c: New file.
74580         * lib/unistr/u16-stpcpy.c: New file.
74581         * lib/unistr/u32-stpcpy.c: New file.
74582         * lib/unistr/u-stpcpy.h: New file.
74583
74584         * modules/unistr/u8-stpncpy: New file.
74585         * modules/unistr/u16-stpncpy: New file.
74586         * modules/unistr/u32-stpncpy: New file.
74587         * lib/unistr/u8-stpncpy.c: New file.
74588         * lib/unistr/u16-stpncpy.c: New file.
74589         * lib/unistr/u32-stpncpy.c: New file.
74590         * lib/unistr/u-stpncpy.h: New file.
74591
74592         * modules/unistr/u8-strcat: New file.
74593         * modules/unistr/u16-strcat: New file.
74594         * modules/unistr/u32-strcat: New file.
74595         * lib/unistr/u8-strcat.c: New file.
74596         * lib/unistr/u16-strcat.c: New file.
74597         * lib/unistr/u32-strcat.c: New file.
74598         * lib/unistr/u-strcat.h: New file.
74599
74600         * modules/unistr/u8-strchr: New file.
74601         * modules/unistr/u16-strchr: New file.
74602         * modules/unistr/u32-strchr: New file.
74603         * lib/unistr/u8-strchr.c: New file.
74604         * lib/unistr/u16-strchr.c: New file.
74605         * lib/unistr/u32-strchr.c: New file.
74606
74607         * modules/unistr/u8-strcmp: New file.
74608         * modules/unistr/u16-strcmp: New file.
74609         * modules/unistr/u32-strcmp: New file.
74610         * lib/unistr/u8-strcmp.c: New file.
74611         * lib/unistr/u16-strcmp.c: New file.
74612         * lib/unistr/u32-strcmp.c: New file.
74613
74614         * modules/unistr/u8-strcpy: New file.
74615         * modules/unistr/u16-strcpy: New file.
74616         * modules/unistr/u32-strcpy: New file.
74617         * lib/unistr/u8-strcpy.c: New file.
74618         * lib/unistr/u16-strcpy.c: New file.
74619         * lib/unistr/u32-strcpy.c: New file.
74620         * lib/unistr/u-strcpy.h: New file.
74621
74622         * modules/unistr/u8-strcspn: New file.
74623         * modules/unistr/u16-strcspn: New file.
74624         * modules/unistr/u32-strcspn: New file.
74625         * lib/unistr/u8-strcspn.c: New file.
74626         * lib/unistr/u16-strcspn.c: New file.
74627         * lib/unistr/u32-strcspn.c: New file.
74628         * lib/unistr/u-strcspn.h: New file.
74629
74630         * modules/unistr/u8-strdup: New file.
74631         * modules/unistr/u16-strdup: New file.
74632         * modules/unistr/u32-strdup: New file.
74633         * lib/unistr/u8-strdup.c: New file.
74634         * lib/unistr/u16-strdup.c: New file.
74635         * lib/unistr/u32-strdup.c: New file.
74636         * lib/unistr/u-strdup.h: New file.
74637
74638         * modules/unistr/u8-strlen: New file.
74639         * modules/unistr/u16-strlen: New file.
74640         * modules/unistr/u32-strlen: New file.
74641         * lib/unistr/u8-strlen.c: New file.
74642         * lib/unistr/u16-strlen.c: New file.
74643         * lib/unistr/u32-strlen.c: New file.
74644         * lib/unistr/u-strlen.h: New file.
74645
74646         * modules/unistr/u8-strmblen: New file.
74647         * modules/unistr/u16-strmblen: New file.
74648         * modules/unistr/u32-strmblen: New file.
74649         * lib/unistr/u8-strmblen.c: New file.
74650         * lib/unistr/u16-strmblen.c: New file.
74651         * lib/unistr/u32-strmblen.c: New file.
74652
74653         * modules/unistr/u8-strmbtouc: New file.
74654         * modules/unistr/u16-strmbtouc: New file.
74655         * modules/unistr/u32-strmbtouc: New file.
74656         * lib/unistr/u8-strmbtouc.c: New file.
74657         * lib/unistr/u16-strmbtouc.c: New file.
74658         * lib/unistr/u32-strmbtouc.c: New file.
74659
74660         * modules/unistr/u8-strncat: New file.
74661         * modules/unistr/u16-strncat: New file.
74662         * modules/unistr/u32-strncat: New file.
74663         * lib/unistr/u8-strncat.c: New file.
74664         * lib/unistr/u16-strncat.c: New file.
74665         * lib/unistr/u32-strncat.c: New file.
74666         * lib/unistr/u-strncat.h: New file.
74667
74668         * modules/unistr/u8-strncmp: New file.
74669         * modules/unistr/u16-strncmp: New file.
74670         * modules/unistr/u32-strncmp: New file.
74671         * lib/unistr/u8-strncmp.c: New file.
74672         * lib/unistr/u16-strncmp.c: New file.
74673         * lib/unistr/u32-strncmp.c: New file.
74674
74675         * modules/unistr/u8-strncpy: New file.
74676         * modules/unistr/u16-strncpy: New file.
74677         * modules/unistr/u32-strncpy: New file.
74678         * lib/unistr/u8-strncpy.c: New file.
74679         * lib/unistr/u16-strncpy.c: New file.
74680         * lib/unistr/u32-strncpy.c: New file.
74681         * lib/unistr/u-strncpy.h: New file.
74682
74683         * modules/unistr/u8-strnlen: New file.
74684         * modules/unistr/u16-strnlen: New file.
74685         * modules/unistr/u32-strnlen: New file.
74686         * lib/unistr/u8-strnlen.c: New file.
74687         * lib/unistr/u16-strnlen.c: New file.
74688         * lib/unistr/u32-strnlen.c: New file.
74689         * lib/unistr/u-strnlen.h: New file.
74690
74691         * modules/unistr/u8-strpbrk: New file.
74692         * modules/unistr/u16-strpbrk: New file.
74693         * modules/unistr/u32-strpbrk: New file.
74694         * lib/unistr/u8-strpbrk.c: New file.
74695         * lib/unistr/u16-strpbrk.c: New file.
74696         * lib/unistr/u32-strpbrk.c: New file.
74697         * lib/unistr/u-strpbrk.h: New file.
74698
74699         * modules/unistr/u8-strrchr: New file.
74700         * modules/unistr/u16-strrchr: New file.
74701         * modules/unistr/u32-strrchr: New file.
74702         * lib/unistr/u8-strrchr.c: New file.
74703         * lib/unistr/u16-strrchr.c: New file.
74704         * lib/unistr/u32-strrchr.c: New file.
74705
74706         * modules/unistr/u8-strspn: New file.
74707         * modules/unistr/u16-strspn: New file.
74708         * modules/unistr/u32-strspn: New file.
74709         * lib/unistr/u8-strspn.c: New file.
74710         * lib/unistr/u16-strspn.c: New file.
74711         * lib/unistr/u32-strspn.c: New file.
74712         * lib/unistr/u-strspn.h: New file.
74713
74714         * modules/unistr/u8-strstr: New file.
74715         * modules/unistr/u16-strstr: New file.
74716         * modules/unistr/u32-strstr: New file.
74717         * lib/unistr/u8-strstr.c: New file.
74718         * lib/unistr/u16-strstr.c: New file.
74719         * lib/unistr/u32-strstr.c: New file.
74720         * lib/unistr/u-strstr.h: New file.
74721
74722         * modules/unistr/u8-strtok: New file.
74723         * modules/unistr/u16-strtok: New file.
74724         * modules/unistr/u32-strtok: New file.
74725         * lib/unistr/u8-strtok.c: New file.
74726         * lib/unistr/u16-strtok.c: New file.
74727         * lib/unistr/u32-strtok.c: New file.
74728         * lib/unistr/u-strtok.h: New file.
74729
74730         * modules/unistr/u8-uctomb: New file.
74731         * modules/unistr/u16-uctomb: New file.
74732         * modules/unistr/u32-uctomb: New file.
74733         * lib/unistr/u8-uctomb.c: New file.
74734         * lib/unistr/u16-uctomb.c: New file.
74735         * lib/unistr/u32-uctomb.c: New file.
74736
74737         * MODULES.html.sh (Unicode string functions): Add the new modules.
74738
74739 2007-01-08  Bruno Haible  <bruno@clisp.org>
74740
74741         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74742         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74743         subdirectories.
74744
74745 2007-01-08  Karl Berry  <karl@gnu.org>
74746
74747         * doc/error.texi: mention that main() fns must set program_name
74748         when progname is used.
74749
74750 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74751
74752         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74753         WCTYPE_H is empty, for the benefit of builds from non-distclean
74754         directories.  Problem reported by Eric Blake in
74755         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74756
74757 2007-01-08  Bruno Haible  <bruno@clisp.org>
74758
74759         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74760         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74761         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74762         PROVIDE_CANONICALIZE_FILENAME_MODE.
74763         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74764
74765 2007-01-08  Bruno Haible  <bruno@clisp.org>
74766
74767         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74768         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74769         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74770         * lib/fts.c: Likewise.
74771         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74772
74773 2006-12-25  Bruno Haible  <bruno@clisp.org>
74774
74775         * modules/utf8-ucs4-safe: New file.
74776         * lib/utf8-ucs4-safe.h: New file.
74777         * lib/unistr/utf8-ucs4-safe.c: New file.
74778
74779         * modules/utf16-ucs4-safe: New file.
74780         * lib/utf16-ucs4-safe.h: New file.
74781         * lib/unistr/utf16-ucs4-safe.c: New file.
74782
74783         * MODULES.html.sh (Unicode string functions): Add the new modules.
74784
74785 2007-01-08  Bruno Haible  <bruno@clisp.org>
74786
74787         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74788         (Depends-on): Add unitypes.
74789         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74790         (u8_mbtouc_aux): Move out to separate file.
74791         (u8_mbtouc): Use ucs4_t, uint8_t types.
74792         * lib/unistr/utf8-ucs4.c: New file.
74793
74794         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74795         (Depends-on): Add unitypes.
74796         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74797         (u16_mbtouc_aux): Move out to separate file.
74798         (u16_mbtouc): Use ucs4_t, uint16_t types.
74799         * lib/unistr/utf16-ucs4.c: New file.
74800
74801         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74802         (Depends-on): Add unitypes.
74803         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74804         (u8_uctomb_aux): Move out to separate file.
74805         (u8_uctomb): Use ucs4_t, uint8_t types.
74806         * lib/unistr/ucs4-utf8.c: New file.
74807
74808         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74809         (Depends-on): Add unitypes.
74810         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74811         (u16_uctomb_aux): Move out to separate file.
74812         (u16_uctomb): Use ucs4_t, uint16_t types.
74813         * lib/unistr/ucs4-utf16.c: New file.
74814
74815 2006-12-25  Bruno Haible  <bruno@clisp.org>
74816
74817         * modules/unitypes: New file.
74818         * lib/unitypes.h: New file.
74819         * MODULES.html.sh (func_all_modules): New section "Unicode string
74820         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74821         this section. Add unitypes.
74822
74823 2007-01-08  Bruno Haible  <bruno@clisp.org>
74824
74825         Avoid variable names that conflict with those from libtool.
74826         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74827         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74828         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74829         library_names_spec to acl_library_names_spec, hardcode_* to
74830         acl_hardcode_*.
74831         Reported by Ralf Wildenhues.
74832
74833 2007-01-08  Bruno Haible  <bruno@clisp.org>
74834
74835         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74836         definition.
74837         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74838         definition.
74839         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74840         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74841         definition.
74842         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74843         definition.
74844         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74845         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74846         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74847         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74848         definition.
74849         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74850         definition.
74851         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74852         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74853         GC_USE_<algorithm>.
74854         * lib/gc-libgcrypt.c: Likewise.
74855         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74856         * modules/gc-arctwo (configure.ac): Likewise.
74857         * modules/gc-des (configure.ac): Likewise.
74858         * modules/gc-hmac-md5 (configure.ac): Likewise.
74859         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74860         * modules/gc-md2 (configure.ac): Likewise.
74861         * modules/gc-md4 (configure.ac): Likewise.
74862         * modules/gc-md5 (configure.ac): Likewise.
74863         * modules/gc-random (configure.ac): Likewise.
74864         * modules/gc-rijndael (configure.ac): Likewise.
74865         * modules/gc-sha1 (configure.ac): Likewise.
74866
74867 2007-01-08  Bruno Haible  <bruno@clisp.org>
74868
74869         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74870         macro definition.
74871         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74872         definition.
74873         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74874         definition.
74875         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74876         * modules/fcntl-safer (configure.ac): Likewise.
74877         * modules/fopen-safer (configure.ac): Likewise.
74878         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74879         GNULIB_FWRITEERROR macro definition.
74880
74881 2007-01-08  Bruno Haible  <bruno@clisp.org>
74882
74883         * m4/gnulib-common.m4: New file.
74884         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74885         (func_get_filelist): Add m4/gnulib-common.m4.
74886
74887 2007-01-08  Bruno Haible  <bruno@clisp.org>
74888
74889         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74890         command.
74891
74892 2007-01-08  Jim Meyering  <jim@meyering.net>
74893
74894         Use a more robust test for a "can't happen" condition.
74895         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74896         narrowed the st_size value.  Presuming the "can't happen" condition
74897         is true, that narrowing could conceivably convert an invalid st_size
74898         value into a valid one.  Instead, use a change based on Matthew
74899         Woehlke's original patch.
74900
74901         Slight readability improvement: use an assert-like macro
74902         in place of literal "abort ()" uses.
74903         * lib/fts.c (fts_assert): Define.
74904         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74905         Use this macro instead of a bare 'abort'.
74906
74907 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74910         simply work around them.
74911         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74912         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74913         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74914         declaring.
74915         Don't bother to define as macros, since the standard doesn't require it.
74916         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74917         longer worry about IRIX 5.3.
74918         (HAVE_WCTYPE_CTMP_BUG): Remove.
74919
74920 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74923         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74924         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74925         Problems reported by Georg Schwarz for IRIX 5.3.
74926
74927         * gnulib-tool (autoconf_minversion): Take the maximum version number
74928         found, not the minimum.  Problem reported by James Youngman.
74929
74930 2007-01-03  Karl Berry  <karl@gnu.org>
74931
74932         * doc/error.texi: new file, explaining interaction with progname.
74933         * doc/gnulib.texi: include it.  Update copyright.
74934
74935 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74936
74937         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74938         AC_CANONICAL_HOST, to improve autobuild outputs.
74939
74940 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74941             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74942
74943         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74944         sockets, server sockets, and other file descriptors.  Count errors
74945         to compute the return value.  Reorder the code a bit to be easier
74946         to follow.  Don't set event bits that were not requested (except
74947         POLLERR and POLLHUP).
74948
74949 2007-01-01  Bruno Haible  <bruno@clisp.org>
74950
74951         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74952
74953 2007-01-03  Jim Meyering  <jim@meyering.net>
74954
74955         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74956
74957 2007-01-02  Bruno Haible  <bruno@clisp.org>
74958
74959         * modules/settime (Include): Require timespec.h.
74960         * modules/nanosleep (Include): Likewise.
74961
74962 2007-01-01  Bruno Haible  <bruno@clisp.org>
74963
74964         * gnulib-tool (func_emit_copyright_notice): Bump year.
74965         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74966
74967 2007-01-01  Bruno Haible  <bruno@clisp.org>
74968
74969         Improve support for OpenBSD.
74970         * build-aux/config.rpath (libname_spec): Export.
74971         (library_names_spec): New variable. Export.
74972         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74973         library_names_spec from the config.rpath output. Locate shared library
74974         through the name pattern in library_names_spec.
74975
74976 2007-01-01  Eric Blake  <ebb9@byu.net>
74977
74978         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74979
74980 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74983         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74984         assume the C locale, and avoid an "eval" that could cause trouble.
74985         Problem with SORT reported by Bob Proulx.
74986
74987         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74988         Define.  Trivial patch from Henning Nielsen Lund, originally
74989         sent to bug-grep@gnu.org today.
74990
74991 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74992
74993         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74994         struct stat.  Problem reported by Henning Nielsen Lund.
74995         * lib/acl.c: Include acl.h first, to check interface.  Don't
74996         bother to include sys/types.h and sys/stat.h again.
74997
74998 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74999
75000         Import the following change from libc; problem reported by
75001         Sven Verdoolaege.
75002
75003         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75004
75005         [BZ #1373]
75006         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75007
75008 2006-12-28  Jim Meyering  <jim@meyering.net>
75009
75010         * build-aux/announce-gen: Do not assume that the package
75011         builds any of tar.gz, tar.bz2, and .xdelta files.
75012         Suggestion from Simon Josefsson.
75013
75014 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75015
75016         * modules/announce-gen: New file.
75017
75018 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75019
75020         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75021         handles its gotchas now.
75022         * lib/mbswidth.c: Likewise.
75023         * lib/wcwidth.h: Likewise.
75024         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75025         and iswcntrl; the wctype module does this stuff now.
75026         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75028         * modules/mbchar (Depends-on): Add wctype.
75029         * modules/mbswidth (Depends-on): Likewise.
75030         * modules/wcwidth (Depends-on): Likewise.
75031
75032 2006-12-27  Eric Blake  <ebb9@byu.net>
75033
75034         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75035         module uses more than what <wctype.h> is required to provide.
75036
75037 2006-12-26  Eric Blake  <ebb9@byu.net>
75038
75039         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75040
75041 2006-12-26  Eric Blake  <ebb9@byu.net>
75042
75043         * modules/absolute-header: New module.
75044         * modules/fcntl (Depends-on): Depend on it.
75045         * modules/inttypes (Depends-on): Likewise.
75046         * modules/stdint (Depends-on): Likewise.
75047         * modules/sys_stat (Depends-on): Likewise.
75048         * modules/wctype (Depends-on): Likewise.
75049         * MODULES.html.sh (Support for building libraries and
75050         executables): Document it.
75051
75052 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * gnulib-tool (SED): Remove, undoing previous change.
75055         The problem was that it broke coreutils on Solaris, because
75056         "sed --posix" leaked into a makefile.
75057         (sed): New alias, if 'alias' and GNU sed.
75058
75059 2006-12-24  Jim Meyering  <jim@meyering.net>
75060
75061         Work around an fchownat bug in glibc-2.4:
75062         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75063         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75064         in spite of the -P option.
75065         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75066         New macros.
75067         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75068         * modules/openat (Files): Add lib/fchownat.c.
75069         * lib/openat.c (fchownat): Don't define here.  Move to...
75070         * lib/fchownat.c: ...this new file.
75071
75072 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75073
75074         Fix bug reported by Bruno Haible in
75075         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75076         where quotearg.c didn't compile on Mac OS X 10.2 because it
75077         lacks <wchar.h> and wint_t.
75078         * lib/wctype_.h (__wctype_wint_t): New type.
75079         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75080         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75081         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75082         Arg is now of type __wctype_wint_t, not wint_t.
75083         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75084         substitute HAVE_WINT_T.
75085         * modules/wctype (Files): Add m4/wint_t.m4.
75086         (wctype.h): Substitute HAVE_WINT_T.
75087
75088 2006-12-23  Bruno Haible  <bruno@clisp.org>
75089
75090         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75091
75092 2006-12-23  Bruno Haible  <bruno@clisp.org>
75093
75094         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75095         S_ISLNK.
75096         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75097         mingw.
75098
75099 2006-12-22  Bruno Haible  <bruno@clisp.org>
75100
75101         * lib/copy-file.c: Include acl.h.
75102         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75103         Close the file descriptors only after being done with copy_acl.
75104         * modules/copy-file (Depends-on): Add acl.
75105
75106 2006-12-22  Bruno Haible  <bruno@clisp.org>
75107
75108         * gnulib-tool (SED): New variable.
75109         Use $SED instead of sed everywhere.
75110
75111 2006-12-22  Bruno Haible  <bruno@clisp.org>
75112
75113         * modules/no-c++: New file.
75114         * m4/no-c++.m4: New file.
75115         * MODULES.html.sh (Support for building libraries and executables):
75116         Add no-c++.
75117
75118 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75119
75120         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75121         Include <limits.h>, and use its INT_MAX to rewrite the
75122         j loop so that it does not overflow 'int'.  Problem reported by
75123         Ralf Wildenhues in
75124         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75125         Play it safe by shifting left by 1 rather than multiplying by 2,
75126         as GCC is less likely to optimize this away when the value
75127         is signed (when it assumes overflow leads to undefined behavior).
75128         Also, don't assume time_t uses two's complement.
75129
75130 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75131
75132         * MODULES.html.sh: New module wctype.
75133         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75134         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75135         <wctype.h>, since the new wctype module should fix this.
75136         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75137         the wctype module should arrange for it.
75138         * lib/regex_internal.h: Likewise.
75139         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75140         since the wctype module should handle this now.
75141         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75142         * modules/fnmatch (Depends-on): Add wctype.
75143         * modules/quotearg (Depends-on): Likewise.
75144         * modules/regex (Depends-on): Likewise.
75145
75146 2006-12-19  Bruno Haible  <bruno@clisp.org>
75147
75148         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75149         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75150
75151 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75152
75153         * modules/savewd (Depends-on): Fix dependency on fcntl.
75154
75155 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75156
75157         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75158         conforms to C99, rather than relying on the user's environment
75159         setting of STDINT_H.
75160
75161 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75162         and Eric Blake  <ebb9@byu.net>
75163
75164         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75165         This is more consistent with the other defines here.
75166         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75167         Port to z/OS.  Problem reported by Paul Gilmartin.
75168         Change local vars to use gl_ prefix rather than ac_.
75169         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75170         with other defines.
75171         * modules/double-slash-root: New module.
75172         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75173         (Depends-on): Add double-slash-root.
75174         * MODULES.html.sh (File system functions): Mention new module.
75175
75176 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75177
75178         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75179         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75180         This is for the benefit of gzip, which doesn't do i18n.
75181
75182 2006-12-12  Jim Meyering  <jim@meyering.net>
75183
75184         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75185         Reported by Andreas Schwab <schwab@suse.de>.
75186
75187 2006-12-12  Bruno Haible  <bruno@clisp.org>
75188
75189         Merge these changes.
75190         2006-09-05  Bruno Haible  <bruno@clisp.org>
75191         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75192         iconv_alloc succeeded.
75193         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75194         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75195         test for " && dest " at the end - dest is always != NULL there. Call
75196         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75197         with 2xNULL arguments, also to flush the state storage. Handle the
75198         IRIX iconv behaviour. Realloc the final result, to throw away unused
75199         memory.
75200
75201 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75202
75203         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75204         and fchmodat unconditionally, since glibc 2.4 has them.
75205         Problem reported by Arkadiusz Miskiewicz.
75206
75207 2006-12-10  Bruno Haible  <bruno@clisp.org>
75208
75209         * gnulib-tool (func_import): Show the include files only for those
75210         modules that are copied and specified.
75211         Reported by Karl Berry.
75212
75213 2006-12-08  Jim Meyering  <jim@meyering.net>
75214
75215         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75216         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75217
75218         * build-aux/announce-gen: Add two new options, both optional:
75219         --bootstrap-tools=TOOL_LIST
75220               a comma-separated list of tools, e.g.,
75221               autoconf,automake,bison,gnulib
75222         --gnulib-snapshot-date=DATE
75223               if gnulib is in the bootstrap tool list,
75224               then report this as the snapshot date.
75225               If not specified, use the current date/time.
75226               If you specify a date here, be sure it's UTC.
75227
75228 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75229
75230         * tests/test-argp-2.sh: Fix test to match actual output.
75231         (func_compare): Fix sed script to be portable.
75232
75233 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75234
75235         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75236         workaround for this case.  It is not autoconfigured now; offhand
75237         it's hard to see how to autoconfigure it.
75238
75239 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75240
75241         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75242         a directory that is about to be chowned.  Such a directory's
75243         initial file permissions should permit the owner only and this
75244         should not be changed until after the chown, since the group and
75245         other bits would be incorrect if they granted permission before
75246         the chown.
75247
75248         Fix porting problem for iswctype reported by Georg Schwarz in:
75249         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75250         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75251         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75252         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75253         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75254
75255 2006-12-03  Jim Meyering  <jim@meyering.net>
75256
75257         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75258         p->fts_statp may not yet be defined.
75259         (fts_read): Instead, set it in the caller, once p->fts_statp is
75260         sure to be defined, and corresponds to a top-level directory.
75261         This bug made du -x fail.  Here's the coreutils test case:
75262         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75263         Reported by Mike Frysinger.
75264
75265 2006-12-01  Jim Meyering  <jim@meyering.net>
75266
75267         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75268         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75269         Reported by Simon Josefsson.
75270
75271 2006-11-30  Jim Meyering  <jim@meyering.net>
75272
75273         * m4/warning.m4: Use the all-permissive copyright notice
75274         recommended by RMS (rather than LGPL).
75275         * m4/vararrays.m4: Likewise.
75276         * m4/flexmember.m4: Likewise.
75277
75278 2006-11-29  Bruno Haible  <bruno@clisp.org>
75279
75280         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75281         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75282         using +=.
75283         Reported by Simon Josefsson <simon@josefsson.org>.
75284
75285 2006-11-28  James Youngman <jay@gnu.org>
75286
75287         * README: Advise users that they might find the bug-gnulib@gnu.org
75288         and autotools-announce@gnu.org mailing lists useful.
75289
75290 2006-11-28  Bruno Haible  <bruno@clisp.org>
75291
75292         * m4/ptrdiff_max.m4: Remove file.
75293
75294 2006-11-21  Bruno Haible  <bruno@clisp.org>
75295
75296         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75297         _AC_COMPUTE_INT.
75298         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75299         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75300         _AC_COMPUTE_INT.
75301         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75302         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75303         _AC_COMPUTE_INT.
75304         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75305
75306 2006-11-28  Jim Meyering  <jim@meyering.net>
75307
75308         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75309         warning from "gcc -Wshadow" about shadowing the builtin.
75310
75311 2006-11-27  Bruno Haible  <bruno@clisp.org>
75312
75313         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75314         _AC_COMPUTE_INT.
75315         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75316
75317 2006-11-27  Bruno Haible  <bruno@clisp.org>
75318             Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75321
75322 2006-11-26  Bruno Haible  <bruno@clisp.org>
75323
75324         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75325         noinst_LTLIBRARIES.
75326
75327 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75328             Bruno Haible  <bruno@clisp.org>
75329
75330         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75331         if compiling with "gcc -ansi".
75332
75333 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75334
75335         Fix some incompatibilities with gcc -ansi -pedantic.
75336         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75337         if compiling pedantically with GCC, unless it's C99 or later.
75338         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75339         it mishandles gcc -ansi -pedantic as well.
75340         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75341         if gcc -pedantic.
75342         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75343         initializers for struct if -pedantic, unless it's C99 or later.
75344
75345 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75346
75347         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75348         Don't close an fd more than once. Identical atimes indicate
75349         success, not failure.
75350
75351 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75352
75353         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75354
75355 2006-11-23  Jim Meyering  <jim@meyering.net>
75356
75357         * build-aux/announce-gen: New file.  From coreutils.
75358
75359 2006-11-22  Jim Meyering  <jim@meyering.net>
75360
75361         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75362         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75363         (fts_read): Use a temporary to narrow the overused st_size member
75364         before using it in a switch statement.  Reported by Matthew Woehlke.
75365
75366         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75367         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75368
75369 2006-11-20  Bruno Haible  <bruno@clisp.org>
75370
75371         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75372         changequote instead of pairs of brackets.
75373         Reported by Andreas Schwab <schwab@suse.de>.
75374
75375 2006-11-21  Jim Meyering  <jim@meyering.net>
75376
75377         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75378         so as to remain compatible with older compilers.
75379         Patch from Michael Deutschmann.
75380
75381 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * MODULES.html.sh (File system functions): Add openat.
75384
75385         * lib/openat.h (rpl_fstatat): New macro, if
75386         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75387         (fstatat): Define to rpl_fstatat under the same conditions,
75388         unless COMPILING_FSTATAT.
75389         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75390         seems to have the bug.
75391         * lib/fstatat.c: New file.
75392         * modules/openat (Files): Add it.
75393
75394 2006-11-20  Bruno Haible  <bruno@clisp.org>
75395
75396         * Makefile: New file.
75397
75398 2006-11-20  Jim Meyering  <jim@meyering.net>
75399
75400         The beginnings of syntax-related checks for gnulib.
75401         * lib/Makefile: New file.
75402         * lib/t-idcache: New script.  Ensure that the two halves of
75403         idcache.c stay in sync.
75404
75405         * lib/idcache.c: Adjust comments in user- and group- portions to
75406         be more accurate, and to be consistent with one another.
75407
75408 2006-11-20  Jim Meyering  <jim@meyering.net>
75409
75410         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75411         continue using the flexible array member (thus, this module performs
75412         half as many malloc calls), with the addition that...
75413         (getgroup, getuser): Consistently record a non-match via an empty
75414         "name" string, and map an empty string match to a NULL return value.
75415         * modules/idcache (Depends-on): Re-add flexmember.
75416
75417         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75418         (getuidbyname, getgroup, getgidbyname): Likewise.
75419
75420         Use cleaner syntax: NULL rather than 0.
75421         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75422
75423 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75424
75425         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75426         It mishandled the case where the group was missing.
75427         Problem reported by Greg Schafer.
75428         * modules/idcache: Likewise.
75429
75430 2006-11-18  Jim Meyering  <jim@meyering.net>
75431
75432         * check-module (%exempt_header): Add exception for some
75433         conditionally-included headers.
75434
75435         * modules/i-ring (Depends-on): Add verify.
75436         (License): Change to LGPL.
75437
75438 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75439
75440         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75441         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75442         and inttostr.h.  Use snprintf rather than uinttostr, so that
75443         LGPLed code doesn't depend on GPLed.
75444
75445 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75446
75447         * modules/inline (License): Change from GPL to LGPL.
75448
75449 2006-11-17  Jim Meyering  <jim@meyering.net>
75450
75451         * modules/d-type (License): Switch to LGPL.
75452
75453 2006-11-15  Bruno Haible  <bruno@clisp.org>
75454
75455         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75456
75457 2006-11-15  Eric Blake  <ebb9@byu.net>
75458
75459         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75460         the module dependency.
75461
75462 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75463             Bruno Haible  <bruno@clisp.org>
75464
75465         * gnulib-tool (func_create_testdir): Add license consistency check.
75466
75467 2006-11-15  Eric Blake  <ebb9@byu.net>
75468
75469         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75470         random "(cached)" in configure output.
75471
75472 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75473
75474         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75475         test for conforming inttypes.h is both announced and cached.
75476
75477         * MODULES.html.sh (seen_modules, seen_files): New variables.
75478         (func_module): Rewrite to use a few less gnulib-tool and sed
75479         invocations.  Avoid a couple of quadratic algorithms for ...
75480         (missed_modules, missed_files): ... these, with ...
75481         (func_append, func_tmpdir): ... these new functions, from
75482         gnulib-tool.  Analogously, install traps for cleanup.
75483
75484         * tests/test-gc.c (main): Remove unused variables.
75485         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75486
75487 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         * modules/inttostr (License): Change to LGPL.
75490
75491 2006-11-14  Eric Blake  <ebb9@byu.net>
75492
75493         * modules/tempname (License): Change to LGPL.
75494
75495 2006-11-14  Eric Blake  <ebb9@byu.net>
75496
75497         * doc/functions.texi (Function Portability): *printf functions on
75498         Cygwin now understand all POSIX size specifiers.
75499
75500 2006-11-14  Bruno Haible  <bruno@clisp.org>
75501
75502         * modules/c-ctype (License): Change to LGPL.
75503
75504 2006-11-12  Bruno Haible  <bruno@clisp.org>
75505
75506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75507         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75508         for GNOME libraries, for which the include files are installed in
75509         subdirectories of $prefix/include.
75510
75511 2006-11-12  Bruno Haible  <bruno@clisp.org>
75512
75513         * m4/lib-link.m4: Require at least autoconf-2.54.
75514         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75515         name to underscores for the --with option.
75516
75517 2006-11-13  Bruno Haible  <bruno@clisp.org>
75518
75519         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75520         the tests directory.
75521         Reported by Ralf Wildenhues.
75522
75523 2006-11-13  Bruno Haible  <bruno@clisp.org>
75524
75525         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75526         (func_emit_initmacro_end): Undo the override here.
75527         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75528         Works around the famous automake error in coreutils.
75529
75530 2006-11-13  Eric Blake  <ebb9@byu.net>
75531
75532         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75533         element, not its node.
75534
75535 2006-11-12  Bruno Haible  <bruno@clisp.org>
75536
75537         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75538         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75539
75540 2006-11-12  Bruno Haible  <bruno@clisp.org>
75541
75542         * gnulib-tool: New option --local-symlink.
75543         (func_usage): Document it.
75544         (lsymbolic): New variable.
75545         (func_import, func_create_testdir): If --symlink was not specified,
75546         test whether --local-symlink was specified and the file comes from
75547         the local_gnulib_dir.
75548
75549 2006-11-12  Bruno Haible  <bruno@clisp.org>
75550
75551         * gnulib-tool (func_ln): New function.
75552         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75553
75554 2006-11-12  Bruno Haible  <bruno@clisp.org>
75555
75556         Finish support for source files in subdirectories.
75557         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75558         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75559         AUTOMAKE_OPTIONS.
75560         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75561
75562 2006-11-12  Bruno Haible  <bruno@clisp.org>
75563
75564         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75565         EXTRA_lib_SOURCES augmentation.
75566         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75567
75568 2006-11-12  Jim Meyering  <jim@meyering.net>
75569
75570         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75571         file descriptors.  This also averts a failure on systems with
75572         native openat support when a traversed directory lacks "x" access.
75573         * lib/fts_.h: Include "i-ring.h"
75574         (struct FTS) [fts_fd_ring]: New member.
75575         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75576         (FCHDIR): Add parentheses.
75577         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75578         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75579         When descending, rather than simply closing the previous
75580         fts_cwd_fd value, push that file descriptor onto the ring.
75581         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75582         (fts_open): Initialize the new fd_ring member.
75583         (fts_close): Clear the ring.
75584         (fts_safe_changedir): When possible, use our new fd_ring to skip
75585         the diropen and fstat and dev/ino comparison that would normally
75586         accompany a virtual `chdir ("..")'.
75587
75588         * modules/fts (Depends-on): Add i-ring.
75589         * modules/i-ring: New module.
75590         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75591         * m4/i-ring.m4: New file.
75592
75593 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75594
75595         * gnulib-tool (func_create_testdir): Fix replacement of
75596         `build-aux' in configure.ac.  Run autotools in gltests
75597         subdirectory.
75598         (func_create_testdir, func_create_megatestdir, test): There is
75599         no need for '--force' in most autotool invocations in a new
75600         tree.  Actually fail the whole test if any of the tools, or the
75601         configure or make stages fail.
75602
75603         Sync from Automake.
75604         * build-aux/gnupload: Revert last change.  Add pointer to upload
75605         instructions of the GNU Maintenance Instructions.
75606         Suggestion by Karl Berry.
75607
75608 2006-11-10  Jim Meyering  <jim@meyering.net>
75609
75610         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75611
75612 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75613
75614         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75615         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75616         (bind_textdomain_codeset) [! ENABLE_NLS]:
75617         Evaluate all the arguments.  That way, callers get compatible behavior
75618         if the arguments have side effects.  Also, it avoids some GCC
75619         diagnostics in some cases; Joel E. Denny reported problems when Bison
75620         was configured with --enable-gcc-warnigs.
75621
75622 2006-11-10  Jim Meyering  <jim@meyering.net>
75623
75624         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75625         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75626         account.
75627
75628 2006-11-10  Jim Meyering  <jim@meyering.net>
75629
75630         * modules/inline: New file/module.
75631         * modules/xalloc (Files): Remove m4/inline.m4.
75632         (Depends-on): Add inline, instead.
75633         * modules/oset: Likewise.
75634         * modules/list: Likewise.
75635
75636 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75639         Problem reported by Matthew Woehlke.
75640
75641 2006-11-09  Bruno Haible  <bruno@clisp.org>
75642
75643         * lib/tempname.c (gen_tempname): Remove variant that invokes
75644         __gen_tempname.
75645         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75646         __gen_tempname.
75647
75648 2006-11-08  Bruno Haible  <bruno@clisp.org>
75649
75650         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75651         to 'yes' instead of 'cross-compiling'.
75652
75653 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75654
75655         * lib/quotearg.h (quotearg_free): New decl.
75656         * lib/quotearg.c (quotearg_free): New function.
75657         (slot0, nslots, slotvec0, slotvec):
75658         Now file-scope so that quotearg_free can get at them.
75659
75660 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75661
75662         Sync from Automake.
75663         * build-aux/gnupload: Add missing 'gnu' to example URL.
75664         Report by Karl Berry.
75665
75666 2006-11-08  Bruno Haible  <bruno@clisp.org>
75667
75668         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75669         Suggested by Paul Eggert.
75670
75671 2006-11-08  Jim Meyering  <jim@meyering.net>
75672
75673         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75674         It's already included if !_LIBC.
75675         (fts_safe_changedir): Add a comment.
75676
75677 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75680         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75681         Matthew Woehlke.
75682
75683         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75684         definitions up, to avoid colliding with change below.
75685         (static_inline) [HAVE_INLINE]: New macro.
75686         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75687         Provide extern decls when !HAVE_INLINE.  Do not define unless
75688         static_inline is defined, either by us or by xmalloc.c.  Use
75689         static_inline rather than static inline.
75690         (XCALLOC): Optimize sizeof(T) = 1 case.
75691         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75692
75693 2006-11-07  Bruno Haible  <bruno@clisp.org>
75694
75695         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75696         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75697         AC_C_INLINE.
75698         * modules/xalloc (Files): Add m4/inline.m4.
75699
75700 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75701
75702         * README: Fix typo.
75703         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75704         (Miscellanous Notes): ...from this.
75705
75706 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75707
75708         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75709         Mention that offsetof should be used instead of sizeof.
75710         From Bruno Haible.
75711
75712 2006-11-07  Bruno Haible  <bruno@clisp.org>
75713
75714         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75715
75716 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75719         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75720         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75721         (gl_tree_add_before, gl_tree_add_after):
75722         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75723         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75724         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75725         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75726         (gl_linked_add_after, gl_linked_add_at): Likewise.
75727         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75728         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75729         (gl_tree_add_before, gl_tree_add_after): Likewise.
75730         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75731         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75732         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75733
75734 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75735
75736         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75737
75738 2006-11-06  Bruno Haible  <bruno@clisp.org>
75739
75740         * m4/inline.m4: New file.
75741         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75742         * modules/list (Files): Add m4/inline.m4.
75743         * modules/oset (Files): Likewise.
75744
75745 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75746
75747         * lib/idcache.c: Include <stddef.h>, for offsetof.
75748         (struct userid.name): Change from char * to a flexible array member.
75749         All uses changed.
75750         * modules/idcache (Depends-on): Add flexmember.
75751
75752         * MODULES.html.sh (Core language properties): New module flexmember.
75753         * modules/flexmember, m4/flexmember.m4: New files.
75754
75755         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75756         inline functions that are identical with the old xnmalloc_inline,
75757         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75758         that we can avoid some unnecessary integer multiplications and
75759         divisions in the common case where the element size is known at
75760         compile time.
75761         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75762         needed.
75763         (xnboundedmalloc): Remove.
75764         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75765         arguments, for consistency with rest of this header.
75766         (xcharalloc): Rewrite using XNMALLOC.
75767         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75768         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75769         versions have been moved to lib/xalloc.h and renamed to be the
75770         non-*_inline versions.
75771         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75772         and xnrealloc functions, since those functions are now inline and
75773         now call us.
75774         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75775         renaming described above.
75776         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75777         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75778         captures the dependency in AC_C_INLINE.
75779
75780         New module canonicalize-lgpl, proposed by Charles Wilson in
75781         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75782         with a few small changes afterwards.
75783         * MODULES.html.sh (File system functions): New module
75784         canonicalize-lgpl.
75785         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75786         and canonicalize_file_name.
75787         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75788         * modules/canonicalize-lgpl: New files.
75789
75790 2006-11-05  Bruno Haible  <bruno@clisp.org>
75791
75792         * gnulib-tool (func_import, func_create_testdir): Create directories
75793         also for files in subdirectories of lib/.
75794
75795 2006-11-05  Bruno Haible  <bruno@clisp.org>
75796
75797         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75798         ANSI C compliant.
75799
75800 2006-11-03  Bruno Haible  <bruno@clisp.org>
75801
75802         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75803         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75804         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75805         (xnboundedmalloc): New inline function.
75806         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75807         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75808         xmalloc.
75809         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75810         xmalloc.
75811         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75812         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75813         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75814         xmalloc.
75815         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75816         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75817         xmalloc.
75818         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75819         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75820         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75821         xmalloc.
75822         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75823         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75824         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75825         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75826         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75827         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75828         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75829
75830 2006-11-03  Bruno Haible  <bruno@clisp.org>
75831
75832         * lib/c-ctype.h [C++]: Define functions without name mangling.
75833         * lib/fwriteerror.h [C++]: Likewise.
75834         * lib/gcd.h [C++]: Likewise.
75835         * lib/linebreak.h [C++]: Likewise.
75836
75837 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75840         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75841         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75842         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75843         Check for functions and headers just once.
75844         Check for declaration of canonicalize_file_name.
75845         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75846
75847 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75848
75849         * gnulib-tool (func_import): Fix typo in actioncmd.
75850
75851 2006-11-02  Bruno Haible  <bruno@clisp.org>
75852
75853         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75854         newline sequence in the Makefile.am snippet as a space, like "make"
75855         does.
75856         Reported by Roger Persson <perrog@gmail.com>.
75857
75858 2006-11-01  Bruno Haible  <bruno@clisp.org>
75859
75860         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75861         already declared in <string.h>.
75862         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75863
75864 2006-11-01  Bruno Haible  <bruno@clisp.org>
75865
75866         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75867         * lib/strcase.h: Include <string.h>.
75868         (strcasecmp): Define to rpl_strcasecmp here.
75869
75870 2006-11-01  Bruno Haible  <bruno@clisp.org>
75871
75872         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75873
75874 2006-11-01  Eric Blake  <ebb9@byu.net>
75875
75876         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75877
75878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75879
75880 2006-10-29  Bruno Haible  <bruno@clisp.org>
75881
75882         Make it compile in C++ mode.
75883         * lib/full-write.c (full_rw): Add a cast.
75884
75885 2006-11-01  Bruno Haible  <bruno@clisp.org>
75886
75887         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75888         be POSIX compliant.
75889         Reported by Roger Persson <perrog@gmail.com>.
75890
75891 2006-11-01  Eric Blake  <ebb9@byu.net>
75892
75893         * lib/getopt_.h: Fix comments.
75894
75895 2006-10-31  Eric Blake  <ebb9@byu.net>
75896
75897         * modules/tmpdir (Depends-on): Add sys_stat.
75898         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75899         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75900         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75901         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75902         tempname.
75903
75904 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         Avoid some C++ diagnostics reported by Bruno Haible.
75907         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75908         xmalloc.
75909         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75910         (struct slotvec): Move to top level.
75911         (quotearg_n_options): Rewrite to avoid xmalloc.
75912         * lib/xalloc.h (xcharalloc): New function.
75913         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75914         [defined __cplusplus]: Add function template that provides result
75915         type propagation.  This part of the change is from Bruno Haible.
75916
75917 2006-10-29  Bruno Haible  <bruno@clisp.org>
75918
75919         Make it compile in C++ mode.
75920         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75921         * lib/strnlen1.c (strnlen1): Cast memchr result.
75922         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75923         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75924         (create_temp_dir): Rename local variable 'template'.
75925         (compile_csharp_using_sscli): Add cast.
75926         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75927         * lib/findprog.c (find_in_path): Likewise.
75928         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75929         * lib/wait-process.c (register_slave_subprocess): Likewise.
75930
75931 2006-10-22  Bruno Haible  <bruno@clisp.org>
75932
75933         * modules/tsearch: New file.
75934         * lib/tsearch.h: New file.
75935         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75936         * m4/tsearch.m4: New file.
75937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75938
75939 2006-10-29  Eric Blake  <ebb9@byu.net>
75940
75941         * lib/arcfour.c: Assume config.h.
75942         * lib/arctwo.c: Likewise.
75943         * lib/base64.c: Likewise.
75944         * lib/check-version.c: Likewise.
75945         * lib/crc.c: Likewise.
75946         * lib/des.c: Likewise.
75947         * lib/gc-gnulib.c: Likewise.
75948         * lib/gc-libgcrypt.c: Likewise.
75949         * lib/gc-pbkdf2-sha1.c: Likewise.
75950         * lib/getaddrinfo.c: Likewise.
75951         * lib/getdelim.c: Likewise.
75952         * lib/getline.c: Likewise.
75953         * lib/hmac-md5.c: Likewise.
75954         * lib/hmac-sha1.c: Likewise.
75955         * lib/iconvme.c: Likewise.
75956         * lib/md2.c: Likewise.
75957         * lib/md4.c: Likewise.
75958         * lib/memxor.c: Likewise.
75959         * lib/read-file.c: Likewise.
75960         * lib/readline.c: Likewise.
75961         * lib/rijndael-alg-fst.c: Likewise.
75962         * lib/rijndael-api-fst.c: Likewise.
75963         * lib/xgetdomainname.c: Likewise.
75964
75965 2006-10-28  Eric Blake  <ebb9@byu.net>
75966
75967         * lib/xstrndup.c: Assume config.h.
75968
75969 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75970
75971         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75972         stat-macros.h is now for our own macros, whereas stat_h is for
75973         macros in the <sys/stat.h> name space.
75974         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75975         (STAT_MACROS_H): Remove.
75976         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75977         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75978         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75979         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75980         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75981         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75982         Move these macros to ...
75983         * lib/stat_.h: here.  Don't include stat-macros.h.
75984         * lib/canonicalize.c: Don't include stat-macros.h.
75985         * lib/chown.c: Likewise.
75986         * lib/euidaccess.c: Likewise.
75987         * lib/file-type.c: Likewise.
75988         * lib/filemode.c: Likewise.
75989         * lib/glob.c: Likewise.
75990         * lib/isapipe.c: Likewise.
75991         * lib/lchown.c: Likewise.
75992         * lib/lstat.c: Likewise.
75993         * lib/mkdir-p.c: Likewise.
75994         * lib/rmdir.c: Likewise.
75995         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75996         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75997         unless mkdir isn't declared, to speed up 'configure'.
75998         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75999         would define all the S_* symbols.
76000         * modules/canonicalize (Depends-on):
76001         Depend on sys_stat, not stat-macros.
76002         * modules/chown: Likewise.
76003         * modules/euidaccess: Likewise.
76004         * modules/filemode: Likewise.
76005         * modules/file-type: Likewise.
76006         * modules/glob: Likewise.
76007         * modules/isapipe: Likewise.
76008         * modules/lchown: Likewise.
76009         * modules/lstat: Likewise.
76010         * modules/mkancesdirs: Likewise.
76011         * modules/rmdir: Likewise.
76012         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76013         * modules/modechange: Likewise.
76014         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76015         (configure.ac): Remove gl_STAT_MACROS.
76016         * modules/sys_stat (Depends-on): Remove stat-macros.
76017
76018 2006-10-27  Bruno Haible  <bruno@clisp.org>
76019
76020         * m4/signed.m4: Remove file.
76021         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76022         invocation.
76023         * modules/vasnprintf (Files): Remove m4/signed.m4.
76024
76025 2006-10-27  Bruno Haible  <bruno@clisp.org>
76026
76027         Update to GNU gettext 0.16.
76028         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76029         m4/inttypes-h.m4, m4/signed.m4.
76030         * m4/gettext.m4: Update to GNU gettext 0.16.
76031         * m4/intl.m4: New file, from GNU gettext.
76032         * m4/intldir.m4: New file, from GNU gettext.
76033         * config/srclist.txt: Update
76034
76035 2006-10-27  Eric Blake  <ebb9@byu.net>
76036
76037         * MODULES.html.sh: Document tempname.
76038         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76039         dependencies.
76040         (Files): Move lib/tempname.c...
76041         * modules/tempname: ...to this new module.
76042         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76043         (gl_PREREQ_TEMPNAME): Move...
76044         * m4/tempname.m4: ...to this new file.
76045         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76046         * modules/sys_stat (Depends-on): Add stat-macros.
76047         * lib/stat_.h (includes): Pick up stat macros.
76048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76049         if stat macros are broken.
76050         * lib/tempname.c (includes): No need to include "stat-macros.h".
76051         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76052         (direxists, __path_search) [!_LIBC]: Don't compile these in
76053         gnulib; the tmpdir module covers that.
76054         * lib/tempname.h: New file.
76055
76056 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76057
76058         * COPYING: Explain how gnulib-tool converts licence headers.
76059         Almost all wording by Eric Blake.
76060
76061 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76062
76063         * lib/mbchar.h (is_basic_table): Make read-only.
76064         * lib/mbchar.c (is_basic_table): Likewise.
76065         Reported by John Darrington.
76066
76067 2006-10-25  Bruno Haible  <bruno@clisp.org>
76068
76069         * lib/progname.h (set_program_name): Undefine before defining.
76070
76071 2006-10-25  Bruno Haible  <bruno@clisp.org>
76072
76073         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76074         false for non-gcc C++ compilers.
76075         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76076
76077 2006-10-24  Bruno Haible  <bruno@clisp.org>
76078
76079         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76080         iconv implementations like Irix iconv.
76081
76082 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         * modules/vararrays: New file.
76085         * m4/vararrays.m4: New file, taken from diffutils.
76086         * MODULES.html.sh: New module vararrays.
76087
76088 2006-10-24  Karl Berry  <karl@gnu.org>
76089
76090         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76091         Don't call GNU Unix.
76092
76093 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76094
76095         * users.txt: Add Libtool.
76096
76097         Sync from Libtool:
76098
76099         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76100
76101         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76102         to gnulib's policy of including config.h unconditionally.
76103
76104 2006-10-24  Bruno Haible  <bruno@clisp.org>
76105
76106         * modules/wcwidth (Files): Add m4/wint_t.m4.
76107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76108         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76109
76110 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76111
76112         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76113         to pacify GCC with some -W flags enabled.  Problem reported by
76114         Bruno Haible.
76115
76116 2006-10-24  Jim Meyering  <jim@meyering.net>
76117
76118         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76119         Reported by Karl Berry.
76120
76121 2006-10-23  Bruno Haible  <bruno@clisp.org>
76122
76123         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76124
76125 2006-10-24  Bruno Haible  <bruno@clisp.org>
76126
76127         * lib/gl_list.h: Use C comment style, not C++ comment style.
76128
76129 2006-10-23  Eric Blake  <ebb9@byu.net>
76130
76131         * lib/getaddrinfo.c (includes): Add missing include.
76132
76133 2006-10-23  Bruno Haible  <bruno@clisp.org>
76134             Paul Eggert  <eggert@cs.ucla.edu>
76135
76136         Ability to rename obstack_free.
76137         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76138         obstack_free.
76139         (obstack_free): Invoke the __obstack_free macro.
76140         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76141
76142 2006-10-23  Bruno Haible  <bruno@clisp.org>
76143             Paul Eggert  <eggert@cs.ucla.edu>
76144
76145         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76146         __argc, __argv from the declaration. (They are defined as macros on
76147         mingw.)
76148
76149 2006-10-22  Bruno Haible  <bruno@clisp.org>
76150
76151         * doc/gnulib-intro.texi: New file.
76152         * doc/gnulib.texi: Include it.
76153
76154 2006-10-21  Bruno Haible  <bruno@clisp.org>
76155
76156         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76157         "Introduction", "Miscellanous Notes", "Particular Modules".
76158
76159 2006-10-21  Bruno Haible  <bruno@clisp.org>
76160
76161         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76162         Change mostlyclean-local rule to avoid sh syntax error from bash
76163         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76164
76165 2006-10-23  Jim Meyering  <jim@meyering.net>
76166
76167         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76168         in place of snprintf.
76169
76170         * modules/inttostr (Files): Add lib/uinttostr.c.
76171         * lib/uinttostr.c (inttostr): New file/function.
76172         * lib/inttostr.h (uinttostr): Declare.
76173         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76174         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76175         Add uinttostr.
76176         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76177
76178 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         * lib/canonicalize.c (ELOOP): Define if not already defined.
76181         Problem reported by Bruno Haible in
76182         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76183
76184 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76187         Problem reported by Perry Smith and Ville Laurikari.
76188
76189         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76190         uses.
76191
76192 2006-10-19  Bruno Haible  <bruno@clisp.org>
76193
76194         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76195         for mingw.
76196
76197 2006-10-19  Bruno Haible  <bruno@clisp.org>
76198
76199         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76200         Needed for mingw.
76201
76202 2006-10-19  Bruno Haible  <bruno@clisp.org>
76203
76204         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76205
76206 2006-10-19  Bruno Haible  <bruno@clisp.org>
76207
76208         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76209         it.
76210
76211 2006-10-19  Bruno Haible  <bruno@clisp.org>
76212
76213         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76214         invocation.
76215
76216 2006-10-19  Bruno Haible  <bruno@clisp.org>
76217
76218         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76219         mountlist by default.
76220
76221 2006-10-16  Bruno Haible  <bruno@clisp.org>
76222
76223         * lib/c-strstr.c: Include c-strstr.h.
76224
76225 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76226
76227         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76228         in a slash.
76229
76230 2006-10-18  Bruno Haible  <bruno@clisp.org>
76231
76232         * lib/lock.h [C++]: Wrap definitions in extern "C".
76233
76234 2006-10-18  Bruno Haible  <bruno@clisp.org>
76235
76236         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76237         gl_LIBOBJS list.
76238
76239 2006-10-18  Bruno Haible  <bruno@clisp.org>
76240
76241         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76242
76243 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * lib/xstrtol.h: Include gettext.h.
76246         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76247         Problem reported by Eric Blake.
76248         * modules/xstrtol (Depends-on): Add gettext-h.
76249
76250 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76251
76252         * lib/strftime.c (advance): New macro.
76253         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76254         incomplete type, so you can't add 0 to it.  Problem and patch
76255         reported by Eelco Dolstra for dietlibc.
76256
76257 2006-10-18  Jim Meyering  <jim@meyering.net>
76258
76259         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76260         type for a local, and rename it: s/up/user_proc/.
76261
76262 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76263
76264         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76265         READ_UTMP_USER_PROCESS.
76266         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76267
76268 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76271         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76272
76273 2006-10-17  Eric Blake  <ebb9@byu.net>
76274
76275         * lib/sigprocmask.c (sigprocmask): Fix typo.
76276
76277         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76278
76279         * modules/clean-temp (Makefile.am): Don't add to make output...
76280         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76281         config.h.
76282
76283 2006-10-17  Bruno Haible  <bruno@clisp.org>
76284
76285         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76286         differently if DEFAULT_TEXT_DOMAIN is set.
76287
76288 2006-10-16  Bruno Haible  <bruno@clisp.org>
76289
76290         * lib/clean-temp.c: Include fwriteerror.h.
76291
76292 2006-10-16  Bruno Haible  <bruno@clisp.org>
76293
76294         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76295
76296 2006-10-16  Bruno Haible  <bruno@clisp.org>
76297
76298         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76299         * lib/sigprocmask.h: Include <sys/types.h>.
76300         (sigset_t): Use the system's definition if present.
76301
76302 2006-10-17  Eric Blake  <ebb9@byu.net>
76303
76304         * lib/xvasprintf.c (includes): Assume config.h.
76305         * lib/xasprintf.c (includes): Likewise.
76306
76307 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76308
76309         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76310         at least as wide as intmax_t.
76311
76312 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76313
76314         (Imported from Automake.)
76315         * build-aux/gnupload: Update to version 1.1 of directive file.
76316
76317 2006-10-16  Eric Blake  <ebb9@byu.net>
76318
76319         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76320         match Automake 1.10a.
76321
76322 2006-10-14  Bruno Haible  <bruno@clisp.org>
76323
76324         * modules/sigprocmask: New file.
76325         * lib/sigprocmask.h: New file.
76326         * lib/sigprocmask.c: New file.
76327         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76328         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76329         request sigprocmask.o.
76330         (gl_PREREQ_SIGPROCMASK): New macro.
76331         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76332         (Depends-on): Add sigprocmask.
76333         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76334         gt_SIGNALBLOCKING. Test for 'raise' only once.
76335         * lib/fatal-signal.c: Include sigprocmask.h.
76336         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76337         unblock_fatal_signals): Define always.
76338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76339         sigprocmask.
76340
76341 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         Sync from Automake.
76344         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76345         which incorrectly sets the mode of an existing destination
76346         directory.  In some cases the unpatched install-sh could do the
76347         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76348         system.  We hope this is rare in practice, but it's clearly worth
76349         fixing.  Problem reported by Alex Unleashed in
76350         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76351         Also, don't bother to check for -m bugs unless we're using -m;
76352         suggested by Stepan Kasal.
76353
76354 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76355
76356         Sync from Automake.
76357         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76358         `-c' flag, so they appear at the same position as in %FASTDEP%
76359         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76360         which ignores unknown options only after the first non-option.
76361         Bug report against M4 by Nelson H. F. Beebe.
76362
76363 2006-10-13  Jim Meyering  <jim@meyering.net>
76364
76365         Fix a bug in yesterday's change.
76366         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76367         p->fts_statp->st_dev would be used uninitialized.
76368         Ensures that we always call fts_stat on the very first entry.
76369         Miklos Szeredi reported that find -xdev stopped working.
76370
76371 2006-10-12  Bruno Haible  <bruno@clisp.org>
76372
76373         * gnulib-tool (func_get_automake_snippet): Append an automatically
76374         computed EXTRA_DIST augmentation.
76375         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76376         * modules/alloca-opt (Makefile.am): Likewise.
76377         * modules/allocsa (Makefile.am): Likewise.
76378         * modules/arcfour (Makefile.am): Likewise.
76379         * modules/arctwo (Makefile.am): Likewise.
76380         * modules/argmatch (Makefile.am): Likewise.
76381         * modules/argz (Makefile.am): Likewise.
76382         * modules/atexit (Makefile.am): Likewise.
76383         * modules/backupfile (Makefile.am): Likewise.
76384         * modules/byteswap (Makefile.am): Likewise.
76385         * modules/c-strtod (Makefile.am): Likewise.
76386         * modules/c-strtold (Makefile.am): Likewise.
76387         * modules/calloc (Makefile.am): Likewise.
76388         * modules/canon-host (Makefile.am): Likewise.
76389         * modules/canonicalize (Makefile.am): Likewise.
76390         * modules/chdir-long (Makefile.am): Likewise.
76391         * modules/chdir-safer (Makefile.am): Likewise.
76392         * modules/check-version (Makefile.am): Likewise.
76393         * modules/chown (Makefile.am): Likewise.
76394         * modules/cloexec (Makefile.am): Likewise.
76395         * modules/close-stream (Makefile.am): Likewise.
76396         * modules/closeout (Makefile.am): Likewise.
76397         * modules/crc (Makefile.am): Likewise.
76398         * modules/csharpexec (Makefile.am): Likewise.
76399         * modules/cycle-check (Makefile.am): Likewise.
76400         * modules/des (Makefile.am): Likewise.
76401         * modules/dev-ino (Makefile.am): Likewise.
76402         * modules/dirfd (Makefile.am): Likewise.
76403         * modules/dirname (Makefile.am): Likewise.
76404         * modules/dup2 (Makefile.am): Likewise.
76405         * modules/eealloc (Makefile.am): Likewise.
76406         * modules/error (Makefile.am): Likewise.
76407         * modules/euidaccess (Makefile.am): Likewise.
76408         * modules/exclude (Makefile.am): Likewise.
76409         * modules/exitfail (Makefile.am): Likewise.
76410         * modules/fcntl-safer (Makefile.am): Likewise.
76411         * modules/fcntl (Makefile.am): Likewise.
76412         * modules/file-type (Makefile.am): Likewise.
76413         * modules/fileblocks (Makefile.am): Likewise.
76414         * modules/filemode (Makefile.am): Likewise.
76415         * modules/filenamecat (Makefile.am): Likewise.
76416         * modules/fnmatch (Makefile.am): Likewise.
76417         * modules/fopen-safer (Makefile.am): Likewise.
76418         * modules/fpending (Makefile.am): Likewise.
76419         * modules/fprintftime (Makefile.am): Likewise.
76420         * modules/free (Makefile.am): Likewise.
76421         * modules/fsusage (Makefile.am): Likewise.
76422         * modules/ftruncate (Makefile.am): Likewise.
76423         * modules/fts (Makefile.am): Likewise.
76424         * modules/gc-arcfour (Makefile.am): Likewise.
76425         * modules/gc-des (Makefile.am): Likewise.
76426         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76427         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76428         * modules/gc-md4 (Makefile.am): Likewise.
76429         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76430         * modules/gc-sha1 (Makefile.am): Likewise.
76431         * modules/gc (Makefile.am): Likewise.
76432         * modules/getaddrinfo (Makefile.am): Likewise.
76433         * modules/getcwd (Makefile.am): Likewise.
76434         * modules/getdelim (Makefile.am): Likewise.
76435         * modules/getdomainname (Makefile.am): Likewise.
76436         * modules/getgroups (Makefile.am): Likewise.
76437         * modules/gethostname (Makefile.am): Likewise.
76438         * modules/gethrxtime (Makefile.am): Likewise.
76439         * modules/getline (Makefile.am): Likewise.
76440         * modules/getloadavg (Makefile.am): Likewise.
76441         * modules/getlogin_r (Makefile.am): Likewise.
76442         * modules/getndelim2 (Makefile.am): Likewise.
76443         * modules/getopt (Makefile.am): Likewise.
76444         * modules/getpagesize (Makefile.am): Likewise.
76445         * modules/getpass-gnu (Makefile.am): Likewise.
76446         * modules/getpass (Makefile.am): Likewise.
76447         * modules/getsubopt (Makefile.am): Likewise.
76448         * modules/gettime (Makefile.am): Likewise.
76449         * modules/gettimeofday (Makefile.am): Likewise.
76450         * modules/getugroups (Makefile.am): Likewise.
76451         * modules/getusershell (Makefile.am): Likewise.
76452         * modules/glob (Makefile.am): Likewise.
76453         * modules/group-member (Makefile.am): Likewise.
76454         * modules/hard-locale (Makefile.am): Likewise.
76455         * modules/hash (Makefile.am): Likewise.
76456         * modules/hmac-md5 (Makefile.am): Likewise.
76457         * modules/hmac-sha1 (Makefile.am): Likewise.
76458         * modules/human (Makefile.am): Likewise.
76459         * modules/idcache (Makefile.am): Likewise.
76460         * modules/imaxabs (Makefile.am): Likewise.
76461         * modules/imaxdiv (Makefile.am): Likewise.
76462         * modules/inet_ntop (Makefile.am): Likewise.
76463         * modules/inet_pton (Makefile.am): Likewise.
76464         * modules/intprops (Makefile.am): Likewise.
76465         * modules/inttostr (Makefile.am): Likewise.
76466         * modules/inttypes (Makefile.am): Likewise.
76467         * modules/isapipe (Makefile.am): Likewise.
76468         * modules/javaversion (Makefile.am): Likewise.
76469         * modules/lchmod (Makefile.am): Likewise.
76470         * modules/lchown (Makefile.am): Likewise.
76471         * modules/localcharset (Makefile.am): Likewise.
76472         * modules/long-options (Makefile.am): Likewise.
76473         * modules/lstat (Makefile.am): Likewise.
76474         * modules/malloc (Makefile.am): Likewise.
76475         * modules/mathl (Makefile.am): Likewise.
76476         * modules/mbchar (Makefile.am): Likewise.
76477         * modules/md2 (Makefile.am): Likewise.
76478         * modules/md4 (Makefile.am): Likewise.
76479         * modules/md5 (Makefile.am): Likewise.
76480         * modules/memcasecmp (Makefile.am): Likewise.
76481         * modules/memchr (Makefile.am): Likewise.
76482         * modules/memcmp (Makefile.am): Likewise.
76483         * modules/memcoll (Makefile.am): Likewise.
76484         * modules/memcpy (Makefile.am): Likewise.
76485         * modules/memmem (Makefile.am): Likewise.
76486         * modules/memmove (Makefile.am): Likewise.
76487         * modules/mempcpy (Makefile.am): Likewise.
76488         * modules/memrchr (Makefile.am): Likewise.
76489         * modules/memset (Makefile.am): Likewise.
76490         * modules/memxor (Makefile.am): Likewise.
76491         * modules/mkancesdirs (Makefile.am): Likewise.
76492         * modules/mkdir-p (Makefile.am): Likewise.
76493         * modules/mkdir (Makefile.am): Likewise.
76494         * modules/mkdtemp (Makefile.am): Likewise.
76495         * modules/mkstemp (Makefile.am): Likewise.
76496         * modules/mktime (Makefile.am): Likewise.
76497         * modules/modechange (Makefile.am): Likewise.
76498         * modules/mountlist (Makefile.am): Likewise.
76499         * modules/nanosleep (Makefile.am): Likewise.
76500         * modules/obstack (Makefile.am): Likewise.
76501         * modules/openat (Makefile.am): Likewise.
76502         * modules/pagealign_alloc (Makefile.am): Likewise.
76503         * modules/pathmax (Makefile.am): Likewise.
76504         * modules/physmem (Makefile.am): Likewise.
76505         * modules/poll (Makefile.am): Likewise.
76506         * modules/posixtm (Makefile.am): Likewise.
76507         * modules/posixver (Makefile.am): Likewise.
76508         * modules/putenv (Makefile.am): Likewise.
76509         * modules/quote (Makefile.am): Likewise.
76510         * modules/quotearg (Makefile.am): Likewise.
76511         * modules/raise (Makefile.am): Likewise.
76512         * modules/read-file (Makefile.am): Likewise.
76513         * modules/readline (Makefile.am): Likewise.
76514         * modules/readlink (Makefile.am): Likewise.
76515         * modules/readtokens (Makefile.am): Likewise.
76516         * modules/readutmp (Makefile.am): Likewise.
76517         * modules/realloc (Makefile.am): Likewise.
76518         * modules/regex (Makefile.am): Likewise.
76519         * modules/rename-dest-slash (Makefile.am): Likewise.
76520         * modules/rename (Makefile.am): Likewise.
76521         * modules/rijndael (Makefile.am): Likewise.
76522         * modules/rmdir (Makefile.am): Likewise.
76523         * modules/rpmatch (Makefile.am): Likewise.
76524         * modules/safe-read (Makefile.am): Likewise.
76525         * modules/safe-write (Makefile.am): Likewise.
76526         * modules/same-inode (Makefile.am): Likewise.
76527         * modules/same (Makefile.am): Likewise.
76528         * modules/save-cwd (Makefile.am): Likewise.
76529         * modules/savedir (Makefile.am): Likewise.
76530         * modules/setenv (Makefile.am): Likewise.
76531         * modules/settime (Makefile.am): Likewise.
76532         * modules/sha1 (Makefile.am): Likewise.
76533         * modules/sig2str (Makefile.am): Likewise.
76534         * modules/snprintf (Makefile.am): Likewise.
76535         * modules/stat-macros (Makefile.am): Likewise.
76536         * modules/stat-time (Makefile.am): Likewise.
76537         * modules/stdbool (Makefile.am): Likewise.
76538         * modules/stdint (Makefile.am): Likewise.
76539         * modules/stdlib-safer (Makefile.am): Likewise.
76540         * modules/stpcpy (Makefile.am): Likewise.
76541         * modules/stpncpy (Makefile.am): Likewise.
76542         * modules/strcase (Makefile.am): Likewise.
76543         * modules/strcasestr (Makefile.am): Likewise.
76544         * modules/strchrnul (Makefile.am): Likewise.
76545         * modules/strcspn (Makefile.am): Likewise.
76546         * modules/strdup (Makefile.am): Likewise.
76547         * modules/strerror (Makefile.am): Likewise.
76548         * modules/strftime (Makefile.am): Likewise.
76549         * modules/strndup (Makefile.am): Likewise.
76550         * modules/strnlen (Makefile.am): Likewise.
76551         * modules/strpbrk (Makefile.am): Likewise.
76552         * modules/strsep (Makefile.am): Likewise.
76553         * modules/strstr (Makefile.am): Likewise.
76554         * modules/strtod (Makefile.am): Likewise.
76555         * modules/strtoimax (Makefile.am): Likewise.
76556         * modules/strtok_r (Makefile.am): Likewise.
76557         * modules/strtol (Makefile.am): Likewise.
76558         * modules/strtoll (Makefile.am): Likewise.
76559         * modules/strtoul (Makefile.am): Likewise.
76560         * modules/strtoull (Makefile.am): Likewise.
76561         * modules/strtoumax (Makefile.am): Likewise.
76562         * modules/strverscmp (Makefile.am): Likewise.
76563         * modules/sys_socket (Makefile.am): Likewise.
76564         * modules/sys_stat (Makefile.am): Likewise.
76565         * modules/sysexits (Makefile.am): Likewise.
76566         * modules/time_r (Makefile.am): Likewise.
76567         * modules/timegm (Makefile.am): Likewise.
76568         * modules/timespec (Makefile.am): Likewise.
76569         * modules/tmpfile-safer (Makefile.am): Likewise.
76570         * modules/trim (Makefile.am): Likewise.
76571         * modules/unistd-safer (Makefile.am): Likewise.
76572         * modules/unlinkdir (Makefile.am): Likewise.
76573         * modules/unlocked-io (Makefile.am): Likewise.
76574         * modules/userspec (Makefile.am): Likewise.
76575         * modules/utime (Makefile.am): Likewise.
76576         * modules/utimecmp (Makefile.am): Likewise.
76577         * modules/utimens (Makefile.am): Likewise.
76578         * modules/vasnprintf (Makefile.am): Likewise.
76579         * modules/vasprintf (Makefile.am): Likewise.
76580         * modules/vsnprintf (Makefile.am): Likewise.
76581         * modules/xalloc (Makefile.am): Likewise.
76582         * modules/xgetcwd (Makefile.am): Likewise.
76583         * modules/xnanosleep (Makefile.am): Likewise.
76584         * modules/xreadlink (Makefile.am): Likewise.
76585         * modules/xstrtod (Makefile.am): Likewise.
76586         * modules/xstrtol (Makefile.am): Likewise.
76587         * modules/xstrtold (Makefile.am): Likewise.
76588         * modules/yesno (Makefile.am): Likewise.
76589         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76590
76591 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76592
76593         * modules/error (Makefile.am): Distribute files through
76594         EXTRA_DIST, not lib_SOURCES.
76595
76596 2006-10-12  Eric Blake  <ebb9@byu.net>
76597
76598         * modules/error (Makefile.am): Distribute files in /lib.
76599         * modules/obstack (Makefile.am): Likewise.
76600
76601 2006-10-12  Bruno Haible  <bruno@clisp.org>
76602
76603         * modules/acl (Makefile.am): Distribute all files in lib/ through
76604         EXTRA_DIST.
76605         * modules/arcfour (Makefile.am): Likewise.
76606         * modules/arctwo (Makefile.am): Likewise.
76607         * modules/argmatch (Makefile.am): Likewise.
76608         * modules/argz (Makefile.am): Likewise.
76609         * modules/atexit (Makefile.am): Likewise.
76610         * modules/backupfile (Makefile.am): Likewise.
76611         * modules/c-strtod (Makefile.am): Likewise.
76612         * modules/c-strtold (Makefile.am): Likewise.
76613         * modules/calloc (Makefile.am): Likewise.
76614         * modules/canon-host (Makefile.am): Likewise.
76615         * modules/canonicalize (Makefile.am): Likewise.
76616         * modules/chdir-long (Makefile.am): Likewise.
76617         * modules/chdir-safer (Makefile.am): Likewise.
76618         * modules/check-version (Makefile.am): Likewise.
76619         * modules/chown (Makefile.am): Likewise.
76620         * modules/cloexec (Makefile.am): Likewise.
76621         * modules/close-stream (Makefile.am): Likewise.
76622         * modules/closeout (Makefile.am): Likewise.
76623         * modules/crc (Makefile.am): Likewise.
76624         * modules/cycle-check (Makefile.am): Likewise.
76625         * modules/des (Makefile.am): Likewise.
76626         * modules/dirfd (Makefile.am): Likewise.
76627         * modules/dirname (Makefile.am): Likewise.
76628         * modules/dup2 (Makefile.am): Likewise.
76629         * modules/euidaccess (Makefile.am): Likewise.
76630         * modules/exclude (Makefile.am): Likewise.
76631         * modules/exitfail (Makefile.am): Likewise.
76632         * modules/fcntl-safer (Makefile.am): Likewise.
76633         * modules/file-type (Makefile.am): Likewise.
76634         * modules/fileblocks (Makefile.am): Likewise.
76635         * modules/filemode (Makefile.am): Likewise.
76636         * modules/filenamecat (Makefile.am): Likewise.
76637         * modules/fnmatch (Makefile.am): Likewise.
76638         * modules/fopen-safer (Makefile.am): Likewise.
76639         * modules/fpending (Makefile.am): Likewise.
76640         * modules/fprintftime (Makefile.am): Likewise.
76641         * modules/free (Makefile.am): Likewise.
76642         * modules/fsusage (Makefile.am): Likewise.
76643         * modules/ftruncate (Makefile.am): Likewise.
76644         * modules/fts (Makefile.am): Likewise.
76645         * modules/gc (Makefile.am): Likewise.
76646         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76647         * modules/getaddrinfo (Makefile.am): Likewise.
76648         * modules/getcwd (Makefile.am): Likewise.
76649         * modules/getdelim (Makefile.am): Likewise.
76650         * modules/getdomainname (Makefile.am): Likewise.
76651         * modules/getgroups (Makefile.am): Likewise.
76652         * modules/gethostname (Makefile.am): Likewise.
76653         * modules/gethrxtime (Makefile.am): Likewise.
76654         * modules/getline (Makefile.am): Likewise.
76655         * modules/getloadavg (Makefile.am): Likewise.
76656         * modules/getlogin_r (Makefile.am): Likewise.
76657         * modules/getopt (Makefile.am): Likewise.
76658         * modules/getpass (Makefile.am): Likewise.
76659         * modules/getpass-gnu (Makefile.am): Likewise.
76660         * modules/getsubopt (Makefile.am): Likewise.
76661         * modules/gettime (Makefile.am): Likewise.
76662         * modules/gettimeofday (Makefile.am): Likewise.
76663         * modules/getugroups (Makefile.am): Likewise.
76664         * modules/getusershell (Makefile.am): Likewise.
76665         * modules/glob (Makefile.am): Likewise.
76666         * modules/group-member (Makefile.am): Likewise.
76667         * modules/hard-locale (Makefile.am): Likewise.
76668         * modules/hash (Makefile.am): Likewise.
76669         * modules/hmac-md5 (Makefile.am): Likewise.
76670         * modules/hmac-sha1 (Makefile.am): Likewise.
76671         * modules/human (Makefile.am): Likewise.
76672         * modules/idcache (Makefile.am): Likewise.
76673         * modules/imaxabs (Makefile.am): Likewise.
76674         * modules/imaxdiv (Makefile.am): Likewise.
76675         * modules/inet_ntop (Makefile.am): Likewise.
76676         * modules/inet_pton (Makefile.am): Likewise.
76677         * modules/inttostr (Makefile.am): Likewise.
76678         * modules/isapipe (Makefile.am): Likewise.
76679         * modules/lchown (Makefile.am): Likewise.
76680         * modules/long-options (Makefile.am): Likewise.
76681         * modules/lstat (Makefile.am): Likewise.
76682         * modules/malloc (Makefile.am): Likewise.
76683         * modules/mathl (Makefile.am): Likewise.
76684         * modules/mbchar (Makefile.am): Likewise.
76685         * modules/md2 (Makefile.am): Likewise.
76686         * modules/md4 (Makefile.am): Likewise.
76687         * modules/md5 (Makefile.am): Likewise.
76688         * modules/memcasecmp (Makefile.am): Likewise.
76689         * modules/memchr (Makefile.am): Likewise.
76690         * modules/memcmp (Makefile.am): Likewise.
76691         * modules/memcoll (Makefile.am): Likewise.
76692         * modules/memcpy (Makefile.am): Likewise.
76693         * modules/memmem (Makefile.am): Likewise.
76694         * modules/memmove (Makefile.am): Likewise.
76695         * modules/mempcpy (Makefile.am): Likewise.
76696         * modules/memrchr (Makefile.am): Likewise.
76697         * modules/memset (Makefile.am): Likewise.
76698         * modules/memxor (Makefile.am): Likewise.
76699         * modules/mkancesdirs (Makefile.am): Likewise.
76700         * modules/mkdir (Makefile.am): Likewise.
76701         * modules/mkdir-p (Makefile.am): Likewise.
76702         * modules/mkdtemp (Makefile.am): Likewise.
76703         * modules/mkstemp (Makefile.am): Likewise.
76704         * modules/mktime (Makefile.am): Likewise.
76705         * modules/modechange (Makefile.am): Likewise.
76706         * modules/mountlist (Makefile.am): Likewise.
76707         * modules/nanosleep (Makefile.am): Likewise.
76708         * modules/openat (Makefile.am): Likewise.
76709         * modules/pagealign_alloc (Makefile.am): Likewise.
76710         * modules/physmem (Makefile.am): Likewise.
76711         * modules/poll (Makefile.am): Likewise.
76712         * modules/posixtm (Makefile.am): Likewise.
76713         * modules/posixver (Makefile.am): Likewise.
76714         * modules/putenv (Makefile.am): Likewise.
76715         * modules/quote (Makefile.am): Likewise.
76716         * modules/quotearg (Makefile.am): Likewise.
76717         * modules/raise (Makefile.am): Likewise.
76718         * modules/read-file (Makefile.am): Likewise.
76719         * modules/readline (Makefile.am): Likewise.
76720         * modules/readlink (Makefile.am): Likewise.
76721         * modules/readtokens (Makefile.am): Likewise.
76722         * modules/readutmp (Makefile.am): Likewise.
76723         * modules/realloc (Makefile.am): Likewise.
76724         * modules/regex (Makefile.am): Likewise.
76725         * modules/rename (Makefile.am): Likewise.
76726         * modules/rename-dest-slash (Makefile.am): Likewise.
76727         * modules/rijndael (Makefile.am): Likewise.
76728         * modules/rmdir (Makefile.am): Likewise.
76729         * modules/rpmatch (Makefile.am): Likewise.
76730         * modules/safe-read (Makefile.am): Likewise.
76731         * modules/safe-write (Makefile.am): Likewise.
76732         * modules/same (Makefile.am): Likewise.
76733         * modules/save-cwd (Makefile.am): Likewise.
76734         * modules/savedir (Makefile.am): Likewise.
76735         * modules/setenv (Makefile.am): Likewise.
76736         * modules/settime (Makefile.am): Likewise.
76737         * modules/sha1 (Makefile.am): Likewise.
76738         * modules/sig2str (Makefile.am): Likewise.
76739         * modules/snprintf (Makefile.am): Likewise.
76740         * modules/stdlib-safer (Makefile.am): Likewise.
76741         * modules/stpcpy (Makefile.am): Likewise.
76742         * modules/stpncpy (Makefile.am): Likewise.
76743         * modules/strcase (Makefile.am): Likewise.
76744         * modules/strcasestr (Makefile.am): Likewise.
76745         * modules/strchrnul (Makefile.am): Likewise.
76746         * modules/strcspn (Makefile.am): Likewise.
76747         * modules/strdup (Makefile.am): Likewise.
76748         * modules/strerror (Makefile.am): Likewise.
76749         * modules/strftime (Makefile.am): Likewise.
76750         * modules/strndup (Makefile.am): Likewise.
76751         * modules/strnlen (Makefile.am): Likewise.
76752         * modules/strpbrk (Makefile.am): Likewise.
76753         * modules/strsep (Makefile.am): Likewise.
76754         * modules/strstr (Makefile.am): Likewise.
76755         * modules/strtod (Makefile.am): Likewise.
76756         * modules/strtoimax (Makefile.am): Likewise.
76757         * modules/strtok_r (Makefile.am): Likewise.
76758         * modules/strtol (Makefile.am): Likewise.
76759         * modules/strtoll (Makefile.am): Likewise.
76760         * modules/strtoul (Makefile.am): Likewise.
76761         * modules/strtoull (Makefile.am): Likewise.
76762         * modules/strtoumax (Makefile.am): Likewise.
76763         * modules/strverscmp (Makefile.am): Likewise.
76764         * modules/time_r (Makefile.am): Likewise.
76765         * modules/timegm (Makefile.am): Likewise.
76766         * modules/tmpfile-safer (Makefile.am): Likewise.
76767         * modules/unistd-safer (Makefile.am): Likewise.
76768         * modules/unlinkdir (Makefile.am): Likewise.
76769         * modules/userspec (Makefile.am): Likewise.
76770         * modules/utime (Makefile.am): Likewise.
76771         * modules/utimecmp (Makefile.am): Likewise.
76772         * modules/utimens (Makefile.am): Likewise.
76773         * modules/vasnprintf (Makefile.am): Likewise.
76774         * modules/vasprintf (Makefile.am): Likewise.
76775         * modules/vsnprintf (Makefile.am): Likewise.
76776         * modules/xalloc (Makefile.am): Likewise.
76777         * modules/xgetcwd (Makefile.am): Likewise.
76778         * modules/xnanosleep (Makefile.am): Likewise.
76779         * modules/xreadlink (Makefile.am): Likewise.
76780         * modules/xstrtod (Makefile.am): Likewise.
76781         * modules/xstrtol (Makefile.am): Likewise.
76782         * modules/xstrtold (Makefile.am): Likewise.
76783         * modules/yesno (Makefile.am): Likewise.
76784
76785 2006-10-12  Jim Meyering  <jim@meyering.net>
76786
76787         * m4/getloadavg.m4: Revert the change below.
76788
76789         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76790         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76791         fail with a symlink, which is what coreutils' ./bootstrap now
76792         creates by default.
76793
76794 2006-10-12  Bruno Haible  <bruno@clisp.org>
76795
76796         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76797         mingw.
76798         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76799         MSVC and mingw explicitly.
76800
76801 2006-10-11  Simon Josefsson  <jas@extundo.com>
76802             Bruno Haible  <bruno@clisp.org>
76803
76804         Add support for multiple gnulib-tool invocations in the scope of a
76805         single configure.ac file.
76806         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76807         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76808         with the same contents as the _LIBADD variable.
76809         (func_emit_initmacro_start, func_emit_initmacro_end,
76810         func_emit_initmacro_done): New functions.
76811         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76812         gl_LIBOBJS and gl_LTLIBOBJS.
76813
76814 2006-10-11  Bruno Haible  <bruno@clisp.org>
76815
76816         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76817         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76818         autoreconf. Instead, invoke autopoint explicitly but move back the
76819         *.m4 files from gnulib.
76820
76821 2006-10-11  Bruno Haible  <bruno@clisp.org>
76822
76823         * gnulib-tool (func_usage): Make module names after --create-testdir
76824         optional.
76825         (func_create_testdir): If no module was specified, use nearly all
76826         modules.
76827
76828 2006-10-12  Jim Meyering  <jim@meyering.net>
76829
76830         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76831         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76832         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76833         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76834         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76835         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76836         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76837         (fts_set_stat_required): New function.
76838         (fts_open): Defer the calls to fts_stat, if possible or requested.
76839         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76840         into fts_stat itself.
76841         (fts_read): Perform any required (deferred) fts_stat call.
76842         (fts_build): Likewise, for the directory we're about to open and read.
76843         In the readdir loop, carefully decide whether each entry will require
76844         an eventual call to fts_stat, using dirent.d_type info if available.
76845         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76846         a command line argument into this function.  Update all callers.
76847         Map a return value of FTS_DOT to FTS_D for a command line argument.
76848         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76849         Thanks to Miklos Szeredi for his tenacity and for the initial
76850         bug report about "find" failing on a FUSE-based file system.
76851
76852         * lib/fts.c (fts_open): Use consistent indentation.
76853
76854 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76855
76856         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76857         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76858         reported by Jim Meyering.  All uses of cache variables renamed
76859         to match Autoconf's.
76860         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76861         the other one.
76862
76863         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76864         Fix misspelling in diagnostic.
76865
76866 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76867
76868         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76869         defined.  Problem reported by Matthew Woehlke.
76870
76871         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76872         Add support for Tandem NonStop R series.
76873         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76874         Use new macro.
76875
76876         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76877         (has_trailing_slash): Omit size arg; all callers changed.
76878         Omit 'inline', since it doesn't help performance and we'd
76879         need to configure it.
76880         Don't count //, ///, etc. as having a trailing slash.
76881         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76882         (rpl_rename_dest_slash): On failure, use rename's errno rather
76883         than (in some cases) an incorrect or junk errno.
76884         Simplify code by removing need to compute length; this does
76885         cause it to make two passes instead of one over the file name,
76886         but it's worth it.
76887
76888         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76889         change, since Autoconf's version may no longer be appropriate now
76890         that we are using CVS Autoconf's version.  Add support for Tandem.
76891
76892 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76893             Bruno Haible  <bruno@clisp.org>
76894
76895         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76896         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76897         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76898         gl_AC_TYPE_LONG_LONG.
76899
76900         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76901         instead of HAVE_LONG_LONG.
76902         * lib/printf-args.c (printf_fetchargs): Likewise.
76903         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76904         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76905         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76906         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76907         gl_AC_TYPE_LONG_LONG.
76908
76909 2006-10-11  Bruno Haible  <bruno@clisp.org>
76910
76911         * m4/longlong.m4: Add comments.
76912         * m4/ulonglong.m4: Likewise.
76913
76914 2006-10-10  Bruno Haible  <bruno@clisp.org>
76915
76916         Make it possible to #define stpcpy, strdup to aliases.
76917         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76918         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76919
76920 2006-10-10  Bruno Haible  <bruno@clisp.org>
76921
76922         Make it possible to #define gcd to an alias.
76923         * lib/gcd.c: Include config.h.
76924
76925 2006-10-10  Bruno Haible  <bruno@clisp.org>
76926
76927         Make it possible to #define c_isascii to an alias.
76928         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76929         defined. Undefine the macros before defining them, to avoid gcc
76930         warnings.
76931         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76932         define NO_C_CTYPE_MACROS early.
76933
76934 2006-10-10  Bruno Haible  <bruno@clisp.org>
76935
76936         Make it possible to #define set_program_name to an alias.
76937         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76938         ENABLE_RELOCATABLE early.
76939
76940 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76941
76942         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76943         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76944         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76945         More generally, don't assume that 64-bit signed int is available
76946         if unsigned int is, and vice versa.
76947         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76948         unsigned symbols, not on their signed counterparts.
76949         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76950         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76951         (UINT64_C, UINTMAX_C):
76952         Likewise.
76953         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76954         unsigned counterparts.
76955         (Have_long_long, Unsigned): New macros.
76956         (Int): Renamed from INT.
76957         (strtoimax): Use the new macros.
76958         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76959         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76960         * modules/inttypes (inttypes.h): Substitute
76961         HAVE_UNSIGNED_LONG_LONG_INT.
76962         * modules/stdint (stdint.h): Likewise.
76963         (Files): Add m4/ulonglong.m4.
76964
76965 2006-10-10  Bruno Haible  <bruno@clisp.org>
76966
76967         Fix a gcc -Wshadow warning.
76968         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76969         to 'bucket'.
76970         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76971         gl_linked_indexof_from_to): Likewise.
76972         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76973         Likewise.
76974         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76975         Likewise.
76976         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76977         Reported by Eric Blake.
76978
76979 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76982         for NetBSD.  Problem reported by Bruno Haible.
76983
76984 2006-10-09  Jim Meyering  <jim@meyering.net>
76985
76986         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76987         Patch from Bruno Haible.
76988
76989 2006-10-09  Jim Meyering  <jim@meyering.net>
76990
76991         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76992         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76993         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76994
76995 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         Don't include <config.h> twice; this doesn't work in some cases,
76998         e.g., when config.h has "#define intmax_t long long int" and
76999         we include <config.h>, <inttypes.h>, <config.h> in that order.
77000         Problem reported by Matthew Woehlke in:
77001         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77002         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77003         * lib/fts-cycle.c: Don't include config.h.
77004         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77005         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77006         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77007         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77008         inttypes.h.
77009         * lib/xstrtoumax.c: Likewise.
77010         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77011         __strtol and the like, so that this module is more like its siblings.
77012         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77013         Remove; no longer needed now that we assume gnulib inttypes.h.
77014
77015 2006-10-08  Bruno Haible  <bruno@clisp.org>
77016
77017         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77018         option.
77019
77020 2006-10-07  Jim Meyering  <jim@meyering.net>
77021
77022         * modules/inttypes (inttypes.h): Revert what seems to have been
77023         an inadvertent part of today's change: use "|", not "/" in the
77024         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77025
77026 2006-10-07  Bruno Haible  <bruno@clisp.org>
77027
77028         * modules/sublist: New file.
77029
77030 2006-10-07  Bruno Haible  <bruno@clisp.org>
77031
77032         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77033         * modules/argz (argz.h): Likewise.
77034         * modules/arpa_inet (arpa/inet.h): Likewise.
77035         * modules/byteswap (byteswap.h): Likewise.
77036         * modules/configmake (configmake.h): Likewise.
77037         * modules/fcntl (fcntl.h): Likewise.
77038         * modules/fnmatch (fnmatch.h): Likewise.
77039         * modules/getopt (getopt.h): Likewise.
77040         * modules/glob (glob.h): Likewise.
77041         * modules/inttypes (inttypes.h): Likewise.
77042         * modules/netinet_in (netinet/in.h): Likewise.
77043         * modules/poll (poll.h): Likewise.
77044         * modules/stdbool (stdbool.h): Likewise.
77045         * modules/stdint (stdint.h): Likewise.
77046         * modules/sys_select (sys/select.h): Likewise.
77047         * modules/sys_socket (sys/socket.h): Likewise.
77048         * modules/sys_stat (sys/stat.h): Likewise.
77049         * modules/sysexits (sysexits.h): Likewise.
77050         * modules/unistd (unistd.h): Likewise.
77051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77052         Add a "DO NOT EDIT" comment to the generated file.
77053         (func_import): Likewise for gnulib-comp.m4.
77054
77055 2006-10-07  Bruno Haible  <bruno@clisp.org>
77056
77057         * lib/gl_sublist.h: New file.
77058         * lib/gl_sublist.c: New file.
77059
77060 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77063         name (relative to the original working directory) and the file
77064         name component (relative to the temporary working directory).  All
77065         callers changed.
77066         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77067         * lib/mkdir-p.c (make_dir_parents): Likewise.
77068         * lib/mkdir-p.h (make_dir_parents): Likewise.
77069
77070 2006-10-06  Eric Blake  <ebb9@byu.net>
77071
77072         Define several macros for use by the clean-temp module.
77073         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77074         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77075         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77076
77077         * lib/clean-temp.h (close_stream_temp): New declaration.
77078         * lib/clean-temp.c (includes): Pull in headers according to what
77079         other modules are in use.
77080         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77081
77082 2006-10-06  Bruno Haible  <bruno@clisp.org>
77083
77084         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77085         instead of fopen, fwriteerror.
77086
77087 2006-10-06  Bruno Haible  <bruno@clisp.org>
77088
77089         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77090         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77091         int.
77092         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77093         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77094         Return an error indicator.
77095         Suggested by Eric Blake.
77096
77097 2006-10-06  Bruno Haible  <bruno@clisp.org>
77098
77099         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77100         Reported by Eric Blake.
77101
77102 2006-10-06  Bruno Haible  <bruno@clisp.org>
77103
77104         * modules/closeout (Description): Mention stderr too.
77105
77106 2006-10-06  Bruno Haible  <bruno@clisp.org>
77107         and Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * lib/closeout.c (close_stdout): Also close stderr.
77110         * lib/closeout.h: Update comment.
77111
77112 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77113
77114         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77115         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77116         * lib/dirchownmod.c: Include lchown.h.
77117         * lib/lchown.c: Don't include files that lchown.h now includes.
77118         Don't declare chown, since lchown.h now does that.
77119         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77120         (lchown): Define to rpl_chown if lchown is declared but
77121         does not exist.  Declare using a prototype if lchown is not
77122         declared.  Add a copyright notice.
77123         * lib/mkstemp.h: Include <unistd.h>.
77124         * lib/openat.c: Include lchown.h.
77125
77126         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77127         we now test for that separately.
77128         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77129         rather than O_NOFOLLOW, when testing whether it's possible to
77130         avoid a race condition reliably.
77131         * lib/savewd.c (savewd_chdir): Likewise.
77132
77133         Remove macros that are no longer needed now that stdint.h is
77134         reliable.
77135         * lib/fsusage.c (UINTMAX_MAX): Remove.
77136         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77137         * lib/utimecmp.c (SIZE_MAX): Remove.
77138
77139         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77140
77141         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77142         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77143         O_NOATIME works.
77144
77145 2006-10-05  Bruno Haible  <bruno@clisp.org>
77146
77147         * lib/gl_list.h (gl_sortedlist_search_from_to,
77148         gl_sortedlist_indexof_from_to): New declarations.
77149         (gl_list_implementation): New fields sortedlist_search_from_to,
77150         sortedlist_indexof_from_to.
77151         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77152         inline functions.
77153         * lib/gl_list.c (gl_sortedlist_search_from_to,
77154         gl_sortedlist_indexof_from_to): New functions.
77155         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77156         function.
77157         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77158         (gl_array_sortedlist_search_from_to): New function.
77159         (gl_array_list_implementation): Update.
77160         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77161         function.
77162         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77163         (gl_carray_sortedlist_search_from_to): New function.
77164         (gl_carray_list_implementation): Update.
77165         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77166         gl_linked_sortedlist_indexof_from_to): New functions.
77167         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77168         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77169         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77170         gl_tree_sortedlist_indexof_from_to): New functions.
77171         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77172         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77173         Update.
77174         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77175         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77176         Update.
77177
77178 2006-10-05  Bruno Haible  <bruno@clisp.org>
77179
77180         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77181         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77182         (struct gl_list_implementation): Add fields search_from_to,
77183         indexof_from_to. Remove fields search, indexof.
77184         (gl_list_search): Use the search_from_to method.
77185         (gl_list_search_from, gl_list_search_from_to): New functions.
77186         (gl_list_indexof): Use the indexof_from_to method.
77187         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77188         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77189         (gl_list_search_from, gl_list_search_from_to): New functions.
77190         (gl_list_indexof): Use the indexof_from_to method.
77191         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77192         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77193         gl_array_indexof. Add start_index, end_index arguments.
77194         (gl_array_search_from_to): Renamed from gl_array_search. Add
77195         start_index, end_index arguments.
77196         (gl_array_remove, gl_array_list_implementation): Update.
77197         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77198         gl_carray_indexof. Add start_index, end_index arguments.
77199         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77200         start_index, end_index arguments.
77201         (gl_carray_remove, gl_carray_list_implementation): Update.
77202         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77203         gl_linked_search. Add start_index, end_index arguments.
77204         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77205         start_index, end_index arguments.
77206         (gl_linked_remove): Update.
77207         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77208         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77209         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77210         field to 'size_t'.
77211         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77212         gl_tree_search. Add start_index, end_index arguments.
77213         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77214         start_index, end_index arguments.
77215         (gl_tree_remove): Update.
77216         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77217         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77218         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77219         function.
77220         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77221         gl_tree_search. Add start_index, end_index arguments.
77222         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77223         start_index, end_index arguments.
77224         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77225         Update.
77226         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77227
77228 2006-10-05  Bruno Haible  <bruno@clisp.org>
77229
77230         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77231
77232         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77233         fwriteerror_temp): New declarations.
77234         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77235         (descriptors): New variable.
77236         (cleanup): First, close the descriptors.
77237         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77238         fclose_temp, fwriteerror_temp): New functions.
77239
77240 2006-10-04  Jim Meyering  <jim@meyering.net>
77241
77242         * lib/fts.c (fts_open): Tiny comment change.
77243
77244 2006-10-04  Bruno Haible  <bruno@clisp.org>
77245
77246         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77247         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77248         gl_LOCK_BODY.
77249         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77250         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77251         gl_LOCK_EARLY_BODY.
77252         (gl_LOCK): Require gl_LOCK_BODY.
77253
77254 2006-10-04  Bruno Haible  <bruno@clisp.org>
77255
77256         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77257         (gl_oset_search_atleast): New declaration.
77258         (struct gl_oset_implementation): Add field 'search_atleast'.
77259         (gl_oset_search_atleast): New inline function.
77260         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77261         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77262         (gl_array_oset_implementation): Update.
77263         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77264         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77265         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77266
77267 2006-10-04  Bruno Haible  <bruno@clisp.org>
77268
77269         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77270
77271 2006-10-03  Bruno Haible  <bruno@clisp.org>
77272
77273         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77274         from gl_avltreehash_list_implementation.
77275
77276 2006-10-03  Bruno Haible  <bruno@clisp.org>
77277
77278         * lib/gl_oset.c (gl_oset_add): Fix return type.
77279
77280 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77281
77282         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77283
77284 2006-10-02  Eric Blake  <ebb9@byu.net>
77285
77286         * modules/strnlen (Depends-on): Add extensions.
77287
77288 2006-10-02  Eric Blake  <ebb9@byu.net>
77289
77290         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77291         definition in 2.60+.
77292
77293 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77294
77295         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77296         checks.
77297
77298 2006-10-02  Bruno Haible  <bruno@clisp.org>
77299
77300         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77301         to the AUTOMAKE_OPTIONS.
77302         Reported by Jim Meyering.
77303
77304 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77305
77306         Work around bug in Solaris 10 /proc file system:
77307         /proc/self/fd/NNN/.. isn't the parent directory of
77308         the directory whose file descriptor is NNN.  This needs to
77309         be worked around at run time, not compile time, since a
77310         program might be built on Solaris 8, where things work, and
77311         run on Solaris 10.
77312         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77313         to use the following interface instead:
77314         (OPENAT_BUFFER_SIZE): New macro.
77315         (openat_proc_name): New function.
77316         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77317         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77318         Likewise.
77319         * lib/openat-proc.c: New file.
77320         * modules/openat (Files): Add lib/openat-proc.c.
77321         (Depends-on): Add same-inode, stdbool.
77322         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77323
77324 2006-09-29  Bruno Haible  <bruno@clisp.org>
77325
77326         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77327         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77328         argument. Set stdout_closed before testing for ferror, not after.
77329         (fwriteerror, fwriteerror_no_ebadf): New functions.
77330
77331 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77332
77333         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77334
77335 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77336
77337         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77338         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77339
77340 2006-09-28  Jim Meyering  <jim@meyering.net>
77341
77342         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77343         Include <unistd.h>.
77344
77345 2006-09-28  Bruno Haible  <bruno@clisp.org>
77346
77347         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77348         * modules/linkedhash-list (Depends-on): Likewise.
77349         * modules/rbtreehash-list (Depends-on): Likewise.
77350
77351 2006-09-28  Bruno Haible  <bruno@clisp.org>
77352
77353         * lib/strndup.h: Simplify the redefinition of strndup.
77354         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77356
77357 2006-09-28  Bruno Haible  <bruno@clisp.org>
77358
77359         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77360         * lib/gl_linkedhash_list.c: Likewise.
77361         * lib/gl_rbtreehash_list.c: Likewise.
77362
77363 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77366         getaddrinfo.
77367
77368         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77369         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77370         it causes <stdio_ext.h> to cause a compile-time error.
77371         Problem reported by Nelson H. F. Beebe.
77372         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77373         of HAVE_DECL___PENDING.
77374
77375         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77376         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77377         declaration.
77378
77379 2006-09-27  Jim Meyering  <jim@meyering.net>
77380
77381         This file could end up with a definition for a function
77382         named __strndup, rather than rpl_strndup on a system with
77383         incomplete weak_alias support.
77384         * lib/strndup.c (strndup): Rename from __strndup.
77385         Remove #defines that used to map __strndup to strndup.
77386         Don't use K&R prototypes.
77387         Remove LIBC-related code, since this file is not sync'd with glibc.
77388         * lib/strndup.h: Revamp, accordingly.
77389         * m4/strndup.m4: Modernize.
77390
77391 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77392
77393         * modules/savewd (Depends-on): Add 'raise'.
77394         * lib/savewd.c: Include <signal.h>, for 'raise'.
77395
77396 2006-09-26  Jim Meyering  <jim@meyering.net>
77397
77398         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77399         when we detect Darwin 8.7.0's acl_get_file bug.
77400         Rearrange to perform the new (below) run-test while $LIBS
77401         contains any acl-related library.  Set USE_ACL at the end.
77402         (gl_ACL_GET_FILE): New function.
77403
77404 2006-09-26  Eric Blake  <ebb9@byu.net>
77405
77406         * lib/verror.c: Include <config.h> unconditionally.
77407
77408 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77409
77410         * modules/clock-time (Maintainer): Add self.
77411         * modules/getlogin_r (Depends-on): Add extensions.
77412
77413 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77414
77415         * modules/clock-time: New module.
77416         * modules/nanosleep (Depends-on): Add clock-time.
77417         * modules/gethrxtime (Depends-on): Likewise.
77418         * modules/gettime (Depends-on): Likewise.
77419         * modules/settime (Depends-on): Likewise.
77420
77421         * modules/fts-lgpl: Depend on openat.
77422         * modules/mkancesdirs: Depend on savewd.
77423         * modules/mkdir-p: Likewise.
77424
77425 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77426
77427         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77428
77429         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77430         `gl_have_arbitrary_file_name_length_limit' to
77431         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77432         actually works between configure runs.
77433
77434 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77435             Bruno Haible  <bruno@clisp.org>
77436
77437         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77438
77439 2006-09-25  Jim Meyering  <jim@meyering.net>
77440
77441         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77442         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77443
77444 2006-09-25  Eric Blake  <ebb9@byu.net>
77445
77446         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77447         exec's in 2006-09-18 patch when shuffling fds.
77448
77449 2006-09-25  Bruno Haible  <bruno@clisp.org>
77450
77451         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77452         Reported by Jim Meyering.
77453
77454 2006-09-24  Jim Meyering  <jim@meyering.net>
77455
77456         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77457         compare a pointer against a literal "0".  That caused failures with
77458         at least HP-UX's hpcc.
77459
77460 2006-09-22  Simon Josefsson  <jas@extundo.com>
77461
77462         * modules/gc-sha1:
77463         * modules/gc-md4:
77464         * modules/gc-hmac-sha1:
77465         * modules/gc-hmac-md5:
77466         * modules/gc-des:
77467         * modules/gc-arcfour: Distribute more files.
77468
77469 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77470
77471         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77472         (gl_linked_iterator_from_to): Initialize struct completely.
77473         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77474         (gl_tree_iterator_from_to): Likewise
77475         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77476         * lib/gl_array_list.c [lint] (gl_array_iterator)
77477         (gl_array_iterator_from_to): Likewise.
77478         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77479         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77480         (gl_carray_iterator_from_to): Likewise.
77481
77482         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77483         * lib/md4.c (md4_process_block): Remove unused variable.
77484         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77485         parentheses for clarity.
77486
77487 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77488
77489         * modules/bison-i18n (Depends-on): Add gettext.
77490
77491 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77492
77493         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77494         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77495         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77496         also add missing comma that caused broken test.
77497         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77498         stdlib.h, for `abort'.
77499         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77500         variables.
77501         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77502         include unistd.h if present, for `rmdir'.
77503         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77504         variables.
77505         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77506         in the process include standard headers for prototypes.
77507         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77508         gets declared on GNU/Linux.
77509         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77510         unistd.h, for `rmdir'.
77511         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77512
77513         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77514         always true.
77515         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77516
77517         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77518
77519 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77520
77521         * gnulib-tool (func_version): Create output all at once.  This
77522         may help avoid triggering unnecessary SIGPIPEs, and at any
77523         rate it doesn't hurt.
77524
77525 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77526             Bruno Haible  <bruno@clisp.org>
77527
77528         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77529         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77530         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77531
77532         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77533         (gl_FUNC_VASPRINTF): Invoke it.
77534
77535 2006-09-22  Bruno Haible  <bruno@clisp.org>
77536
77537         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77538         getloadavg.c as first argument.
77539
77540 2006-09-22  Bruno Haible  <bruno@clisp.org>
77541
77542         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77543         at the beginning of the gl_INIT macro.
77544         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77545         gl_GETLOADAVG.
77546
77547 2006-09-22  Bruno Haible  <bruno@clisp.org>
77548
77549         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77550         module.
77551         Suggested by Ralf Wildenhues.
77552
77553 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77554
77555         Import this patch from libc:
77556
77557         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77558
77559         * lib/regex_internal.c (re_string_reconstruct): Handle
77560         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77561         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77562         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77563         re_string_context_at.
77564
77565         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77566         now requires it.
77567         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77568         gl_REGEX now does it for us.
77569         (gl_REGEX): Add test taken from
77570         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77571
77572         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77573         Check that large offsets work.  Modernize Autoconf usages.
77574         Prefer "yes" to mean a good thing rather than a bad.
77575         Don't put "#define mkstemp" in config.h, as this might interfere
77576         with standard system headers that "#define mkstemp mkstemp64".
77577
77578         * modules/mkstemp (Depends-on): Add extensions, so that
77579         mkstemp is visible on some platforms.
77580         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77581         (Include): Change to "mkstemp.h" from <stdlib.h>.
77582         (Files): Add mkstemp.h.
77583
77584         * lib/mkstemp.h: New file, since some standard headers
77585         #define mkstemp.
77586         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77587         Include "mkstemp.h".
77588         Make the _LIBC code resemble glibc original more,
77589         e.g., use K&R style.
77590         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77591         (mkstemp): Remove, since mkstemp.h does this for us.
77592         * lib/stdlib--.h: Include mkstemp.h.
77593
77594         Import this patch from libc:
77595
77596         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77597
77598         * lib/tempname.c (__gen_tempname): Change attempts_min
77599         into a macro.  Use preprocessor to decide how to initialize
77600         attempts [Coverity CID 67].
77601
77602 2006-09-20  Bruno Haible  <bruno@clisp.org>
77603
77604         * lib/mkdtemp.c: Import from libc.
77605         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77606                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77607                 attempts_min into a macro.  Use preprocessor to decide how to
77608                 initialize attempts [Coverity CID 67].
77609         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77610                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77611                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77612
77613 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77614
77615         * gnulib-tool (func_exit): New function, to allow to pass the
77616         exit status portably through the trap.  Use everywhere.
77617         (--help, --version): Signal a write error.
77618         (trap): catch SIGPIPE, for write errors.
77619         Exit at the end of the trap, with the correct exit status.
77620
77621 2006-09-19  Karl Berry  <karl@gnu.org>
77622
77623         * doc/gnulib.texi: note about the license texinfo files.
77624
77625 2006-09-19  Eric Blake  <ebb9@byu.net>
77626
77627         * gnulib-tool: Avoid space-tab.
77628
77629 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77630
77631         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77632         that prevented coreutils 6.1 from building.  Problem reported
77633         by Petter Reinholdtsen.
77634
77635 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77636
77637         * gnulib-tool (avoidlist): Fix typo that broke options like
77638         --avoid=lock that are used by coreutils bootstrap.
77639
77640 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77641
77642         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77643         more systematically.
77644
77645 2006-09-18  Jim Meyering  <jim@meyering.net>
77646
77647         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77648
77649 2006-09-18  Bruno Haible  <bruno@clisp.org>
77650
77651         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77652
77653 2006-09-18  Bruno Haible  <bruno@clisp.org>
77654
77655         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77656         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77657         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77658         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77659         * m4/gettext.m4: Require autoconf >= 2.52.
77660         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77661         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77662         of gl_cv_header_inttypes_h.
77663
77664 2006-09-18  Bruno Haible  <bruno@clisp.org>
77665
77666         * lib/javaversion.c: Include configmake.h.
77667
77668 2006-09-18  Bruno Haible  <bruno@clisp.org>
77669
77670         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77671         avoid that the while loops be executed in a subshell.
77672
77673 2006-09-18  Bruno Haible  <bruno@clisp.org>
77674
77675         * MODULES.html.sh (func_module): Break long lines.
77676         Suggested by Bruce Korb <bkorb@gnu.org>.
77677
77678 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77679
77680         Speed up by a factor of 1.12.
77681         * gnulib-tool (nl): New variable.
77682         (func_import): Rewrite include directive extraction to only read each
77683         directive once.
77684
77685 2006-09-17  Bruno Haible  <bruno@clisp.org>
77686
77687         * modules/javaversion (Makefile.am): Remove DEFS setting.
77688         (Depends-on): Add configmake, for PKGDATADIR definition.
77689
77690 2006-09-17  Bruno Haible  <bruno@clisp.org>
77691
77692         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77693
77694 2006-09-17  Bruno Haible  <bruno@clisp.org>
77695
77696         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77697         (func_modules_transitive_closure, func_modules_add_dummy,
77698         func_modules_to_filelist, func_import, func_create_testdir,
77699         func_create_megatestdir, ...): Use it wherever possible.
77700         Suggested by Ralf Wildenhues.
77701
77702 2006-09-16  Karl Berry  <karl@gnu.org>
77703
77704         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77705         to avoid sectioning errors.
77706         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77707         [ifinfo]: blank line after @center-ed titles.
77708         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77709         Spell FSF address consistently with others.
77710         (These changes approved by rms.)
77711
77712 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77713
77714         Speed up by a factor of 1.61.
77715         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77716         already checked module names again.
77717
77718 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77719
77720         Speed up by a factor of 1.13.
77721         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77722         for new_files, and the input to func_add_or_update.
77723
77724 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77725
77726         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77727         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77728
77729 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * modules/mkancesdirs (Depends-on): Add fcntl.
77732         * modules/savewd: New file.
77733         * MODULES.html.sh (File system functions): Add savewd.
77734
77735         * modules/configmake (Makefile.am): Add support for the
77736         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77737
77738 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * m4/savewd.m4: New file.
77741
77742 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77745         (dirchownmod): New arg FD.  All callers changed.
77746         Use FD rather than opening the directory ourself, as opening is
77747         now the caller's responsibility.
77748         * lib/dirchownmod.h: Likewise.
77749         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77750         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77751         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77752         (test_dir): Remove.
77753         (mkancesdirs): Return length of prefix of FILE that has already
77754         been made, or -2 if there is a child doing the work.  Redo
77755         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77756         ".", and treat ".." specially since it might stray back into
77757         already-created areas.  Use a subprocess if necessary.  New arg
77758         WD; all users changed.  MAKE_DIR function should now return 1
77759         if it creates a directory that is not readable.  Return -2 if
77760         a child process is spun off.
77761         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77762         Adjust signature to match code.
77763         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77764         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77765         all users changed.
77766         * lib/savewd.c, lib/savewd.h: New files.
77767
77768 2006-09-15  Jim Meyering  <jim@meyering.net>
77769
77770         * modules/rename-dest-slash: New module.
77771         * MODULES.html.sh (posix_compat): Add it here.
77772
77773         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77774
77775 2006-09-15  Jim Meyering  <jim@meyering.net>
77776
77777         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77778         file.
77779
77780         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77781
77782 2006-09-15  Jim Meyering  <jim@meyering.net>
77783
77784         * lib/rename-dest-slash.c (has_trailing_slash): Use
77785         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77786         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77787         test before testing whether SRC is a directory.
77788         Suggestions from Bruno Haible.
77789
77790         Avoid a warning about an unused variable.
77791         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77792         into the #ifdef block where it's used.
77793
77794         * lib/rename-dest-slash.c: New file.
77795
77796 2006-09-14  Bruno Haible  <bruno@clisp.org>
77797
77798         * lib/allocsa.c: Include <config.h> unconditionally.
77799         * lib/asnprintf.c: Likewise.
77800         * lib/asprintf.c: Likewise.
77801         * lib/c-strcasecmp.c: Likewise.
77802         * lib/c-strcasestr.c: Likewise.
77803         * lib/c-strncasecmp.c: Likewise.
77804         * lib/c-strstr.c: Likewise.
77805         * lib/classpath.c: Likewise.
77806         * lib/clean-temp.c: Likewise.
77807         * lib/concatpath.c: Likewise.
77808         * lib/copy-file.c: Likewise.
77809         * lib/csharpcomp.c: Likewise.
77810         * lib/csharpexec.c: Likewise.
77811         * lib/execute.c: Likewise.
77812         * lib/fatal-signal.c: Likewise.
77813         * lib/findprog.c: Likewise.
77814         * lib/fwriteerror.c: Likewise.
77815         * lib/gl_array_list.c: Likewise.
77816         * lib/gl_array_oset.c: Likewise.
77817         * lib/gl_avltree_list.c: Likewise.
77818         * lib/gl_avltree_oset.c: Likewise.
77819         * lib/gl_avltreehash_list.c: Likewise.
77820         * lib/gl_carray_list.c: Likewise.
77821         * lib/gl_linked_list.c: Likewise.
77822         * lib/gl_linkedhash_list.c: Likewise.
77823         * lib/gl_list.c: Likewise.
77824         * lib/gl_oset.c: Likewise.
77825         * lib/gl_rbtree_list.c: Likewise.
77826         * lib/gl_rbtree_oset.c: Likewise.
77827         * lib/gl_rbtreehash_list.c: Likewise.
77828         * lib/imaxabs.c: Likewise.
77829         * lib/imaxdiv.c: Likewise.
77830         * lib/javacomp.c: Likewise.
77831         * lib/javaexec.c: Likewise.
77832         * lib/javaversion.c: Likewise.
77833         * lib/linebreak.c: Likewise.
77834         * lib/localcharset.c: Likewise.
77835         * lib/lock.c: Likewise.
77836         * lib/mbchar.c: Likewise.
77837         * lib/mbswidth.c: Likewise.
77838         * lib/mkdtemp.c: Likewise.
77839         * lib/pipe.c: Likewise.
77840         * lib/printf-args.c: Likewise.
77841         * lib/printf-parse.c: Likewise.
77842         * lib/progname.c: Likewise.
77843         * lib/progreloc.c: Likewise.
77844         * lib/readlink.c: Likewise.
77845         * lib/sh-quote.c: Likewise.
77846         * lib/stpcpy.c: Likewise.
77847         * lib/stpncpy.c: Likewise.
77848         * lib/strcasecmp.c: Likewise.
77849         * lib/strcasestr.c: Likewise.
77850         * lib/strcspn.c: Likewise.
77851         * lib/striconv.c: Likewise.
77852         * lib/strncasecmp.c: Likewise.
77853         * lib/strnlen1.c: Likewise.
77854         * lib/strstr.c: Likewise.
77855         * lib/strtok_r.c: Likewise.
77856         * lib/tls.c: Likewise.
77857         * lib/tmpdir.c: Likewise.
77858         * lib/unicodeio.c: Likewise.
77859         * lib/unsetenv.c: Likewise.
77860         * lib/vasnprintf.c: Likewise.
77861         * lib/vasprintf.c: Likewise.
77862         * lib/wait-process.c: Likewise.
77863         * lib/xallocsa.c: Likewise.
77864         * lib/xsetenv.c: Likewise.
77865         * lib/xstriconv.c: Likewise.
77866
77867 2006-09-13  Simon Josefsson  <jas@extundo.com>
77868
77869         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77870         that internally, suggested by Ralf Wildenhues
77871         <Ralf.Wildenhues@gmx.de>.
77872
77873 2006-09-13  Simon Josefsson  <jas@extundo.com>
77874
77875         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77876         @LIBOBJS@.
77877         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77878
77879 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77882         longer worry about uses that don't define HAVE_CONFIG_H.
77883         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77884         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77885         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77886         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77887         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77888         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77889         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77890         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77891         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77892         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77893         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77894         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77895         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77896         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77897         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77898         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77899         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77900         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77901         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77902         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77903         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77904         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77905         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77906         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77907         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77908         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77909         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77910         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77911         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77912         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77913         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77914         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77915         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77916         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77917         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77918         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77919         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77920         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77921         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77922         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77923         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77924         Likewise.
77925
77926 2006-09-13  Eric Blake  <ebb9@byu.net>
77927
77928         * lib/getopt.c: Fix typo in last commit.
77929
77930 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77931
77932         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77933         dgettext.
77934
77935 2006-09-12  Jim Meyering  <jim@meyering.net>
77936
77937         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77938         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77939         Reported by Nelson H. F. Beebe.
77940
77941 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77942
77943         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77944         program_invocation_name and program_invocation_short_name are
77945         initialized.
77946         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77947         and program_invocation_short_name to argp.h, so they are visible
77948         to user programs.
77949         * lib/argp.h: Likewise
77950
77951 2006-09-10  Bruno Haible  <bruno@clisp.org>
77952
77953         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77954         m4/inttypes_h.m4, m4/uintmax_t.m4.
77955
77956 2006-09-10  Bruno Haible  <bruno@clisp.org>
77957
77958         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77959         gl_AC_TYPE_UINTMAX_T.
77960
77961 2006-09-10  Bruno Haible  <bruno@clisp.org>
77962
77963         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77964
77965 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77966
77967         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77968         convention.  Text proposed by Bruno Haible.
77969         (struct argp_option): Document the use of N_() wrappers.
77970
77971         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77972         '\v', and translate the two parts separately, instead of feeding
77973         the whole string to gettext.  This allows to exclude
77974         '\v' from the strings visible to the translator by writing doc
77975         strings as N_("..") "\v" N_("..").
77976
77977 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77978
77979         * config/srclist.txt: Undo latest change; the bug was fixed.
77980
77981 2006-09-09  Bruno Haible  <bruno@clisp.org>
77982
77983         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77984         assignments if building a library without libtool.
77985         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77986         in func_emit_lib_Makefile_am.
77987         (func_import): When building a static library libfoo.a, arrange to
77988         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77989         (func_create_testdir): Likewise.
77990         * modules/gc (configure.ac, Makefile.am): If building statically,
77991         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77992         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77993         * modules/striconv (configure.ac, Makefile.am): Likewise.
77994         Based on a suggestion by Ralf Wildenhues.
77995
77996 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77997
77998         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77999         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78000         Also:
78001
78002         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78003         Add year_2050_test to catch glibc bug 2821
78004         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78005
78006         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78007         Prefer #ifdef to #if.
78008
78009         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78010         Return from 'main' instead of calling 'exit'.
78011
78012 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78013
78014         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78015         returned the maximum time_t value rather than (time_t) -1.
78016         Problem originally reported by William Bardwell
78017         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78018
78019         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78020         Moved to here ...
78021         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78022         ... from here.
78023
78024 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78027         2821 is fixed.
78028
78029 2006-09-08  Jim Meyering  <jim@meyering.net>
78030
78031         Don't make generated files read-only.  That would bother too many
78032         people.  However, do retain the ability to work when targets are
78033         read-only: remove the destination and temporary files before writing
78034         them (when generated via sed or echo), or by using the -f option for
78035         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78036         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78037         * modules/byteswap, modules/configmake, modules/fcntl:
78038         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78039         * modules/localcharset, modules/netinet_in, modules/poll:
78040         * modules/stdbool, modules/stdint, modules/sys_select:
78041         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78042
78043 2006-09-08  Jim Meyering  <jim@meyering.net>
78044
78045         Avoid new build failure on FreeBSD 6.0.
78046         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78047         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78048         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78049
78050 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78051
78052         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78053
78054 2006-09-07  Jim Meyering  <jim@meyering.net>
78055
78056         Fix global typo in last change: use chmod u-w, not chmod u-x.
78057         Spotted by Paul Eggert and Bruce Korb.
78058         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78059         * modules/byteswap, modules/configmake, modules/fcntl:
78060         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78061         * modules/localcharset, modules/netinet_in, modules/poll:
78062         * modules/stdbool, modules/stdint, modules/sys_select:
78063         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78064
78065 2006-09-06  Jim Meyering  <jim@meyering.net>
78066
78067         Make generated files be read-only.
78068         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78069         Ensure that each generated file is now read-only.
78070         * modules/argz: Likewise.
78071         * modules/arpa_inet: Likewise.
78072         * modules/byteswap: Likewise.
78073         * modules/configmake: Likewise.
78074         * modules/fcntl: Likewise.
78075         * modules/fnmatch: Likewise.
78076         * modules/getopt: Likewise.
78077         * modules/glob: Likewise.
78078         * modules/inttypes: Likewise.
78079         * modules/netinet_in: Likewise.
78080         * modules/poll: Likewise.
78081         * modules/stdbool: Likewise.
78082         * modules/stdint: Likewise.
78083         * modules/sys_select: Likewise.
78084         * modules/sys_socket: Likewise.
78085         * modules/sys_stat: Likewise.
78086         * modules/sysexits: Likewise.
78087         * modules/localcharset: Same as above, but continue using temporary
78088         file named "t-$@" (why different?) rather than the "$@-t" used
78089         everywhere else.
78090
78091         * modules/sysexits (Makefile.am): Replace literal occurrences
78092         of "sysexit.h" more readable, and more consistent, "$@".
78093
78094 2006-09-06  Bruno Haible  <bruno@clisp.org>
78095
78096         * modules/striconv: New file.
78097         * modules/xstriconv: New file.
78098         * MODULES.html.sh (Internationalization functions): Add striconv,
78099         xstriconv.
78100
78101 2006-09-06  Bruno Haible  <bruno@clisp.org>
78102
78103         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78104         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78105         not using libtool correctly.
78106
78107 2006-09-06  Bruno Haible  <bruno@clisp.org>
78108
78109         * lib/striconv.h: New file.
78110         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78111         iconvstring.c.
78112         * lib/xstriconv.h: New file.
78113         * lib/xstriconv.c: New file.
78114
78115 2006-09-06  Bruno Haible  <bruno@clisp.org>
78116
78117         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78118         lib_..._LDFLAGS.
78119
78120 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78121
78122         * lib/argz_.h: Sync from Libtool.
78123
78124         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78125                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78126
78127         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78128
78129 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78130
78131         * modules/trim: New file.
78132
78133 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78134
78135         * lib/trim.h: New file.
78136         * lib/trim.c: New file.
78137
78138 2006-09-05  Bruno Haible  <bruno@clisp.org>
78139
78140         * MODULES.html.sh (String handling): Add trim.
78141
78142 2006-09-04  Karl Berry  <karl@gnu.org>
78143
78144         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78145         until next release.
78146
78147 2006-09-03  Bruno Haible  <bruno@clisp.org>
78148
78149         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78150         correctly.
78151
78152 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78153
78154         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78155         not gl_GETLOADAVG.  Omit unneeded semicolons.
78156         Problems reported by Ralf Wildenhues in
78157         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78158         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78159         at the end, which is the usual gnulib style.
78160
78161         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78162         of doing all the work ourselves.
78163         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78164         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78165
78166 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78167
78168         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78169         Problem reported by Ralf Wildenhues in
78170         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78171
78172         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78173         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78174
78175 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78176
78177         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78178         yesterday's patch by changing test -n to test -z.
78179
78180 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78183         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78184         the former is now obsolescent.
78185
78186         * modules/chdir-long (Depends-on): Add fcntl.
78187
78188 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78189
78190         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78191         obsolescent, and programs should use gnulib instead.
78192         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78193         but with prefixes changed.
78194
78195 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78198         or stdbool.h, because they might not exist while configuring.
78199
78200         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78201         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78202         does that for us.
78203         (O_DIRECTORY): Remove.
78204
78205 2006-08-31  Eric Blake  <ebb9@byu.net>
78206
78207         * gnulib-tool: Don't let emacs change spaces to TAB.
78208
78209 2006-08-31  Bruno Haible  <bruno@clisp.org>
78210
78211         * gnulib-tool: When calling func_import more than once, do it in a
78212         subshell.
78213         Reported by Eric Blake <ebb9@byu.net>.
78214
78215 2006-08-31  Bruno Haible  <bruno@clisp.org>
78216
78217         * gnulib-tool (nl): Remove variable.
78218         (sed_transform_lib_file): Use more robust test for config-h module.
78219         (func_import): Fix typo in 2006-08-25 patch.
78220
78221 2006-08-31  Bruno Haible  <bruno@clisp.org>
78222
78223         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78224         specified, augment Makefile.am variables instead of assigning them.
78225
78226 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78227
78228         Work around a bug in both the Linux and SunOS 64-bit kernels:
78229         nanosleep mishandles sleeps for longer than 2**31 seconds.
78230         Problem reported by Frank v Waveren in
78231         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78232         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78233         Check for nanosleep bug.
78234         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78235
78236 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78237
78238         Work around a bug in both the Linux and SunOS 64-bit kernels:
78239         nanosleep mishandles sleeps for longer than 2**31 seconds.
78240         Problem reported by Frank v Waveren in
78241         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78242         * lib/nanosleep.c (BILLION): New constant.
78243         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78244         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78245         implementation.
78246
78247 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * modules/nanosleep (Depends-on): Add gettime.
78250
78251 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78252         and Simon Josefsson  <jas@extundo.com>
78253         and Oskar Liljeblad  <oskar@osk.mine.nu>
78254
78255         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78256         * gnulib-tool (func_import): New license type 'unmodifiable license
78257         text'.
78258         * modules/fdl: Use it.  Longer description.
78259         * module/gpl, module/lgpl: New files.
78260
78261 2006-08-30  Jim Meyering  <jim@meyering.net>
78262
78263         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78264         shadowing the parameter.
78265
78266 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78267
78268         Sync from Libtool:
78269
78270         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78271
78272         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78273         sharing with gnulib.  Report by Eric Blake.
78274
78275 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78276
78277         * modules/isapipe: New file.
78278         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78279
78280 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78281
78282         * modules/configmake (Makefile.am): Add a comment, and omit
78283         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78284         by Bruno Haible.
78285
78286 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78287
78288         * m4/isapipe.m4: New file.
78289
78290 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78291
78292         * lib/isapipe.c, lib/isapipe.h: New files.
78293
78294 2006-08-29  Jim Meyering  <jim@meyering.net>
78295
78296         * modules/configmake (Makefile.am): Make configmake.h depend on
78297         Makefile.  Otherwise, a stale configmake.h could hang around.
78298
78299 2006-08-29  Eric Blake  <ebb9@byu.net>
78300
78301         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78302         resolution of upstream bug 3044.
78303
78304 2006-08-29  Bruno Haible  <bruno@clisp.org>
78305
78306         * modules/localcharset (Depends-on): Add configmake.
78307         (Makefile.am): Remove setting of LIBDIR through DEFS.
78308
78309 2006-08-29  Bruno Haible  <bruno@clisp.org>
78310
78311         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78312         defined.
78313
78314 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78315
78316         * modules/fcntl: New file.
78317         * modules/chdir-safer (Depends-on): Add fcntl.
78318         * modules/fts: Likewise.
78319         * modules/mkdir-p: Likewise.
78320
78321         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78322         This undoes the most recent change, since we're now addressing the
78323         problem in a different way.
78324
78325         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78326         into output, since the output might be called Makefile.am even
78327         if $makefile_name is something different.
78328         (func_import): Use $makefile_am rather than
78329         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78330         empty.
78331
78332         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78333
78334 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78335
78336         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78337         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78338         recent change to stdint.m4, since we're now addressing the problem in a
78339         different way.
78340
78341 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         * m4/fcntl_h.m4: New file.
78344
78345 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         * lib/fcntl_.h: New file.
78348         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78349         the fcntl module.
78350         * lib/dirchownmod.c: Likewise.
78351         * lib/fts.c: Likewise.
78352
78353         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78354         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78355         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78356         just before including <inttypes.h>, to avoid circular inclusion.
78357
78358 2006-08-28  Jim Meyering  <jim@meyering.net>
78359
78360         * doc/visibility.texi: Actually read and correct the grammar of the
78361         sentence affected by yesterday's change.
78362
78363 2006-08-28  Eric Blake  <ebb9@byu.net>
78364
78365         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78366         needs wrapper.
78367
78368 2006-08-28  Eric Blake  <ebb9@byu.net>
78369
78370         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78371
78372 2006-08-28  Eric Blake  <ebb9@byu.net>
78373
78374         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78375
78376 2006-08-28  Bruno Haible  <bruno@clisp.org>
78377
78378         * modules/c-strstr: New file, from GNU gettext.
78379         * MODULES.html.sh (String handling): Add c-strstr.
78380
78381 2006-08-28  Bruno Haible  <bruno@clisp.org>
78382
78383         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78384         macros.
78385         Reported by Eric Blake.
78386
78387 2006-08-28  Bruno Haible  <bruno@clisp.org>
78388
78389         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78390         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78391         * lib/vasprintf.c: Include errno.h, limits.h.
78392         (EOVERFLOW): New fallback definition.
78393         (vasprintf): Test here whether the string length is > INT_MAX.
78394         * lib/vsnprintf.c: Include errno.h, limits.h.
78395         (EOVERFLOW): New fallback definition.
78396         (vsnprintf): Fix bug when generated string was too long for the buffer.
78397         Test here whether the string length is > INT_MAX.
78398
78399 2006-08-28  Bruno Haible  <bruno@clisp.org>
78400
78401         * lib/inttypes_.h (SCNX*): Remove definitions.
78402         Reported by Eric Blake.
78403
78404 2006-08-28  Bruno Haible  <bruno@clisp.org>
78405
78406         * lib/c-strstr.h: New file, from GNU gettext.
78407         * lib/c-strstr.c: New file, from GNU gettext.
78408
78409 2006-08-28  Bruno Haible  <bruno@clisp.org>
78410
78411         * gnulib-tool: Reorder some statements.
78412
78413 2006-08-28  Bruno Haible  <bruno@clisp.org>
78414
78415         * gnulib-tool: New option --makefile-name.
78416         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78417         $makefile_name.
78418         (func_import): Write $makefile_name to the cache file, and read it from
78419         there unless explicitly specified. Use $makefile_name as file name
78420         instead of Makefile.am. Adjust the recommendations accordingly.
78421
78422 2006-08-28  Bruno Haible  <bruno@clisp.org>
78423
78424         * gnulib-tool (func_verify_module): Check against misapplying patch.
78425
78426 2006-08-28  Bruno Haible  <bruno@clisp.org>
78427
78428         * gnulib-tool (func_relativize, func_relconcat): New functions.
78429         Give an error if --local-dir is given with --update.
78430         Remove trailing slashes from $local_gnulib_dir.
78431         (func_import): Store the relativized $local_gnulib_dir in
78432         gnulib-cache.m4, and read it from there if not specified explicitly.
78433
78434 2006-08-28  Bruno Haible  <bruno@clisp.org>
78435
78436         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78437         is the current directory. Respect also $local_gnulib_dir.
78438
78439 2006-08-28  Bruno Haible  <bruno@clisp.org>
78440             Simon Josefsson  <jas@extundo.com>
78441
78442         BeOS portability.
78443         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78444
78445 2006-08-27  Jim Meyering  <jim@meyering.net>
78446
78447         * doc/visibility.texi: Remove duplicate word: "pointer".
78448
78449 2006-08-26  Bruno Haible  <bruno@clisp.org>
78450
78451         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78452         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78453         (Makefile.am): Create inttypes.h from inttypes_.h.
78454         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78455
78456         * modules/imaxabs: New file.
78457
78458         * modules/imaxdiv: New file.
78459
78460 2006-08-26  Bruno Haible  <bruno@clisp.org>
78461
78462         * m4/inttypes.m4: New file.
78463         * m4/_inttypes_h.m4: Remove file.
78464         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78465         PRI_MACROS_BROKEN.
78466         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78467
78468         * m4/imaxabs.m4: New file.
78469
78470         * m4/imaxdiv.m4: New file.
78471
78472 2006-08-26  Bruno Haible  <bruno@clisp.org>
78473
78474         * lib/inttypes_.h: New file.
78475         * lib/inttypes.h: Remove file.
78476         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78477
78478         * lib/imaxabs.c: New file.
78479
78480         * lib/imaxdiv.c: New file.
78481
78482 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78483
78484         New config-h module, so that "make" output needn't be cluttered
78485         by -DHAVE_CONFIG_H.
78486         * MODULES.html.sh (Support for building libraries and executables):
78487         Add config-h.
78488         * modules/config-h: New file.
78489         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78490         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78491         the config-h module is used.
78492
78493         New configmake module, so that "make" output needn't be cluttered
78494         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78495         * MODULES.html.sh (Support for building libraries and executables):
78496         Add configmake.
78497         * modules/configmake: New file.
78498
78499 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * m4/config-h.m4: New file.
78502
78503 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78504
78505         * config/srclist.txt: Add elisp-comp.
78506
78507 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78508
78509         * MODULES.html.sh (Support for building libraries and executables):
78510         Add elisp-comp.
78511         * build-aux/elisp-comp: New file.
78512         * modules/elisp-comp: New file.
78513
78514 2006-08-24  Bruno Haible  <bruno@clisp.org>
78515
78516         * gnulib-tool (func_create_testdir): Use non-default values of
78517         sourcebase and m4base.
78518
78519 2006-08-24  Bruno Haible  <bruno@clisp.org>
78520
78521         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78522         HTML structure.
78523
78524 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         * modules/openat (Depends-on): Add lchown.
78527
78528 2006-08-23  Bruno Haible  <bruno@clisp.org>
78529
78530         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78531         of gl_LOCK_EARLY instead of gl_LOCK.
78532
78533 2006-08-23  Bruno Haible  <bruno@clisp.org>
78534
78535         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78536         on OSF/1 to no.
78537         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78538
78539 2006-08-23  Bruno Haible  <bruno@clisp.org>
78540
78541         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78542         as unusable.
78543
78544         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78545         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78546         (gl_LOCK): New macro.
78547
78548 2006-08-22  Simon Josefsson  <jas@extundo.com>
78549
78550         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78551         to md5 module.
78552
78553 2006-08-22  Simon Josefsson  <jas@extundo.com>
78554
78555         * MODULES.html.sh: Add "Support for maintaining and release
78556         projects".
78557
78558         * build-aux/gnupload: New file, from coreutils.
78559
78560 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78561
78562         Avoid the need for AC_LIBSOURCES in m4 macros.
78563         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78564         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78565         * modules/check-version (EXTRA_DIST): Add check-version.h.
78566         * modules/crc (EXTRA_DIST): Add crc.h.
78567         * modules/des (EXTRA_DIST): Add des.h.
78568         * modules/gc (EXTRA_DIST): Add gc.h.
78569         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78570         * modules/getline (EXTRA_DIST): Add getline.h.
78571         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78572         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78573         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78574         * modules/md2 (EXTRA_DIST): Add md2.h.
78575         * modules/md4 (EXTRA_DIST): Add md4.h.
78576         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78577         * modules/read-file (EXTRA_DIST): Add read-file.h.
78578         * modules/readline (EXTRA_DIST): Add readline.h.
78579         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78580         rijndael-api-fst.h.
78581
78582 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78583
78584         * m4/rijndael.m4 (gl_ARCFOUR):
78585         * m4/arctwo.m4 (gl_ARCTWO):
78586         * m4/check-version.m4 (gl_CHECK_VERSION):
78587         * m4/crc.m4 (gl_CRC):
78588         * m4/des.m4 (gl_DES):
78589         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78590         * m4/gc.m4 (gl_GC):
78591         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78592         * m4/getline.m4 (gl_FUNC_GETLINE):
78593         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78594         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78595         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78596         * m4/md2.m4 (gl_MD2):
78597         * m4/md4.m4 (gl_MD4):
78598         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78599         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78600         * m4/readline.m4 (gl_FUNC_READLINE):
78601         * m4/rijndael.m4 (gl_RIJNDAEL):
78602         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78603         to get the necessary .h files and whatnot.
78604
78605 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78606
78607         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78608         gnulib rather than the other way around.
78609         * config/srclistvars.sh (COREUTILS): Remove.
78610
78611 2006-08-22  Jim Meyering  <jim@meyering.net>
78612
78613         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78614
78615         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78616
78617 2006-08-22  Eric Blake  <ebb9@byu.net>
78618
78619         * modules/regexprops-generic: New file.
78620         * MODULES.html.sh (Support for building documentation): List it.
78621
78622 2006-08-22  Eric Blake  <ebb9@byu.net>
78623
78624         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78625         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78626         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78627         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78628
78629 2006-08-22  Bruno Haible  <bruno@clisp.org>
78630
78631         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78632         and lib_LTLIBRARIES like the other lib_* variables.
78633
78634 2006-08-22  Bruno Haible  <bruno@clisp.org>
78635
78636         * build-aux/x-to-1.in: New file, from GNU gettext.
78637
78638 2006-08-22  Bruno Haible  <bruno@clisp.org>
78639
78640         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78641         <utmpx.h> exists.
78642
78643 2006-08-22  Bruno Haible  <bruno@clisp.org>
78644
78645         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78646         <utmpx.h> exists.
78647
78648 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78649
78650         BeOS portability.
78651         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78652         exist.
78653         Problem reported by Bruno Haible.
78654
78655 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         Avoid the need for AC_LIBSOURCES in m4 macros.
78658         * modules/acl (EXTRA_DIST): Add acl.h.
78659         * modules/argmatch (Files): Add m4/argmatch.m4.
78660         (configure.ac): Add gl_ARGMATCH.
78661         (EXTRA_DIST): Renamed from lib_SOURCES, for
78662         consistency with the other modules.  Remove argmatch.c.
78663         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78664         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78665         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78666         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78667         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78668         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78669         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78670         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78671         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78672         * modules/closeout (EXTRA_DIST): Add closeout.h.
78673         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78674         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78675         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78676         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78677         dirname.h; remove basename.c and stripslash.c.
78678         * modules/exclude (EXTRA_DIST): Add exclude.h.
78679         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78680         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78681         * modules/file-type (EXTRA_DIST): Add file-type.h.
78682         * modules/filemode (EXTRA_DIST): Add filemode.h.
78683         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78684         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78685         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78686         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78687         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78688         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78689         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78690         * modules/getdate (EXTRA_DIST): Add getdate.c.
78691         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78692         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78693         * modules/getpass (EXTRA_DIST): Add getpass.h.
78694         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78695         * modules/group-member (EXTRA_DIST): Add group-member.h.
78696         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78697         * modules/hash (EXTRA_DIST): Add hash.h.
78698         * modules/human (EXTRA_DIST): Add human.h.
78699         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78700         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78701         * modules/lchown (EXTRA_DIST): Add lchown.h.
78702         * modules/long-options (EXTRA_DIST): Add long-options.h.
78703         * modules/lstat (EXTRA_DIST): Add lstat.h.
78704         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78705         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78706         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78707         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78708         * modules/memxor (EXTRA_DIST): Add memxor.h.
78709         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78710         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78711         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78712         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78713         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78714         * modules/physmem (EXTRA_DIST): Add physmem.h.
78715         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78716         * modules/posixver (EXTRA_DIST): Add posixver.h.
78717         * modules/quote (EXTRA_DIST): Add quote.h.
78718         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78719         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78720         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78721         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78722         regex_internal.h regexec.c.
78723         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78724         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78725         * modules/same (EXTRA_DIST): Add same.h.
78726         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78727         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78728         * modules/savedir (EXTRA_DIST): Add savedir.h.
78729         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78730         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78731         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78732         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78733         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78734         * modules/strdup (EXTRA_DIST): Add strdup.h.
78735         * modules/strftime (EXTRA_DIST): Add strftime.h.
78736         * modules/strndup (EXTRA_DIST): Add strndup.h.
78737         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78738         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78739         * modules/time_r (EXTRA_DIST): Add time_r.h.
78740         * modules/timespec (EXTRA_DIST): Add timespec.h.
78741         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78742         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78743         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78744         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78745         * modules/userspec (EXTRA_DIST): Add userspec.h.
78746         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78747         * modules/utimens (EXTRA_DIST): Add utimens.h.
78748         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78749         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78750         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78751         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78752         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78753         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78754         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78755         * modules/yesno (EXTRA_DIST): Add yesno.h.
78756
78757 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78760
78761         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78762         * m4/dev-ino.m4, same-inode.m4: Remove.
78763
78764         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78765         * m4/acl.m4 (AC_FUNC_ACL):
78766         * m4/backupfile.m4 (gl_BACKUPFILE):
78767         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78768         * m4/canon-host.m4 (gl_CANON_HOST):
78769         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78770         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78771         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78772         * m4/cloexec.m4 (gl_CLOEXEC):
78773         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78774         * m4/closeout.m4 (gl_CLOSEOUT):
78775         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78776         * m4/dirname.m4 (gl_DIRNAME):
78777         * m4/exclude.m4 (gl_EXCLUDE):
78778         * m4/exitfail.m4 (gl_EXITFAIL):
78779         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78780         * m4/file-type.m4 (gl_FILE_TYPE):
78781         * m4/filemode.m4 (gl_FILEMODE):
78782         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78783         * m4/fpending.m4 (gl_FUNC_FPENDING):
78784         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78785         * m4/fts.m4 (gl_FUNC_FTS):
78786         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78787         * m4/getdate.m4 (gl_GETDATE):
78788         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78789         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78790         * m4/getpass.m4 (gl_FUNC_GETPASS):
78791         * m4/gettime.m4 (gl_GETTIME):
78792         * m4/getugroups.m4 (gl_GETUGROUPS):
78793         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78794         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78795         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78796         * m4/hash.m4 (gl_HASH):
78797         * m4/idcache.m4 (gl_IDCACHE):
78798         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78799         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78800         * m4/long-options.m4 (gl_LONG_OPTIONS):
78801         * m4/lstat.m4 (gl_FUNC_LSTAT):
78802         * m4/md5.m4 (gl_MD5):
78803         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78804         * m4/memcoll.m4 (gl_MEMCOLL):
78805         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78807         * m4/memxor.m4 (gl_MEMXOR):
78808         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78809         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78810         * m4/modechange.m4 (gl_MODECHANGE):
78811         * m4/mountlist.m4 (gl_MOUNTLIST):
78812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78813         * m4/openat.m4 (gl_FUNC_OPENAT):
78814         * m4/pathmax.m4 (gl_PATHMAX):
78815         * m4/physmem.m4 (gl_PHYSMEM):
78816         * m4/posixtm.m4 (gl_POSIXTM):
78817         * m4/posixver.m4 (gl_POSIXVER):
78818         * m4/quote.m4 (gl_QUOTE):
78819         * m4/quotearg.m4 (gl_QUOTEARG):
78820         * m4/readtokens.m4 (gl_READTOKENS):
78821         * m4/readutmp.m4 (gl_READUTMP):
78822         * m4/regex.m4 (gl_REGEX):
78823         * m4/safe-read.m4 (gl_SAFE_READ):
78824         * m4/safe-write.m4 (gl_SAFE_WRITE):
78825         * m4/same.m4 (gl_SAME):
78826         * m4/save-cwd.m4 (gl_SAVE_CWD):
78827         * m4/savedir.m4 (gl_SAVEDIR):
78828         * m4/settime.m4 (gl_SETTIME):
78829         * m4/sha1.m4 (gl_SHA1):
78830         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78831         * m4/stat-macros.m4 (gl_STAT_MACROS):
78832         * m4/stat-time.m4 (gl_STAT_TIME):
78833         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78834         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78835         * m4/strdup.m4 (gl_FUNC_STRDUP):
78836         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78837         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78838         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78839         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78840         * m4/time_r.m4 (gl_TIME_R):
78841         * m4/timespec.m4 (gl_TIMESPEC):
78842         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78843         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78844         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78845         * m4/userspec.m4 (gl_USERSPEC):
78846         * m4/utimecmp.m4 (gl_UTIMECMP):
78847         * m4/utimens.m4 (gl_UTIMENS):
78848         * m4/xalloc.m4 (gl_XALLOC):
78849         * m4/xgetcwd.m4 (gl_XGETCWD):
78850         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78851         * m4/xreadlink.m4 (gl_XREADLINK):
78852         * m4/xstrtod.m4 (gl_XSTRTOD):
78853         * m4/yesno.m4 (gl_YESNO):
78854         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78855         to get the necessary .h files and whatnot.
78856
78857 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78858             Bruno Haible  <bruno@clisp.org>
78859
78860         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78861         /bin/sh understanding of '!' conditional negation.
78862
78863 2006-08-21  Jim Meyering  <jim@meyering.net>
78864
78865         * modules/openat (Depends-on): Really alphabetize.
78866
78867         * modules/acl (Depends-on): Add error and quote.
78868
78869         * check-module (find_included_lib_files): Add at-func.c to the
78870         ok-to-include-more-than-once white list.
78871
78872         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78873
78874 2006-08-21  Bruno Haible  <bruno@clisp.org>
78875
78876         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78877         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78878         Reported by Martin Lambers <marlam@marlam.de>.
78879
78880 2006-08-21  Bruno Haible  <bruno@clisp.org>
78881
78882         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78883         specify an installation location, don't emit a noinst_LIBRARIES or
78884         noinst_LTLIBRARIES assignment.
78885
78886 2006-08-21  Bruno Haible  <bruno@clisp.org>
78887
78888         BeOS portability.
78889         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78890         BeOS has mbrtowc() but no <wctype.h>.
78891
78892 2006-08-21  Bruno Haible  <bruno@clisp.org>
78893
78894         BeOS portability.
78895         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78896         exist.
78897
78898 2006-08-21  Bruno Haible  <bruno@clisp.org>
78899
78900         BeOS portability.
78901         * lib/mbchar.h: Include <wctype.h> only if it exists.
78902
78903 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78904
78905         Remove files that are no longer needed by their respective modules.
78906         * m4/obstack.m4: Remove.
78907         * m4/strerror_r.m4: Remove.
78908         * m4/uint32_t.m4: Remove.
78909         * m4/uintptr_t.m4: Remove.
78910         * m4/ullong_max.m4: Remove.
78911         * m4/xstrtoimax.m4: Remove.
78912         * m4/xstrtoumax.m4: Remove.
78913
78914         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78915         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78916         dependencies now capture this.
78917
78918         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78919         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78920         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78921         * m4/human.m4 (gl_HUMAN): Likewise.
78922         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78923         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78924
78925         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78926
78927         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78928         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78929         stdint.
78930         * m4/human.m4 (gl_HUMAN): Likewise.
78931         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78932         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78933         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78934         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78935         * m4/xstrtol (gl_XSTRTOL): Likewise.
78936
78937         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78938         AC_TYPE_LONG_LONG_INT.
78939         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78940         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78941         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78942         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78943
78944         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78945         on stdbool.
78946
78947         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78948         (gl_PREREQ_XSTRTOUL): Remove.
78949
78950         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78951
78952         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78953         mode.
78954
78955 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         Add and change modules to make it easier for coreutils to use
78958         gnulib-tool.
78959         * modules/backupfile (Files): Remove m4/d-ino.m4.
78960         (Depends-on): Add d-ino.
78961         * modules/cycle-check (Depends-on): Add stdint.
78962         (lib_SOURCES): Add cycle-check.h.
78963         * modules/d-ino: New module.
78964         * modules/d-type: New module.
78965         * modules/error (Files): Remove m4/strerror_r.m4.
78966         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78967         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78968         m4/inttypes_h.m4, m4/uintmax_t.m4.
78969         (Depends-on): Add stdint.
78970         (lib_SOURCES): Add fsusage.h.
78971         * modules/getcwd (Files): Remove d-ino.m4.
78972         (Depends-on): Add d-ino.
78973         * modules/getndelim2 (Depends-on): Add stdint.
78974         * modules/glob (Files): Remove m4/d-type.m4.
78975         (Depends-on): Add d-type.
78976         * modules/host-os: New module.
78977         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78978         m4/inttypes_h.m4, m4/uintmax_t.m4.
78979         * Depends-on: Add stdint.
78980         (lib_SOURCES): Add human.h.
78981         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78982         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78983         m4/uintmax_t.m4, m4/ulonglong.m4.
78984         (Depends-on): Add stdint.
78985         (EXTRA_DIST): Add inttostr.h.
78986         * modules/lchmod: New module.
78987         * modules/link-follow: New module.
78988         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78989         (Depends-on): Add lchmod.
78990         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78991         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78992         (Depends-on): Add stdint.
78993         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78994         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78995         (Depends-on): Add stdint.
78996         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78997         * modules/perl: New module.
78998         * modules/regex (Depends-on): Add stdint.
78999         * modules/rmdir-errno: New module.
79000         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79001         m4/intmax_t.m4.
79002         (Depends-on): Add stdint.
79003         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79004         m4/uintmax_t.m4.
79005         (Depends-on): Add stdint.
79006         * modules/unlink-busy: New module.
79007         * modules/utimecmp (Depends-on): Add stdint.
79008         * modules/uptime: New module.
79009         * modules/winsz-ioctl: New module.
79010         * modules/winsz-termios: New module.
79011         * modules/xnanosleep (Depends-on): Add nanosleep.
79012         * modules/ullong_max: Remove.
79013         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79014         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79015         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79016         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79017         (Depends-on): Add inttypes.
79018         (lib_SOURCES): Add xstrtol.h.
79019         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79020         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79021         * MODULES.html.sh: Move 'assert' into the assert section.
79022         Move 'dummy' into the linking section.
79023         Remove ullong_max.
79024         Add section for compatibility checks for POSIX:2001 functions,
79025         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79026         winsz-ioctl, and winsz-termios into it.
79027         Add lchmod.
79028         Add top-level Misc section and put host-os, perl, and uptime
79029         into it.
79030
79031 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79032
79033         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79034         now assume the stdint module.  Do not include inttypes.h.
79035         * lib/fsusage.h: Likewise.
79036         * lib/getndelim2.c: Likewise.
79037         * lib/human.h: Likewise.
79038         * lib/inttostr.h: Likewise.
79039         * lib/obstack.c: Likewise.
79040         * lib/regex_internal.h: Likewise.
79041         * lib/tempname.c: Likewise.
79042         * lib/utimecmp.c: Likewise.
79043         * lib/xstrtol.h: Likewise.
79044
79045         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79046
79047         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79048         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79049         * lib/xtime.h: Likewise.
79050
79051 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * modules/openat (Files): Add lib/fchmodat.c.
79054         Fixes problem reported by Jay Youngman.
79055
79056 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79059         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79060
79061 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79062             Bruno Haible  <bruno@clisp.org>
79063
79064         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79065         and is a script that invokes bison. Tighten the code. Add comments.
79066
79067 2006-08-18  Jim Meyering  <jim@meyering.net>
79068
79069         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79070         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79071         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79072         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79073
79074 2006-08-18  Bruno Haible  <bruno@clisp.org>
79075
79076         * modules/bison-i18n: New file.
79077         * MODULES.html.sh (Internationalization functions): Add it.
79078
79079 2006-08-18  Bruno Haible  <bruno@clisp.org>
79080
79081         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79082         sys/statvfs.h. When getmntinfo was found, check its declaration and
79083         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79084
79085 2006-08-18  Bruno Haible  <bruno@clisp.org>
79086
79087         * m4/bison-i18n.m4: New file, from bison.
79088
79089 2006-08-18  Bruno Haible  <bruno@clisp.org>
79090
79091         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79092         (ME_DUMMY): Treat "kernfs" as a dummy.
79093         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79094
79095 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         Update from coreutils.
79098
79099         2006-08-15  Jim Meyering  <jim@meyering.net>
79100
79101         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79102
79103         2006-01-17  Jim Meyering  <jim@meyering.net>
79104
79105         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79106
79107         2006-01-11  Jim Meyering  <jim@meyering.net>
79108
79109         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79110         Check for the lchmod function.
79111
79112 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79113
79114         Update from coreutils.
79115
79116         * lib/__fpending.h: Add copyright notice.
79117         * lib/fprintftime.h: Likewise.
79118         * lib/savedir.c: Use (C) in copyright notice.
79119         * lib/savedir.h: Likewise.
79120
79121         2006-08-15  Jim Meyering  <jim@meyering.net>
79122
79123         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79124         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79125         in support of the EXPECTED_ERRNO macro.
79126         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79127         definitions.  Instead, define the appropriate symbols and include
79128         "at-func.c".
79129         * lib/mkdirat.c (mkdirat): Likewise.
79130         * lib/fchmodat.c (fchmodat): Likewise.
79131         (ENOSYS): Remove definition.
79132         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79133         it.  Don't include "unistd--.h" -- it wasn't ever used.
79134
79135         2006-01-17  Jim Meyering  <jim@meyering.net>
79136
79137         Rewrite fts.c not to change the current working directory,
79138         by using openat, fstatat, fdopendir, etc..
79139
79140         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79141         (HAVE_OPENAT_SUPPORT): Define.
79142         [_LIBC] (fchdir): Don't undef or define; no longer used.
79143         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79144         Now, this `function' always succeeds, and consumes its file descriptor
79145         parameter -- so callers must not close such FDs.  Update callers.
79146         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79147         (diropen): Add parameter, SP.  Adjust all callers.
79148         Implement using diropen_fd, rather than open.
79149         (fts_open): Initialize new member, fts_cwd_fd.
79150         Remove fts_rft-setting code.
79151         (fts_close): Close fts_cwd_fd, if necessary.
79152         (__opendir2): Define in terms of opendir or opendirat,
79153         depending on whether the FST_NOCHDIR flag is set.
79154         (fts_build): Since fts_safe_changedir consumes its FD, and since
79155         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79156         and close the dup'd file descriptor upon failure.
79157         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79158         (fts_safe_changedir): Tweak semantics to reflect that this function
79159         now calls cwd_advance_fd and hence consumes its FD argument.
79160         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79161         [struct FTS] (fts_rft): Remove now-unused member.
79162         [struct FTS] (fts_cycle.state): Improve comment.
79163
79164         * lib/openat.c (openat_needs_fchdir): New function.
79165         * lib/openat.h (openat_needs_fchdir): Declare it.
79166
79167 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79168
79169         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79170         Problem and fix reported by Pádraig Brady in
79171         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79172
79173 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79174
79175         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79176
79177 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79178
79179         * lib/memcoll.c (memcoll): Optimize for the common case where the
79180         arguments are bytewise equal.
79181
79182 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79183
79184         * doc/regexprops-generic.texi: Add a copyright notice.
79185
79186 2006-08-15  Bruno Haible  <bruno@clisp.org>
79187
79188         * modules/tmpdir (License): Change to LGPL.
79189
79190 2006-08-15  Bruno Haible  <bruno@clisp.org>
79191
79192         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79193         module.
79194
79195 2006-08-14  Simon Josefsson  <jas@extundo.com>
79196
79197         * config/srclist.txt: Add gnupload.
79198
79199 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79200
79201         Change copyright notice from LGPL 2 to GPL 2, since that's the
79202         standard form used in the gnulib repository.
79203         * tests/test-lock.c: Likewise.
79204         * tests/test-stdint.c: Likewise.
79205         * tests/test-tls.c: Likewise.
79206
79207         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79208         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79209         Add copyright notice.
79210
79211         * check-module: Add copyright notice.  Output a copyright
79212         notice if "--version" is specified.
79213         * modules/COPYING: New file.
79214         * tests/test-getaddrinfo.c: Add copyright notice.
79215         * tests/test-verify.c: Likewise.
79216
79217 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79218
79219         Change copyright notice from LGPL 2 to GPL 2, since that's the
79220         standard form used in the gnulib repository.
79221         * lib/lock.c: LGPL -> GPL.
79222         * lib/lock.h: Likewise.
79223         * lib/strnlen1.c: Likewise.
79224         * lib/strnlen1.h: Likewise.
79225         * lib/tls.c: Likewise.
79226         * lib/tls.h: Likewise.
79227         * lib/tmpdir.c: Likewise.
79228
79229         * lib/TODO: Remove; this belongs only in coreutils.
79230
79231 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79232
79233         Add copyright notices to long-enough files that lack them, since
79234         otherwise the files aren't clearly free.  Use the same notice that
79235         getdate.texi already uses.
79236         * doc/alloca-opt.texi: Add copyright notice.
79237         * doc/alloca.texi: Likewise.
79238         * doc/ctime.texi: Likewise.
79239         * doc/functions.texi: Likewise.
79240         * doc/gcd.texi: Likewise.
79241         * doc/gnulib-tool.texi: Likewise.
79242         * doc/inet_ntoa.texi: Likewise.
79243         * doc/visibility.texi: Likewise.
79244
79245         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79246         * doc/quote.texi: Add copyright notice.
79247
79248         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79249         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79250         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79251         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79252         is now obsolete, and give a pointer to the Sun list.
79253         Add copyright notice.
79254
79255 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79256
79257         * config/srclistvars.sh: Add copyright notice.
79258
79259 2006-08-14  Eric Blake  <ebb9@byu.net>
79260
79261         Import the following change from libc:
79262
79263         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79264
79265         Upstream bug 2997.
79266         * lib/misc/error.c: Add space between program name and message if file
79267         name is missing.
79268
79269 2006-08-12  Karl Berry  <karl@gnu.org>
79270
79271         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79272         remove, these originate in gnulib now.
79273
79274 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79275
79276         * doc/Makefile (standards.info standards.html standards.dvi):
79277         Also depend on make-stds.texi.
79278
79279 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79282         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79283
79284         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79285         in wchar_t.  Problem reported by Eric Blake.
79286
79287         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79288         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79289         Also, help the compiler to keep LEN in a register.
79290
79291 2006-08-11  Eric Blake  <ebb9@byu.net>
79292
79293         * users.txt: Sort.  Add tar.
79294
79295 2006-08-11  Bruno Haible  <bruno@clisp.org>
79296
79297         * users.txt: New file.
79298
79299 2006-08-11  Bruno Haible  <bruno@clisp.org>
79300
79301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79302         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79303
79304 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         * modules/snprintf (Depends-on): Remove minmax.
79307         (Maintainer): Add self and Bruno.
79308
79309 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79310
79311         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79312         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79313         (EOVERFLOW): Define if the system does not.
79314         Do not include "minmax.h"; it wasn't used.
79315         (snprintf): Don't assume size_t promotes to an unsigned type.
79316         Fix bug when generated string was too long for the buffer: the
79317         buffer's contents are supposed to be the initial prefix of the
79318         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79319         exceeds INT_MAX; do the check ourselves.
79320
79321         Import the following changes from libc:
79322
79323         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79324
79325         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79326         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79327         set wc to the byte which couldn't be converted.
79328         (re_string_reconstruct): Don't clear valid_raw_len before calling
79329         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79330         tip_context using re_string_context_at.
79331
79332         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79333
79334         * lib/posix/regex.h: g++ still cannot handled [restrict].
79335
79336         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79337
79338         * lib/posix/regex.h: Remove special handling for VMS.
79339
79340 2006-08-10  Jim Meyering  <jim@meyering.net>
79341
79342         * modules/same-inode: New module.
79343         * modules/dev-ino: New module.
79344         * modules/cycle-check: Depend on these modules, rather than simply
79345         including their .h files.
79346         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79347         required via m4/cycle-check.m4.
79348         * modules/same: Depend on new same-inode module, rather than
79349         including same-inode.h.
79350         * modules/chdir-safer: New file.
79351
79352         * modules/chown (Depends-on): Add stat-macros.
79353
79354 2006-08-10  Jim Meyering  <jim@meyering.net>
79355
79356         * m4/cycle-check.m4: New file.
79357         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79358         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79359
79360 2006-08-10  Eric Blake  <ebb9@byu.net>
79361
79362         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79363         in from original proposal.
79364
79365 2006-08-10  Eric Blake  <ebb9@byu.net>
79366         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79367
79368         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79369         namespace.
79370
79371 2006-08-10  Bruno Haible  <bruno@clisp.org>
79372
79373         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79374         as well.
79375
79376 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         Sync from coreutils.
79379
79380         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79381
79382         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79383         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79384
79385 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79386
79387         * modules/restrict: Remove; no longer needed now that we assume
79388         Autoconf 2.59 or later.
79389         * MODULES.html.sh: Remove 'restrict'.
79390         * modules/argp (Depends-on): Remove 'restrict'.
79391         * modules/base64 (Depends-on): Likewise.
79392         * modules/gc (Depends-on): Likewise.
79393         * modules/getaddrinfo (Depends-on): Likewise.
79394         * modules/glob (Depends-on): Likewise.
79395         * modules/inet_ntop (Depends-on): Likewise.
79396         * modules/inet_pton (Depends-on): Likewise.
79397         * modules/memxor (Depends-on): Likewise.
79398         * modules/regex (Depends-on): Likewise.
79399         * modules/strtok_r (Depends-on): Likewise.
79400         * modules/time_r (Depends-on): Likewise.
79401
79402 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79403
79404         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79405         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79406         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79407         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79408         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79409         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79410         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79411         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79412
79413         Merge from coreutils.
79414         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79415         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79416         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79417         * m4/time_r.m4 (gl_TIME_R): Likewise.
79418
79419 2006-08-09  Karl Berry  <karl@gnu.org>
79420
79421         * config/srclist.txt: no more gettext-tools, per Bruno.
79422
79423 2006-08-08  Eric Blake  <ebb9@byu.net>
79424
79425         * modules/verror: New module.
79426         * MODULES.html.sh: Document it.
79427
79428 2006-08-08  Eric Blake  <ebb9@byu.net>
79429
79430         * lib/verror.h, lib/verror.c: New files.
79431
79432 2006-08-08  Eric Blake  <ebb9@byu.net>
79433
79434         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79435         verror_at_line output complies with GNU Coding Standards even when
79436         file is NULL.
79437
79438 2006-08-07  Bruno Haible  <bruno@clisp.org>
79439
79440         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79441         versions of AIX.
79442         Reported by Ralf Wildenhues.
79443
79444 2006-08-07  Bruno Haible  <bruno@clisp.org>
79445
79446         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79447         in an AC_DEFUN. Needed so that the autoconf snippets can use
79448         AC_REQUIRE.
79449
79450 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79451
79452         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79453         Initialize pkgdata_DATA.
79454         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79455         overriding it.
79456
79457 2006-08-06  Eric Blake  <ebb9@byu.net>
79458
79459         * lib/error.h: Fold in some upstream changes from glibc.
79460         * lib/error.c: Likewise.
79461
79462 2006-08-04  Bruno Haible  <bruno@clisp.org>
79463
79464         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79465         Make the mostlyclean-local rule depend on mostlyclean-generic.
79466         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79467
79468 2006-07-31  Bruno Haible  <bruno@clisp.org>
79469
79470         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79471         <stdlib.h>, <string.h>.
79472
79473 2006-07-30  Bruno Haible  <bruno@clisp.org>
79474
79475         * modules/readlink (License): Change to LGPL.
79476
79477 2006-07-30  Bruno Haible  <bruno@clisp.org>
79478
79479         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79480         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79481         set PKGDATADIR to point to it.
79482
79483 2006-07-30  Bruno Haible  <bruno@clisp.org>
79484
79485         * modules/csharpexec (configure.ac): Comment out macro invocation.
79486         * modules/javaexec (configure.ac): Likewise.
79487         * modules/javacomp-script (configure.ac): Likewise.
79488
79489         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79490
79491 2006-07-30  Bruno Haible  <bruno@clisp.org>
79492
79493         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79494         linked-list.
79495
79496 2006-07-30  Bruno Haible  <bruno@clisp.org>
79497
79498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79499
79500 2006-07-30  Bruno Haible  <bruno@clisp.org>
79501
79502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79503         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79504         get removed.
79505
79506 2006-07-29  Bruno Haible  <bruno@clisp.org>
79507
79508         Make it possible for gnulib-tool to work with locally modified or
79509         augmented gnulib repositories.
79510         * gnulib-tool (func_usage): Document --local-dir option.
79511         (local_gnulib_dir): New variable.
79512         Handle --local-dir option.
79513         (func_lookup_file): New function.
79514         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79515         (func_get_description, func_get_filelist, func_get_description,
79516         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79517         func_get_automake_snippet, func_get_include_directive,
79518         func_get_license, func_get_maintainer): Use func_lookup_file.
79519         (func_import, func_create_testdir): Use func_lookup_file.
79520
79521 2006-07-29  Bruno Haible  <bruno@clisp.org>
79522
79523         * modules/setenv (Depends-on): Add unistd.
79524
79525 2006-07-29  Bruno Haible  <bruno@clisp.org>
79526
79527         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79528
79529 2006-07-29  Bruno Haible  <bruno@clisp.org>
79530
79531         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79532
79533 2006-07-29  Bruno Haible  <bruno@clisp.org>
79534
79535         * gnulib-tool (import, update): If there is no Makefile.am, look at
79536         aclocal.m4, instead of bailing out.
79537
79538 2006-07-29  Bruno Haible  <bruno@clisp.org>
79539
79540         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79541         Categorize the options by when they are useful.
79542
79543 2006-07-29  Bruno Haible  <bruno@clisp.org>
79544
79545         * gnulib-tool (func_usage): Document option --no-libtool.
79546         Handle option --no-libtool.
79547         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79548         for changed semantics of $libtool variable.
79549         (func_import): Likewise. If libtool is not used, show this through
79550         an option --no-libtool.
79551         (func_create_testdir): Update.
79552
79553 2006-07-29  Bruno Haible  <bruno@clisp.org>
79554
79555         * gnulib-tool (func_import): Extend error message about missing
79556         --doc-base.
79557
79558 2006-07-29  Bruno Haible  <bruno@clisp.org>
79559
79560         * gnulib-tool (func_import): Don't create the $docbase directory if
79561         there is no file to store there.
79562
79563 2006-07-29  Bruno Haible  <bruno@clisp.org>
79564
79565         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79566         relevant, look for configure.ac there, not in the current directory.
79567         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79568
79569 2006-07-29  Bruno Haible  <bruno@clisp.org>
79570
79571         * gnulib-tool (SORT): New variable.
79572         (func_usage): Undocument --assume-autoconf option.
79573         Remove --assume-autoconf option handling.
79574         (autoconf_minversion): Determine from the contents of configure.ac.
79575         (func_import): Remove autoconf_minversion handling.
79576         Suggested by Eric Blake.
79577
79578 2006-07-29  Bruno Haible  <bruno@clisp.org>
79579
79580         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79581
79582 2006-07-29  Bruno Haible  <bruno@clisp.org>
79583
79584         * config/srclist.txt (*setenv.[ch]): Remove rules.
79585
79586 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79587
79588         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79589
79590 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79591
79592         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79593         arpa/inet.h.
79594
79595 2006-07-28  Simon Josefsson  <jas@extundo.com>
79596
79597         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79598         * modules/inet_pton (Depends-on): Likewise.
79599
79600 2006-07-28  Simon Josefsson  <jas@extundo.com>
79601
79602         * m4/netinet_in_h.m4: New file.
79603
79604 2006-07-28  Simon Josefsson  <jas@extundo.com>
79605
79606         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79607         #include's.
79608
79609 2006-07-28  Simon Josefsson  <jas@extundo.com>
79610
79611         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79612         #include's.
79613
79614 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79615
79616         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79617         setgid on directories only if they set these bits.
79618         * lib/modechange.h: Remove obsolete comment about masks.
79619
79620 2006-07-28  Eric Blake  <ebb9@byu.net>
79621
79622         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79623         macro expansion.
79624
79625 2006-07-28  Bruno Haible  <bruno@clisp.org>
79626
79627         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79628
79629 2006-07-28  Bruno Haible  <bruno@clisp.org>
79630
79631         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79632
79633 2006-07-28  Bruno Haible  <bruno@clisp.org>
79634
79635         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79636         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79637         Define fallbacks.
79638         Avoids link error on FreeBSD 4.x.
79639         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79640
79641         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79642         encoding.
79643         * lib/mbswidth.c (iswcntrl): Likewise.
79644
79645 2006-07-27  Bruno Haible  <bruno@clisp.org>
79646
79647         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79648         test.
79649
79650 2006-07-27  Bruno Haible  <bruno@clisp.org>
79651
79652         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79653         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79654         defined.
79655
79656 2006-07-26  Eric Blake  <ebb9@byu.net>
79657
79658         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79659
79660 2006-07-26  Eric Blake  <ebb9@byu.net>
79661
79662         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79663         like mingw that lack mkstemp.
79664         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79665         avoid compilation warning on mingw.
79666
79667 2006-07-26  Bruno Haible  <bruno@clisp.org>
79668
79669         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79670         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79671         INT_FAST*_MIN, INTPTR_MIN.
79672
79673 2006-07-25  Bruno Haible  <bruno@clisp.org>
79674
79675         * modules/version-etc (Depends-on): Add stdarg.
79676
79677 2006-07-25  Bruno Haible  <bruno@clisp.org>
79678
79679         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79680         complex commands.
79681
79682 2006-07-25  Bruno Haible  <bruno@clisp.org>
79683
79684         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79685         defined in <stdarg.h> or config.h.
79686
79687 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79690         (gl_STDIO_SAFER): Remove.
79691
79692 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79693
79694         * MODULES.html.sh (File stream based Input/Output):
79695         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79696         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79697         * modules/fopen-safer, modules/tmpfile-safer: New files.
79698         * modules/stdio-safer: Remove.
79699
79700 2006-07-24  Bruno Haible  <bruno@clisp.org>
79701
79702         * modules/tmpdir: New file.
79703         * MODULES.html.sh (File system functions): Add it.
79704
79705 2006-07-24  Bruno Haible  <bruno@clisp.org>
79706
79707         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79708         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79709
79710 2006-07-24  Bruno Haible  <bruno@clisp.org>
79711
79712         * modules/clean-temp: New file.
79713
79714 2006-07-24  Bruno Haible  <bruno@clisp.org>
79715
79716         * m4/tmpdir.m4: New file, from GNU gettext.
79717
79718 2006-07-24  Bruno Haible  <bruno@clisp.org>
79719
79720         * lib/tmpdir.h: New file, from GNU gettext.
79721         * lib/tmpdir.c: New file, from GNU gettext.
79722
79723 2006-07-24  Bruno Haible  <bruno@clisp.org>
79724
79725         * lib/clean-temp.h: New file, from GNU gettext.
79726         * lib/clean-temp.c: New file, from GNU gettext.
79727
79728 2006-07-23  Eric Blake  <ebb9@byu.net>
79729
79730         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79731         (Depends-on): Add binary-io.
79732
79733 2006-07-23  Eric Blake  <ebb9@byu.net>
79734
79735         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79736
79737 2006-07-23  Eric Blake  <ebb9@byu.net>
79738
79739         * lib/tmpfile-safer.c: New file.
79740         * lib/stdio-safer.h (fopen_safer): Add prototype.
79741         * lib/stdio--.h (tmpfile): Make safer.
79742
79743 2006-07-23  Bruno Haible  <bruno@clisp.org>
79744
79745         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79746         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79747         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79748         gl_linked_remove_at): Use it.
79749
79750 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79751         and Simon Josefsson <jas@extundo.com>
79752
79753         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79754
79755         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79756
79757 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79758
79759         * modules/close-stream: New file.
79760         * modules/closeout (Description): Make it clear that it exits
79761         with a diagnostic on error.
79762         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79763         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79764
79765 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79766
79767         * m4/close-stream.m4: New file.
79768
79769 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * lib/close-stream.c, lib/close-stream.h: New files.
79772
79773 2006-07-22  Bruno Haible  <bruno@clisp.org>
79774
79775         Merge from GNU gettext 0.15.
79776
79777         2006-05-01  Bruno Haible  <bruno@clisp.org>
79778
79779                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79780
79781         2006-07-22  Bruno Haible  <bruno@clisp.org>
79782
79783                 * modules/javaversion: New file.
79784                 * MODULES.html.sh (Java): Add javaversion.
79785
79786         2006-03-12  Bruno Haible  <bruno@clisp.org>
79787
79788                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79789
79790         2005-12-04  Bruno Haible  <bruno@clisp.org>
79791
79792                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79793                 (untested).
79794
79795         2006-06-21  Bruno Haible  <bruno@clisp.org>
79796
79797                 Avoid warnings from recent versions of mcs.
79798                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79799                 -o, -L, -r any more. Use options documented since mcs-1.0
79800                 instead. Similarly for -g.
79801
79802         2005-12-04  Bruno Haible  <bruno@clisp.org>
79803
79804                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79805                 .resources, not .resource.
79806
79807         2005-07-09  Bruno Haible  <bruno@clisp.org>
79808
79809                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79810                 add a .dll suffix.
79811                 Reported by Mark Junker <mjscod@gmx.de>.
79812
79813         2006-07-22  Bruno Haible  <bruno@clisp.org>
79814
79815                 * modules/gettext: Upgrade to gettext-0.15.
79816                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79817                 m4/visibility.m4.
79818                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79819
79820 2006-07-22  Bruno Haible  <bruno@clisp.org>
79821
79822         Merge from GNU gettext 0.15.
79823
79824         2006-03-25  Bruno Haible  <bruno@clisp.org>
79825
79826                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79827
79828         2006-07-21  Bruno Haible  <bruno@clisp.org>
79829
79830                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79831                 "1.1".
79832
79833         2006-05-09  Bruno Haible  <bruno@clisp.org>
79834
79835                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79836                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79837                 for the conftestver execution.
79838
79839         2006-05-01  Bruno Haible  <bruno@clisp.org>
79840
79841                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79842                 optional target-version argument. Verify that the compiler
79843                 groks source of the specified source-version, or add -source
79844                 option as necessary. Verify that the compiler produces
79845                 bytecode in the specified target-version, or add -target and
79846                 -source options as necessary. Make the result of the test
79847                 available as variable CONF_JAVAC. Also log error output in
79848                 config.log.
79849
79850         2006-03-11  Bruno Haible  <bruno@clisp.org>
79851
79852                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79853
79854         2006-05-09  Bruno Haible  <bruno@clisp.org>
79855
79856                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79857                 CLASSPATH_SEPARATOR to a semicolon.
79858
79859         2006-03-12  Bruno Haible  <bruno@clisp.org>
79860
79861                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79862                 available as variable CONF_JAVA, for subsequent autoconf
79863                 tests. Also log error output in config.log.
79864
79865         2006-07-19  Bruno Haible  <bruno@clisp.org>
79866
79867                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79868                 that getline works on glibc2 systems. Needed to avoid trouble
79869                 in relocatable.c.
79870                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79871
79872         2005-12-04  Bruno Haible  <bruno@clisp.org>
79873
79874                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79875                 launcher (untested).
79876
79877         2005-12-04  Bruno Haible  <bruno@clisp.org>
79878
79879                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79880
79881         2006-07-22  Bruno Haible  <bruno@clisp.org>
79882
79883                 * gettext.m4: Update from GNU gettext-0.15.
79884                 * nls.m4: Likewise.
79885                 * po.m4: Likewise.
79886                 * inttypes-pri.m4: Likewise.
79887                 * inttypes-h.m4: Renamed from inttypes.m4.
79888                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79889
79890 2006-07-22  Bruno Haible  <bruno@clisp.org>
79891
79892         Merge from GNU gettext 0.15.
79893
79894         2005-07-05  Bruno Haible  <bruno@clisp.org>
79895
79896                 * printf-args.c (printf_fetchargs): Work around broken
79897                 definition of wint_t on mingw.
79898
79899         2005-02-12  Bruno Haible  <bruno@clisp.org>
79900
79901                 * xallocsa.h: Add extern "C" for C++.
79902
79903         2006-05-17  Bruno Haible  <bruno@clisp.org>
79904
79905                 Cygwin portability.
79906                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79907
79908         2006-04-30  Bruno Haible  <bruno@clisp.org>
79909
79910                 * progreloc.c: Include <mach-o/dyld.h> if available.
79911                 (find_executable): Use _NSGetExecutablePath when possible.
79912
79913         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79914
79915                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79916                 function.
79917
79918         2005-12-29  Bruno Haible  <bruno@clisp.org>
79919
79920                 * progreloc.c (set_program_name_and_installdir): Fix
79921                 compilation error.
79922
79923         2005-12-04  Bruno Haible  <bruno@clisp.org>
79924
79925                 Cygwin portability.
79926                 * progreloc.c: Include <windows.h> also on Cygwin.
79927                 (find_executable): Add support for Cygwin.
79928                 (set_program_name_and_installdir): Handle also platforms with
79929                 nonempty EXEEXT.
79930
79931         2006-07-11  Bruno Haible  <bruno@clisp.org>
79932
79933                 * javacomp.c: Fix a comment.
79934                 Reported by Jim Meyering.
79935
79936         2006-04-30  Bruno Haible  <bruno@clisp.org>
79937
79938                 * javacomp.h (compile_java_class): Add source_version,
79939                 target_version arguments.
79940                 * javacomp.c: Rewritten to choose only a compiler that
79941                 respects the specified source_version and target_version.
79942
79943         2006-06-27  Bruno Haible  <bruno@clisp.org>
79944
79945                 Assume correct S_ISDIR macro.
79946                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79947
79948         2006-07-22  Bruno Haible  <bruno@clisp.org>
79949
79950                 * javaversion.h: New file, from GNU gettext.
79951                 * javaversion.c: New file, from GNU gettext.
79952                 * javaversion.java: New file, from GNU gettext.
79953                 * javaversion.class: New file, from GNU gettext.
79954
79955         2006-05-17  Bruno Haible  <bruno@clisp.org>
79956
79957                 Cygwin portability.
79958                 * javaexec.c (execute_java_class): Test for jview program
79959                 also on Cygwin.
79960
79961         2006-04-09  Bruno Haible  <bruno@clisp.org>
79962
79963                 * fatal-signal.c: Don't include string.h.
79964                 (at_fatal_signal): Use a copying loop instead of memcpy.
79965
79966         2005-12-04  Bruno Haible  <bruno@clisp.org>
79967
79968                 * csharpexec.c: Add support for 'clix' launcher (untested).
79969                 (execute_csharp_using_sscli): New function.
79970                 (execute_csharp_program): Call it.
79971
79972         2006-06-21  Bruno Haible  <bruno@clisp.org>
79973
79974                 Avoid warnings from recent versions of mcs.
79975                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79976                 -o, -L, -r any more. Use options documented since mcs-1.0
79977                 instead. Similarly for -g.
79978
79979         2005-07-09  Bruno Haible  <bruno@clisp.org>
79980
79981                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79982                 add a .dll suffix.
79983                 Reported by Mark Junker <mjscod@gmx.de>.
79984
79985         2006-06-17  Bruno Haible  <bruno@clisp.org>
79986
79987                 * config.charset: Update for NetBSD 3.0.
79988
79989         2006-05-17  Bruno Haible  <bruno@clisp.org>
79990
79991                 Cygwin portability.
79992                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79993
79994         2006-05-16  Bruno Haible  <bruno@clisp.org>
79995
79996                 * localcharset.c [CYGWIN]: Include <windows.h>.
79997                 (get_charset_aliases): For Cygwin, return the same CPxxx
79998                 aliases list as under WIN32.
79999                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80000                 the environment variables. Fall back to GetACP().
80001
80002         2006-04-05  Bruno Haible  <bruno@clisp.org>
80003
80004                 * config.charset: Update Juan Manuel Guerrero's address.
80005
80006         2005-02-12  Bruno Haible  <bruno@clisp.org>
80007
80008                 * allocsa.h: Add extern "C" for C++.
80009
80010         2005-02-10  Bruno Haible  <bruno@clisp.org>
80011
80012                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80013                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80014
80015         2006-07-22  Bruno Haible  <bruno@clisp.org>
80016
80017                 * gettext.h: Update to GNU gettext-0.15.
80018
80019 2006-07-22  Bruno Haible  <bruno@clisp.org>
80020
80021         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80022         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80023         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80024
80025 2006-07-21  Eric Blake  <ebb9@byu.net>
80026
80027         * modules/stdlib-safer: New file.
80028         * MODULES.html.sh (File stream based Input/Output): Add
80029         stdlib-safer.
80030
80031 2006-07-21  Eric Blake  <ebb9@byu.net>
80032
80033         * lib/stdlib-safer.h: New file from coreutils, required by
80034         stdlib--.h.
80035
80036 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80039
80040 2006-07-20  Bruno Haible  <bruno@clisp.org>
80041
80042         * gnulib-tool: Recognize new option --assume-autoconf.
80043         (autoconf_minversion): New variable.
80044         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80045
80046 2006-07-20  Bruno Haible  <bruno@clisp.org>
80047
80048         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80049
80050 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80051
80052         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80053         Reindent and repaginate.
80054
80055 2006-07-19  Derek Price  <derek@ximbiot.com>
80056
80057         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80058         Correct grammar.
80059
80060 2006-07-17  Bruno Haible  <bruno@clisp.org>
80061
80062         * modules/list: New file.
80063         * modules/array-list: New file.
80064         * modules/carray-list, modules/carray-list-tests: New files.
80065         * modules/linked-list, modules/linked-list-tests: New files.
80066         * modules/avltree-list, modules/avltree-list-tests: New files.
80067         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80068         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80069         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80070         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80071         * modules/oset: New file.
80072         * modules/array-oset: New file.
80073         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80074         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80075         * tests/test-carray_list.c: New file.
80076         * tests/test-linked_list.c: New file.
80077         * tests/test-avltree_list.c: New file.
80078         * tests/test-rbtree_list.c: New file.
80079         * tests/test-linkedhash_list.c: New file.
80080         * tests/test-avltreehash_list.c: New file.
80081         * tests/test-rbtreehash_list.c: New file.
80082         * tests/test-avltree_oset.c: New file.
80083         * tests/test-rbtree_oset.c: New file.
80084         * MODULES.html.sh (Container data structures): New section.
80085
80086 2006-07-17  Bruno Haible  <bruno@clisp.org>
80087
80088         * m4/gl_list.m4: New file.
80089
80090 2006-07-17  Bruno Haible  <bruno@clisp.org>
80091
80092         * lib/gl_list.h: New file.
80093         * lib/gl_list.c: New file.
80094         * lib/gl_array_list.h: New file.
80095         * lib/gl_array_list.c: New file.
80096         * lib/gl_carray_list.h: New file.
80097         * lib/gl_carray_list.c: New file.
80098         * lib/gl_linked_list.h: New file.
80099         * lib/gl_linked_list.c: New file.
80100         * lib/gl_anylinked_list1.h: New file.
80101         * lib/gl_anylinked_list2.h: New file.
80102         * lib/gl_avltree_list.h: New file.
80103         * lib/gl_avltree_list.c: New file.
80104         * lib/gl_anyavltree_list1.h: New file.
80105         * lib/gl_anyavltree_list2.h: New file.
80106         * lib/gl_rbtree_list.h: New file.
80107         * lib/gl_rbtree_list.c: New file.
80108         * lib/gl_anyrbtree_list1.h: New file.
80109         * lib/gl_anyrbtree_list2.h: New file.
80110         * lib/gl_anytree_list1.h: New file.
80111         * lib/gl_anytree_list2.h: New file.
80112         * lib/gl_linkedhash_list.h: New file.
80113         * lib/gl_linkedhash_list.c: New file.
80114         * lib/gl_anyhash_list1.h: New file.
80115         * lib/gl_anyhash_list2.h: New file.
80116         * lib/gl_avltreehash_list.h: New file.
80117         * lib/gl_avltreehash_list.c: New file.
80118         * lib/gl_rbtreehash_list.h: New file.
80119         * lib/gl_rbtreehash_list.c: New file.
80120         * lib/gl_anytreehash_list1.h: New file.
80121         * lib/gl_anytreehash_list2.h: New file.
80122
80123         * lib/gl_oset.h: New file.
80124         * lib/gl_oset.c: New file.
80125         * lib/gl_array_oset.h: New file.
80126         * lib/gl_array_oset.c: New file.
80127         * lib/gl_avltree_oset.h: New file.
80128         * lib/gl_avltree_oset.c: New file.
80129         * lib/gl_rbtree_oset.h: New file.
80130         * lib/gl_rbtree_oset.c: New file.
80131         * lib/gl_anytree_oset.h: New file.
80132
80133 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80134
80135         * m4/mkancesdirs.m4: New file.
80136         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80137         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80138         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80139         it.
80140
80141 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80142
80143         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80144         * lib/mkancesdirs.h: New files.
80145         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80146         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80147         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80148         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80149         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80150         callers changed.  Revamp internals significantly, by not
80151         attempting to create directories that are temporarily more
80152         permissive than the final results.  Do not attempt to use
80153         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80154         This removes some race conditions, fixes some bugs, and simplifies
80155         things.  Use new dirchownmod function to do owner and mode changes.
80156         * lib/mkdir-p.h: Likewise.
80157         * lib/modechange.c (octal_to_mode): New function.
80158         (struct mode_change): New member mentioned.
80159         (make_node_op_equals): New arg mentioned.  All callers changed.
80160         (mode_compile): Keep track of which mode bits the user has explicitly
80161         mentioned.
80162         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80163         New arg PMODE_BITS, to keep track of which mode bits the user
80164         mentioned; it treats S_ISUID and S_ISGID speciall.
80165         All callers changed.
80166         * lib/modechange.h: Likewise.
80167
80168 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80169
80170         * MODULES.html.sh: Add mkancestors.
80171         * modules/mkancesdirs: New module.
80172         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80173         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80174         The chdir-safer and afs files are now orphans; I'll remove them
80175         unless someone speaks up.
80176         Add lib/dirchownmod.c, lib/dirchownmod.h.
80177         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80178         Add lchown, mkancesdirs.
80179         (Maintainer): Add self.
80180
80181 2006-07-15  Karl Berry  <karl@gnu.org>
80182
80183         * gnulib-tool: help message wording/arrangement.
80184
80185 2006-07-14  Simon Josefsson  <jas@extundo.com>
80186
80187         * doc/gnulib.texi (Libtool and Windows): New section.
80188
80189 2006-07-12  Simon Josefsson  <jas@extundo.com>
80190
80191         * modules/gendocs (License): Fix license, approved by Karl.
80192
80193 2006-07-12  Eric Blake  <ebb9@byu.net>
80194
80195         * MODULES.html.sh: Add gendocs.
80196
80197 2006-07-11  Eric Blake  <ebb9@byu.net>
80198
80199         * modules/fdl: New module, to install doc/fdl.texi.
80200         * MODULES.html.sh: Add new section for documentation modules.
80201         * gnulib-tool: Avoid space-tab.
80202         (--doc-base): New option, to manage files from doc.
80203
80204 2006-07-11  Eric Blake  <ebb9@byu.net>
80205
80206         * m4/absolute-header.m4: Fix comments to match recent change.
80207
80208 2006-07-11  Eric Blake  <ebb9@byu.net>
80209
80210         * gnulib-tool: List --doc-base before --tests-base.
80211
80212 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80213
80214         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80215
80216 2006-07-11  Bruno Haible  <bruno@clisp.org>
80217
80218         * README: Mention where to put documentation.
80219
80220 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80221
80222         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80223
80224 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80225
80226         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80227         to stdint.m4.
80228
80229 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80230
80231         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80232         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80233         "no/such/file/stdint.h" when there is no such file, so that
80234         the resulting C code can be parsed by dodgy compilers.
80235         Problems reported by Bob Proulx.
80236
80237 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80238
80239         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80240         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80241         macros into the GNU _D_EXACT_NAMLEN.
80242         * lib/savedir.c:  Likewise.
80243         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80244
80245 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80246         and Paul Eggert  <eggert@cs.ucla.edu>
80247
80248         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80249         * m4/savedir.m4:
80250         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80251         macros into the GNU _D_EXACT_NAMLEN.
80252
80253 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80254
80255         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80256         around the absolute name, to work around a problem with the HP-UX
80257         11.23 native C compiler, reported by Bob Proulx.
80258
80259 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         * doc/maintain.texi, make-stds.texi: Sync from
80262         <http://savannah.gnu.org/projects/gnustandards>.
80263
80264 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80265
80266         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80267
80268 2006-07-09  Jim Meyering  <jim@meyering.net>
80269
80270         * m4/glob.m4: Remove a doubled word in a comment.
80271
80272 2006-07-09  Jim Meyering  <jim@meyering.net>
80273
80274         * lib/argp-pv.c: Remove a doubled word in a comment.
80275         * lib/check-version.c (check_version): Likewise.
80276         * lib/javacomp.c (compile_java_class): Likewise.
80277
80278 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80279
80280         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80281         for the benefit of people using Autoconf 2.60.  If you want to
80282         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80283         (or m4/onceonly.m4, if pre-2.57) manually.
80284
80285 2006-07-08  Jim Meyering  <jim@meyering.net>
80286
80287         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80288         comment.
80289         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80290         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80291         comment.
80292
80293 2006-07-08  Jim Meyering  <jim@meyering.net>
80294
80295         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80296
80297 2006-07-07  Simon Josefsson  <jas@extundo.com>
80298
80299         * tests/test-crc.c: Change expected crc value, the test vector
80300         were probably computed using the old broken crc.c?
80301
80302 2006-07-06  Simon Josefsson  <jas@extundo.com>
80303
80304         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80305         now the canonical place for the M4 file).
80306
80307         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80308         from the sys_socket dependency now.
80309
80310         * modules/inet_pton (Files): Ditto.
80311
80312         * modules/inet_ntop (Files): Ditto.
80313
80314 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80315
80316         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80317         not gl_PREREQ_GETUSERSHELL.
80318
80319 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80320
80321         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80322         with only one argument, for Autoconf 2.60.
80323         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80324         expand to nothing, so add a shell command to avoid syntax error.
80325         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80326
80327 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80328
80329         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80330
80331 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80332
80333         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80334         no longer needed.  Check for isblank decl.
80335         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80336         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80337         of existence.
80338
80339 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80340
80341         * lib/getloadavg.c: Use __VMS, not VMS.
80342         * lib/getopt.c: Likewise.
80343         * lib/getpagesize.h: Likewise.
80344         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80345         and probably does not work.
80346
80347 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80348
80349         * lib/.cppi-disable: Add wcwidth.
80350         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80351         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80352         (ISGRAPH): Remove.  All uses changed to isgraph.
80353         (FOLD) [!defined _LIBC]: Remove special case.
80354         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80355         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80356         HAVE_ISBLANK.
80357         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80358         case.
80359
80360 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80361
80362         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80363         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80364         brackets.  Other minor changes to suppress some compiler
80365         warnings.
80366
80367 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80368         and Paul Eggert  <eggert@cs.ucla.edu>
80369
80370         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80371         of invoking obsolescent AC_HEADER_DIRENT macro.
80372         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80373         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80374         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80375         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80376         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80377         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80378         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80379         * m4/readdir.m4: Remove; no longer needed.
80380
80381 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80382         and Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80385         Don't worry about this obsolete case any more.
80386         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80387         directories.
80388         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80389         worry about this obsolete case any more.
80390         * lib/fts.c: Likewise.
80391         * lib/getcwd.c: Likewise.
80392         * lib/glob.h: Likewise.
80393         * lib/savedir.c: Likewise.
80394
80395 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80396
80397         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80398         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80399         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80400         needed.
80401         All uses removed.
80402         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80403         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80404         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80405         needed.
80406         * m4/getdate.m4 (gl_GETDATE): Likewise.
80407         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80408         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80409         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80410         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80411         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80412         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80413         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80414         needed.
80415
80416 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80417
80418         * lib/memcasecmp.c: Include <limits.h>.
80419         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80420         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80421         Don't assume isdigit succeeds only on '0' through '9'.
80422
80423 2006-07-05  Eric Blake  <ebb9@byu.net>
80424
80425         * modules/getaddrinfo (Depends-on): Add snprintf.
80426
80427 2006-07-05  Eric Blake  <ebb9@byu.net>
80428
80429         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80430         to avoid 'header present but could not be compiled' on cygwin.
80431
80432 2006-07-05  Eric Blake  <ebb9@byu.net>
80433
80434         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80435         missing from netdb.h.
80436         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80437
80438 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80439
80440         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80441         no longer needed.
80442         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80443         * m4/getdate.m4 (gl_GETDATE): Likewise.
80444         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80445         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80446         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80447         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80448         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80449
80450 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80451
80452         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80453         All uses of is_space replaced by isspace.
80454         * lib/exit.h: Don't talk about STDC_HEADERS.
80455         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80456         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80457         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80458         replaced by isprint etc.
80459         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80460         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80461         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80462         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80463         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80464         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80465
80466 2006-07-05  Bruno Haible  <bruno@clisp.org>
80467
80468         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80469         the function exists, before testing against AIX.
80470         Reported by Martin Lambers <marlam@marlam.de>.
80471
80472 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80473
80474         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80475         From Mark D. Baushke.
80476
80477 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80478
80479         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80480         to the absolute name, not just one, to bypass Sun C 5.8's
80481         "warning: #include of /usr/include/... may be non-portable".
80482
80483 2006-07-04  Eric Blake  <ebb9@byu.net>
80484
80485         * modules/dirname-tests: New test module.
80486         * tests/test-dirname.c: New file, replacing dirname.c
80487         TEST_DIRNAME section that was recently deleted.
80488
80489 2006-07-04  Bruno Haible  <bruno@clisp.org>
80490
80491         Assume ANSI C header files and <ctype.h> functions.
80492         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80493         (mbsnwidth): Use isprint, iscntrl instead.
80494
80495 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80496
80497         Merge from coreutils.
80498         * MODULES.html.sh: Add xstrtold.
80499         * modules/xstrtold: New file.
80500         * modules/cycle-check (Files): Add lib/same-inode.h.
80501         * modules/dirname (Files): Add m4/double-slash-root.m4.
80502         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80503         * modules/mkdir-p (Files): Add lib/same-inode.h.
80504         * modules/same (Files): Add lib/same-inode.h.
80505
80506 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80507
80508         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80509         This is to keep the terminology clean; POSIX talks about
80510         "absolute pathnames", not "full pathnames", but the GNU
80511         Coding Standards say to use "path" for something else;
80512         so use "absolute" to keep both sides happy.
80513         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80514         Set gl_absolute_header, not gl_full_header_path.
80515         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80516         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80517         All uses changed.
80518
80519         Merge from coreutils.
80520
80521         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80522
80523         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80524         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80525         want to require the building of c-strtod.o.
80526         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80527         needs -lm directly.
80528         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80529
80530         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80533         --as-needed option if available.  Problem reported by Albert Chin in
80534         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80535         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80536         cc merely issues a bunch of annoying warnings for --as-needed
80537         (this problem was reported by Bob Proulx).  Also, try linking with
80538         -lm to detect a bug in binutils 2.16 (this problem was reported
80539         by Ralf Wildenhues).
80540
80541         2006-06-18  Jim Meyering  <jim@meyering.net>
80542
80543         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80544         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80545         macro.
80546         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80547         also check for glibc-2.4's abort-inducing bug.
80548
80549         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80550         Low-probability clean-up should be to use rmdir to get rid of
80551         the just-created directory, not unlink.
80552
80553         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80554         configure fail, and request a bug report to inform us about it.
80555         Add a comment that, barring reports to the contrary, in 2007 we'll
80556         assume ftruncate is universally available.
80557
80558         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80559
80560         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80561
80562         2006-03-12  Jim Meyering  <jim@meyering.net>
80563
80564         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80565         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80566         * m4/same.m4 (gl_SAME): Likewise.
80567         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80568
80569         2006-03-11  Eric Blake  <ebb9@byu.net>
80570
80571         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80572         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80573         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80574         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80575
80576 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80577
80578         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80579         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80580         reported by Mark D. Baushke, one in
80581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80582
80583         Merge from coreutils.
80584
80585         * lib/.cppi-disable: Add stdint_.h.
80586         * lib/.cvsignore: Add stdint.h.
80587
80588         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80589
80590         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80591         both double and long double versions.
80592         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80593         * lib/xstrtold.c: New file.
80594         * lib/xstrtod.h (xstrtold): New decl.
80595
80596         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80597
80598         * lib/filemode.c (setst): Remove.
80599         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80600         (arguably) clearer, and the generated code is a bit smaller on my
80601         Debian GNU/Linux stable x86 host.
80602
80603         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80604
80605         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80606         Assume that filemode.h includes sys/types.h and sys/stat.h.
80607         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80608         (ftypelet): Reorder to put common cases first, for efficiency.
80609         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80610         to do 'M'.
80611         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80612         of 10, for compatibility with FreeBSD.  All callers changed.
80613         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80614         types that can't be deduced solely from st_mode.  First arg is now a
80615         const pointer.
80616         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80617         (strmode): Renamed from mode_string.
80618         (filemodestring): New decl.
80619         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80620         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80621         needed.
80622         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80623
80624         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80627         fsusage.h now does that.  Include fsusage.h first, to test interface.
80628         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80629         at most one method (the old code could have generated decls that
80630         didn't conform to C89, not that this was ever exercised).
80631         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80632
80633         2006-03-19  Jim Meyering  <jim@meyering.net>
80634
80635         Work even in a chroot where d_ino values for entries in "/"
80636         don't match the stat.st_ino values for the same names.
80637         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80638         number, iterate through all entries again, using lstat instead.
80639         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80640         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80641
80642         * lib/getcwd.c (__getcwd): Clarify a comment.
80643         Use memcpy in place of a call to strcpy.
80644
80645         2006-03-12  Jim Meyering  <jim@meyering.net>
80646
80647         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80648         matches that of the current directory (which we're about to chdir ".."
80649         out of), then save the dev-ino of the parent, instead.
80650
80651         * lib/same-inode.h (SAME_INODE): New file/macro.
80652         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80653         Include "same-inode.h", instead.
80654         * lib/same.c: Likewise.
80655         * lib/cycle-check.h: Include "same-inode.h".
80656         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80657         * lib/cycle-check.c (SAME_INODE): Remove definition.
80658         * lib/root-dev-ino.h: Include "same-inode.h".
80659
80660         2006-03-11  Eric Blake  <ebb9@byu.net>
80661
80662         * lib/same.c (same_name): s/base_name/last_component/
80663         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80664         * lib/filenamecat.c (file_name_concat): Likewise.
80665
80666         2006-03-11  Eric Blake  <ebb9@byu.net>,
80667                     Paul Eggert  <eggert@cs.ucla.edu>
80668
80669         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80670         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80671         drive prefix.
80672         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80673         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80674         (last_component): New method.
80675         * lib/dirname.c (dir_len): Determine when drive letters need a
80676         subsequent slash.  Preserve // when it is special.
80677         (dir_name): Don't append dot when drive letter is absolute.
80678         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80679         * lib/basename.c (base_name): New semantics - malloc the result.
80680         Preserve // when it is special.  Preserve relative files that look
80681         like drive letters.
80682         (base_len): Preserve // when it is special.
80683         (last_component): New method, similar to old base_name semantics.
80684         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80685         base_name.  Strip redundant slashes from ///.
80686
80687 2006-07-03  Jim Meyering  <jim@meyering.net>
80688
80689         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80690         macro is used before the first cycle_check call.
80691
80692 2006-07-03  Eric Blake  <ebb9@byu.net>
80693
80694         * modules/dirname (Depends-on): Add xstrndup.
80695
80696 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80697
80698         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80699         test cases, so that config.log is a bit easier to follow.
80700
80701 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80702
80703         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80704         both are 64 bits, since this seems to be the tradition, and this
80705         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80706         we ever run into a host that prefers long long to long in this
80707         case, we'll need another configure-time test.  Problem reported by
80708         Jim Meyering.
80709
80710 2006-07-02  Eric Blake  <ebb9@byu.net>
80711
80712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80713
80714 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         * modules/inttypes (Depends-on): No longer depends on stdint.
80717         * modules/stdint (Description): Say more about assumptions.
80718         Say that the fast types might differ.  Say macros are used.
80719         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80720         (Makefile.am): Revise list of substituted symbols to match
80721         new stdint.m4.
80722         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80723         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80724         * tests/test-stdint.c (verify_same_types)
80725         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80726         the code conforms to C99/C89.
80727         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80728         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80729
80730 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80731
80732         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80733         but fix a bug, by requiring at least 64 bits.
80734         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80735         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80736         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80737         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80738
80739         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80740         changes.  Make 2.59 a prerequisite.  Check and substitute for
80741         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80742         inttypes.h.  Do not use special include files; just use the
80743         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80744         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80745         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80746         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80747         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80748         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80749         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80750         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80751         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80752         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80753         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80754         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80755         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80756         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80757         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80758         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80759         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80760         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80761         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80762         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80763         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80764         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80765         not check for things that C99 does not require, e.g., int8_t.  If
80766         a test isn't needed unless <stdint.h> isn't working, and is
80767         unlikely to be needed for any other reason, then don't do it
80768         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80769         size_t, since we assume C89 freestanding at least.  Do not check
80770         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80771         the right thing even if the types are not defined.  Instead use:
80772         (gl_STDINT_TYPE_PROPERTIES): New macro.
80773         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80774         testing whether <sys/types.h> clashes, as Autoconf does this for
80775         us now.  All uses removed.
80776         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80777         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80778         (gl_CHECK_TYPE_SAME):
80779         Remove; no longer needed.
80780         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80781         exists, since we'll return 0 anyway in that case.
80782         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80783
80784 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80785
80786         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80787         possible collision with system files.
80788         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80789         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80790         WCHAR_MIN and WCHAR_MAX in this case.
80791         (<stddef.h>): Do not include; no longer needed.
80792         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80793         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80794         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80795         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80796         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80797         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80798         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80799         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80800         !defined(__c99))]: Include in this case too, since it's harmless
80801         now.
80802         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80803         dangerous to do so.
80804         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80805         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80806         (_STDINT_MIN, _STDINT_MAX): New macros.
80807         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80808         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80809         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80810         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80811         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80812         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80813         macros, not typedefs; this simplifies things quite a bit.
80814         Use long int for all types narrower than int64_t.
80815         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80816         Define in terms of long long int or int64_t or long int,
80817         not int64_t or int32_t.  This saves some compile-time testing.
80818         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80819         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80820         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80821         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80822         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80823         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80824         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80825         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80826         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80827         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80828         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80829         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80830         undef any previous version and define our own version, for
80831         simplicity and consistency with the new macros for types.
80832         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80833         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80834         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80835         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80836         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80837         @WINT_T_SUFFIX@ to keep things simple here.
80838         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80839         Simplify by assuming typical 8/16/32/64 host, since we're
80840         already doing that elsewhere anyway.
80841         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80842         and assume long long int is 64 bits if available.  This
80843         speeds up 'configure'.
80844
80845 2006-07-01  Eric Blake  <ebb9@byu.net>
80846
80847         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80848         Reported by Andreas Buening.
80849
80850 2006-07-01  Eric Blake  <ebb9@byu.net>
80851
80852         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80853
80854 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80855
80856         * lib/getaddrinfo.c: fixed typo
80857
80858 2006-06-29  Jim Meyering  <jim@meyering.net>
80859
80860         * modules/strftime (Maintainer): Add my name, since with the
80861         FPRINTFTIME changes strftime.c has forked from glibc.
80862
80863 2006-06-29  Eric Blake  <ebb9@byu.net>
80864
80865         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80866
80867 2006-06-29  Eric Blake  <ebb9@byu.net>
80868
80869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80870
80871 2006-06-29  Eric Blake  <ebb9@byu.net>
80872
80873         * lib/stat_.h: New file.
80874
80875 2006-06-29  Eric Blake  <ebb9@byu.net>
80876
80877         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80878         unused static function.
80879
80880 2006-06-29  Eric Blake  <ebb9@byu.net>
80881
80882         * doc/functions.texi (Function Portability): Document missing lstat
80883         on mingw.
80884
80885 2006-06-29  Eric Blake  <ebb9@byu.net>
80886
80887         * MODULES.html.sh: Add sys_stat.
80888         * modules/sys_stat: New module.
80889         * modules/mkstemp (Depends-on): Add sys_stat.
80890
80891 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80892
80893         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80894
80895 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80896
80897         * m4/c-bs-a.m4: Removed.
80898
80899 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80900
80901         * lib/strftime.c: Assume strftime() exists.
80902
80903 2006-06-29  Derek Price  <derek@ximbiot.com>
80904
80905         * modules/c-bs-a: Removed - \a is C89.
80906         * MODULES.html.sh: Remove c-bs-a.
80907
80908 2006-06-29  Bruno Haible  <bruno@clisp.org>
80909
80910         * modules/wcwidth (License): Change to LGPL.
80911
80912 2006-06-28  Simon Josefsson  <jas@extundo.com>
80913
80914         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80915         on _WIN32.
80916
80917         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80918         getnameinfo.
80919
80920 2006-06-28  Simon Josefsson  <jas@extundo.com>
80921
80922         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80923
80924 2006-06-28  Simon Josefsson  <jas@extundo.com>
80925
80926         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80927         functions there.  It will succeed on Windows XP, but on Windows
80928         2000 and (presumably) earlier, it will fail, and use the internal
80929         re-implementation.
80930         (use_win32_p): New function.
80931         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80932         Support AI_NUMERICSERV to disable getservbyname.
80933         (getnameinfo): New function, only supports
80934         NI_NUMERICHOST|NI_NUMERICSERV for now.
80935
80936         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80937         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80938         getnameinfo.
80939
80940 2006-06-28  Eric Blake  <ebb9@byu.net>
80941
80942         * modules/wcwidth: New file.
80943         * modules/mbchar (Depends-on): Add wcwidth.
80944         * modules/mbswidth (Depends-on): Add wcwidth.
80945         * MODULES.html.sh: Add wcwidth.
80946
80947 2006-06-28  Eric Blake  <ebb9@byu.net>
80948
80949         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80951
80952 2006-06-28  Eric Blake  <ebb9@byu.net>
80953
80954         * lib/xvasprintf.h: Fix comments.
80955
80956 2006-06-28  Eric Blake  <ebb9@byu.net>
80957
80958         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80959         * lib/mbswidth.c (wcwidth): Move from here...
80960         * lib/wcwidth.h: ...to this new file.
80961
80962 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80963
80964         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80965
80966         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80967         it's obsolete.
80968         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80969
80970 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80971
80972         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80973         Autoconf 2.60 says this stuff was obsolete.
80974
80975 2006-06-28  Bruno Haible  <bruno@clisp.org>
80976
80977         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80978
80979 2006-06-28  Bruno Haible  <bruno@clisp.org>
80980
80981         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80982         gt_TYPE_WCHAR_T.
80983
80984 2006-06-28  Bruno Haible  <bruno@clisp.org>
80985
80986         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80987         declaration for wcwidth.
80988         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80989
80990 2006-06-28  Bruno Haible  <bruno@clisp.org>
80991
80992         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80993         (mkdir): Define using _mkdir.
80994
80995 2006-06-28  Bruno Haible  <bruno@clisp.org>
80996
80997         * lib/getaddrinfo.h: Fix POSIX URL.
80998         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80999         _WIN32.
81000         (use_win32_p): Make static.
81001         (getaddrinfo): Reject service name if it is empty or does not consist
81002         solely of decimal digits, or if its value is > 65535.
81003         (getnameinfo): Remove useless casts.
81004
81005 2006-06-27  Simon Josefsson  <jas@extundo.com>
81006
81007         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81008         Eggert and Martin Lambers.
81009
81010 2006-06-27  Simon Josefsson  <jas@extundo.com>
81011
81012         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81013         Eggert and Martin Lambers.
81014
81015 2006-06-27  Bruno Haible  <bruno@clisp.org>
81016
81017         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81018         result to 0, not to empty.
81019         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81020
81021 2006-06-27  Bruno Haible  <bruno@clisp.org>
81022
81023         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81024
81025 2006-06-26  Simon Josefsson  <jas@extundo.com>
81026
81027         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81028         present.
81029
81030 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81031
81032         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81033         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81034         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81035
81036 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81037
81038         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81039
81040 2006-06-26  Bruno Haible  <bruno@clisp.org>
81041
81042         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81043
81044 2006-06-26  Bruno Haible  <bruno@clisp.org>
81045
81046         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81047
81048 2006-06-26  Bruno Haible  <bruno@clisp.org>
81049
81050         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81051         SGI C compiler in pre-C99 mode.
81052         Suggested by Mark D. Baushke and Larry Jones.
81053
81054 2006-06-26  Bruno Haible  <bruno@clisp.org>
81055
81056         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81057         WCHAR_MAX.
81058         Reported by Mark D. Baushke and Larry Jones.
81059
81060 2006-06-26  Bruno Haible  <bruno@clisp.org>
81061
81062         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81063         in pre-C99 mode.
81064         Suggested by Mark D. Baushke and Larry Jones.
81065
81066 2006-06-23  Simon Josefsson  <jas@extundo.com>
81067             Bruno Haible  <bruno@clisp.org>
81068
81069         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81070         Emit mostlyclean-local rule.
81071         (func_emit_tests_Makefile_am): Likewise.
81072         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81073
81074 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81075
81076         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81077
81078 2006-06-23  Bruno Haible  <bruno@clisp.org>
81079
81080         * tests/test-stdint.c: Update to match ISO C 99 Technical
81081         Corrigendum 1.
81082
81083 2006-06-23  Bruno Haible  <bruno@clisp.org>
81084
81085         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81086
81087 2006-06-23  Bruno Haible  <bruno@clisp.org>
81088
81089         * lib/stdint_.h: Treat IRIX like OpenBSD.
81090
81091 2006-06-23  Bruno Haible  <bruno@clisp.org>
81092
81093         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81094         ISO C 99 Technical Corrigendum 1.
81095
81096 2006-06-22  Simon Josefsson  <jas@extundo.com>
81097
81098         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81099         MinGW.
81100
81101 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81102
81103         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81104         needed.  Some compiler complained about some of them.  Problem reported
81105         by Larry Jones in
81106         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81107
81108 2006-06-21  Simon Josefsson  <jas@extundo.com>
81109
81110         * tests/test-getaddrinfo.c: New file.
81111
81112         * modules/getaddrinfo-tests: New file.
81113
81114         * MODULES.html.sh: Add inet_pton.
81115
81116         * modules/inet_pton: New file.
81117
81118 2006-06-21  Simon Josefsson  <jas@extundo.com>
81119
81120         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81121         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81122         of using the (limited) gnulib implementation on Windows XP.
81123
81124         * m4/inet_pton.m4: New file.
81125
81126 2006-06-21  Simon Josefsson  <jas@extundo.com>
81127
81128         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81129         variable.
81130
81131         * lib/socket_.h: Don't define WINVER.
81132
81133         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81134         slightly modified to work in gnulib.
81135
81136 2006-06-21  Simon Josefsson  <jas@extundo.com>
81137
81138         * doc/gnulib.texi (Windows sockets): Add.
81139
81140 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81141
81142         * lib/read-file.c (fread_file): Start with buffer allocation of
81143         0 bytes rather than 1 byte; this simplifies the code.
81144         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81145         code to free buffer and save/restore errno.
81146         (internal_read_file): Remove unused local.
81147
81148 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81149
81150         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81151         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81152         Problem reported by Denis Excoffier in
81153         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81154
81155 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81156
81157         * modules/sys_socket, modules/socklen: Include sys/types since
81158         FreeBSD 4.x's sys/socket.h needs it.
81159
81160 2006-06-19  Simon Josefsson  <jas@extundo.com>
81161
81162         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81163
81164 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81165
81166         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81167
81168 2006-06-19  Bruno Haible  <bruno@clisp.org>
81169
81170         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81171         and FULL_PATH_INTTYPES_H in angle brackets.
81172         Reported by Mark D. Baushke <mdb@gnu.org>.
81173
81174 2006-06-17  Eric Blake  <ebb9@byu.net>
81175
81176         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81177         errno.
81178
81179 2006-06-17  Bruno Haible  <bruno@clisp.org>
81180
81181         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81182         <sys/inttypes.h>.
81183
81184 2006-06-17  Bruno Haible  <bruno@clisp.org>
81185
81186         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81187         whether errno is declared. Assume <errno.h> declares errno.
81188
81189 2006-06-17  Bruno Haible  <bruno@clisp.org>
81190
81191         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81192
81193 2006-06-17  Bruno Haible  <bruno@clisp.org>
81194
81195         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81196         problem on Solaris 2.5.1.
81197
81198 2006-06-16  Eric Blake  <ebb9@byu.net>
81199
81200         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81201         * lib/unicodeio.c [!defined errno]: Likewise.
81202         * lib/strtol.c [!defined errno]: Likewise.
81203         * lib/strtod.c [!defined errno]: Likewise.
81204
81205 2006-06-15  Eric Blake  <ebb9@byu.net>
81206
81207         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81208
81209 2006-06-15  Eric Blake  <ebb9@byu.net>
81210
81211         * config/srclist.txt (ssize_t.m4): Lose sync.
81212
81213 2006-06-15  Bruno Haible  <bruno@clisp.org>
81214
81215         * modules/stdint (Files): Include m4/full-header-path.m4,
81216         m4/size_max.m4, m4/wchar_t.m4.
81217         (Makefile.am): Many more substitutions.
81218         * modules/stdint-tests: New file.
81219         * tests/test-stdint.c: New file.
81220
81221 2006-06-15  Bruno Haible  <bruno@clisp.org>
81222
81223         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81224         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81225         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81226         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81227         gl_CHECK_TYPE_SAME): New macros.
81228
81229 2006-06-15  Bruno Haible  <bruno@clisp.org>
81230
81231         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81232
81233 2006-06-15  Bruno Haible  <bruno@clisp.org>
81234
81235         * lib/stdint_.h: Rewritten to be fully auto-configured.
81236         Fixes bug on HP-UX/IA64.
81237
81238 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81239
81240         * lib/getdate.y (__attribute__): Don't define if already defined.
81241         Problem reported by Larry Jones.
81242         * lib/utimens.c (__attribute__): Likewise.
81243
81244 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81245
81246         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81247         reported by Andreas Schwab.
81248
81249 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81250             Bruno Haible  <bruno@clisp.org>
81251
81252         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81253         check for the declaration of strnlen and a run test that exposes the
81254         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81255         rpl_strndup.
81256
81257 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81258             Bruno Haible  <bruno@clisp.org>
81259
81260         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81261
81262 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81263
81264         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81265         compile test, for Tru64 4.0D.
81266
81267 2006-05-28  Karl Berry  <karl@gnu.org>
81268
81269         * config/srclist.txt (printf-args.c): lose sync.
81270
81271 2006-05-26  Martin Lambers  <marlam@marlam.de>
81272
81273         * lib/getpass.c: Updates the test for the native W32 API, and adds
81274         missing includes, thus fixing compilation warnings.
81275
81276 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81277
81278         * lib/exclude.c (exclude_fnmatch): New function.
81279         (excluded_file_name): Call exclude_fnmatch.
81280         * lib/exclude.h (excluded_file_name): New prototype
81281
81282 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81283
81284         * lib/tempname.c (small_open, large_open): New macros.
81285         (__open, __open64) [!_LIBC]: Remove.
81286         (__gen_tempname): Use small_open and large_open instead of __open
81287         and __open64.  This fixes a portability bug on HP-UX 11.11i
81288         reported by Simon Wing-Tang in
81289         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81290
81291 2006-05-24  Bruno Haible  <bruno@clisp.org>
81292
81293         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81294         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81295         Reported by Thorsten Maerz <torte@netztorte.de> via
81296         Aaron Stone <aaron@serendipity.cx>.
81297
81298 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81299
81300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81301         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81302         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81303         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81304         not really conditional on the cache.
81305         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81306
81307 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81308
81309         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81310         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81311         (my_usleep): Don't mishandle maximum value.
81312
81313 2006-05-19  Jim Meyering  <jim@meyering.net>
81314
81315         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81316
81317 2006-05-17  Bruno Haible  <bruno@clisp.org>
81318
81319         Cygwin portability.
81320         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81321
81322 2006-05-17  Bruno Haible  <bruno@clisp.org>
81323
81324         * lib/stdint_.h: Fix recognition of Cygwin.
81325
81326 2006-05-15  Bruno Haible  <bruno@clisp.org>
81327
81328         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81329         on libtool patch by Ralf Wildenhues.
81330
81331 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81332
81333         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81334         test for C99 conformance; (bool) 0.5 is an integer constant
81335         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81336         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81337
81338 2006-05-11  Simon Josefsson  <jas@extundo.com>
81339
81340         * m4/xvasprintf.m4: Fix obvious typo.
81341
81342 2006-05-11  Jim Meyering  <jim@meyering.net>
81343
81344         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81345         James Lemley.
81346
81347 2006-05-10  Simon Josefsson  <jas@extundo.com>
81348
81349         * lib/md4.c: Typo fix, update copyright years.
81350         (K1, K2): Don't use L because it turn computations into 64-bit on
81351         64-bit platforms.
81352
81353 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81354
81355         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81356         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81357         unwanted sign propagation, e.g., on hosts with 64-bit int.
81358         There still are some problems with reeelly weird theoretical hosts
81359         (e.g., 33-bit int) but it's not worth worrying about now.
81360         * lib/sha1.c (rol): Likewise.
81361         (K1, K2, K3, K4): Remove unnecessary L suffix.
81362
81363 2006-05-10  Bruno Haible  <bruno@clisp.org>
81364
81365         * lib/des.c: Cast to avoid warnings.
81366
81367 2006-05-09  Bruno Haible  <bruno@clisp.org>
81368
81369         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81370         (Depends-on): Depend also on xsize, stdarg.
81371         (configure.ac): Add gl_XVASPRINTF.
81372
81373 2006-05-09  Bruno Haible  <bruno@clisp.org>
81374
81375         * m4/xvasprintf.m4: New file.
81376
81377 2006-05-09  Bruno Haible  <bruno@clisp.org>
81378
81379         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81380         (EOVERFLOW): Define fallback value.
81381         (xstrcat): New function.
81382         (xvasprintf): Recognize the special case of a string concatenation.
81383
81384 2006-05-08  Eric Blake  <ebb9@byu.net>
81385
81386         * gnulib-tool (func_version): Base copyright year on CVS date.
81387         (func_emit_copyright_notice): New function.
81388         (func_emit_lib_Makefile_am): Use it.
81389         (func_emit_tests_Makefile_am): Likewise.
81390         (func_import): Likewise.
81391
81392 2006-05-08  Bruno Haible  <bruno@clisp.org>
81393
81394         * modules/stdarg: New file.
81395         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81396
81397 2006-05-08  Bruno Haible  <bruno@clisp.org>
81398
81399         * m4/stdarg.m4: New file, from GNU gettext.
81400
81401 2006-05-08  Bruno Haible  <bruno@clisp.org>
81402
81403         * config/srclist.txt (build-aux/config.rpath): different from latest
81404         release.
81405
81406 2006-05-08  Bruno Haible  <bruno@clisp.org>
81407
81408         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81409
81410 2006-05-05  Jim Meyering  <jim@meyering.net>
81411
81412         * m4/warning.m4: New file, derived from bison's file by the same name.
81413
81414 2006-05-03  Bruno Haible  <bruno@clisp.org>
81415
81416         * lib/stdint_.h: Shorter URL.
81417         * lib/inttypes.h: Likewise.
81418
81419 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81420
81421         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81422
81423 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81424
81425         * lib/verify.h: Document the internals better.  Most of this change
81426         was written by Bruno Haible.
81427
81428 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81429
81430         * doc/verify.texi: New file, partly based on a proposal by
81431         Bruno Haible.
81432
81433 2006-05-02  Bruno Haible  <bruno@clisp.org>
81434
81435         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81436         test from here...
81437         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81438
81439 2006-04-29  Bruno Haible  <bruno@clisp.org>
81440
81441         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81442         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81443
81444 2006-04-29  Bruno Haible  <bruno@clisp.org>
81445
81446         * gnulib-tool: Make --update option actually work.
81447
81448 2006-04-29  Bruno Haible  <bruno@clisp.org>
81449
81450         * doc/gcd.texi: New file.
81451         * doc/gnulib.texi: Include it.
81452
81453 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81454
81455         * lib/getdate.y (get_date): When adding relative date, start with the
81456         initial time, not with the result of the first mktime call.
81457
81458 2006-04-25  Bruno Haible  <bruno@clisp.org>
81459
81460         * gnulib-tool (func_import): Output the include directives in three
81461         blocks, sorted separately.
81462         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81463
81464 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81465
81466         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81467         to define main with arguments, for C++.  Reported by Eric Blake.
81468         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81469         Prefer 'int main ()' to 'int main (void)', for C++.
81470         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81471         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81472         for 'main', for C99 and C++.
81473
81474 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81475
81476         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81477         Don't assume that exit status -1 is valid.
81478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81479         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81480         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81481         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81482         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81483         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81484         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81485         functions can be used without declaring them, or that you can
81486         exit with status -1.
81487         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81488
81489 2006-04-24  Karl Berry  <karl@gnu.org>
81490
81491         * config/srclist.txt (longdouble.m4): sync lost.
81492
81493 2006-04-24  Eric Blake  <ebb9@byu.net>
81494
81495         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81496
81497 2006-04-24  Bruno Haible  <bruno@clisp.org>
81498
81499         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81500         poll() implementation in AIX.
81501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81502
81503 2006-04-24  Bruno Haible  <bruno@clisp.org>
81504
81505         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81506         assigned exactly once.
81507
81508 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81509             Bruno Haible  <bruno@clisp.org>
81510
81511         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81512         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81513         for AM_CPPFLAGS.
81514
81515 2006-04-23  Bruno Haible  <bruno@clisp.org>
81516
81517         * modules/copy-file: Depend on unistd.
81518         * modules/execute: Likewise.
81519         * modules/fatal-signal: Likewise.
81520         * modules/findprog: Likewise.
81521         * modules/mkdtemp : Likewise.
81522         * modules/pipe: Likewise.
81523         * modules/wait-process: Likewise.
81524
81525 2006-04-23  Bruno Haible  <bruno@clisp.org>
81526
81527         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81528         condition was already detected.
81529         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81530
81531 2006-04-23  Bruno Haible  <bruno@clisp.org>
81532
81533         * lib/copy-file.c: Include <unistd.h> unconditionally.
81534         * lib/execute.c: Likewise.
81535         * lib/fatal-signal.c: Likewise.
81536         * lib/findprog.c: Likewise.
81537         * lib/mkdtemp.c: Likewise.
81538         * lib/pipe.h: Likewise.
81539         * lib/pipe.c: Likewise.
81540         * lib/wait-process.h: Likewise.
81541
81542 2006-04-23  Bruno Haible  <bruno@clisp.org>
81543
81544         * gnulib-tool (func_usage): Fix --import description. Document
81545         --update.
81546         (func_import): Create temporary file in a temporary directory, if
81547         --dry-run is specified. Silence errors from 'grep' when there are no
81548         m4 files in $m4dir.
81549         (func_create_testdir): Silence errors from 'grep' when there are no
81550         m4 files in $m4dir.
81551         Reported by Karl Berry <karl@freefriends.org>.
81552
81553 2006-04-20  Bruno Haible  <bruno@clisp.org>
81554
81555         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81556         one argument, so that the code will be portable to Autoconf 2.60.
81557         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81558         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81559         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81560
81561 2006-04-19  Derek Price  <derek@ximbiot.com>
81562             Eric Blake  <ebb9@byu.net>
81563
81564         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81565         rather than "/full/path.h".  Update comment to match.  Shorten &
81566         generalize m4_translit call via AS_TR_CPP.
81567
81568 2006-04-19  Derek Price  <derek@ximbiot.com>
81569             Eric Blake  <ebb9@byu.net>
81570
81571         * lib/inttypes.h: Correct grammar in comment.
81572
81573 2006-04-18  Derek Price  <derek@ximbiot.com>
81574             Paul Eggert  <eggert@cs.ucla.edu>
81575
81576         * modules/inttypes: New file.
81577         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81578
81579 2006-04-18  Derek Price  <derek@ximbiot.com>
81580             Paul Eggert  <eggert@cs.ucla.edu>
81581
81582         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81583         New files.
81584
81585 2006-04-18  Derek Price  <derek@ximbiot.com>
81586             Paul Eggert  <eggert@cs.ucla.edu>
81587
81588         * lib/inttypes.h: New file.
81589         * lib/strtoimax.c: Assume <inttypes.h>.
81590
81591 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81592
81593         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81594         isn't mounted.  Problem reported by Kir Kolyshkin.
81595
81596 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81597
81598         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81599         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81600         Derek R. Price.
81601         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81602         implementation.
81603
81604 2006-04-12  Eric Blake  <ebb9@byu.net>
81605
81606         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81607         is now done automatically by the corresponding Autoconf macro.
81608
81609 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81610
81611         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81612         time_r.h.
81613
81614 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         Merge regex changes from libc, removing some of our
81617         POSIX-conformance changes that were rejected and redoing them in a
81618         less-intrusive way.
81619
81620         * lib/regcomp.c (re_compile_internal, init_dfa):
81621         Length arg is now size_t, not Idx.  All uses changed.
81622         (peek_token): Forward decl now says internal_function.
81623         (__re_error_msgid, __re_error_msgid_idx):
81624         Now static rather than extern with attribute_hidden.
81625         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81626         For some reason libc prefers K&R style defns for external functions.
81627         (regerror) [!defined _LIBC]: Likewise.
81628         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81629         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81630         (build_range_exp, build_collating_symbol):
81631         Use K&R-style defn.
81632         (re_compile_fastmap): Use '\0' to memset, not 0.
81633         (utf8_sb_map): Make the calculations more obvious.
81634         (init_dfa, parse_bracket_exp, build_charclass_op):
81635         Call calloc and cast result, as glibc does.
81636         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81637         (build_range_exp, build_collating_symbol):
81638         Now internal functions.
81639
81640         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81641
81642         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81643         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81644         Don't depend on VMS; depend on __VMS instead, for POSIX
81645         namespace cleanness.
81646         (regoff_t): Define to ssize_t, not long int.
81647
81648         Remove the REG_ macros named below.  Instead, make the old names
81649         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81650         __USE_GNU_REGEX.
81651         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81652         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81653         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81654         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81655         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81656         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81657         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81658         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81659         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81660         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81661         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81662         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81663         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81664         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81665         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81666         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81667         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81668         (REG_NREGS):
81669         Remove.  All uses replaced by the old RE_* names.
81670         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81671         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81672         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81673         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81674         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81675         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81676         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81677         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81678         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81679         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81680         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81681         Don't bother having these macros be independent of each others'
81682         values, since they no longer exist in the POSIX name space.
81683
81684         Rename the following member names back to their old names,
81685         unless !__USE_GNU_REGEX.  All uses changed back.
81686         (buffer): Renamed from re_buffer.
81687         (allocated): Renamed from re_allocated.
81688         (used): Renamed from re_used.
81689         (syntax): Renamed from re_syntax.
81690         (fastmap): Renamed from re_fastmap.
81691         (translate): Renamed from re_translate.
81692         (can_be_null): Renamed from re_can_be_null.
81693         (regs_allocated): Renamed from re_regs_allocated.
81694         (fastmap_accurate): Renamed from re_fastmap_accurate.
81695         (no_sub): Renamed from re_no_sub.
81696         (not_bol): Renamed from re_not_bol.
81697         (not_eol): Renamed from re_not_eol.
81698         (newline_anchor): Renamed from re_newline_anchor.
81699         (num_regs): Renamed from rm_num_regs.
81700         (start): Renamed from rm_start.
81701         (end): Renamed from rm_end.
81702
81703         (free_state): Move up a bit.
81704
81705         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81706         #define to be empty.
81707         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81708         when that is what is intended.
81709         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81710         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81711         (MAX): New macro.
81712         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81713         All uses changed back to re_malloc, etc.  It's now the caller's
81714         responsibility to check for overflow; all callers changed.
81715         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81716         (re_x2nrealloc): Remove.
81717         (free_state): Remove decl.
81718
81719         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81720         (re_set_registers, re_exec):
81721         Use K&R-style defn.
81722
81723         2006-01-31  Roland McGrath  <roland@redhat.com>
81724
81725         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81726         Reported by Mike Frysinger <vapier@gentoo.org>.
81727
81728         2006-01-15  Andreas Jaeger  <aj@suse.de>
81729
81730         [BZ #1950]
81731         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81732         build_wcs_upper_buffer change.
81733         (build_wcs_upper_buffer): Change return type.
81734
81735         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81736
81737         * lib/regex_internal.h: Include <stdint.h> if available.
81738
81739         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81740
81741         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81742
81743         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81744
81745         * lib/regcomp.c: Adjust for changed secondary hash function.
81746
81747         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81748
81749         * lib/regex.h: Pretty printing.
81750         Clean up namespace a bit.
81751
81752         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81753
81754         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81755         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81756
81757         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81758                     Ulrich Drepper  <drepper@redhat.com>
81759
81760         [BZ #1302]
81761         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81762         changed.
81763         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81764
81765         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81766
81767         [BZ #281]
81768         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81769         * lib/regcomp.c: Remove unnecessary uses of
81770         unsigned RE_TRANSLATE_TYPE.
81771         * lib/regex_internal.h: Likewise.
81772         * lib/regex_internal.c: Likewise.
81773         * lib/regexec.c: Likewise.
81774         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81775
81776         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81777
81778         * lib/regexec.c (find_recover_state): Remove unnecessary
81779         initialization.
81780         (transit_state_bkref): Make DFA a const pointer.
81781         (get_subexp): Likewise.
81782         (check_arrival): Likewise.
81783         (update_cur_sifted_state): Likewise.
81784         (re_search_internal): Likewise.
81785         (prune_impossible_nodes): Likewise.
81786         (acquire_init_state_context): Likewise.
81787         (proceed_next_node): Likewise.
81788         (set_regs): Likewise.
81789         (free_fail_stack_return): Likewise.
81790         (check_arrival_expand_ecl): Mark DFA parameter as const.
81791         (check_arrival_expand_ecl_sub): Likewise.
81792         (check_subexp_limits): Likewise.
81793         (sub_epsilon_src_nodes):  Likewise.
81794         (add_epsilon_src_nodes):  Likewise.
81795         (merge_state_array): Likewise.
81796         (update_regs): Likewise.
81797         (build_trtable): Likewise.
81798         (sift_states_backward): Mark MCTX parameter as const.
81799         (build_sifted_states): Likewise.
81800         (update_cur_sifted_state): Likewise.
81801         (sift_states_mkref): Likewise.
81802         (check_arrival_expand_ecl): Mark eclosure as const.
81803         (check_dst_limits_calc_pos_1): Likewise.
81804         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81805         pointer.
81806
81807         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81808
81809         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81810         (transit_state_sb): Likewise.
81811         (transit_state_mb): Likewise.
81812         (sift_states_iter_mb): Likewise.
81813         (check_arrival_add_next_nodes): Likewise.
81814         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81815         [_LIBC] (re_search_2_stub): Use mempcpy.
81816
81817         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81818         mbrtowc for very simple UTF-8 case.
81819
81820         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81821         a pointer-to-const.
81822         (re_acquire_state_context): Likewise.
81823         * lib/regex_internal.h: Adjust prototypes.
81824
81825         * lib/regex.c: Prevent using C++ compilers.
81826
81827         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81828         (re_acquire_state_context): Likewise.
81829
81830 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         * modules/regex (Depends-on): Add ssize_t.
81833
81834 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81837         translation table.
81838
81839 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81840
81841         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81842
81843 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81844             Bruno Haible  <bruno@clisp.org>
81845
81846         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81847         <sys/types.h> and <inttypes.h>.
81848
81849 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81850
81851         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81852         `__error_t_defined', so argp.h will not typedef the former.
81853
81854 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81855
81856         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81857         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81858         glibc names.  Even if glibc is changed to conform to POSIX, the
81859         traditional names will be available anyway, since regex depends on
81860         the extensions module.  Also, fix a longstanding typo in the
81861         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81862         reported by Emanuele Giaquinta.  Also, change sense of cached
81863         variable, so that the message makes sense.
81864
81865 2006-03-24  Simon Josefsson  <jas@extundo.com>
81866
81867         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81868         including some doc fixes.
81869         (base64_encode_alloc): Fix +1 bug on allocation failures.
81870
81871 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81872
81873         * lib/base64.c (base64_encode): Do not read past end of array with
81874         unsanitized input on systems with CHAR_BIT > 8.
81875
81876 2006-03-24  Eric Blake  <ebb9@byu.net>
81877
81878         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81879
81880 2006-03-22  Karl Berry  <karl@gnu.org>
81881
81882         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81883         * config/srclistvars.sh (COREUTILS): new var.
81884
81885 2006-03-17  Jim Meyering  <jim@meyering.net>
81886
81887         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81888         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81889
81890 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81891
81892         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81893         no longer needs it.  Instead, check that regoff_t is as least
81894         as wide as ptrdiff_t.
81895
81896         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81897         so that our regex.h stays compatible with the installed regex.
81898         This is helpful for installers who configure --without-included-regex.
81899         Problem reported by Emanuele Giaquinta.
81900
81901 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81904         Typedef to long int, not to off_, as POSIX will likely change
81905         in that direction.
81906
81907 2006-03-15  Eric Blake  <ebb9@byu.net>
81908
81909         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81910
81911 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81912
81913         * lib/argp-help.c (validate_uparams): Fix typo
81914         * lib/argp-parse.c (argp_default_options): Consistently begin help
81915         messages with a lowercase letter.
81916
81917 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81920         overrun buffers and shouldn't be used (much as gets shouldn't be
81921         used).
81922         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81923
81924 2006-03-08  Simon Josefsson  <jas@extundo.com>
81925
81926         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81927         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81928
81929 2006-03-08  Simon Josefsson  <jas@extundo.com>
81930
81931         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81932         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81933
81934 2006-03-08  Simon Josefsson  <jas@extundo.com>
81935
81936         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81937         signal that configure disabled the device.
81938
81939 2006-03-08  Simon Josefsson  <jas@extundo.com>
81940
81941         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81942         languages.
81943
81944 2006-03-07  Simon Josefsson  <jas@extundo.com>
81945
81946         * modules/getopt (Depends-on): Add unistd.
81947
81948         * modules/unistd: New file.
81949
81950 2006-03-07  Simon Josefsson  <jas@extundo.com>
81951
81952         * modules/gc-random: New file.
81953
81954 2006-03-07  Simon Josefsson  <jas@extundo.com>
81955
81956         * m4/unistd_h.m4: New file.
81957
81958 2006-03-07  Simon Josefsson  <jas@extundo.com>
81959
81960         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81961         test to be side-effect free by storing the result in the cache
81962         variable gl_cv_lib_readline, and moving the assignment of
81963         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81964         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81965
81966 2006-03-07  Simon Josefsson  <jas@extundo.com>
81967
81968         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81969         error on missing devices (the functions will return an error).
81970
81971         * m4/gc.m4: Move random stuff to gc-random.m4
81972
81973 2006-03-07  Simon Josefsson  <jas@extundo.com>
81974
81975         * lib/unistd_.h: New file.
81976
81977 2006-03-07  Simon Josefsson  <jas@extundo.com>
81978
81979         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81980
81981 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81982
81983         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81984         Problem reported by Juan Manuel Guerrero.
81985
81986 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81987
81988         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81989         the unistd module.
81990         * lib/getlogin_r.c: Likewise.
81991         * lib/getlogin_r.h: Likewise.
81992         * lib/glob.c: Likewise.
81993         * lib/pagealign_alloc.c: Likewise.
81994         * lib/unistd_.h: Remove; no longer needed.
81995
81996 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81997
81998         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81999         Add unistd.
82000         * modules/c-stack (Depends-on): Add unistd.
82001         * modules/getlogin_r: Likewise.
82002         * modules/glob: Likewise.
82003         * modules/pagealign_alloc: Likewise.
82004         * modules/unistd (Files): Remove lib/unistd_.h.
82005         (EXTRA_DIST): Remove.
82006         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82007         need unistd_.h.
82008         (MOSTLYCLEANFILES): Remove unistd.h-t.
82009
82010 2006-03-03  Simon Josefsson  <jas@extundo.com>
82011
82012         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82013
82014 2006-03-03  Simon Josefsson  <jas@extundo.com>
82015
82016         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82017         libidn and bison.
82018
82019 2006-03-03  Simon Josefsson  <jas@extundo.com>
82020
82021         * build-aux/maint.mk: Add indent target.
82022
82023 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82024
82025         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82026         our replacement poll.h in any case, to avoid a differing
82027         declaration from a system header.  Seen on AIX.
82028
82029 2006-03-01  Simon Josefsson  <jas@extundo.com>
82030
82031         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82032         <kasal@ucw.cz>.
82033
82034 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82035
82036         * modules/gettime (Depends-on): Add extensions module.
82037         * modules/nanosleep (Depends-on): Likewise.
82038         * modules/settime (Depends-on): Likewise.
82039
82040 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82041
82042         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82043         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82044         pedantically.
82045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82046         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82047
82048         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82049         not "==".  Reported by Ralf Wildenhues.
82050
82051 2006-03-01  Karl Berry  <karl@gnu.org>
82052
82053         * doc/Copyright/request-*: new files, synced from gnuorg.
82054
82055 2006-03-01  Karl Berry  <karl@gnu.org>
82056
82057         * config/srclist.txt (Copyright/*): new entries.
82058
82059 2006-02-28  Simon Josefsson  <jas@extundo.com>
82060
82061         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82062
82063 2006-02-27  Simon Josefsson  <jas@extundo.com>
82064
82065         * lib/base64.h: Indent #define's.  From Jim Meyering
82066         <jim@meyering.net>.
82067
82068 2006-02-27  Jim Meyering  <jim@meyering.net>
82069
82070         Revert the change of 2006-02-24, so these files can continue
82071         to be sync'd from gettext.
82072         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82073         of `config.h'.
82074
82075 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82076
82077         * modules/intprops: New file.
82078         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82079         Add intprops.
82080         * modules/getloadavg (Files): Remove lib/intprops.h.
82081         (Depends-on): Add intprops.
82082         * modules/human: Likewise.
82083         * modules/inttostr: Likewise.
82084         * modules/openat: Likewise.
82085         * modules/sig2str: Likewise.
82086         * modules/userspec: Likewise.
82087         * modules/utimecmp: Likewise.
82088         * modules/xnanosleep: Likewise.
82089         * modules/xstrtol: Likewise.
82090
82091 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82092
82093         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82094         * modules/lock-tests (TESTS): Use $(EXEEXT).
82095         * modules/tls-tests: Likewise.
82096         * modules/argp-tests: Likewise.
82097         (check_PROGRAMS): New var, replacing...
82098         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82099
82100 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82101
82102         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82103         `config.h'.
82104
82105 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82106
82107         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82108
82109 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82110
82111         Sync from coreutils.
82112         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82113         gl_CHDIR_SAFER.
82114
82115 2006-02-22  Jim Meyering  <jim@meyering.net>
82116
82117         Sync from coreutils.
82118         * m4/chdir-safer.m4: New file.
82119
82120 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82121
82122         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82123         AT_FDCWD exceeds INT_MAX.
82124         * lib/openat.h (AT_FDCWD): Likewise.
82125
82126 2006-02-17  Eric Blake  <address@hidden>
82127
82128         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82129
82130 2006-02-16  Simon Josefsson  <jas@extundo.com>
82131
82132         * modules/getaddrinfo (Depends-on): Add sys_socket.
82133
82134 2006-02-15  Simon Josefsson  <jas@extundo.com>
82135
82136         * build-aux/maint.mk: Add dsyntax-check rule.
82137
82138 2006-02-15  Eric Blake  <ebb9@byu.net>
82139
82140         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82141         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82142         'present but cannot compile' warnings on cygwin.
82143         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82144         use ws2tcpip.h if sys/socket.h works.
82145         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82146         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82147
82148 2006-02-14  Simon Josefsson  <jas@extundo.com>
82149
82150         * modules/maintainer-makefile (Files): Rename.
82151
82152         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82153         and (the local) Makefile.cfg to maint-cfg.mk.
82154
82155         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82156         to the latter.
82157
82158         * modules/maintainer-makefile: New module.
82159
82160         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82161         severaly stripped to make it possible to build it up from scratch
82162         with reliable tests.
82163
82164         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82165         fixes to permit overriding the default actions when configure and
82166         makefile are not available.
82167
82168 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82169
82170         Sync from coreutils.
82171         * modules/lstat (Depends-on): Don't depend on xalloc.
82172         (License): Change from GPL to LGPL, since this is now simply a
82173         replacement for a libc function.
82174
82175 2006-02-14  Jim Meyering  <jim@meyering.net>
82176
82177         Sync from coreutils.
82178
82179         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82180         failure on deficient systems, and simplify gnulib lgpl dependencies.
82181         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82182         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82183
82184         * lib/xalloc-die.c: Remove unused definition of N_.
82185
82186 2006-02-14  Jim Meyering  <jim@meyering.net>
82187
82188         Sync from coreutils.
82189         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82190         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82191         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82192         double-quote uses of that variable, to accommodate the rare case in
82193         which getmntent is available in none of the libraries checked.  This
82194         happens at least on FreeBSD 5.0.
82195
82196 2006-02-13  Simon Josefsson  <jas@extundo.com>
82197
82198         * gnulib-tool (Usage): Fix --import, from
82199         karl@freefriends.org (Karl Berry).
82200
82201 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82202
82203         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82204
82205 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82206
82207         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82208         "autoupdate" on 2005-12-12.
82209
82210 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82211
82212         * modules/closeout (Depends-on): Remove atexit.
82213
82214 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82215
82216         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82217         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82218
82219 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82220
82221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82222         __EXTENSIONS__ if this causes compilation to fail.  Problem
82223         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82224         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82225
82226 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82227
82228         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82229         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82230         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82231         All uses changed.
82232
82233 2006-01-26  Simon Josefsson  <jas@extundo.com>
82234
82235         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82236         prototype is visible on mingw32.
82237
82238         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82239         for mingw32.
82240
82241         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82242         mingw32).
82243
82244 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82245
82246         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82247         attempt to open for write; this always fails, at least on POSIX
82248         hosts.  This reinstates the 2006-01-09 change, which was
82249         inadvertently removed.
82250
82251 2006-01-26  Bruno Haible  <bruno@clisp.org>
82252
82253         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82254         Reported by Paul Eggert.
82255
82256 2006-01-26  Bruno Haible  <bruno@clisp.org>
82257             Paul Eggert  <eggert@cs.ucla.edu>
82258
82259         * lib/stdbool_.h (_Bool)
82260         [(! (defined __cplusplus || defined __BEOS__)
82261           && !defined __GNUC__
82262           && !(defined __HP_cc || defined __xlc__
82263                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82264                || defined __sgi))]:
82265         #define to signed char in these cases too; this simplifies
82266         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82267         etc., separately) and makes it more conservative.
82268
82269 2006-01-25  Simon Josefsson  <jas@extundo.com>
82270
82271         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82272         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82273         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82274
82275 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82276
82277         * lib/argp-namefrob.h: Bugfix. Remove stray #
82278
82279 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82280
82281         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82282         so that we test the test.
82283         Check for yet another HP-UX cc bug involving *bool |= bool.
82284
82285 2006-01-25  Karl Berry  <karl@gnu.org>
82286
82287         * config/srclist.txt (vasnprintf.c): sync lost.
82288
82289 2006-01-25  Jim Meyering  <jim@meyering.net>
82290
82291         Sync from the stable (b5) branch of coreutils:
82292
82293         * lib/fts.c (fts_children): Don't let close() clobber errno from
82294         failed fchdir().
82295
82296         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82297         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82298         a dangling symlink.  That can also happen at least for ELOOP.
82299         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82300         FYI, this bug predates the inclusion of fts.c in coreutils.
82301
82302         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82303         in their own block, so pre-c99 compilers don't object.
82304
82305         Avoid the double-free (first in fts_read, second in fts_close) that
82306         would occur when an `active' directory is made inaccessible (e.g.,
82307         via chmod a-x) during a traversal.
82308         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82309         before returning.  Reproduce this failure by
82310         mkdir -p a/b; cd a; chmod a-x . b
82311         Reported by Stavros Passas.
82312
82313 2006-01-25  Jim Meyering  <jim@meyering.net>
82314
82315         * lib/fileblocks.c: Remove more useless parentheses.
82316         * lib/readutmp.h: Likewise.
82317
82318 2006-01-25  Bruno Haible  <bruno@clisp.org>
82319
82320         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82321         warnings.
82322         Reported by Paul Eggert.
82323
82324 2006-01-25  Bruno Haible  <bruno@clisp.org>
82325
82326         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82327         rid of a trap command. For Solaris sh.
82328         Reported by Mark D. Baushke <mdb@gnu.org>.
82329
82330 2006-01-24  Simon Josefsson  <jas@extundo.com>
82331
82332         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82333         Bruno.
82334
82335 2006-01-24  Karl Berry  <karl@gnu.org>
82336
82337         * config/srclist.txt (argp-namefrob.h): sync lost.
82338
82339 2006-01-24  Jim Meyering  <jim@meyering.net>
82340
82341         * modules/openat (Files): Add lib/intprops.h.
82342         From Mark D. Baushke.
82343
82344 2006-01-24  Jim Meyering  <jim@meyering.net>
82345
82346         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82347         Reported by Mark D. Baushke.
82348
82349 2006-01-24  Jim Meyering  <jim@meyering.net>
82350
82351         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82352
82353 2006-01-24  Bruno Haible  <bruno@clisp.org>
82354
82355         * modules/strnlen (Maintainer): Change from glibc to all.
82356
82357 2006-01-24  Bruno Haible  <bruno@clisp.org>
82358
82359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82360         Patch by Paul Eggert.
82361
82362 2006-01-24  Bruno Haible  <bruno@clisp.org>
82363
82364         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82365         already has it.
82366         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82367         2005-11-26.
82368
82369         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82370         'signed char' to avoid problems with the built-in _Bool type.
82371         Reported by Paul Eggert on 2005-11-26.
82372
82373 2006-01-24  Bruno Haible  <bruno@clisp.org>
82374
82375         * gnulib-tool (func_import): Avoid constructing complicated sed
82376         expressions inside backquote.
82377         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82378
82379 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82380
82381         These changes imported from libc.
82382         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82383         test and two separate function calls.
82384         * lib/strndup.c (__strndup): Add libc_hidden_def.
82385
82386 2006-01-23  Simon Josefsson  <jas@extundo.com>
82387
82388         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82389         Remove the test_*_SOURCES variable: automake infers it by default.
82390         * modules/tls-tests: Likewise.
82391
82392 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82393
82394         Work around porting bugs reported by Dieter in
82395         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82396         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82397         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82398         Include "getopt.h" first, to check interface.
82399         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82400         !HAVE_DECL_GETENV.
82401         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82402         (__strndup): Revert to K&R-style function dfns, the glibc style.
82403         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82404         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82405         Include strnlen.h first, to get prototype properly.
82406         (strnlen): Renamed from __strnlen.
82407         Remove weak alias.
82408
82409 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82410
82411         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82412
82413 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82414
82415         * config/srclist.txt: Adjust to reflect glibc reorganization.
82416         This affects only comments.
82417
82418 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82419
82420          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82421          Reported by Bruce Korb <bkorb@gnu.org>.
82422
82423 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82424
82425         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82426         to pacify gcc -Wswitch-default.
82427
82428 2006-01-22  Bruno Haible  <bruno@clisp.org>
82429
82430         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82431         temporary buffer for sprintf, take into account the precision also
82432         for 'd', 'i', 'u', 'o', 'x', 'X'.
82433
82434 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82435
82436         * modules/argp-tests: New module
82437         * tests/test-argp.c: New file
82438         * tests/test-argp-2.sh: New file
82439
82440 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82441
82442         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82443         (__argp_base_name): Removed
82444         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82445         typo.
82446         (__argp_base_name): Provide macro definition or extern declaration
82447         depending on the configuration
82448
82449 2006-01-20  Simon Josefsson  <jas@extundo.com>
82450
82451         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82452
82453 2006-01-20  Simon Josefsson  <jas@extundo.com>
82454
82455         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82456
82457 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82458
82459         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82460         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82461         Suggested by Bruno Haible.
82462
82463 2006-01-20  Karl Berry  <karl@gnu.org>
82464
82465         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82466         until changes propagate, I guess.
82467
82468 2006-01-19  Simon Josefsson  <jas@extundo.com>
82469
82470         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82471
82472 2006-01-19  Simon Josefsson  <jas@extundo.com>
82473
82474         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82475
82476 2006-01-19  Simon Josefsson  <jas@extundo.com>
82477
82478         * gnulib-tool: Set check_PROGRAMS.
82479
82480         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82481         modules/des-tests, modules/gc-arcfour-tests,
82482         modules/gc-arctwo-tests, modules/gc-des-tests,
82483         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82484         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82485         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82486         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82487         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82488         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82489         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82490         test_*_SOURCES.
82491
82492 2006-01-18  Simon Josefsson  <jas@extundo.com>
82493
82494         * modules/socklen (Depends-on): Depend on sys_socket.
82495
82496 2006-01-18  Simon Josefsson  <jas@extundo.com>
82497
82498         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82499         modules/des-tests, modules/gc-arcfour-tests,
82500         modules/gc-arctwo-tests, modules/gc-des-tests,
82501         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82502         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82503         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82504         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82505         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82506         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82507         $(EXEEXT) to automake TESTS variable, for mingw32.
82508
82509 2006-01-17  Simon Josefsson  <jas@extundo.com>
82510
82511         * modules/socklen (Include): Need sys/socket.h.
82512
82513 2006-01-17  Bruno Haible  <bruno@clisp.org>
82514
82515         * modules/ssize_t (Include): Add <sys/types.h>.
82516
82517 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82518
82519         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82520         it's not portable and it doesn't work with cross-compiles.
82521         Problem reported by Bruno Haible.  Fix missing-$ typo in
82522         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82523         -zignore from being used with Sun's C compiler.
82524
82525 2006-01-12  Simon Josefsson  <jas@extundo.com>
82526
82527         * lib/base64.c: Fix warning, reported by Bruno Haible
82528         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82529
82530 2006-01-12  Bruno Haible  <bruno@clisp.org>
82531
82532         * modules/ldd: New file.
82533         * build-aux/ldd.sh.in: New file.
82534         * MODULES.html.sh (Support for building libraries and executables): Add
82535         ldd.
82536
82537 2006-01-12  Bruno Haible  <bruno@clisp.org>
82538
82539         * m4/ldd.m4: New file.
82540
82541 2006-01-12  Bruno Haible  <bruno@clisp.org>
82542
82543         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82544         endless loop while replacing $auxdir with build-aux.
82545
82546 2006-01-11  Simon Josefsson  <jas@extundo.com>
82547
82548         * lib/stdint_.h (SIZE_MAX): Add missing (.
82549
82550 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82551
82552         Sync from coreutils.
82553         * lib/md5.c: Fix commentary typos.
82554         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82555         * lib/md5.h (__attribute__): Remove; unused.
82556         * lib/sha1.c: Fix commentary to match md5 better.
82557         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82558         so that we don't need to worry about alignment.  All uses changed.
82559         This merges the 2005-10-28 md5 change into sha1.
82560
82561 2006-01-11  Jim Meyering  <jim@meyering.net>
82562
82563         Sync from coreutils.
82564         * lib/md5.c (OP): Fix spacing.
82565
82566 2006-01-11  Bruno Haible  <bruno@clisp.org>
82567
82568         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82569         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82570         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82571
82572 2006-01-11  Bruno Haible  <bruno@clisp.org>
82573
82574         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82575         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82576         the "early" section as well.
82577
82578 2006-01-11  Bruno Haible  <bruno@clisp.org>
82579
82580         Avoid "ar: no archive members specified" error on MacOS X.
82581         * gnulib-tool (func_modules_add_dummy): New function.
82582         (func_import, func_create_testdir): Invoke it.
82583
82584 2006-01-11  Bruno Haible  <bruno@clisp.org>
82585
82586         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82587         with $auxdir in AC_CONFIG_FILES statements.
82588
82589 2006-01-11  Bruno Haible  <bruno@clisp.org>
82590
82591         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82592         Initialize also noinst_HEADERS to empty.
82593
82594 2006-01-11  Bruno Haible  <bruno@clisp.org>
82595
82596         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82597         variables.
82598         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82599         autoreconf.
82600
82601 2006-01-11  Bruno Haible  <bruno@clisp.org>
82602
82603         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82604         overridable by the user.
82605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82606
82607 2006-01-10  Simon Josefsson  <jas@extundo.com>
82608
82609         * modules/sys_socket: New file.
82610
82611 2006-01-10  Simon Josefsson  <jas@extundo.com>
82612
82613         * m4/sys_socket_h.m4: New file.
82614
82615 2006-01-10  Simon Josefsson  <jas@extundo.com>
82616
82617         * lib/socket_.h: New file.
82618
82619 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82620
82621         * modules/readutmp (Maintainer): Add myself.
82622
82623 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82624
82625         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82626         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82627         People who are still concerned with buggy memcmp implementations
82628         can invoke gl_FUNC_MEMCMP themselves.
82629
82630 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82631
82632         * lib/regex_internal.h (BITSET_WORD_BITS):
82633         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82634         preprocessor mishandles large unsigned values as if they were signed.
82635         Problem reported by Claudio Fontana in
82636         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82637
82638 2006-01-10  Jim Meyering  <jim@meyering.net>
82639
82640         Avoid the double-free (first in fts_read, second in fts_close) that
82641         would occur when an `active' directory is made inaccessible (e.g.,
82642         via chmod a-x) during a traversal.
82643         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82644         before returning.  Reproduce this failure by
82645         mkdir -p a/b; cd a; chmod a-x . b
82646         Reported by Stavros Passas.
82647
82648         Sync from coreutils.
82649         * lib/sha1.c: Tweak grammar in a comment.
82650
82651 2006-01-10  Jim Meyering  <jim@meyering.net>
82652
82653         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82654         Patch by Joerg Sonnenberger.
82655
82656 2006-01-10  Bruno Haible  <bruno@clisp.org>
82657
82658         * modules/readutmp: Depend on module free.
82659         * modules/strtok_r: Depend on module restrict.
82660
82661 2006-01-10  Bruno Haible  <bruno@clisp.org>
82662
82663         * modules/gettext (configure.ac): Add an invocation of
82664         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82665
82666 2006-01-10  Bruno Haible  <bruno@clisp.org>
82667
82668         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82669         Reported by Werner Lemberg <wl@gnu.org>.
82670
82671 2006-01-10  Bruno Haible  <bruno@clisp.org>
82672
82673         * lib/localcharset.c: Update from GNU gettext.
82674
82675 2006-01-10  Bruno Haible  <bruno@clisp.org>
82676
82677         * lib/argp.h (__const): Remove macro. Use const instead.
82678         * lib/argp-fmtstream.h (__const): Likewise.
82679         * lib/glob_.h (__const): Remove macro.
82680         * lib/glob-libc.h: Use const instead of __const.
82681
82682 2006-01-10  Bruno Haible  <bruno@clisp.org>
82683
82684         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82685         variable.
82686         Needed to avoid an automake error regarding the 'gettext' module.
82687
82688 2006-01-09  Simon Josefsson  <jas@extundo.com>
82689
82690         * modules/inet_ntop (Depends-on): Add restrict.
82691
82692 2006-01-09  Simon Josefsson  <jas@extundo.com>
82693
82694         * modules/gc-rijndael-tests (License): Put under LGPL.
82695
82696         * modules/gc-des-tests (License): Likewise.
82697
82698         * modules/gc-arcfour-tests (License): Likewise.
82699
82700         * modules/gc-arctwo-tests (License): Likewise.
82701
82702         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82703
82704         * modules/gc-hmac-sha1-tests (Files): Likewise.
82705
82706         * modules/gc-hmac-md5-tests (License): Likewise.
82707
82708         * modules/gc-sha1-tests (License): Likewise.
82709
82710         * modules/gc-md5-tests (License): Likewise.
82711
82712         * modules/gc-md4-tests (License): Likewise.
82713
82714         * modules/gc-md2-tests (License): Likewise.
82715
82716         * modules/gc-tests (License): Likewise.
82717
82718         * modules/des-tests (License): Likewise.
82719
82720         * modules/md4-tests (License): Likewise.
82721
82722         * modules/md2-tests (License): Likewise.
82723
82724 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82725
82726         Sync from coreutils:
82727
82728         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82729         * modules/lib-ignore: New file.
82730         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82731         chdir-safer.m4, lchmod.m4.
82732         * modules/openat: Add mkdirat.c, openat-priv.h.
82733
82734 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82735
82736         Sync from coreutils.
82737         * m4/lib-ignore.m4: New file.
82738         * m4/lchmod.m4: New file.
82739
82740 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82741
82742         Sync from coreutils.
82743         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82744         for write access: POSIX says that must fail.
82745         * lib/fts.c (diropen): Likewise.
82746         * lib/save-cwd.c (save_cwd): Likewise.
82747         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82748         well, for minor improvements on hosts that lack O_DIRECTORY.
82749         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82750         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82751         Fall back on chown if open failed with EACCES.
82752
82753         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82754         Report an error at compile-time if only a 1-second nominal clock
82755         resolution is found.
82756
82757         * lib/lchmod.h: New file.
82758         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82759         (make_dir_parents): Use lchown rather than chown, and
82760         lchmod rather than chmod.
82761
82762         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82763         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82764         "proc" reported by n0dalus.
82765
82766         * lib/mountlist.c: Include <limits.h>.
82767         (dev_from_mount_options)
82768         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82769         New function.  It no longer assumes "dev=" has the System V meaning
82770         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82771         (read_file_system_list)
82772         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82773         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82774         dev= in that case.
82775
82776         * lib/posixtm.h (PDS_PRE_2000): New macro.
82777         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82778         allow_century.  All usages changed.  Reject dates outside the range
82779         1969-1999 if PDS_PRE_2000 is used.
82780
82781 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82782
82783         Sync from coreutils.
82784         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82785         (Time of day items): Mention the possibility of leap seconds.
82786         Problem reported by Dr. David Alan Gilbert.
82787
82788 2006-01-09  Jim Meyering  <jim@meyering.net>
82789
82790         Sync from coreutils.
82791
82792         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82793
82794         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82795
82796         * lib/modechange.c (mode_compile): Reject an invalid mode string
82797         that starts with an octal digit.  From Andreas Gruenbacher.
82798
82799         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82800         and dup to open_safer and dup_safer, respectively.
82801         (openat_permissive): Fix typo in comment.
82802
82803         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82804         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82805         (_): Remove; no longer needed.
82806         (openat): Renamed from rpl_openat; no need for rpl_openat
82807         since openat.h renames openat for us.
82808         Replace most of the body with a call to openat_permissive,
82809         to avoid duplicate code.
82810         Port to (probably hypothetical) environments were mode_t is
82811         wider than int.
82812         (openat_permissive): Require mode arg, so that we can check
82813         types better.  Put it just after flags.  Change cwd failure
82814         indicator from pointer-to-bool to pointer-to-errno-value.
82815         All callers changed.
82816         Invoke openat_save_fail and/or openat_restore_fail if
82817         cwd_errno is null, so that openat can call us.
82818         (openat_permissive, fdopendir, fstatat, unlinkat):
82819         Simplify errno handling to avoid some duplicate code,
82820         as it's OK to set errno on success.
82821         * lib/openat.h: Revamp code so that function macros depend on
82822         __OPENAT_PREFIX only, not also on AT_FDCWD.
82823         (openat_ro): Remove.  Caller changed to use openat_permissive.
82824         (openat_permissive): Now a macro, if not a function.
82825         (openat_restore_fail, openat_save_fail): Now always functions,
82826         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82827
82828         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82829         and openat.c.
82830         * lib/mkdirat.c: Include openat-priv.h.
82831         Remove definitions of macros defined therein.
82832         * lib/openat.c: Likewise.
82833
82834         * lib/mkdirat.c (mkdirat): New file and function.
82835         * lib/openat.h (mkdirat): Declare.
82836
82837         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82838
82839         * lib/openat.h (openat_permissive): Declare.
82840         (openat_ro): Define.
82841
82842         * lib/openat.c (EXPECTED_ERRNO): New macro.
82843         (openat_permissive): New function -- used in remove.c rewrite.
82844         (all functions): Set errno just before returning, only if there
82845         was an actual failure.
82846         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82847
82848         Emulate openat-family functions using Linux's procfs, if possible.
82849         Idea and some code based on Ulrich Drepper's glibc changes.
82850
82851         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82852         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82853         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82854         before falling back on save_cwd and restore_cwd.
82855         (fdopendir, fstatat, unlinkat): Likewise.
82856
82857         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82858         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82859
82860         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82861         as second argument to va_arg.  Otherwise, some versions of gcc
82862         warn that `if this code is reached, the program will abort'.
82863
82864 2006-01-09  Jim Meyering  <jim@meyering.net>
82865
82866         Sync from coreutils.
82867         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82868         Require openat-priv.h.
82869
82870 2006-01-09  Bruno Haible  <bruno@clisp.org>
82871
82872         * modules/strnlen (Include): Use strnlen.h.
82873
82874 2006-01-09  Bruno Haible  <bruno@clisp.org>
82875
82876         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82877
82878 2006-01-09  Bruno Haible  <bruno@clisp.org>
82879
82880         * lib/sysexit_.h (EX_OK): New macro.
82881         Suggested by Martin Lambers <marlam@marlam.de>.
82882
82883 2006-01-09  Bruno Haible  <bruno@clisp.org>
82884
82885         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82886         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82887
82888 2006-01-09  Bruno Haible  <bruno@clisp.org>
82889
82890         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82891         numbers.
82892
82893 2006-01-09  Bruno Haible  <bruno@clisp.org>
82894
82895         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82896         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82897         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82898         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82899
82900 2006-01-09  Bruno Haible  <bruno@clisp.org>
82901
82902         * build-aux/javacomp.sh.in: New file, moved from lib/.
82903         * modules/javacomp-script (Files): Update.
82904         (configure.ac): Add AC_CONFIG_FILES invocation.
82905         (EXTRA_DIST): Remove variable.
82906
82907         * build-aux/javaexec.sh.in: New file, moved from lib/.
82908         * modules/javaexec (Files): Update.
82909         (configure.ac): Add AC_CONFIG_FILES invocation.
82910         (EXTRA_DIST): Remove javaexec.sh.in.
82911
82912         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82913         * modules/csharpcomp-script (Files): Update.
82914         (configure.ac): Add AC_CONFIG_FILES invocation.
82915         (EXTRA_DIST): Remove variable.
82916
82917         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82918         * modules/csharpexec (Files): Update.
82919         (configure.ac): Add AC_CONFIG_FILES invocation.
82920         (EXTRA_DIST): Remove csharpexec.sh.in.
82921
82922 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82923
82924         Sync from coreutils.
82925
82926         Add POSIX ACL support
82927         * lib/acl.h (copy_acl, set_acl): Add declarations.
82928         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82929         systems other than Linux.
82930         (chmod_or_fchmod): New function: use fchmod when possible,
82931         and chmod otherwise.
82932         (file_has_acl): Add a POSIX ACL implementation, with a
82933         Linux-specific subcase.
82934         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82935         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82936         acls are unsupported.
82937         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82938         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82939         are unsupported.
82940
82941 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82942
82943         Sync from coreutils.
82944         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82945
82946 2006-01-07  Bruno Haible  <bruno@clisp.org>
82947
82948         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82949         gl_EARLY.
82950
82951 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82952
82953         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82954         Problem reported for Mingw by Mark Junker.
82955
82956 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82957
82958         * README: Gnulib normally doesn't generate a tarball.
82959
82960 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82961
82962         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82963         long int, not int, for nanosecond counts, so that people who are
82964         used to POSIX struct timespec won't be surprised.  Reported by Jim
82965         Meyering.
82966
82967 2005-12-28  Bruno Haible  <bruno@clisp.org>
82968
82969         * build-aux/config.rpath: Update from GNU gettext.
82970
82971 2005-12-16  Jim Meyering  <jim@meyering.net>
82972
82973         * modules/fprintftime: New module.
82974         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82975
82976 2005-12-16  Jim Meyering  <jim@meyering.net>
82977
82978         * m4/fprintftime.m4: New file.
82979
82980 2005-12-16  Jim Meyering  <jim@meyering.net>
82981
82982         * lib/fprintftime.c, lib/fprintftime.h: New files.
82983
82984 2005-12-15  Simon Josefsson  <jas@extundo.com>
82985
82986         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82987         new m4/socklen.m4.
82988
82989 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82990
82991         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82992         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82993
82994 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82995
82996         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82997         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82998         struct uparams is valid. Fall back to the default values if it is
82999         not.
83000
83001 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83002
83003         * modules/argp (Files): Add argp-pin.c
83004         (Depends-on): dirname
83005         (lib_SOURCES): Add argp-pin.c
83006
83007 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83008
83009         * m4/argp.m4:  Check if program_invocation_name and
83010         program_invocation_short_name are declared and define appropriate
83011         macros if they are not.
83012
83013 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83014
83015         * lib/argp-help.c (__argp_base_name): New function
83016         (__argp_short_program_name): Rewrite using __argp_base_name
83017         * lib/argp-namefrob.h: Define program_invocation_name and
83018         program_invocation_short_name if requested
83019         (__argp_base_name): Add prototype
83020         * lib/argp-parse.c (argp_def): Use gettext wrappers
83021         (argp_default_parser): Use __argp_base_name
83022         * lib/argp-pin.c: New file. Defines program_invocation_name and
83023         program_invocation_short_name on systems that lack them.
83024
83025 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83026
83027         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83028         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83029         porting problem reported by Georg Schwarz in
83030         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83031
83032 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83033
83034         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83035         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83036         porting problem reported by Georg Schwarz in
83037         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83038
83039 2005-12-05  Bruno Haible  <bruno@clisp.org>
83040
83041         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83042         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83043         Reported by Mark Junker <mjscod@gmx.de>.
83044
83045 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83046
83047         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83048         Use implementation from Albert Chin, with some
83049         comments/corrections by Stepan Kasal and myself.
83050
83051 2005-12-02  Bruno Haible  <bruno@clisp.org>
83052
83053         * gnulib-tool (func_import): Accept GPLed build tool modules when
83054         --lgpl is given.
83055         * modules/csharpcomp-script: New file.
83056         * modules/csharpcomp: Depend on it.
83057         * modules/javacomp-script: New file.
83058         * modules/javacomp: Depend on it.
83059         Suggested by Simon Josefsson.
83060
83061 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83062
83063         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83064         statement, to work around an HP-UX 10.20 compiler bug reported by
83065         Peter O'Gorman.
83066
83067 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83068
83069         * modules/savedir (Depends-on): Add openat.
83070
83071 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83074         (uintmax_t) [defined uintmax_t]: Do not declare.
83075         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83076         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83077         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83078         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83079         sake of portability to weird hosts that C allows (though we don't
83080         know of any practical examples).
83081
83082         * lib/savedir.h (fdsavedir): New decl.
83083         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83084         contains most of the former guts of savedir.
83085         (savedir): Use savedirstream.
83086         Include "openat.h".
83087
83088 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83089
83090         * modules/obstack (Files): Add m4/ulonglong.m4.
83091         Problem reported by Davide Angelocola.
83092
83093 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83094
83095         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83096         coreutils no longer futzes with rounding modes.
83097
83098 2005-11-14  Jim Meyering  <jim@meyering.net>
83099
83100         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83101         replacement of mkstemp.
83102
83103 2005-11-10  Simon Josefsson  <jas@extundo.com>
83104
83105         * lib/readline.c: Remove EOL.
83106
83107 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83108
83109         * modules/gethrxtime (Depends-on): Add gettime.
83110
83111 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83112
83113         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83114         or gettimeofday; no longer needed.
83115
83116 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83117
83118         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83119         time business.
83120         (gethrxtime) [! (HAVE_NANOUPTIME
83121         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83122         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83123         our own approximation.
83124
83125 2005-11-08  Eric Blake  <ebb9@byu.net>
83126
83127         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83128
83129 2005-11-08  Eric Blake  <ebb9@byu.net>
83130
83131         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83132
83133 2005-11-04  Bruno Haible  <bruno@clisp.org>
83134
83135         * gnulib-tool: Implement --update mode.
83136
83137 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83138
83139         Fix porting problem reported by Theodoros V. Kalamatianos.
83140         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83141         Don't assume that futimes failing means we must fail.
83142
83143 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83144
83145         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83146         variables to suggest the intended function of the PATH_MAX check.
83147
83148 2005-10-30  Kean Johnston  <jkj@sco.com>
83149
83150         Trivial changes to support SCO systems.
83151         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83152         as PATH_MAX.
83153         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83154         where __ptr is null when no I/O is pending.
83155
83156 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83157
83158         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83159         leave errno alone.  Problem reported by Dmitry V. Levin.
83160
83161 2005-10-28  Simon Josefsson  <jas@extundo.com>
83162
83163         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83164         Test more.
83165
83166         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83167
83168         * modules/md2, modules/md2-tests: New files.
83169
83170 2005-10-28  Simon Josefsson  <jas@extundo.com>
83171
83172         * m4/inet_ntop.m4: More tests.
83173
83174         * m4/gc-md2.m4, md2.m4: New file.
83175
83176 2005-10-28  Simon Josefsson  <jas@extundo.com>
83177
83178         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83179         "restrict" keywords, as per POSIX.  Protect the function
83180         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83181         Don't use K&R prototypes.  Check the sprintf return values.
83182         Re-define EAFNOSUPPORT if not present.  Indent.
83183
83184         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83185         suggested by Bruno Haible <bruno@clisp.org>.
83186
83187         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83188
83189         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83190
83191         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83192         libgcrypt).
83193
83194         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83195
83196         * lib/md2.h, lib/md2.c: New files.
83197
83198 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83199
83200         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83201         errno alone.  Problem reported by Frederic Jolliton.
83202
83203 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83204
83205         * modules/verify (License): Change from GPL to LGPL.  This is a
83206         tiny module and there are apparently near-equivalents that are
83207         under the BSD license.
83208
83209 2005-10-24  Simon Josefsson  <jas@extundo.com>
83210
83211         * modules/sha1: Relicense to LGPL.
83212
83213 2005-10-24  Simon Josefsson  <jas@extundo.com>
83214
83215         * lib/md4.h: Shrink buffer size, now that we changed the type.
83216
83217 2005-10-23  Simon Josefsson  <jas@extundo.com>
83218
83219         * gnulib-tool (func_import): Fix --tests-base.
83220
83221 2005-10-22  Simon Josefsson  <jas@extundo.com>
83222
83223         * modules/arcfour (Depends-on): Need stdint.
83224
83225 2005-10-22  Simon Josefsson  <jas@extundo.com>
83226
83227         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83228         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83229
83230 2005-10-22  Simon Josefsson  <jas@extundo.com>
83231
83232         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83233         suggested by Bruno Haible <bruno@clisp.org>.
83234
83235 2005-10-22  Simon Josefsson  <jas@extundo.com>
83236
83237         * lib/crc.h: Include stddef.h, for size_t.
83238
83239 2005-10-22  Simon Josefsson  <jas@extundo.com>
83240
83241         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83242         arcfour_context struct (simplify test vector testing in GNU
83243         Shishi).
83244
83245 2005-10-21  Simon Josefsson  <jas@extundo.com>
83246
83247         * modules/des, modules/des-tests: New files.
83248
83249         * modules/gc-des, modules/gc-des-tests: New files.
83250
83251         * tests/test-des.c, tests/test-gc-des.c: New file.
83252
83253 2005-10-21  Simon Josefsson  <jas@extundo.com>
83254
83255         * modules/arctwo, modules/arctwo-tests: New files.
83256
83257         * tests/test-arctwo.c: New file.
83258
83259         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83260
83261         * tests/test-gc-arctwo.c: New file.
83262
83263 2005-10-21  Simon Josefsson  <jas@extundo.com>
83264
83265         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83266         Bruno Haible <bruno@clisp.org>.
83267
83268         * m4/gc-des.m4: New file.
83269
83270 2005-10-21  Simon Josefsson  <jas@extundo.com>
83271
83272         * m4/arctwo.m4: New file.
83273
83274         * m4/gc-arctwo.m4: New file.
83275
83276 2005-10-21  Simon Josefsson  <jas@extundo.com>
83277
83278         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83279         block.
83280
83281 2005-10-21  Simon Josefsson  <jas@extundo.com>
83282
83283         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83284         <bruno@clisp.org>.
83285
83286         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83287
83288         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83289         Bruno Haible <bruno@clisp.org>.
83290
83291         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83292         <bruno@clisp.org>.
83293
83294 2005-10-21  Simon Josefsson  <jas@extundo.com>
83295
83296         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83297
83298 2005-10-21  Simon Josefsson  <jas@extundo.com>
83299
83300         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83301
83302 2005-10-21  Simon Josefsson  <jas@extundo.com>
83303
83304         * lib/des.h, lib/des.c: New files.
83305
83306         * lib/gc-gnulib.c: Support DES.c
83307
83308 2005-10-21  Simon Josefsson  <jas@extundo.com>
83309
83310         * lib/arctwo.h, lib/arctwo.c: New files.
83311
83312         * lib/gc-gnulib.c: Support ARCTWO.
83313
83314 2005-10-21  Simon Josefsson  <jas@extundo.com>
83315
83316         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83317         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83318
83319 2005-10-21  Simon Josefsson  <jas@extundo.com>
83320
83321         * gnulib-tool (func_import, func_create_testdir): Define automake
83322         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83323         Makefile.am snippet),
83324         suggested by Bruno Haible <bruno@clisp.org>.
83325
83326         * modules/gc (Makefile.am): Use it.
83327
83328 2005-10-21  Bruno Haible  <bruno@clisp.org>
83329
83330         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83331         patch.
83332
83333 2005-10-19  Simon Josefsson  <jas@extundo.com>
83334
83335         * tests/test-gc-rijndael.c: New file.
83336
83337         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83338
83339 2005-10-19  Simon Josefsson  <jas@extundo.com>
83340
83341         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83342         interface too.
83343
83344 2005-10-19  Simon Josefsson  <jas@extundo.com>
83345
83346         * tests/test-gc-arcfour.c: New file.
83347
83348         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83349
83350 2005-10-19  Simon Josefsson  <jas@extundo.com>
83351
83352         * modules/gc-md4, modules/gc-md4-tests: New file.
83353
83354         * tests/test-gc-md4.c: New file.
83355
83356 2005-10-19  Simon Josefsson  <jas@extundo.com>
83357
83358         * m4/gc-md4.m4: New file.
83359
83360 2005-10-19  Simon Josefsson  <jas@extundo.com>
83361
83362         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83363         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83364         <kasal@ucw.cz>.
83365
83366 2005-10-19  Simon Josefsson  <jas@extundo.com>
83367
83368         * m4/gc-arcfour.m4: New file.
83369
83370         * m4/gc-rijndael.m4: New file.
83371
83372 2005-10-19  Simon Josefsson  <jas@extundo.com>
83373
83374         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83375
83376 2005-10-19  Simon Josefsson  <jas@extundo.com>
83377
83378         * lib/gc-gnulib.c: Support ARCFOUR.
83379
83380 2005-10-19  Simon Josefsson  <jas@extundo.com>
83381
83382         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83383         support.
83384
83385         * lib/gc.h: Add ECB enum type.
83386
83387         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83388
83389 2005-10-18  Simon Josefsson  <jas@extundo.com>
83390
83391         * tests/test-md5.c: New file.
83392
83393         * modules/md5-tests: New file.
83394
83395 2005-10-18  Simon Josefsson  <jas@extundo.com>
83396
83397         * tests/test-md4.c: New file.
83398
83399         * modules/md4, modules/md4-tests: New files.
83400
83401 2005-10-18  Simon Josefsson  <jas@extundo.com>
83402
83403         * m4/md4.m4: New file.
83404
83405 2005-10-18  Simon Josefsson  <jas@extundo.com>
83406
83407         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83408
83409 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83410
83411         * gnulib-tool (func_create_testdir): Omit the second check whether
83412         BUILT_SOURCES in nonempty.
83413
83414 2005-10-17  Simon Josefsson  <jas@extundo.com>
83415
83416         * tests/test-rijndael.c: New file.
83417
83418 2005-10-17  Simon Josefsson  <jas@extundo.com>
83419
83420         * modules/sha1: Depend on stdint instead of md5.
83421
83422         * modules/md5: Depend on stdint, remove uint32_t.
83423
83424 2005-10-17  Simon Josefsson  <jas@extundo.com>
83425
83426         * modules/gc-sha1-tests: New file.
83427
83428         * tests/test-gc-sha1.c: New file.
83429
83430 2005-10-17  Simon Josefsson  <jas@extundo.com>
83431
83432         * m4/md5.m4: Remove call to uint32_t.m4.
83433
83434 2005-10-17  Simon Josefsson  <jas@extundo.com>
83435
83436         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83437
83438         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83439         md5.h.
83440
83441         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83442
83443         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83444
83445 2005-10-17  Simon Josefsson  <jas@extundo.com>
83446
83447         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83448
83449 2005-10-17  Simon Josefsson  <jas@extundo.com>
83450
83451         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83452
83453 2005-10-17  Simon Josefsson  <jas@extundo.com>
83454
83455         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83456
83457         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83458
83459 2005-10-17  Bruno Haible  <bruno@clisp.org>
83460
83461         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83462         that it can also be used in a test.
83463
83464 2005-10-16  Bruno Haible  <bruno@clisp.org>
83465
83466         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83467         TESTS_ENVIRONMENT, so that individual tests can augment it.
83468
83469         * gnulib-tool (func_create_testdir): Use an intermediate target for
83470         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83471         macros, like $(ALLOCA_H), which cannot be passed through the command
83472         line.
83473
83474 2005-10-15  Simon Josefsson  <jas@extundo.com>
83475
83476         * modules/rijndael-tests: New file.
83477
83478         * modules/rijndael: New file.
83479
83480 2005-10-15  Simon Josefsson  <jas@extundo.com>
83481
83482         * m4/rijndael.m4: New file.
83483
83484 2005-10-15  Simon Josefsson  <jas@extundo.com>
83485
83486         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83487
83488         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83489
83490 2005-10-14  Simon Josefsson  <jas@extundo.com>
83491
83492         * tests/test-arcfour.c: New file.
83493
83494         * modules/arcfour, modules/arcfour-tests: New files.
83495
83496 2005-10-14  Simon Josefsson  <jas@extundo.com>
83497
83498         * m4/arcfour.m4: New file.
83499
83500 2005-10-14  Simon Josefsson  <jas@extundo.com>
83501
83502         * lib/arcfour.h, lib/arcfour.c: New files.
83503
83504 2005-10-14  Roland McGrath  <roland@redhat.com>
83505
83506         Import from libc.  [BZ #1331]
83507         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83508         macro argument.
83509         Reported by Matej Vela <vela@debian.org>.
83510
83511 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83512
83513         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83514         include <wchar.h>; no longer needed.
83515
83516 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83517
83518         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83519
83520 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83521         and  Ulrich Drepper  <drepper@redhat.com>
83522
83523         Import from libc.
83524         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83525         instead of inline stream orientation test and two separate
83526         function calls.  Pay no attention to USE_IN_LIBIO.
83527
83528 2005-10-13  Simon Josefsson  <jas@extundo.com>
83529
83530         * modules/gc-hmac-md5-tests: New file.
83531
83532         * tests/test-gc-hmac-sha1.c: New file.
83533
83534         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83535
83536         * modules/gc-hmac-md5-tests: New file.
83537
83538         * tests/test-gc-md5.c: New file.
83539
83540         * modules/gc-md5-tests: New file.
83541
83542 2005-10-13  Simon Josefsson  <jas@extundo.com>
83543
83544         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83545         Move memory allocation outside of loop.
83546
83547 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83548
83549         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83550         intermediate directory is in a read-only file system.  Problem
83551         reported by Eric Blake.
83552
83553 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83554
83555         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83556
83557 2005-10-12  Simon Josefsson  <jas@extundo.com>
83558
83559         * tests/test-hmac-sha1.c: New file.
83560
83561         * modules/hmac-sha1-tests: New file.
83562
83563         * modules/hmac-sha1: New file.
83564
83565 2005-10-12  Simon Josefsson  <jas@extundo.com>
83566
83567         * modules/gc-sha1: New file.
83568
83569 2005-10-12  Simon Josefsson  <jas@extundo.com>
83570
83571         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83572
83573         * tests/test-gc-pbkdf2-sha1.c: New file.
83574
83575 2005-10-12  Simon Josefsson  <jas@extundo.com>
83576
83577         * modules/gc-md5, modules/gc-hmac-md5: New files.
83578
83579         * modules/gc (Files): Remove md5, memxor and hmac files.
83580
83581 2005-10-12  Simon Josefsson  <jas@extundo.com>
83582
83583         * m4/gc-pbkdf2-sha1.m4: New file.
83584
83585         * m4/gc-hmac-sha1.m4: New file.
83586
83587         * m4/gc-sha1: New file.
83588
83589         * m4/hmac-sha1.m4: New file.
83590
83591 2005-10-12  Simon Josefsson  <jas@extundo.com>
83592
83593         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83594
83595         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83596
83597 2005-10-12  Simon Josefsson  <jas@extundo.com>
83598
83599         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83600         suggested by Bruno Haible <bruno@clisp.org>.
83601
83602 2005-10-12  Simon Josefsson  <jas@extundo.com>
83603
83604         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83605
83606 2005-10-12  Simon Josefsson  <jas@extundo.com>
83607
83608         * lib/gc-pbkdf2-sha1.c: New file.
83609
83610         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83611
83612 2005-10-12  Simon Josefsson  <jas@extundo.com>
83613
83614         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83615
83616         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83617
83618 2005-10-12  Simon Josefsson  <jas@extundo.com>
83619
83620         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83621         GC_USE_HMAC_MD5, respectively.
83622
83623         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83624         (gc_md5): Fix typo.
83625
83626         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83627
83628         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83629
83630         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83631
83632 2005-10-12  Bruno Haible  <bruno@clisp.org>
83633
83634         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83635         Reported by Stepan Kasal <kasal@ucw.cz>.
83636
83637 2005-10-11  Simon Josefsson  <jas@extundo.com>
83638
83639         * tests/test-crc.c: New file.
83640
83641         * modules/crc, modules/crc-tests: New files.
83642
83643 2005-10-11  Simon Josefsson  <jas@extundo.com>
83644
83645         * m4/crc.m4: New file.
83646
83647 2005-10-11  Simon Josefsson  <jas@extundo.com>
83648
83649         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83650
83651         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83652
83653         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83654
83655 2005-10-11  Simon Josefsson  <jas@extundo.com>
83656
83657         * lib/crc.h, lib/crc.c: New files.
83658
83659         * lib/gc.h (gc_hash_buffer): Add doc.
83660
83661 2005-10-11  Bruno Haible  <bruno@clisp.org>
83662
83663         * modules/c-strcasestr: New file.
83664         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83665
83666 2005-10-11  Bruno Haible  <bruno@clisp.org>
83667
83668         * modules/c-strcase: New file.
83669         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83670
83671 2005-10-11  Bruno Haible  <bruno@clisp.org>
83672
83673         * lib/strcasecmp.c: Include limits.h.
83674         (strcasecmp): Avoid integer overflow on exotic platforms.
83675         * lib/strncasecmp.c: Include limits.h.
83676         (strncasecmp): Avoid integer overflow on exotic platforms.
83677         Reported by Paul Eggert.
83678
83679 2005-10-11  Bruno Haible  <bruno@clisp.org>
83680
83681         * lib/c-strcasestr.h: New file, from GNU gettext.
83682         * lib/c-strcasestr.c: New file, from GNU gettext.
83683
83684 2005-10-11  Bruno Haible  <bruno@clisp.org>
83685
83686         * lib/c-strcase.h: New file, from GNU gettext.
83687         * lib/c-strcasecmp.c: New file, from GNU gettext.
83688         * lib/c-strncasecmp.c: New file, from GNU gettext.
83689
83690 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83691
83692         * modules/mempcpy (License): GPL -> LGPL.
83693         * modules/strchrnul (License): Likewise.
83694         * modules/sysexits (License): Likewise.
83695
83696 2005-10-08  Simon Josefsson  <jas@extundo.com>
83697
83698         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83699
83700 2005-10-07  Simon Josefsson  <jas@extundo.com>
83701
83702         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83703
83704 2005-10-06  Simon Josefsson  <jas@extundo.com>
83705
83706         * tests/test-hmac-md5.c: New file.
83707
83708         * modules/hmac-md5-tests: New file.
83709
83710         * modules/hmac-md5: New file.
83711
83712 2005-10-06  Simon Josefsson  <jas@extundo.com>
83713
83714         * m4/hmac-md5.m4: New file.
83715
83716         * m4/memxor.m4: Require gl_C_RESTRICT.
83717
83718 2005-10-06  Simon Josefsson  <jas@extundo.com>
83719
83720         * lib/memxor.c (memxor): Avoid casts and warnings.
83721
83722 2005-10-06  Simon Josefsson  <jas@extundo.com>
83723
83724         * lib/hmac-md5.c: New file.
83725
83726         * lib/hmac.h: New file.
83727
83728 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83729
83730         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83731         promotes to int, not unsigned int, to catch the AIX 5.3
83732         compiler bug.
83733
83734 2005-10-05  Simon Josefsson  <jas@extundo.com>
83735
83736         * modules/memxor: New file.
83737
83738         * modules/iconv (Files): Move config.rpath to havelib, it is used
83739         there.
83740
83741         * modules/havelib (Files): Add config.rpath.
83742
83743 2005-10-05  Simon Josefsson  <jas@extundo.com>
83744
83745         * m4/memxor.m4: New file.
83746
83747 2005-10-05  Simon Josefsson  <jas@extundo.com>
83748
83749         * lib/memxor.c (memxor): Fix compiler error.
83750
83751         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83752         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83753
83754         * lib/memxor.h, lib/memxor.c: New files.
83755
83756         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83757         we assume all systems have it, suggested by Jim Meyering
83758         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83759         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83760         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83761         same reasons.
83762
83763 2005-10-05  Simon Josefsson  <jas@extundo.com>
83764
83765         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83766
83767 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83768
83769         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83770         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83771         needed, since the source code now assumes these .h files.
83772
83773 2005-10-05  Derek Price  <derek@ximbiot.com>
83774
83775         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83776
83777 2005-10-05  Bruno Haible  <bruno@clisp.org>
83778
83779         * modules/stdint (License): Change to LGPL.
83780
83781 2005-10-04  Simon Josefsson  <jas@extundo.com>
83782
83783         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83784         D. Baushke" <mdb@gnu.org>.
83785
83786 2005-10-04  Bruno Haible  <bruno@clisp.org>
83787
83788         * lib/verify.h (verify_true): Provide alternative definition for C++.
83789
83790 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83791
83792         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83793         (SSIZE_MAX): New macro, if not already defined.
83794         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83795         than 2 GiB.
83796
83797 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83798
83799         Sync from coreutils.
83800         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83801         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83802         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83803         ULLONG_MAX doesn't work with 2.7.2.1.
83804
83805 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83806
83807         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83808         From Ben Pfaff.
83809
83810         * modules/exclude (Depends-on): Depend on verify.
83811         * modules/strtoimax (Depends-on): Likewise.
83812         * modules/utimecmp (Depends-on): Likewise.
83813
83814 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         * lib/exclude.c: Include verify.h.
83817         (verify): Remove.  All callers changed to use verify.h's version.
83818         * lib/strtoimax.c: Likewise.
83819         * lib/utimecmp.c: Likewis.e
83820
83821         Sync from coreutils.
83822         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83823         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83824         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83825         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83826         bother returning ENOSYS if settimeofday or stime fails; just let
83827         them return whatever errno they want to return.
83828         * lib/utimens.c: Include unistd.h, for dup2.
83829         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83830         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83831
83832 2005-10-02  Jim Meyering  <jim@meyering.net>
83833
83834         Sync from coreutils.
83835         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83836         from glibc-2.2.5 that fails for read-only files.
83837
83838 2005-10-02  Jim Meyering  <jim@meyering.net>
83839
83840         Sync from coreutils.
83841         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83842         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83843         `#if HAVE_CONFIG_H'.
83844         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83845         Remove AT_FDCWD test.
83846         Do not consume the fd unless successful.
83847         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83848         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83849         block, so that we don't even try to compile it if settimeofday is
83850         available.  This works around a compilation failure on OSF1 V5.1,
83851         due to stime requiring a `long int*' while tv_sec is `int'.
83852
83853 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83854
83855         Sync from coreutils.
83856         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83857         against `yes', rather than just testing for nonempty.
83858
83859 2005-10-01  Simon Josefsson  <jas@extundo.com>
83860
83861         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83862         and Darwin.
83863
83864         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83865         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83866         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83867         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83868         Check if struct addrinfo is declared.
83869
83870 2005-10-01  Simon Josefsson  <jas@extundo.com>
83871
83872         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83873         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83874         AI_* and EAI_* definitions.  Protect function declarations.
83875
83876 2005-10-01  Jim Meyering  <jim@meyering.net>
83877
83878         Sync from coreutils.
83879
83880         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83881         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83882         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83883         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83884         in the inet and nsl libraries.  Required on Solaris 5.7.
83885
83886 2005-10-01  Jim Meyering  <jim@meyering.net>
83887
83888         Sync from coreutils.
83889         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83890         in the inet and nsl libraries.  Required on Solaris 5.7.
83891
83892 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83893
83894         * lib/getdelim.c (getdelim): Remove unused variables.
83895
83896 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83897
83898         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83899         so that the code works even with ancient cpp.  Portability problem
83900         with GCC 2.7.2.1 reported by Thomas M.Ott.
83901
83902 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83903
83904         * modules/regex (Depends-on): Add strcase.
83905
83906         * modules/gethostname (Licence): Change from GPL to LGPL, since
83907         gethostname.c is a trivial implementation of a standard library
83908         function.
83909         * modules/poll (License): Change from GPL to LGPL, since it's
83910         derived from LGPL code.
83911
83912 2005-09-27  Jim Meyering  <jim@meyering.net>
83913
83914         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83915         HAVE_CONFIG_H.
83916
83917         * lib/intprops.h (signed_type_or_expr__): Define.
83918         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83919         for unsigned types.
83920
83921 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83922
83923         * lib/verify.h (verify_expr): Remove, replacing with:
83924         (verify_true): New macro that returns true instead of void.
83925         (verify_type__): Remove.
83926         (verify): Use verify_true rather than verify_type__.
83927
83928 2005-09-26  Bruno Haible  <bruno@clisp.org>
83929
83930         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83931         is necessary.
83932         (lib_SOURCES): Remove mbchar.c.
83933         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83934         (Files): Add m4/mbrtowc.m4.
83935         * modules/mbiter: Likewise.
83936         * modules/mbuiter: Likewise.
83937
83938 2005-09-26  Bruno Haible  <bruno@clisp.org>
83939
83940         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83941         compile mbchar.c if they are not both present.
83942         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83943         * m4/mbiter.m4 (gl_MBITER): Likewise.
83944         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83945         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83946         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83947
83948 2005-09-25  Jim Meyering  <jim@meyering.net>
83949
83950         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83951         also uses socklen_t.
83952
83953 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83954
83955         * lib/utimens.c (ENOSYS): Define if not already defined.
83956         (futimens): Support having a null PATH if the file descriptor
83957         is nonnegative.
83958
83959         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83960         Remove.
83961         (__attribute): Define to empty unless GCC 3.1 or later.
83962         This works around a core dump on OpenBSD 3.4, which has GCC
83963         2.95.3, which dumps core when given __attribute__(()).  It also
83964         simplifies other tests, since we really don't want to bother with
83965         worrying about which ancient version of GCC supported what.
83966         Original problem reported by Yoann Vandoorselaere, with part of
83967         the fix suggested by Derek Price.
83968
83969 2005-09-24  Jim Meyering  <jim@meyering.net>
83970
83971         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83972         so we can once again use a positive bitfield width of 1 -- now we
83973         don't have to explain why we were using a bitfield width of 2.
83974
83975 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83978         and similarly for the other external symbols.  Problem reported
83979         by James Gallager.
83980
83981         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83982         bug reported by Jim Meyering.
83983
83984         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83985         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83986         not needed, since socklen is a prerequisite module.
83987
83988 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83989
83990         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83991         Problem reported by Eric Blake.
83992         (getaddrinfo): Initialize se so that it's not garbage.
83993         Redo internal storage allocation so that it doesn't make unportable
83994         assumptions about alignment.
83995         Fix a memory leak.
83996
83997         * lib/utimens.c (futimens): Use futimesat if available.
83998         Prefer it to futimes since it doesn't have the futimes bug.
83999
84000         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84001         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84002         Instead, declare a function that returns a pointer to an array,
84003         and use verify_type__ to declare the size of the array.
84004         Problem and germ of a solution reported by Bruno Haible.
84005         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84006         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84007
84008 2005-09-23  Jim Meyering  <jim@meyering.net>
84009
84010         Sync from coreutils.
84011         Correct build failure (socklen_t not defined) on at least
84012         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84013         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84014
84015 2005-09-23  Jim Meyering  <jim@meyering.net>
84016
84017         * modules/getaddrinfo (Depends-on): Add socklen.
84018
84019 2005-09-23  Bruno Haible  <bruno@clisp.org>
84020
84021         * tests/test-verify.c: New file.
84022
84023 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84024
84025         Sync from coreutils.
84026
84027         * modules/argmatch (Depends-on): Add verify.
84028         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84029         unistd-safer.
84030         * modules/save-cwd (Depends-on): Likewise.
84031
84032         * modules/openat (Files): Add lib/openat-die.c.
84033         (Depends-on): Remove error, exitfail.
84034         Add dirname.
84035
84036         * modules/verify: New file.
84037         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84038         with "verify" module.
84039
84040 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84041
84042         Sync from coreutils.
84043
84044         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84045         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84046         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84047         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84048         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84049         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84050         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84051         Don't bother checking for string.h, stdlib.h, unistd.h.
84052         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84053         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84054         module's job.
84055         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84056         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84057
84058         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84059         (gl_GETDATE): Use it.
84060
84061         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84062
84063 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84064
84065         Sync from coreutils.
84066
84067         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84068         stat-time.h.
84069         * lib/argmatch.h: Include verify.h
84070         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84071         (ARGMATCH_ASSERT): Remove; unused.
84072         * lib/canonicalize.c: Assume STDC_HEADERS.
84073         * lib/exclude.c: Include "strcase.h".
84074         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84075         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84076         and stdio-safer.h.
84077         (getusershell): Call fopen, not fopen_safer.
84078         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84079         Do not include unistd-safer.h.
84080         (save_cwd): Don't call fd_safer; no longer needed
84081         now that we include fcntl--.h.
84082
84083         * lib/getdate.y (relative_time): New type.
84084         (RELATIVE_TIME_0): New constant.
84085         (parser_control): Use relative_time instead of doing it ourselves.
84086         (%union): Add new relative_time rel member.
84087         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84088         Now typeless.
84089         (relunit, relunit_snumber): Now of type rel.
84090         (zone, rel, relunit, get_date): Adjust to above changes.
84091
84092         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84093         Do not include unistd-safer.h.
84094         (getloadavg): Don't call fd_safer; no longer needed
84095         now that we include fcntl--.h.
84096
84097         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84098         (make_dir_parents): Treat ENOSYS like EEXIST.
84099
84100         Improve quality of diagnostics on restore_cwd failure.
84101         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84102         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84103         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84104         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84105         each time through the loop.  Do not diagnose restore_cwd failure;
84106         that is the caller's job (and perhaps the caller does not care).
84107
84108         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84109         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84110         If the file already exists but is not a directory, don't bother
84111         to try to make its parents.
84112         Close potential file descriptor leak if we can't chdir("/") (!).
84113         Don't always return true if chdir($PWD) fails; return true only
84114         if the requested action was done successfully (except for the
84115         chdir($PWD)).
84116         Don't log final directory unless we actually made it.
84117         Refactor to avoid duplicate code to fix up permissions.
84118         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84119
84120         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84121         to make it a bit faster and (I hope) clearer.
84122         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84123         Fix bug in formats like %2N.
84124
84125         * lib/verify.h: New file.
84126
84127 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84128
84129         Sync from coreutils.
84130         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84131
84132 2005-09-22  Jim Meyering  <jim@meyering.net>
84133
84134         Sync from coreutils.
84135
84136         * m4/lstat.m4 (gl_FUNC_LSTAT):
84137         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84138         Remove obsolete comment.
84139         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84140         * m4/xstrtod.m4: Likewise.
84141
84142         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84143
84144 2005-09-22  Jim Meyering  <jim@meyering.net>
84145
84146         Sync from coreutils.
84147
84148         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84149
84150         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84151         the .tm_year member, since otherwise gcc-4.0 would now warn about
84152         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84153
84154         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84155         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84156
84157         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84158         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84159         when run in a time zone for which daylight savings time is in effect
84160         for the starting date.
84161
84162         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84163         stop us from restricting permissions of just-created absolute-named
84164         directories.
84165         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84166         to restore initial working directory.
84167         * lib/mkdir-p.c (make_dir_parents): New parameter:
84168         different_working_dir, to tell caller if/when we change the working
84169         directory and are unable to return to the initial one.
84170         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84171         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84172         `return false'.  This fixes a bug introduced on 2004-07-30.
84173
84174         * lib/openat.c (fdopendir): Be sure to close the supplied
84175         file descriptor before returning.  This makes our replacement
84176         implementation a little closer to Solaris's, where fdopendir
84177         ties the file descriptor to the returned DIR* pointer.
84178         * lib/openat.c (unlinkat): New function.
84179         * lib/openat.h (unlinkat): Add prototype.
84180         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84181         (openat_restore_fail): Rename from openat_restore_die.
84182         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84183
84184         Provide an alternative to exiting immediately upon save_cwd or
84185         restore_cwd failure.  Now, an application can arrange e.g.,
84186         to perform a longjump in that case.
84187         * lib/openat.c: Include dirname.h.
84188         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84189         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84190         and openat_restore_die rather than calling error directly.
84191         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84192
84193         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84194         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84195         define.
84196
84197         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84198         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84199                             int utc, int nanoseconds);
84200         Background:
84201         date should not have to allocate a megabyte of virtual memory to
84202         handle a format argument like +%1048575T.  When implemented with
84203         strftime, it must allocate such a buffer, use strftime to fill it
84204         in, print it, then free it.
84205         With fprintftime, it simply prints everything and exits.
84206         With no need for memory allocation, that's one fewer way to fail.
84207         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84208         optional field width, not before, so we accept %9:z, not %:9z.
84209         (my_strftime): Be sure to use L_('x') for literals.
84210
84211         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84212         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84213         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84214         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84215         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84216         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84217         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84218         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84219         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84220         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84221         * lib/xgethostname.c, lib/xreadlink.c:
84222         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84223
84224         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84225         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84226         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84227         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84228         and don't include <sys/file.h>).
84229
84230 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84231
84232         Sync from coreutils.
84233
84234         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84235         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84236         [!LDAV_DONE]: Avoid unused variable warning.
84237
84238 2005-09-21  Bruno Haible  <bruno@clisp.org>
84239
84240         * lib/unicodeio.h (unicode_to_mb): New declaration.
84241
84242 2005-09-20  Derek Price  <derek@ximbiot.com>
84243
84244         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84245         getaddrinfo.h.
84246
84247 2005-09-20  Bruno Haible  <bruno@clisp.org>
84248
84249         * gnulib-tool: Remove trailing slashes from the values specified for
84250         --source-base, --m4-base, --tests-base, --aux-dir.
84251         Suggested by Simon Josefsson <jas@extundo.com>.
84252
84253 2005-09-20  Bruno Haible  <bruno@clisp.org>
84254
84255         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84256         func_modules_to_filelist, func_import, func_create_testdir): Make all
84257         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84258         change when gnulib-tool is invoked in a different locale.
84259
84260 2005-09-19  Simon Josefsson  <jas@extundo.com>
84261
84262         * m4/socklen.m4: Fix typo.
84263
84264 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84265
84266         Use a consistent style for including <config.h>.
84267         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84268         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84269         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84270         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84271         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84272         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84273         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84274         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84275         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84276         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84277         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84278         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84279         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84280         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84281         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84282         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84283         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84284         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84285         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84286         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84287         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84288         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84289         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84290         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84291         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84292         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84293         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84294         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84295         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84296         lib/xstrtoumax.c, lib/yesno.c:
84297         Standardize inclusion of config.h.
84298         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84299         lib/inttostr.h:  Removed inclusion of config.h from header files.
84300         * lib/inttostr.c:  Adjusted in-tree users.
84301         * lib/timespec.h: Remove superfluous warning to include config.h.
84302         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84303         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84304         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84305         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84306         config.h with HAVE_CONFIG_H.
84307
84308 2005-09-19  Jim Meyering  <jim@meyering.net>
84309
84310         * modules/pathmax (License): Change to LGPL.
84311
84312 2005-09-19  Derek Price  <derek@ximbiot.com>
84313
84314         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84315
84316 2005-09-19  Bruno Haible  <bruno@clisp.org>
84317
84318         * gnulib-tool (import): Provide default for --tests-base.
84319
84320 2005-09-19  Bruno Haible  <bruno@clisp.org>
84321
84322         * doc/quote.texi: New file, extracted from gnulib.texi.
84323         * doc/ctime.texi: New file, extracted from gnulib.texi.
84324         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84325         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84326         * doc/gnulib.texi: Include them.
84327
84328 2005-09-18  Bruno Haible  <bruno@clisp.org>
84329
84330         Portability fix.
84331         * gnulib-tool (func_readlink): New function.
84332         (func_ln_if_changed): Use it.
84333
84334 2005-09-18  Bruno Haible  <bruno@clisp.org>
84335
84336         * gnulib-tool: Support --with-tests also with --import.
84337         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84338         (func_import): Use variables $testsbase and $inctests. Emit a
84339         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84340         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84341         SUBDIRS += $testsdir.
84342         (func_create_testdir): Update.
84343
84344 2005-09-18  Bruno Haible  <bruno@clisp.org>
84345
84346         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84347         instead of $dry_run.
84348         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84349         (func_ln_if_changed): Don't handle dry-run here.
84350         (func_import): In dry-run mode, detect more precisely which actions
84351         would be performed, and don't use "...ing" verbs.
84352
84353 2005-09-18  Bruno Haible  <bruno@clisp.org>
84354
84355         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84356         (func_import): Use join on two temporary files instead of three nested
84357         loops, in order to determine which files are new or old.
84358
84359 2005-09-18  Bruno Haible  <bruno@clisp.org>
84360
84361         * gnulib-tool (func_import): Comment out code that spits out the
84362         new files with --dry-run.
84363
84364 2005-09-18  Bruno Haible  <bruno@clisp.org>
84365
84366         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84367
84368 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84369
84370         * lib/stat-time.h: New file.
84371         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84372         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84373         in a different way.
84374         (timespec_cmp): New function.
84375         * lib/utimecmp.c: Include stat-time.h.
84376         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84377         members exist, not on the obsolescent ST_MTIM_NSEC.
84378         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84379
84380 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84381
84382         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84383
84384 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84385
84386         * MODULES.html.sh (File system functions): Add stat-time.
84387         * modules/stat-time: New file.
84388         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84389         is now done in a different way, by the stat-time module.
84390         * modules/utimecmp (Depends-on): Add stat-time.
84391
84392 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84393
84394         * m4/st_mtim.m4: Remove.  Superseded by...
84395         * m4/stat-time.m4: New file.
84396         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84397         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84398
84399 2005-09-15  Derek Price  <derek@ximbiot.com>
84400
84401         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84402
84403 2005-09-15  Derek Price  <derek@ximbiot.com>
84404
84405         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84406         * lib/regex_internal.c: Ditto, using this...
84407         (__GNUC_PREREQ): ...new macro.
84408         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84409         using...
84410         (__GNUC_PREREQ): ...this new macro.
84411
84412         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84413
84414 2005-09-15  Derek Price  <derek@ximbiot.com>
84415             Paul Eggert  <eggert@cs.ucla.edu>
84416
84417         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84418         changes, consolidating in...
84419         * lib/regex_internal.h: ...this file.
84420
84421 2005-09-13  Jim Meyering  <jim@meyering.net>
84422
84423         * lib/canon-host.c: Filter through gnu indent and reword comments
84424         slightly.
84425         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84426
84427 2005-09-13  Derek Price  <derek@ximbiot.com>
84428
84429         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84430         failure.
84431         Reported by Jim Meyering  <jim@meyering.net>.
84432
84433 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84434
84435         * lib/base64.c: Typo.
84436         (base64_encode): Put b64str in initialized data section.
84437
84438 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84439
84440         Merge glibc and coreutils changes into gnulib, plus a few
84441         extra fixes.
84442         * lib/md5.c: Use #error rather than a string.
84443         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84444         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84445         (__attribute__): Define to empty for non recent-GCC.
84446         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84447         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84448         Renamed from their non-__ counterparts, with new macros replacing
84449         them if not _LIBC.  Add __THROW attribute.
84450         (rol): Remove.
84451         (struct md5_ctx): Align buffer if using GCC.
84452         * lib/sha1.h (struct sha1_ctx): Likewise.
84453         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84454         The old name was backwards.
84455         (NOTSWAP): Remove; not used.
84456         (rol): New macro, moved here from md5.h.
84457         (sha1_process_block): Remove a FIXME that doesn't make sense.
84458
84459 2005-09-12  Derek Price  <derek@ximbiot.com>
84460
84461         Return usable errors from canon-host.
84462         * lib/canon-host.h: New file.
84463         * lib/canon-host.c (canon_host): Wrap...
84464         (canon_host_r): ...this new function, which now relies exclusively on
84465         getaddrinfo.
84466         (ch_strerror): New function.
84467         (last_cherror): New global.
84468         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84469         interface.
84470         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84471         void *.
84472         (freeaddrinfo): Free ai->ai_canonname when set.
84473
84474 2005-09-12  Derek Price  <derek@ximbiot.com>
84475
84476         Make canon-host require getaddrinfo.
84477         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84478         AC_LIBSOURCE canon-host.h.  Call...
84479         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84480         gl_GETADDRINFO.
84481         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84482
84483 2005-09-12  Derek Price  <derek@ximbiot.com>
84484
84485         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84486         LGPL.
84487         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84488
84489 2005-09-12  Derek Price  <derek@ximbiot.com>
84490
84491         * lib/gai_strerror.c: Include config.h when available.  Include
84492         getaddrinfo.h before other headers to test interface.
84493         Reported by Larry Jones <lawrence.jones@ugs.com>.
84494
84495 2005-09-12  Derek Price  <derek@ximbiot.com>
84496             Paul Eggert  <eggert@cs.ucla.edu>
84497
84498         * modules/glob (Files): Add glob-libc.h.
84499
84500 2005-09-12  Derek Price  <derek@ximbiot.com>
84501             Paul Eggert  <eggert@cs.ucla.edu>
84502
84503         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84504         glob_.h, glob-libc.h.
84505         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84506
84507 2005-09-12  Derek Price  <derek@ximbiot.com>
84508             Paul Eggert  <eggert@cs.ucla.edu>
84509
84510         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84511         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84512         protecting things that should be done only in gnulib contexts.
84513         * lib/glob_.h: New file, containing only the glob things needed for
84514         gnulib.
84515         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84516         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84517         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84518         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84519         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84520         and to respect the namespace rules better.
84521
84522 2005-09-08  Simon Josefsson  <jas@extundo.com>
84523
84524         * modules/socklen: New file.
84525
84526 2005-09-08  Simon Josefsson  <jas@extundo.com>
84527
84528         * m4/socklen.m4: New file.
84529
84530 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84531
84532         * modules/utimens (Files): Add m4/utimbuf.m4, since
84533         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84534         Reported by Sergey Poznyakoff.
84535
84536 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84537
84538         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84539         definitions, since that's the preferred style in glibc.
84540         Fix a minor spacing issue, and update copyright notice to match
84541         glibc's.
84542
84543 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84544
84545         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84546
84547 2005-09-06  Simon Josefsson  <jas@extundo.com>
84548
84549         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84550         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84551
84552 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84553
84554         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84555         warning.
84556
84557 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84558
84559         * config/srclist.txt: Add glibc bug 1302.
84560
84561 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84562
84563         Change bitset word type from unsigned int to unsigned long int,
84564         as this has better performance on typical 64-bit hosts.
84565         Port bitset code to hosts with unusual word sizes.
84566         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84567         (build_collating_symbol):
84568         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84569         argument is a bitset.  This is merely a style issue, but it makes
84570         it clearer that an entire array is expected.
84571         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84572         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84573         Port to the case where bitset_word is not the same as unsigned int.
84574         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84575         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84576         Likewise.
84577         * lib/regexec.c (check_dst_limits_calc_pos_1,
84578         check_subexp_matching_top):
84579         (build_trtable, group_nodes_into_DFAstates):
84580         Likewise.
84581         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84582         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84583         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84584         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84585         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84586         * lib/regcomp.c (optimize_subexps, lower_subexp):
84587         Work even if bitset_word has holes in its bitwise representation.
84588         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84589         * lib/regexec.c (check_dst_limits_calc_pos_1,
84590         check_subexp_matching_top):
84591         Likewise.
84592         * lib/regex_internal.c (re_string_reconstruct):
84593         Don't assume UCHAR_MAX == 255.
84594         * lib/regex_internal.h (bitset_set_all): Likewise.
84595         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84596         All uses changed.
84597         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84598         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84599         All uses changed.
84600         (BITSET_WORD_MAX): New macro.
84601         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84602         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84603         (bitset_empty, bitset_copy):
84604         Prefer sizeof (bitset) to multiplying it out ourselves.
84605         (bitset_not_merge): Remove; unused.
84606         (bitset_contain): Return bool, not unsigned int with one bit on.
84607         All callers changed.
84608         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84609         alignment than re_node_set; do this by defining a new internal
84610         type struct dests_alloc and using it to allocate memory.
84611
84612 2005-09-05  Bruno Haible  <bruno@clisp.org>
84613
84614         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84615         links.
84616
84617 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84618
84619         * modules/size_max (Makefile.am): Add size_max.h
84620
84621 2005-09-04  Derek Price  <derek@ximbiot.com>
84622
84623         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84624
84625 2005-09-03  Simon Josefsson  <jas@extundo.com>
84626
84627         * gnulib-tool: Fix typo.
84628
84629 2005-09-03  Simon Josefsson  <jas@extundo.com>
84630
84631         * config/srclist.txt: Add glibc bug 1293.
84632
84633 2005-09-03  Derek Price  <derek@ximbiot.com>
84634
84635         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84636         From Larry Jones <lawrence.jones@ugs.com>.
84637
84638 2005-09-02  Simon Josefsson  <jas@extundo.com>
84639
84640         * modules/socklen: New file.
84641
84642 2005-09-02  Simon Josefsson  <jas@extundo.com>
84643
84644         * modules/havelib: New module.
84645
84646         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84647         Use havelib.
84648
84649 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84650
84651         Check for arithmetic overflow when calculating sizes, to prevent
84652         some buffer-overflow issues.  These patches are conservative, in the
84653         sense that when I couldn't determine whether an overflow was possible,
84654         I inserted a run-time check.
84655         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84656         macros.
84657         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84658         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84659         (re_xnrealloc, re_x2nrealloc): New inline functions.
84660         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84661         parse_bracket_exp):
84662         (build_equiv_class, build_charclass): Check for arithmetic overflow
84663         in size expression calculations.
84664         * lib/regex_internal.c (re_string_realloc_buffers):
84665         (build_wcs_upper_buffer, re_node_set_add_intersect):
84666         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84667         (re_dfa_add_node, register_state): Likewise.
84668         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84669         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84670         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84671         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84672
84673 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84674
84675         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84676         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84677
84678 2005-09-02  Bruno Haible  <bruno@clisp.org>
84679
84680         Support for lib vs. lib64 distinction on biarch platforms.
84681         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84682         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84683         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84684
84685 2005-09-02  Bruno Haible  <bruno@clisp.org>
84686
84687         * gnulib-tool (import): In the other first-use case, provide defaults
84688         as well.
84689
84690 2005-09-02  Bruno Haible  <bruno@clisp.org>
84691
84692         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84693         patches not yet found in the latest gettext release.
84694
84695 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84698         to avoid a collision with bits/local_lim.h in glibc.
84699         All uses changed.  Problem reported by Dmitry V. Levin in
84700         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84701
84702         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84703         bugs in int versus size_t comparisons.
84704         (re_string_context_at): Fix bug where the code assumed that
84705         Idx is signed.
84706
84707         Use bool where appropriate.
84708         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84709         All callers changed.
84710         (calc_eclosure_iter): Likewise, for ROOT arg.
84711         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84712         (build_charclass_op): Likewise, for NON_MATCH arg.
84713         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84714         (re_string_construct_common): Likewise, for ICASE arg.
84715         * lib/regexec.c (re_search_2_stub, re_search_stub):
84716         Likewise, for RET_LEN arg.
84717         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84718         (set_regs): Likewise, for FL_BACKTRACK arg.
84719         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84720         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84721         (calc_eclosure_iter, parse_bracket_exp):
84722         Use bool for internal variables that are booleans.
84723         * lib/regexec.c (re_search_internal, check_matching,
84724         proceed_next_node):
84725         (set_regs, build_sifted_states, sift_states_bkref):
84726         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84727         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84728         (find_collation_sequence_value):
84729         Likewise.
84730         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84731         (re_node_set_compare):
84732         Return bool, not int. All callers changed.
84733         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84734         (build_trtable, check_node_accept): Likewise.
84735         * lib/regex_internal.h: Include stdbool.h.
84736
84737         Fix bugs uncovered when converting to bool.
84738         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84739         failure instead of charging ahead blindly.
84740         * lib/regex_internal.c (register_state): Likewise.
84741         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84742         for freeing internal storage.
84743         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84744         bitset pieces used as boolean, to avoid undefined behavior
84745         on hosts that do int overflow checking.
84746
84747 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84748
84749         * config/srclist.txt: Add glibc bugs 1285-1287.
84750
84751 2005-09-01  Jim Meyering  <jim@meyering.net>
84752
84753         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84754         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84755         Require gl_STAT_MACROS, too.
84756
84757 2005-09-01  Bruno Haible  <bruno@clisp.org>
84758
84759         * gnulib-tool (import): In the first-use case, provide defaults.
84760
84761 2005-09-01  Bruno Haible  <bruno@clisp.org>
84762
84763         * gnulib-tool (func_import): Remove the .tmp files.
84764
84765 2005-09-01  Bruno Haible  <bruno@clisp.org>
84766
84767         * gnulib-tool (func_import): Fix handling of symbolic links.
84768
84769 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84770
84771         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84772         old glibc regex code mishandles strings longer than 2**31 bytes.
84773         This patch fixes this when the regex code is used in gnulib
84774         (i.e., outside glibc).
84775
84776         This patch should not affect the use of the regex code inside
84777         glibc.  No doubt this problem also needs to be handled for glibc
84778         as well, but the result will be an incompatible change to the
84779         glibc ABI, and the old ABI will have to be supported too.  That
84780         can be the the subject for another patch.
84781
84782         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84783         governing whether the rest of this patch is active.  By default,
84784         the macro is disabled and the patch has no effect.
84785         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84786         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84787         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84788         (re_match_2, re_set_registers): Use the new types.
84789         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84790         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84791         New macros.
84792         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84793         (re_string_context_at, bin_tree_t, re_dfastate_t):
84794         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84795         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84796         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84797         (re_string_char_size_at, re_string_wchar_at):
84798         (re_string_elem_size_at):
84799         Use the new types and macros to port to 64-bit hosts.
84800         Use unsigned types for internal values, so that the code
84801         mostly works even for arrays larger than SSIZE_MAX.
84802         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84803         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84804         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84805         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84806         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84807         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84808         (calc_inveclosure, parse_dup_op, build_range_exp):
84809         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84810         (fetch_number, create_token_tree, mark_opt_subexp):
84811         Likewise.
84812         * lib/regex_internal.c (re_string_construct_common,
84813         create_ci_newstate):
84814         (create_cd_newstate, re_string_allocate, re_string_construct):
84815         (re_string_realloc_buffers, build_wcs_upper_buffer):
84816         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84817         (re_string_reconstruct, re_string_peek_byte_case):
84818         (re_string_fetch_byte_case, re_string_context_at):
84819         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84820         (re_node_set_init_copy, re_node_set_add_intersect):
84821         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84822         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84823         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84824         (re_acquire_state, re_acquire_state_context, register_state):
84825         Likewise.
84826         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84827         search_cur_bkref_entry):
84828         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84829         (re_search_internal, re_search_2_stub, re_search_stub)
84830         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84831         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84832         (update_cur_sifted_state, check_dst_limits):
84833         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84834         (check_subexp_limits, sift_states_bkref, merge_state_array):
84835         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84836         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84837         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84838         (expand_bkref_cache, check_node_accept_bytes):
84839         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84840         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84841         (acquire_init_state_context, check_halt_node_context):
84842         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84843         (sift_states_backward, clean_state_log_if_needed):
84844         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84845         (find_recover_state, transit_state_sb, transit_state_mb):
84846         (transit_state_bkref, build_trtable, match_ctx_clean):
84847         Likewise.
84848         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84849         to work around an assumption that REG_MISSING is negative.
84850
84851         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84852         (seek_collating_symbol_entry) [defined _LIBC]:
84853         (lookup_collation_sequence_value) [defined _LIBC]:
84854         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84855         Use prototypes rather than old-style function definitions.
84856         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84857         (transit_state_sb) [0]:
84858         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84859
84860         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84861         rm_eo.
84862
84863         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84864         (optimize_subexps, lower_subexp):
84865         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84866         since the signed shift might overflow.  Use 1u<<31 instead.
84867         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84868         Likewise.
84869         * lib/regexec.c (check_dst_limits_calc_pos_1,
84870         check_subexp_matching_top): Likewise.
84871
84872         * lib/regcomp.c (optimize_subexps, lower_subexp):
84873         Use CHAR_BIT rather than 8, for clarity.
84874         * lib/regexec.c (check_dst_limits_calc_pos_1):
84875         (check_subexp_matching_top): Likewise.
84876         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84877         have to worry about portability issues when shifting it left.
84878         Remove no-longer-needed test for table_size > 0.
84879         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84880         in a word, as the resulting behavior is undefined.
84881         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84882         in one case, a <= should have been an <, and in another case the
84883         whole test was missing.
84884         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84885         the standard name CHAR_BIT.
84886         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84887         this is not true on one's complement and signed-magnitude hosts.
84888
84889         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84890         next_last_offset.
84891         (struct re_dfa_t): Remove unused member states_alloc.
84892         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84893
84894 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84895
84896         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84897         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84898         and large-file glibc and in 32-bit large-file Solaris.
84899
84900 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84901
84902         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84903         lengths fit in regoff_t; this isn't true if regoff_t is the same
84904         width as size_t.
84905         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84906         (= START + RANGE) instead of RANGE.  This avoids overflow
84907         problems when regoff_t is the same width as size_t.
84908         All callers changed.
84909         (re_search_2_stub): Check for overflow when adding the
84910         sizes of the two strings.
84911         (re_search_stub): Check for overflow when adding START
84912         to RANGE; if it occurs, substitute the extreme value.
84913
84914 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84915
84916         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84917
84918 2005-08-31  Jim Meyering  <jim@meyering.net>
84919
84920         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84921         a pointer-to-const.
84922         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84923         (register_state): Likewise.
84924         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84925         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84926         (group_nodes_into_DFAstates): Likewise.
84927
84928 2005-08-31  Jim Meyering  <jim@meyering.net>
84929
84930         * check-module: Add a FIXME comment.
84931
84932 2005-08-31  Eric Blake  <ebb9@byu.net>
84933
84934         * modules/unistd-safer (Files): Add unistd--.h.
84935         * modules/stdio-safer (Files): Add stdio--.h.
84936
84937 2005-08-31  Derek Price  <derek@ximbiot.com>
84938
84939         * lib/getdelim.c (getdelim): Return EOF on EOF.
84940         Reported by Larry Jones <lawrence.jones@ugs.com>.
84941
84942 2005-08-31  Bruno Haible  <bruno@clisp.org>
84943
84944         Avoid unnecessary diffs in the generated lib/Makefile.am.
84945         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84946         the generated files.
84947         (func_import): Don't set cmd.
84948
84949 2005-08-31  Bruno Haible  <bruno@clisp.org>
84950
84951         * lib/strstr.c: Include <stddef.h>, for NULL.
84952         * lib/strcasestr.c: Likewise.
84953         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84954
84955 2005-08-31  Bruno Haible  <bruno@clisp.org>
84956
84957         * gnulib-tool: New option --macro-prefix.
84958         (func_import): Use macro_prefix.
84959         (import): Handle option --macro-prefix.
84960
84961 2005-08-31  Bruno Haible  <bruno@clisp.org>
84962
84963         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84964         Also use new variables cached_lgpl, cached_libtool.
84965
84966 2005-08-31  Bruno Haible  <bruno@clisp.org>
84967
84968         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84969         always instantiating them.
84970
84971 2005-08-31  Bruno Haible  <bruno@clisp.org>
84972
84973         * gnulib-tool (func_import): Read the previous cached settings
84974         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84975         earlier added by gnulib but are now dropped. Warn when a gnulib file
84976         overwrites a non-gnulib file.
84977
84978 2005-08-31  Bruno Haible  <bruno@clisp.org>
84979
84980         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84981         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84982         projects that don't keep autogenerated files in CVS. Put into
84983         actioncmd only the specified modules, not the transitive closure.
84984
84985 2005-08-31  Bruno Haible  <bruno@clisp.org>
84986
84987         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84988         Create directories that shall be filled.
84989         (import): Don't look for gl_* macros in configure.ac. Recurse across
84990         all directories containing a gnulib-cache.m4 files, if meaningful.
84991
84992 2005-08-31  Bruno Haible  <bruno@clisp.org>
84993
84994         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84995         (import): Set seen_libtool when we see gl_LIBTOOL.
84996
84997 2005-08-31  Bruno Haible  <bruno@clisp.org>
84998
84999         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85000         declaration macro definitions from generated gnulib.m4.
85001
85002 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85003
85004         * lib/iconvme.h: Add prototype for iconv_alloc.
85005
85006 2005-08-29  Simon Josefsson  <jas@extundo.com>
85007
85008         * lib/iconvme.c: Fix errno.
85009
85010 2005-08-29  Bruno Haible  <bruno@clisp.org>
85011
85012         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85013         that it works when the directory contains spaces.
85014
85015 2005-08-29  Bruno Haible  <bruno@clisp.org>
85016
85017         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85018
85019 2005-08-29  Bruno Haible  <bruno@clisp.org>
85020
85021         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85022         Emit more advice.
85023
85024 2005-08-29  Bruno Haible  <bruno@clisp.org>
85025         and Stepan Kasal  <kasal@ucw.cz>
85026
85027         * check-module: If more parameters are given, check each of them
85028         separately; add more exceptions, as noted by Jim Meyering.
85029         (check_module): New procedure.
85030         (%exempt_header): Now contains all exceptions.
85031
85032 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85033
85034         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85035
85036 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85037
85038         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85039
85040 2005-08-28  Bruno Haible  <bruno@clisp.org>
85041
85042         * m4/gnulib-tool.m4: New file.
85043
85044 2005-08-27  Jim Meyering  <jim@meyering.net>
85045
85046         * modules/unistd-safer (Files): Add pipe-safer.c.
85047         * modules/fcntl-safer (Files): Add creat-safer.c.
85048
85049 2005-08-27  Jim Meyering  <jim@meyering.net>
85050
85051         * m4/stdlib-safer.m4: New file.  From coreutils.
85052         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85053         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85054         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85055         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85056         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85057
85058 2005-08-27  Jim Meyering  <jim@meyering.net>
85059
85060         * lib/fopen-safer.c: Merge minor changes from coreutils.
85061         * lib/dup-safer.c: Likewise.
85062         * lib/fd-safer.c: Likewise.
85063
85064         Merge from coreutils.
85065         * lib/stdio--.h: New file.
85066         * lib/stdlib--.h: New file.
85067         * lib/mkstemp-safer.c: New file.
85068
85069         GNU tar needs these.
85070         * lib/pipe-safer.c: New file.
85071         * lib/creat-safer.c: New file.
85072         * lib/fcntl--.h (creat): Define to creat_safer.
85073         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85074         * lib/unistd--.h (pipe): Define to pipe_safer.
85075         * lib/unistd-safer.h: Declare pipe_safer.
85076
85077 2005-08-26  Simon Josefsson  <jas@extundo.com>
85078
85079         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85080         Haible <bruno@clisp.org>.
85081
85082 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85083
85084         * lib/regex_internal.h: Remove all references to
85085         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85086         or better.
85087         (bitset_not, bitset_merge, bitset_not_merge):
85088         (bitset_mask, re_string_allocate, re_string_construct):
85089         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85090         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85091         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85092         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85093         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85094         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85095         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85096         (re_acquire_state_context):
85097         Remove unnecessary forward decls.
85098         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85099         Put __attribute at function definition,
85100         now that the function decl has been removed.
85101         * lib/regex_internal.c (re_string_peek_byte_case):
85102         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85103         Likewise.
85104
85105 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85106
85107         * m4/regex.m4: Add AC_PREREQ(2.50).
85108         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85109
85110 2005-08-25  Simon Josefsson  <jas@extundo.com>
85111
85112         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85113         __fsetlocking.
85114
85115 2005-08-25  Simon Josefsson  <jas@extundo.com>
85116
85117         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85118         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85119         GLIBC specific code.
85120
85121 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85122
85123         Make regex safe for g++.  This fixes one real bug (an "err"
85124         that should have been "*err").  g++ problem reported by
85125         Sam Steingold.
85126         * lib/regex_internal.h (re_calloc): New macro, consistent with
85127         re_malloc etc.  All callers of calloc changed to use re_calloc.
85128         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85129         not int.  All callers changed.
85130         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85131         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85132         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85133         (find_recover_state): Change "err" to "*err"; this fixes what
85134         appears to be a real bug.
85135         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85136         versus int.
85137
85138 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85139
85140         * modules/regex (Depends-on): Add malloc, since the code
85141         assumes that !malloc(0) means failure.
85142
85143 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85144
85145         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85146
85147         alloca modernization/simplification for regex.
85148         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85149         needs to be at the start of the file, and can be moved into
85150         regex_internal.h and simplified.
85151         * lib/regex_internal.h: Include <alloca.h>.
85152         (__libc_use_alloca) [!defined _LIBC]: New macro.
85153         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85154         now works outside glibc.
85155
85156 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85157
85158         * config/srclist.txt: Add glibc bugs 1241, 1245.
85159
85160 2005-08-25  Jim Meyering  <jim@meyering.net>
85161
85162         * lib/open-safer.c: Include <config.h>.
85163         Otherwise, we'd lose LARGEFILE support in any file using
85164         e.g. "fcntl--.h"
85165
85166 2005-08-25  Bruno Haible  <bruno@clisp.org>
85167
85168         * m4/minmax.m4: Require autoconf 2.52.
85169         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85170         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85171         alternatives of translit over the alphabet.
85172         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85173
85174 2005-08-24  Simon Josefsson  <jas@extundo.com>
85175
85176         * tests/test-getpass.c: New file.
85177
85178 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85179
85180         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85181         for GNU regex features.
85182
85183 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85184
85185         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85186         * lib/regex.h (regerror): Likewise.
85187
85188         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85189         requires this.  (The code never needed it.)
85190
85191         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85192         All uses of recently-renamed identifiers changed to use the new,
85193         POSIX-compliant names.  The code will build and run just fine
85194         without these changes, but it's better to eat our own dog food
85195         and use the standard-conforming names.
85196
85197         * lib/regex.h: Fix a multitude of POSIX name space violations.
85198         These changes have an effect only for programs that define
85199         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85200         do not change anything for programs compiled in the normal way.
85201         Also, there is no effect on the ABI.
85202
85203         (_REGEX_SOURCE): New macro.
85204         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85205         defined and _GNU_SOURCE is not; this fixes a name space violation.
85206
85207         Rename the following macros to obey POSIX requirements.
85208         The old names are still visible as macros if _REGEX_SOURCE is defined.
85209         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85210         RE_BACKSLASH_ESCAPE_IN_LISTS.
85211         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85212         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85213         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85214         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85215         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85216         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85217         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85218         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85219         (REG_INTERVALS): renamed from RE_INTERVALS.
85220         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85221         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85222         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85223         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85224         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85225         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85226         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85227         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85228         RE_UNMATCHED_RIGHT_PAREN_ORD.
85229         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85230         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85231         (REG_DEBUG): renamed from RE_DEBUG.
85232         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85233         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85234         unusual, since we can't clash with the POSIX REG_ICASE.
85235         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85236         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85237         (REG_NO_SUB): renamed from RE_NO_SUB.
85238         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85239         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85240         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85241         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85242         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85243         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85244         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85245         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85246         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85247         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85248         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85249         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85250         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85251         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85252         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85253         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85254         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85255         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85256         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85257         (REG_FIXED): Renamed from REGS_FIXED.
85258         (REG_NREGS): Renamed from RE_NREGS.
85259
85260         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85261         of other REG_* macros, since POSIX says the user is allowed to
85262         #undef these macros selectively.
85263
85264         (reg_errcode_t): Update comment stating what other tables need
85265         to be consistent.
85266
85267         Rename the following enum values to obey POSIX requirements.
85268         The old names are still visible as macros.
85269         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85270         is not defined, since GNU is supposed to be a superset of POSIX as
85271         much as possible, and since we want reg_errcode_t to be a signed
85272         type for implementation consistency.
85273         (_REG_NOERROR): Renamed from REG_NOERROR.
85274         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85275         (_REG_BADPAT): Renamed from REG_BADPAT.
85276         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85277         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85278         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85279         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85280         (_REG_EBRACK): Renamed from REG_EBRACK.
85281         (_REG_EPAREN): Renamed from REG_EPAREN.
85282         (_REG_EBRACE): Renamed from REG_EBRACE.
85283         (_REG_BADBR): Renamed from REG_BADBR.
85284         (_REG_ERANGE): Renamed from REG_ERANGE.
85285         (_REG_ESPACE): Renamed from REG_ESPACE.
85286         (_REG_BADRPT): Renamed from REG_BADRPT.
85287         (_REG_EEND): Renamed from REG_EEND.
85288         (_REG_ESIZE): Renamed from REG_ESIZE.
85289         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85290         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85291         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85292         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85293         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85294
85295         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85296         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85297         changed.  But support the old name if the new one is not defined
85298         and if _REGEX_SOURCE.
85299
85300         Change the following member names in struct re_pattern_buffer.
85301         The old names are still supported if !_REGEX_SOURCE.
85302         The new names are always supported, regardless of _REGEX_SOURCE.
85303         (re_buffer): Renamed from buffer.
85304         (re_allocated): Renamed from allocated.
85305         (re_used): Renamed from used.
85306         (re_syntax): Renamed from syntax.
85307         (re_fastmap): Renamed from fastmap.
85308         (re_translate): Renamed from translate.
85309         (re_can_be_null): Renamed from can_be_null.
85310         (re_regs_allocated): Renamed from regs_allocated.
85311         (re_fastmap_accurate): Renamed from fastmap_accurate.
85312         (re_no_sub): Renamed from no_sub.
85313         (re_not_bol): Renamed from not_bol.
85314         (re_not_eol): Renamed from not_eol.
85315         (re_newline_anchor): Renamed from newline_anchor.
85316
85317         Change the following member names in struct re_registers.
85318         The old names are still supported if !_REGEX_SOURCE.
85319         The new names are always supported, regardless of _REGEX_SOURCE.
85320         (rm_num_regs): Renamed from num_regs.
85321         (rm_start): Renamed from start.
85322         (rm_end): Renamed from end.
85323
85324         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85325         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85326         Prepend __ to parameter names.
85327
85328         Undo yesterday's changes.
85329
85330 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85331
85332         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85333         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85334         lib/regex.c.
85335
85336 2005-08-24  Jim Meyering  <jim@meyering.net>
85337
85338         Sync from coreutils.
85339         * m4/fcntl-safer.m4: New file.
85340
85341         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85342         and object files for this module.
85343
85344 2005-08-24  Jim Meyering  <jim@meyering.net>
85345
85346         Sync from coreutils.
85347         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85348
85349 2005-08-24  Jim Meyering  <jim@meyering.net>
85350
85351         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85352         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85353
85354 2005-08-24  Jim Meyering  <jim@meyering.net>
85355
85356         * modules/fcntl-safer: New module.
85357         * modules/fts (Depends-on): Add fcntl-safer.
85358         * MODULES.html.sh (File descriptor based Input/Output):
85359         Add fcntl-safer.
85360
85361 2005-08-24  Bruno Haible  <bruno@clisp.org>
85362
85363         Support for unit test modules.
85364         * modules/README: Mention tests modules.
85365         * modules/TEMPLATE-TESTS: New file.
85366         * gnulib-tool: New options --extract-tests-module, --with-tests and
85367         --tests-base (unused for the moment).
85368         (testsbase, inctests): New variables.
85369         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85370         (func_verify_module): Exclude TEMPLATE-TESTS.
85371         (func_verify_nontests_module, func_verify_tests_module): New functions.
85372         (func_get_dependencies): Add implicit dependency for tests modules.
85373         (func_get_tests_module): New function.
85374         (func_modules_transitive_closure): When --with-tests was specified,
85375         include the unit tests as well, unless explicitly avoided.
85376         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85377         (func_emit_tests_Makefile_am): New function.
85378         (func_create_testdir): When --with-tests was specified, emit a
85379         tests/ directory.
85380         * MODULES.html.sh (Future developments): Update.
85381
85382 2005-08-24  Bruno Haible  <bruno@clisp.org>
85383
85384         * modules/tls-tests: New file.
85385         * tests/test-tls.c: New file, from GNU gettext.
85386
85387 2005-08-24  Bruno Haible  <bruno@clisp.org>
85388
85389         * modules/lock-tests: New file.
85390         * tests/test-lock.c: New file, from GNU gettext.
85391
85392 2005-08-24  Bruno Haible  <bruno@clisp.org>
85393
85394         * lib/lock.h: Add multiple inclusion guard.
85395         * lib/tls.h: Add multiple inclusion guard.
85396
85397 2005-08-24  Bruno Haible  <bruno@clisp.org>
85398
85399         * gnulib-tool: Add support for the --aux-dir option to
85400         --create-testdir, --create-megatestdir, --test, --megatest.
85401         (func_create_testdir, func_create_megatestdir): Optionally emit a
85402         AC_CONFIG_AUX_DIR directive.
85403         (create-testdir, create-megatestdir, test, megatest): Provide a
85404         default value for $auxdir.
85405
85406 2005-08-24  Bruno Haible  <bruno@clisp.org>
85407
85408         * gnulib-tool (import): Use compound statement instead of subshell
85409         where possible.
85410
85411 2005-08-24  Bruno Haible  <bruno@clisp.org>
85412
85413         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85414
85415 2005-08-24  Bruno Haible  <bruno@clisp.org>
85416
85417         * gnulib-tool (func_version): Update.
85418
85419 2005-08-24  Bruno Haible  <bruno@clisp.org>
85420
85421         * gnulib-tool (func_import, func_create_testdir,
85422         func_create_megatestdir): Quote all autoconf macro arguments.
85423
85424 2005-08-24  Bruno Haible  <bruno@clisp.org>
85425
85426         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85427         option --force, because --force causes the aclocal.m4 of each
85428         subdirectory to be newer than the corresponding config.h.in.
85429
85430 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85431
85432         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85433         All contents moved to gl_REGEX.
85434         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85435         assume that it does.
85436
85437 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85438
85439         * lib/regex.h (REG_NOSYS)
85440         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85441         Define, since POSIX requires it as of 2001.
85442         (_REG_ENOSYS)
85443         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85444         New private symbol, used to keep the enum signed in all cases.
85445         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85446         Youngman in
85447         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85448
85449         * lib/regex_internal.c (re_string_skip_chars, register_state):
85450         (calc_state_hash):
85451         Remove forward decls; no longer needed now that we use prototypes.
85452         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85453         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85454         (clean_state_log_if_needed): Likewise.
85455
85456 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85457
85458         * config/srclist.txt: Add glibc bugs 1231-1233.
85459
85460 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85461
85462         Fix problems reported by Sam Steingold in
85463         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85464         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85465         assumed that reg_errcode_t is a signed type, which is not
85466         necessarily true if _XOPEN_SOURCE is not defined.
85467         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85468         since some compilers warn about it otherwise.
85469
85470 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85471
85472         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85473         (init_word_char, create_initial_state, duplicate_node_closure):
85474         (fetch_token, peek_token_bracket, build_range_exp):
85475         (build_collating_symbol): Remove forward decls; no longer needed
85476         now that we use prototypes.
85477
85478         * lib/regcomp.c:
85479         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85480         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85481         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85482         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85483         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85484         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85485         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85486         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85487         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85488         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85489         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85490         (build_charclass, build_charclass_op, fetch_number, create_tree):
85491         (create_token_tree, mark_opt_subexp, duplicate_tree):
85492         Use prototypes rather than old-style definitions.
85493
85494         * lib/regex_internal.c:
85495         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85496         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85497         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85498         (re_string_reconstruct, re_string_peek_byte_case):
85499         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85500         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85501         (re_node_set_init_copy, re_node_set_add_intersect):
85502         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85503         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85504         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85505         (re_acquire_state, re_acquire_state_context, register_state):
85506         (create_ci_newstate, create_cd_newstate, free_state):
85507         Likewise.
85508         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85509         re_search_2):
85510         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85511         (re_search_internal, prune_impossible_nodes):
85512         (acquire_init_state_context, check_matching, static):
85513         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85514         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85515         (update_regs, sift_states_backward, build_sifted_states):
85516         (clean_state_log_if_needed, merge_state_array):
85517         (update_cur_sifted_state, add_epsilon_src_nodes):
85518         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85519         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85520         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85521         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85522         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85523         (check_arrival, check_arrival_add_next_nodes):
85524         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85525         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85526         (check_node_accept_bytes, check_node_accept, extend_buffers):
85527         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85528         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85529         (sift_ctx_init):
85530         Likewise.
85531
85532         * lib/regex_internal.h:
85533         (re_string_allocate, re_string_construct, re_string_reconstruct):
85534         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85535         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85536         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85537         (re_string_context_at, re_string_peek_byte_case):
85538         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85539         is defined, since we now use prototypes always.
85540
85541         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85542         C89 or better.  All uses removed.
85543
85544 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85545
85546         * config/srclist.txt: Add glibc bugs 1220-1227.
85547
85548 2005-08-20  Jim Meyering  <jim@meyering.net>
85549
85550         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85551         of unused local, dfa.
85552
85553 2005-08-20  Bruno Haible  <bruno@clisp.org>
85554
85555         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85556
85557 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85558
85559         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85560         (re_node_set_insert_last, re_dfa_add_node):
85561         Rename local variables to avoid GCC shadowing warnings.
85562
85563 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85564
85565         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85566         [defined lint]: Suppress bogus uninitialized-variable warnings.
85567
85568         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85569         and let the caller return REG_ESPACE if out of space.  This
85570         removes an uninitialied-variable warning with GCC 4.0.1, and also
85571         avoids taking the address of a local variable.  All callers
85572         changed.
85573
85574 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85575
85576         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85577         $LIBCSRC/posix/regexec.c.
85578         Add glibc bug 1217 for regcomp.c.
85579
85580 2005-08-19  Jim Meyering  <jim@meyering.net>
85581
85582         * lib/regexec.c (proceed_next_node): Redo local variables to
85583         avoid GCC shadowing warnings.
85584
85585 2005-08-18  Bruno Haible  <bruno@clisp.org>
85586
85587         * lib/strstr.c (strstr): Fix return value in multibyte case.
85588         * lib/strcasestr.c (strcasestr): Likewise.
85589
85590 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85591
85592         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85593
85594 2005-08-17  Jim Meyering  <jim@meyering.net>
85595
85596         Make the %s format (seconds since the epoch) work for a negative
85597         number and when used with a zero-padded field width, e.g. %015s.
85598
85599         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85600         label so that it precedes the code to set `digits'.  Otherwise,
85601         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85602         print `00-22'.  Now, it prints `-0022', as it should.
85603
85604 2005-08-17  Bruno Haible  <bruno@clisp.org>
85605
85606         * modules/strstr (Files): Add m4/mbrtowc.m4.
85607         (Depends-on): Add mbuiter.
85608
85609 2005-08-17  Bruno Haible  <bruno@clisp.org>
85610
85611         * modules/strcasestr: New file.
85612         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85613         strcasestr.
85614
85615 2005-08-17  Bruno Haible  <bruno@clisp.org>
85616
85617         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85618
85619 2005-08-17  Bruno Haible  <bruno@clisp.org>
85620
85621         * modules/mbuiter: New file.
85622         * MODULES.html.sh (Extended multibyte and wide character utilities):
85623         Add mbuiter.
85624
85625 2005-08-17  Bruno Haible  <bruno@clisp.org>
85626
85627         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85628         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85629
85630 2005-08-17  Bruno Haible  <bruno@clisp.org>
85631
85632         * m4/strcasestr.m4: New file.
85633
85634 2005-08-17  Bruno Haible  <bruno@clisp.org>
85635
85636         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85637         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85638
85639 2005-08-17  Bruno Haible  <bruno@clisp.org>
85640
85641         * lib/strcasestr.h: New file.
85642         * lib/strcasestr.c: New file.
85643
85644 2005-08-17  Bruno Haible  <bruno@clisp.org>
85645
85646         * lib/strcasecmp.c: Use mbuiter.h.
85647
85648 2005-08-17  Bruno Haible  <bruno@clisp.org>
85649
85650         * lib/mbuiter.h: New file.
85651
85652 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85653
85654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85655         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85656         and gl_GETOPT are both invoked via different paths (as happens
85657         with GNU tar CVS because it uses both argp and getopt), the former
85658         wins.
85659
85660 2005-08-16  Bruno Haible  <bruno@clisp.org>
85661
85662         * modules/tls: New file.
85663         * MODULES.html.sh (Multithreading): Add tls.
85664
85665 2005-08-16  Bruno Haible  <bruno@clisp.org>
85666
85667         * modules/strnlen1: New file.
85668         * MODULES.html.sh (String handling): Add strnlen1.
85669
85670 2005-08-16  Bruno Haible  <bruno@clisp.org>
85671
85672         * modules/strcase (Files): Add m4/mbrtowc.m4.
85673         (Depends-on): Add strnlen1, mbchar.
85674
85675 2005-08-16  Bruno Haible  <bruno@clisp.org>
85676
85677         * modules/mbiter: New file.
85678         * MODULES.html.sh (Extended multibyte and wide character utilities):
85679         Add mbiter.
85680
85681 2005-08-16  Bruno Haible  <bruno@clisp.org>
85682
85683         * modules/mbfile: New file.
85684         * MODULES.html.sh (Extended multibyte and wide character utilities):
85685         Add mbfile.
85686
85687 2005-08-16  Bruno Haible  <bruno@clisp.org>
85688
85689         * modules/mbchar: New file.
85690         * MODULES.html.sh (Extended multibyte and wide character utilities):
85691         New section.
85692
85693 2005-08-16  Bruno Haible  <bruno@clisp.org>
85694
85695         * m4/tls.m4: New file, from GNU gettext.
85696
85697 2005-08-16  Bruno Haible  <bruno@clisp.org>
85698
85699         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85700         always.
85701         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85702
85703 2005-08-16  Bruno Haible  <bruno@clisp.org>
85704
85705         * m4/mbiter.m4: New file.
85706
85707 2005-08-16  Bruno Haible  <bruno@clisp.org>
85708
85709         * m4/mbfile.m4: New file.
85710
85711 2005-08-16  Bruno Haible  <bruno@clisp.org>
85712
85713         * m4/mbchar.m4: New file.
85714
85715 2005-08-16  Bruno Haible  <bruno@clisp.org>
85716
85717         * lib/tls.h: New file, from GNU gettext.
85718         * lib/tls.c: New file, from GNU gettext.
85719
85720 2005-08-16  Bruno Haible  <bruno@clisp.org>
85721
85722         * lib/strnlen1.h: New file.
85723         * lib/strnlen1.c: New file.
85724
85725 2005-08-16  Bruno Haible  <bruno@clisp.org>
85726
85727         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85728         (mbi_init): Update.
85729         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85730         NUL byte, not after it.
85731
85732 2005-08-16  Bruno Haible  <bruno@clisp.org>
85733
85734         * lib/strcase.h (strcasecmp): Add note in comments.
85735         * lib/strncasecmp.c: Use code from strcasecmp.c.
85736         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85737         (strcasecmp): Work correctly in multibyte locales.
85738
85739 2005-08-16  Bruno Haible  <bruno@clisp.org>
85740
85741         * lib/mbiter.h: New file.
85742
85743 2005-08-16  Bruno Haible  <bruno@clisp.org>
85744
85745         * lib/mbfile.h: New file.
85746
85747 2005-08-16  Bruno Haible  <bruno@clisp.org>
85748
85749         * lib/mbchar.h: New file.
85750         * lib/mbchar.c: New file.
85751
85752 2005-08-16  Bruno Haible  <bruno@clisp.org>
85753
85754         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85755         the valid ones. Makes the comparison operations transitive:
85756         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85757         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85758
85759 2005-08-15  Simon Josefsson  <jas@extundo.com>
85760
85761         * modules/ssize_t (License): Change to 'unlimited'.
85762
85763         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85764
85765 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85766
85767         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85768         Add comments for each pending glibc patch.
85769
85770 2005-08-15  Bruno Haible  <bruno@clisp.org>
85771
85772         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85773         __cplusplus is defined.
85774
85775 2005-08-14  Jim Meyering  <jim@meyering.net>
85776
85777         Sync from coreutils.
85778
85779         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85780         Use the hash-table-based cycle-detection code not just when
85781         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85782         Reported by James Youngman in
85783         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85784         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85785         FTS_TIGHT_CYCLE_CHECK.
85786         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85787         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85788         once again.
85789         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85790         * lib/fts.c (fd_safer): Remove decl.
85791         Include fcntl--.h rather than unistd-safer.h
85792         (fts_safe_changedir): Don't call fd_safer; no longer needed
85793         now that we include fcntl--.h.
85794
85795 2005-08-12  Simon Josefsson  <jas@extundo.com>
85796
85797         * modules/getndelim2: Use ssize_t module.
85798         * modules/getnline: Likewise.
85799         * modules/safe-read: Likewise.
85800         * modules/xreadlink: Likewise.
85801
85802         * modules/ssize_t: New file.
85803
85804 2005-08-12  Simon Josefsson  <jas@extundo.com>
85805
85806         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85807
85808 2005-08-12  Simon Josefsson  <jas@extundo.com>
85809
85810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85811         ssize_t.
85812
85813 2005-08-12  Simon Josefsson  <jas@extundo.com>
85814
85815         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85816         readline, getdelim and check_version.
85817         (Support for systems lacking ISO C 99: Sizes of integer types):
85818         Add size_max.
85819
85820 2005-08-12  Bruno Haible  <bruno@clisp.org>
85821
85822         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85823
85824 2005-08-11  Simon Josefsson  <jas@extundo.com>
85825
85826         * modules/readline: New file.
85827
85828         * modules/strnlen (Files): Add strnlen.h.
85829
85830 2005-08-11  Simon Josefsson  <jas@extundo.com>
85831
85832         * m4/readline.m4: New file.
85833
85834 2005-08-11  Simon Josefsson  <jas@extundo.com>
85835
85836         * lib/readline.h, readline.c: New file.
85837
85838 2005-08-11  Simon Josefsson  <jas@extundo.com>
85839
85840         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85841         gl_AVOID.
85842
85843 2005-08-11  Bruno Haible  <bruno@clisp.org>
85844
85845         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85846
85847 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85848
85849         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85850
85851 2005-08-10  Simon Josefsson  <jas@extundo.com>
85852
85853         * tests/test-iconvme.c: New file.
85854
85855 2005-08-10  Simon Josefsson  <jas@extundo.com>
85856
85857         * m4/strnlen.m4: New file.
85858
85859         * m4/strndup.m4: Don't check for strnlen declaration, done in
85860         strnlen.m4.
85861
85862 2005-08-10  Simon Josefsson  <jas@extundo.com>
85863
85864         * lib/strndup.c: Use strnlen.h.
85865
85866         * lib/strnlen.h: New file.
85867
85868 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85869
85870         * README: Typos.
85871
85872 2005-08-02  Simon Josefsson  <jas@extundo.com>
85873
85874         * modules/readline: New file.
85875
85876 2005-08-02  Simon Josefsson  <jas@extundo.com>
85877
85878         * modules/getdelim: New file.
85879
85880         * modules/getline: Rewrite, don't use getndelim2.
85881
85882 2005-08-02  Simon Josefsson  <jas@extundo.com>
85883
85884         * m4/getline.m4: Separate out getdelim stuff into separate module.
85885
85886         * m4/getdelim.m4: New file.
85887
85888 2005-08-02  Simon Josefsson  <jas@extundo.com>
85889
85890         * lib/getline.h, getline.c: Rewrite.
85891
85892         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85893
85894 2005-07-31  Bruno Haible  <bruno@clisp.org>
85895
85896         * lib/lock.h (gl_lock_initializer): New macro.
85897         (gl_lock_define_initialized): Use it.
85898         (gl_rwlock_initializer): New macro.
85899         (gl_rwlock_define_initialized): Use it.
85900         (gl_recursive_lock_initializer): New macro.
85901         (gl_recursive_lock_define_initialized): Use it.
85902
85903 2005-07-30  Karl Berry  <karl@gnu.org>
85904
85905         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85906         Report from Ben Pfaff, regarding getopt.
85907
85908 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85909
85910         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85911         normal way.
85912         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85913         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85914         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85915         (gl_GETOPT): Use the new macros.  Most of the implementation
85916         is moved to the new macros.  This is for programs like Emacs
85917         that don't want all the functionality of gl_GETOPT.
85918
85919 2005-07-26  Bruno Haible  <bruno@clisp.org>
85920
85921         * m4/lock.m4: Update from GNU gettext.
85922
85923 2005-07-26  Bruno Haible  <bruno@clisp.org>
85924
85925         * lib/lock.h: Update from GNU gettext.
85926         * lib/lock.c: Update from GNU gettext.
85927
85928 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85929
85930         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85931         obsolescent AC_TRY_RUN.  Include the default includes files, for
85932         'exit'.
85933
85934 2005-07-24  Bruno Haible  <bruno@clisp.org>
85935
85936         * modules/visibility: New file.
85937         * MODULES.html.sh (Misc): Add visibility.
85938
85939 2005-07-24  Bruno Haible  <bruno@clisp.org>
85940
85941         * m4/visibility.m4: New file.
85942
85943 2005-07-24  Bruno Haible  <bruno@clisp.org>
85944
85945         * doc/visibility.texi: New file.
85946
85947 2005-07-22  Bruno Haible  <bruno@clisp.org>
85948
85949         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85950         $(ALLOCA_H), redundant through BUILT_SOURCES.
85951         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85952         redundant through BUILT_SOURCES.
85953         * modules/byteswap (Makefile.am): Remove explicit dependency on
85954         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85955         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85956         $(FNMATCH_H), redundant through BUILT_SOURCES.
85957         * modules/getopt (Makefile.am): Remove explicit dependency on
85958         $(GETOPT_H), redundant through BUILT_SOURCES.
85959         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85960         redundant through BUILT_SOURCES.
85961         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85962         redundant through BUILT_SOURCES.
85963         * modules/stdbool (Makefile.am): Remove explicit dependency on
85964         $(STDBOOL_H), redundant through BUILT_SOURCES.
85965         * modules/stdint (Makefile.am): Remove explicit dependency on
85966         $(STDINT_H), redundant through BUILT_SOURCES.
85967         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85968         Remove explicit dependency on $(SYSEXITS_H).
85969         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85970
85971 2005-07-18  Simon Josefsson  <jas@extundo.com>
85972
85973         * lib/check-version.c (check_version): Accept identical versions too.
85974
85975 2005-07-18  Bruno Haible  <bruno@clisp.org>
85976
85977         * modules/lock: New file.
85978         * MODULES.html.sh (Multithreading): New section.
85979
85980 2005-07-18  Bruno Haible  <bruno@clisp.org>
85981
85982         * m4/lock.m4: New file, from GNU gettext.
85983
85984 2005-07-18  Bruno Haible  <bruno@clisp.org>
85985
85986         * lib/lock.h: New file, from GNU gettext.
85987         * lib/lock.c: New file, from GNU gettext.
85988
85989 2005-07-18  Bruno Haible  <bruno@clisp.org>
85990
85991         * lib/lock.h (gl_once_t): New type.
85992         (gl_once_define, gl_once): New macros.
85993         * lib/lock.c (fresh_once): New variable.
85994         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85995         functions.
85996
85997 2005-07-16  Simon Josefsson  <jas@extundo.com>
85998
85999         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86000         workaround, suggested by Bruno.
86001
86002 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86003
86004         * modules/xalloc (Depends-on): Add xalloc-die.
86005         * modules/xvasprintf (Depends-on): Add xalloc-die.
86006
86007 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86008
86009         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86010         with a minor change.
86011
86012 2005-07-15  Bruno Haible  <bruno@clisp.org>
86013
86014         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86015         When using lib/poll.c, define poll as rpl_poll.
86016
86017 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86018
86019         * modules/argp (Depends-on): Remove unlocked-io.
86020
86021 2005-07-14  Derek Price  <derek@ximbiot.com>
86022
86023         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86024         for glob symlink bug.
86025
86026 2005-07-14  Bruno Haible  <bruno@clisp.org>
86027
86028         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86029         Instead, test for *_unlocked function declarations directly.
86030
86031 2005-07-11  Simon Josefsson  <jas@extundo.com>
86032
86033         * modules/size_max: New file.
86034
86035         * modules/xsize: Depend on size_max module for size_max.m4.
86036
86037 2005-07-11  Simon Josefsson  <jas@extundo.com>
86038
86039         * lib/size_max.h: New file.
86040
86041 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86042
86043         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86044         copyright symbol and the year.
86045         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86046         (version_etc_va): Use parameterized copyright notice.
86047         Reword to conform to the current GNU coding standards.
86048
86049 2005-07-11  Karl Berry  <karl@gnu.org>
86050
86051         * doc/gnulib.texi (Quoting): new node.
86052         (Initial import): more info, from Patrice.
86053
86054 2005-07-11  Bruno Haible  <bruno@clisp.org>
86055
86056         * gnulib-tool (func_usage): Document option --avoid.
86057         (Command line options): Handle --avoid.
86058         (func_acceptable): New function.
86059         (func_modules_transitive_closure): Use it.
86060
86061 2005-07-11  Bruno Haible  <bruno@clisp.org>
86062
86063         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86064         Reported by Jim Meyering.
86065
86066 2005-07-10  Bruno Haible  <bruno@clisp.org>
86067
86068         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86069         Needed when size_t is smaller than 'unsigned int'.
86070         Reported by Paul Eggert.
86071
86072 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86073
86074         * modules/argp (Depends-on): Add unlocked-io
86075
86076 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86077
86078         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86079         block of defines.
86080
86081 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86084         fix now.
86085
86086 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86087         and Paul Eggert  <eggert@cs.ucla.edu>
86088
86089         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86090         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86091
86092 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86093
86094         * modules/regex (Files): Add lib/regex_internal.c,
86095         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86096         (Depends-on): Add extensions.
86097         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86098
86099 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86100
86101         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86102         pathconf.
86103         * m4/same.m4 (gl_SAME): Likewise.
86104         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86105
86106         * m4/regex.m4: Adjust to new libc regex implementation.
86107         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86108         all the .c and .h parts of (the new) regex.
86109         Quote the m4 stuff better.
86110         Check for RE_ICASE bug of old gnulib.
86111         Check for REG_STARTEND of recent libc.
86112         Rename local variables from jm_* to gl_*.
86113         Quote operand of "test -f".
86114         Say "recent enough" version of libc, not "version 2".
86115         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86116         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86117         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86118         Remove check for btowc, isascii.
86119         Require AM_LANGINFO_CODESET.
86120
86121 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86122
86123         * lib/regex.c, regex.h: Sync from libc.
86124         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86125         * lib/regexec.c:
86126         New files, synced from libc, except that regex_internal.h
86127         currently has a small porting fix.
86128
86129 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86130
86131         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86132         regex_internal.c, regexec.c.
86133         Add regex_internal.h too, but as a comment, since the libc version
86134         is currently broken in gnulib mode.
86135
86136 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86137
86138         Support programs like Emacs that use gnulib but not gettext.
86139         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86140         * modules/gettext-h: New file.
86141         * modules/gettext (Files): Remove lib/gettext.h.
86142         (Depends-on): Add gettext-h.
86143         (Makefile.am): Remove lib_SOURCES.
86144         * modules/argmatch, modules/c-stack, modules/closeout:
86145         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86146         * modules/execute, modules/file-type, modules/getaddrinfo:
86147         * modules/getopt, modules/human, modules/javacomp:
86148         * modules/javaexec, modules/mkdir-p, modules/obstack:
86149         * modules/openat, modules/pagealign_alloc, modules/pipe:
86150         * modules/quotearg, modules/regex, modules/rpmatch:
86151         * modules/unicodeio, modules/userspec, modules/version-etc:
86152         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86153         * modules/xsetenv:
86154         Depend on gettext-h, not gettext.
86155
86156 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86157
86158         * gnulib-tool (func_import): Add support for 'public domain' license.
86159         * modules/alloca, modules/atexit, modules/memmove:
86160         Now public domain, not GPL.
86161         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86162         * modules/realloc, modules/strerror, modules/strtod:
86163         Now LGPL, not GPL.
86164
86165 2005-07-05  Bruno Haible  <bruno@clisp.org>
86166
86167         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86168         autoconf CVS. Needed for mingw.
86169
86170 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         Remove the dependency of the strftime module on the tzset module.
86173         * modules/strftime (Depends-on): Remove dependency on tzset.
86174
86175 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86176
86177         Remove the dependency of the strftime module on the tzset module.
86178         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86179         gl_FUNC_TZSET_CLOBBER.
86180
86181 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86182
86183         Remove the dependency of the strftime module on the tzset module.
86184         * lib/strftime.c (my_strftime)
86185         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86186         Copy the input structure, to work around some of the bug with
86187         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86188         Solaris releases, you should also use the tzset module, but we won't
86189         require it as a dependency any more since we don't want LGPLed code
86190         to depend on GPLed code.
86191
86192 2005-07-02  Jim Meyering  <jim@meyering.net>
86193
86194         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86195         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86196         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86197         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86198
86199 2005-07-02  Jim Meyering  <jim@meyering.net>
86200
86201         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86202
86203 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86204
86205         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86206         declares only 'struct timespec;' (!).
86207
86208 2005-07-01  Jim Meyering  <jim@meyering.net>
86209
86210         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86211         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86212         * lib/save-cwd.c, tempname.c:
86213         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86214         and don't include <sys/file.h>).
86215
86216 2005-06-29  Jim Meyering  <jim@meyering.net>
86217
86218         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86219         type name.  Use the variable name instead.
86220         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86221         Likewise.
86222
86223 2005-06-28  Simon Josefsson  <jas@extundo.com>
86224
86225         * modules/check-version (Files): Add check-version.m4.
86226
86227 2005-06-28  Simon Josefsson  <jas@extundo.com>
86228
86229         * m4/check-version.m4: New file, suggested by Jim Meyering
86230         <jim@meyering.net>.
86231
86232 2005-06-28  Simon Josefsson  <jas@extundo.com>
86233
86234         * lib/check-version.h, lib/check-version.c: New files.
86235
86236 2005-06-28  Simon Josefsson  <jas@extundo.com>
86237
86238         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86239         collision with global variable.  Better indentation.  Don't
86240         increment buffer pointer beyond buffer end.  Based on comments
86241         from Paul Eggert <eggert@cs.ucla.edu>.
86242
86243         * lib/base64.h: Indent.
86244
86245 2005-06-28  Simon Josefsson  <jas@extundo.com>
86246
86247         * doc/gnulib.texi (Library version handling): New section.
86248
86249 2005-06-28  Jim Meyering  <jim@meyering.net>
86250
86251         * check-module (find_included_lib_files): Hard-code another
86252         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86253         but modules/fts-lgpl (correctly) does not list those files.
86254
86255         * modules/canonicalize (Files): Add lib/pathmax.h.
86256
86257 2005-06-25  Simon Josefsson  <jas@extundo.com>
86258
86259         * modules/check-version: New file.
86260
86261 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86262
86263         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86264         initializer of struct addrinfo, as an indication that we don't
86265         care how many members the structure has.
86266
86267 2005-06-24  Derek Price  <derek@ximbiot.com>
86268         and Bruno Haible  <bruno@clisp.org>
86269
86270         Remove stat module & update lstat.
86271         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86272         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86273         * m4/stat.m4: Remove this file.
86274
86275 2005-06-24  Derek Price  <derek@ximbiot.com>
86276         and Bruno Haible  <bruno@clisp.org>
86277
86278         Remove stat module & update lstat.
86279         * lib/stat.c: Remove this file...
86280         (slash_aware_lstat): ...moving this content and its support...
86281         * lib/lstat.c (rpl_lstat): ...into here.
86282         * lib/lstat.h: New file.
86283
86284 2005-06-24  Derek Price  <derek@ximbiot.com>
86285         and Bruno Haible  <bruno@clisp.org>
86286
86287         Remove stat module & update lstat.
86288         * config/srclist.txt (libc sources): Remove stat.
86289
86290 2005-06-24  Derek Price  <derek@ximbiot.com>
86291         and Bruno Haible  <bruno@clisp.org>
86292
86293         Remove stat module & update lstat.
86294         * MODULES.html.sh (stat): Remove.
86295         * MODULES.html: Regenerated.
86296         * modules/lstat (Description): Correct function name.
86297         (Files): Add "lstat.h".
86298         (Depends-on): Remove stat, add xalloc, stat-macros.
86299         * modules/stat: Remove this file.
86300         (Include): Add "lstat.h", remove <sys/stat.h>.
86301
86302 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86303
86304         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86305         (ranged_convert): Don't save conversion in a temporary struct.
86306         This causes a warning with GCC 4.0.0, and anyway in the typical
86307         case it's not worth the extra 100 bytes or so of code.
86308         (ranged_convert, __mktime_internal): When calling a function via a
86309         pointer P, use P () rather than (*P) (), as we now assume C89 or
86310         better.
86311
86312 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86313
86314         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86315         "who -r" failed to give output.  Problem reported by Tim Waugh.
86316
86317         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86318         (xcalloc): Use it to avoid needless tests.
86319         Problem reported by Jim Meyering.
86320
86321 2005-06-20  Derek Price  <derek@ximbiot.com>
86322
86323         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86324         unnecessary for Autoconfs > 2.59c.
86325
86326 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86327
86328         * lib/argp.h (__option_is_short): Check upper limit of
86329         __key. Isprint() requires its argument to have the value
86330         of an unsigned char or EOF.
86331
86332 2005-06-16  Jim Meyering  <jim@meyering.net>
86333
86334         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86335         when either N or S is zero.
86336
86337 2005-06-16  Derek Price  <derek@ximbiot.com>
86338
86339         * m4/bison.m4: Declare YACC & YFLAGS precious.
86340
86341 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86342
86343         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86344         multibyte string or pattern, fall back on unibyte matching.
86345         Problem reported by James Youngman.
86346
86347 2005-06-08  Bruno Haible  <bruno@clisp.org>
86348
86349         * modules/csharpcomp: New file.
86350         * MODULES.html.sh (C#): Add csharpcomp.
86351
86352 2005-06-08  Bruno Haible  <bruno@clisp.org>
86353
86354         * m4/csharpcomp.m4: New file, from GNU gettext.
86355
86356 2005-06-08  Bruno Haible  <bruno@clisp.org>
86357
86358         * lib/csharpcomp.h: New file, from GNU gettext.
86359         * lib/csharpcomp.c: New file, from GNU gettext.
86360         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86361
86362 2005-06-08  Bruno Haible  <bruno@clisp.org>
86363
86364         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86365         warning on mingw.
86366
86367 2005-06-07  Derek Price  <derek@ximbiot.com>
86368
86369         Sync from CVS.
86370         * lib/glob_.h: Indent nested #ifdef.
86371
86372 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86373
86374         Sync from coreutils.
86375         Use "file name" when talking about file names, instead of "filename"
86376         or "path", as per the GNU coding standards.
86377         * lib/mkdir-p.c: Renamed from makepath.c.
86378         (make_dir_parents): Renamed from make_path.  All callers changed.
86379         * lib/mkdir-p.h: Likewise.  All includers changed.
86380         * lib/filenamecat.c: Renamed from path-concat.c.
86381         (file_name_concat): Renamed from path_concat.  All callers changed.
86382         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86383         * lib/filenamecat.h: Likewise.  All includers changed.
86384         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86385         in comments or local variable names.
86386         * lib/basename.c: Likewise.
86387         * lib/canonicalize.c, canonicalize.h: Likewise.
86388         * lib/dirname.c, dirname.h: Likewise.
86389         * lib/euidaccess.c: Likewise.
86390         * lib/exclude.c: Likewise
86391         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86392         * lib/fsusage.c, fsuage.h: Likewise.
86393         * lib/fts.c, fts_.h: Likewise.
86394         * lib/getcwd.c: Likewise.
86395         * lib/getloadavg.c: Likewise.
86396         * lib/mkstemp.c: Likewise.
86397         * lib/mountlist.c, mountlist.h: Likewise.
86398         * lib/openat.c, openat.h: Likewise.
86399         * lib/readlink-stub.c: Likewise.
86400         * lib/readutmp.c, readutmp.h: Likewise.
86401         * lib/rename.c: Likewise.
86402         * lib/rmdir.c: Likewise.
86403         * lib/same.c: Likewise.
86404         * lib/savedir.c: Likewise.
86405         * lib/stripslash.c: Likewise.
86406         * lib/tempname.c: Likewise.
86407         * lib/xreadlink.c: Likewise.
86408         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86409         All uses changed.
86410         * lib/exclude.h: Likewise.
86411
86412         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86413         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86414         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86415         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86416         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86417         files have been getting away with it for years (MORE/BSD 4.3
86418         is extinct now).
86419         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86420         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86421
86422         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86423         Define to 256, not 255, as per modern POSIX.
86424
86425 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86426
86427         Sync from coreutils.
86428         Use "file name" when talking about file names, instead of "filename"
86429         or "path", as per the GNU coding standards.
86430         * MODULES.html.sh: mkdir-p renamed from makepath.
86431         filenamecat renamed from path-concat.
86432         * modules/filenamecat: Renamed from modules/path-concat.
86433         (Files): filenamecat.h and filenamecat.c renamed from
86434         path-concat.h and path-concat.c.
86435         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86436         (Include): filenamecat.h, not path-concat.h.
86437         * modules/mkdir-p: Renamed from modules/makepath.
86438         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86439         makepath.c.
86440         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86441         (Include): mkdir-p.h, not makepath.h.
86442
86443 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86444
86445         Sync from coreutils.
86446         * m4/mkdir-p.m4: Renamed from makepath.m4.
86447         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86448         Rename files from makepath.c to mkdir-p.c, and from
86449         makepath.h to mkdir-p.h.
86450         * m4/filenamecat.m4: Renamed from path-concat.m4.
86451         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86452         Rename files from path-concat.c to filenamecat.c,
86453         and from path-concat.h to filenamecat.h.
86454         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86455         "file name" in local variables or comments.
86456         * m4/rename.m4: Likewise.
86457
86458 2005-06-01  Bruno Haible  <bruno@clisp.org>
86459
86460         * modules/csharpexec: New file.
86461         * MODULES.html.sh (C#): New section.
86462
86463 2005-06-01  Bruno Haible  <bruno@clisp.org>
86464
86465         * m4/csharp.m4: New file, from GNU gettext.
86466         * m4/csharpexec.m4: New file, from GNU gettext.
86467
86468 2005-06-01  Bruno Haible  <bruno@clisp.org>
86469
86470         * lib/csharpexec.h: New file, from GNU gettext.
86471         * lib/csharpexec.c: New file, from GNU gettext.
86472         * lib/csharpexec.sh.in: New file, from GNU gettext.
86473
86474 2005-05-31  Derek Price  <derek@ximbiot.com>
86475             Paul Eggert  <eggert@cs.ucla.edu>
86476
86477         Sync from cvs.
86478         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86479
86480 2005-05-31  Derek Price  <derek@ximbiot.com>
86481             Paul Eggert  <eggert@cs.ucla.edu>
86482
86483         Sync from cvs.
86484         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86485
86486 2005-05-29  Derek Price  <derek@ximbiot.com>
86487
86488         * config/srclist.txt (glob_.h, glob.c): Add these files.
86489
86490 2005-05-29  Derek Price  <derek@ximbiot.com>
86491
86492         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86493         * modules/glob: New file.
86494         * modules/getlogin_r: Add link to POSIX spec in description.
86495
86496 2005-05-29  Derek Price  <derek@ximbiot.com>
86497             Paul Eggert  <eggert@cs.ucla.edu>
86498
86499         * m4/glob.m4: New file.
86500
86501 2005-05-29  Derek Price  <derek@ximbiot.com>
86502             Paul Eggert  <eggert@cs.ucla.edu>
86503
86504         * lib/glob_.h, lib/glob.c: New files.
86505
86506 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86507
86508         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86509         * modules/fts-lgpl (Depends-on): Remove gettext.
86510
86511 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86512
86513         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86514         and don't require gt_INTTYPES_PRI.
86515
86516 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86517
86518         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86519
86520         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86521         the configuration hassle isn't worth it.
86522         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86523         (LONGEST_MODIFIER, PRIuMAX): Remove.
86524
86525 2005-05-27  Bruno Haible  <bruno@clisp.org>
86526
86527         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86528
86529 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86530
86531         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86532         _POSIX_PTHREAD_SEMANTICS for Solaris.
86533
86534 2005-05-25  Derek Price  <derek@ximbiot.com>
86535
86536         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86537
86538 2005-05-25  Derek Price  <derek@ximbiot.com>
86539             Paul Eggert  <eggert@cs.ucla.edu>
86540
86541         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86542         * lib/getlogin_r.c, getlogin_r.h: New files.
86543
86544 2005-05-25  Bruno Haible  <bruno@clisp.org>
86545             Derek Price  <derek@ximbiot.com>
86546
86547         * lib/getlogin_r.h: Simplify API documentation.
86548
86549 2005-05-23  Derek Price  <derek@ximbiot.com>
86550
86551         * modules/minmax (Files): Add m4/minmax.m4.
86552         (configure.ac): Add gl_MINMAX.
86553
86554 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86555
86556         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86557         so that unistd-safer.h (GPL'ed code) need not be included.
86558
86559 2005-05-22  Bruno Haible  <bruno@clisp.org>
86560
86561         * m4/minmax.m4: New file.
86562         Based on a patch by Derek Price <derek@ximbiot.com>.
86563
86564 2005-05-22  Bruno Haible  <bruno@clisp.org>
86565
86566         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86567         (INT64_MIN): Fix definition.
86568         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86569
86570         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86571         NEED_SIGNED_INT_TYPES.
86572
86573         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86574         HAVE_SYSTEM_INTTYPES.
86575
86576 2005-05-22  Bruno Haible  <bruno@clisp.org>
86577
86578         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86579         Also include <sys/param.h> if it defines MIN, MAX.
86580         Based on a patch by Derek Price <derek@ximbiot.com>.
86581
86582 2005-05-21  Jim Meyering  <jim@meyering.net>
86583
86584         * modules/fts (Files): Add m4/inttypes-pri.m4.
86585         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86586
86587 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86588
86589         New fts module.
86590         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86591         (setup_dir, free_dir): New functions.
86592         (enter_dir, leave_dir): Define trivial
86593         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86594         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86595         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86596         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86597         Move to fts-cycle.c.
86598         (fts_open): Use setup_dir.
86599         (fts_close): Use free_dir.
86600         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86601         This adds a label and some gotos, but the alternatives were messier.
86602         Check for memory allocation failure when entering a dir.
86603         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86604         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86605         (FTS): New member fts_cycle, that is a union that contains the
86606         old active_dir_ht and cycle_state.  All uses changed to mention
86607         fts_cycle.ht and fts_cycle.state.
86608         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86609         fts.c, with the following changes:
86610         (setup_dir, free_dir): New functions.
86611         (enter_dir): Now returns bool.  Return true if successful, false
86612         if memory exhausted.  All callers changed.
86613         Do not bother partly cleaning up on
86614         memory allocation failure; that is free_dir's job.
86615         However, free ad if hash_insert fails, to avoid memory leak.
86616         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86617         fts->fts_options to see which union member to use.
86618
86619 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86620
86621         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86622         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86623
86624 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86625
86626         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86627
86628 2005-05-20  Jim Meyering  <jim@meyering.net>
86629
86630         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86631         Now a macro, to pacify GCC.
86632
86633 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86634
86635         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86636         of -1.
86637
86638 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86639
86640         * lib/chown.c (rpl_chown): Return -1 on failure.
86641
86642 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86643
86644         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86645         Don't check for stddef.h.
86646         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86647         don't use its results.
86648         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86649         since we include them unconditionally.  Don't require
86650         AM_STDBOOL_H, since stdbool is a prerequisite.
86651         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86652         since we assume C89 or better.
86653         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86654         as we don't use their results.
86655         Don't check for fchdir, memmove, memset, strrchr, as we use
86656         them unconditionally.
86657         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86658         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86659
86660 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86661
86662         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86663         Include <stddef.h> unconditionally, since we assume C89 now.
86664         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86665         * lib/fts.c: Include fts_.h first, to check interface.
86666         Do not include intprops.h; no longer needed.
86667         Include cycle-check.h and hash.h, since fts_.h no longer does.
86668         Remove unnecessary casts of closedir to void.
86669         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86670         decide whether to decrement nlinks.
86671         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86672         (FTS): Use struct hash_table * instead of Hash_table, so that
86673         we no longer need to include hash.h here.
86674
86675 2005-05-18  Jim Meyering  <jim@meyering.net>
86676
86677         * modules/dirfd (License): Change to LGPL.  Most of the code
86678         is already in the public domain.
86679
86680 2005-05-18  Jim Meyering  <jim@meyering.net>
86681
86682         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86683         Reported by Yoann Vandoorselaere.
86684
86685 2005-05-17  Jim Meyering  <jim@meyering.net>
86686
86687         * m4/fts.m4: New file, from coreutils.
86688
86689 2005-05-17  Jim Meyering  <jim@meyering.net>
86690
86691         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86692
86693 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86694
86695         Sync from coreutils.
86696         * m4/unlinkdir.m4: New file.
86697
86698 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86699
86700         Sync from coreutils.
86701         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86702         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86703         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86704         White space changes only.
86705         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86706         special.
86707         * lib/yesno.c: Include getline.h, not ctype.h.
86708         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86709         Use getline to remove arbitrary restriction on response length.
86710
86711 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86712
86713         * config/srclist-update: Spell out "Street" in FSF postal
86714         mail address; this is the style the FSF seems to prefer.
86715
86716         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86717         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86718         this updates FSF postal mail address.
86719
86720         Sync from coreutils.
86721         * modules/unlinkdir: New file.
86722         * modules/yesno (Depends-on): Add getline.
86723         * MODULES.html.sh (File system functions): Add unlinkdir.
86724
86725 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86726
86727         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86728         lib/strsep.h:
86729         Change the initial comment to refer to GPL, not LGPL.
86730         gnulib-tool will change it to LGPL as needed.
86731
86732         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86733         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86734         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86735         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86736         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86737         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86738         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86739         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86740         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86741         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86742         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86743         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86744         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86745         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86746         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86747         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86748         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86749         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86750         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86751         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86752         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86753         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86754         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86755         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86756         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86757         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86758         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86759         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86760         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86761         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86762         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86763         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86764         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86765         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86766         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86767         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86768         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86769         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86770         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86771         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86772         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86773         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86774         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86775         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86776         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86777         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86778         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86779         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86780         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86781         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86782         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86783         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86784         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86785         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86786         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86787         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86788         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86789         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86790         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86791         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86792         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86793         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86794         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86795         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86796         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86797         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86798         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86799         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86800         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86801         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86802         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86803         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86804         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86805         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86806         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86807         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86808         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86809         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86810         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86811         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86812         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86813         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86814         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86815         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86816         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86817         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86818         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86819         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86820         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86821         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86822         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86823         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86824         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86825         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86826         lib/yesno.c, lib/yesno.h:
86827         Update FSF postal mail address.
86828
86829 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86830
86831         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86832         tests/test-memmem.c, tests/test-stpncpy.c:
86833         Update FSF postal mail address.
86834
86835 2005-05-13  Bruno Haible  <bruno@clisp.org>
86836
86837         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86838         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86839         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86840         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86841         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86842         Add support for 64-bit integers in the MSVC compiler.
86843
86844 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86845
86846         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86847
86848 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86849
86850         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86851
86852 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86853
86854         * doc/getdate.texi (General date syntax): Don't say that date
86855         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86856         Problem reported by Nic Ferrier.
86857
86858 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86859
86860         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86861         specified in ai_socktype. Fix invalid ai_protocol
86862         check. ai_protocol is usually set to 0 or depending on
86863         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86864         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86865         ai_socktype / ai_protocol in the returned addrinfo structure.
86866
86867 2005-05-10  Simon Josefsson  <jas@extundo.com>
86868
86869         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86870         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86871
86872 2005-05-10  Karl Berry  <karl@gnu.org>
86873
86874         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86875         (from http://www.gnu.org/licenses).
86876         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86877         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86878         fdl.texi suffices.
86879
86880 2005-05-10  Karl Berry  <karl@gnu.org>
86881
86882         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86883         (COPYING.DOC): remove.
86884
86885         * config/srclist-update: new FSF address.
86886
86887 2005-05-10  Derek Price  <derek@ximbiot.com>
86888
86889         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86890         possible.
86891
86892 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86893             Bruno Haible  <bruno@clisp.org>
86894
86895         * modules/inet_ntop: New file.
86896         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86897         inet_ntop.
86898
86899 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86900             Bruno Haible  <bruno@clisp.org>
86901
86902         * m4/inet_ntop.m4: New file.
86903
86904 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86905             Bruno Haible  <bruno@clisp.org>
86906
86907         * lib/inet_ntop.h: New file.
86908         * lib/inet_ntop.c: New file, from glibc with modifications.
86909
86910 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86911
86912         * modules/time_r (License): Change to LGPL.
86913         * modules/extensions (License): Change to LGPL.  Actually,
86914         the license is more permissive than that, but currently gnulib-tool
86915         doesn't know how to handle more-permissive licenses.
86916
86917         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86918         Problem reported by Dave Love.
86919
86920 2005-05-08  Jim Meyering  <jim@meyering.net>
86921
86922         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86923         blank.
86924
86925 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86926
86927         * modules/argmatch (Depends-on): Add stdbool.
86928         * modules/backupfile (Depends-on): Likewise.
86929         * modules/chdir-long (Depends-on): Likewise.
86930         * modules/closeout (Depends-on): Likewise.
86931         * modules/cycle-check (Depends-on): Likewise.
86932         * modules/dirname (Depends-on): Likewise.
86933         * modules/fnmatch (Depends-on): Likewise.
86934         * modules/fsusage (Depends-on): Likewise.
86935         * modules/fwriteerror (Depends-on): Likewise.
86936         * modules/getcwd (Depends-on): Likewise.
86937         * modules/getloadavg (Depends-on): Likewise.
86938         * modules/hard-locale (Depends-on): Likewise.
86939         * modules/makepath (Depends-on): Likewise.
86940         * modules/mountlist (Depends-on): Likewise.
86941         * modules/nanosleep (Depends-on): Likewise.
86942         * modules/posixtm (Depends-on): Likewise.
86943         * modules/quotearg (Depends-on): Likewise.
86944         * modules/readtokens (Depends-on): Likewise.
86945         * modules/readtokens0 (Depends-on): Likewise.
86946         * modules/readutmp (Depends-on): Likewise.
86947         * modules/save-cwd (Depends-on): Likewise.
86948         * modules/strftime (Depends-on): Likewise.
86949         * modules/userspec (Depends-on): Likewise.
86950         * modules/utimecmp (Depends-on): Likewise.
86951         * modules/xgetcwd (Depends-on): Likewise.
86952         * modules/xnanosleep (Depends-on): Likewise.
86953         * modules/xstrtod (Depends-on): Likewise.
86954         * modules/yesno (Depends-on): Likewise.
86955
86956 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86957
86958         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86959         needless checks.
86960
86961 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86962
86963         Merge from coreutils.  Among other things,
86964         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86965         * lib/fd-safer.c: New file.
86966         * lib/fcntl-safer.h, open-safer.c: Remove.
86967         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86968         * lib/dup-safer.c: Include unistd-safer.h first.
86969         Don't include errno.h.
86970         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86971         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86972         * lib/file-type.c: Rely on file-type.h change.
86973         * lib/getloadavg.c: Include unistd-safer.h.
86974         (getloadavg): Use safer open.
86975         * lib/getusershell.c: Include "stdio-safer.h".
86976         (getusershell): Use safer fopen.
86977         * lib/long-options.c (long_options): Use NULL rather than 0.
86978         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86979         'free'.
86980         * lib/modechange.c: Likewise.
86981         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86982         (MODE_DONE): New constant.
86983         (struct mode_change): Remove 'next' member.
86984         (make_node_op_equals): New function; like the old one of the
86985         same name, except it allocates an array.
86986         (mode_compile, mode_create_from_ref): Use it.
86987         (mode_compile): Allocate result as an array, not a linked list.
86988         Parse octal string ourself, so that we catch mistakes like "+0".
86989         (mode_adjust): Arg is an array, not a linked list.
86990         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86991         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86992         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86993         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86994         Remove.  This is now stat-macros.h's job.
86995         (talloc): Remove.  All callers replaced by xalloc, so that
86996         our invokers don't have to worry about reporting memory failures.
86997         (make_node_op_equals): Remove.
86998         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86999         New constants.
87000         (struct mode_change): Moved here from modechange.h.
87001         (mode_append_entry): Remove.
87002         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87003         apps to have incorrect behavior.  Use simpler algorithm for head
87004         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87005         Detect more invalid usages rather than having somewhat-random behavior.
87006         Don't insert an "a=" action, as that leads to incorrect behavior.
87007         (mode_compile, mode_create_from_ref): Return NULL on error instead
87008         of an enum, since now there's only one way to have an error.  All
87009         callers changed.
87010         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87011         at the correct time.  Simplify calculation of "+u" and its ilk.
87012         Don't mishandle "+X".
87013         (mode_free): Remove "register" and localize decls.
87014         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87015         (struct mode_change): Move to modechange.c; callers don't
87016         need to see this stuff.
87017         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87018         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87019         (mode_change, mode_adjust): Reflect the new signatures noted above.
87020         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87021         that might redefine system include files.
87022         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87023         (my_usleep): Use NULL rather than (void *) 0.
87024         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87025         Use siginterrupt to specify that system calls should be interrupted.
87026         (rpl_nanosleep): Move initialization of suspended closer to call of
87027         my_usleep.
87028         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87029         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87030         (desirable_utmp_entry): New function.
87031         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87032         using x2nrealloc, to simplify logic.
87033         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87034         size calculation.  Do not assume utmp file is a regular file.
87035         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87036         (READ_UTMP_CHECK_PIDS): New constant.
87037         * lib/save-cwd.c: Include unistd-safer.h.
87038         (save_cwd): Use fd_safer.
87039         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87040         [!_LIBC] Include "stat-macros.h" instead.
87041         * lib/unistd-safer.h (fd_safer): New decl.
87042
87043 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87044
87045         * modules/getloadavg (Depends-on): Add unistd-safer.
87046         * modules/getusershell (Depends-on): Add stdio-safer.
87047         * modules/lstat (Depends-on): Remove xalloc.
87048         * modules/mkstemp (Depends-on): Add stat-macros.
87049         * modules/modechange (Depends-on): Remove xstrtol.
87050         Add stat-macros, xalloc.
87051         * modules/save-cwd (Depends-on): Add unistd-safer.
87052         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87053         * modules/unistd-safer (Files): Add lib/fd-safer.c
87054         (Makefile.am): Remove lib_SOURCES.
87055
87056         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87057         Remove fcntl-safer; unistd-safer supersedes it.
87058
87059 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87060
87061         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87062         AC_HEADER_STAT.
87063         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87064         (gl_PREREQ_CHOWN): Remove.
87065         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87066         it.  Don't require AC_HEADER_STAT.
87067         (gl_PREREQ_LSTAT): Remove.
87068         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87069         Don't require AC_HEADER_STAT.
87070         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87071         (gl_PREREQ_RMDIR): Remove.
87072         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87073         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87074         the stat-macros module a prerequisite.
87075         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87076         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87077         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87078         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87079         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87080         variable names.
87081         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87082         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87083         variable prefixes.
87084         * m4/fcntl-safer.m4: Remove.
87085         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87086         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87087         Invoke gl_PREREQ_FD_SAFER.
87088         (gl_PREREQ_FD_SAFER): New macro.
87089         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87090         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87091         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87092         Remove duplicate call to AC_LIBOBJ(readutmp).
87093         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87094
87095         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87096         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87097
87098 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87099
87100         * MODULES.html.sh (Misc): Add byteswap.
87101
87102 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87103
87104         * modules/getcwd (Depends-on): Add extensions.
87105         * modules/openat (Depends-on): Likewise.
87106
87107 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87108
87109         * modules/byteswap: New file.
87110
87111 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87112
87113         * m4/byteswap.m4: New file.
87114
87115 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87116
87117         * lib/byteswap_.h: New file.
87118
87119 2005-04-25  Karl Berry  <karl@gnu.org>
87120
87121         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87122
87123 2005-04-25  Albert Chin  <china@thewrittenword.com>
87124
87125         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87126         Toolkit C bug.
87127
87128 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87129
87130         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87131         (func_ln_if_changed): Remove forcibly for no error message
87132         in case file does not exist.
87133
87134 2005-04-19  Simon Josefsson  <jas@extundo.com>
87135
87136         * gnulib-tool (Options): Make --symlink mean --symbolic.
87137
87138 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87139
87140         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87141
87142 2005-04-16  Simon Josefsson  <jas@extundo.com>
87143
87144         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87145
87146 2005-04-15  Simon Josefsson  <jas@extundo.com>
87147
87148         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87149
87150 2005-04-15  Simon Josefsson  <jas@extundo.com>
87151
87152         * gnulib-tool: Rename --symlink to --symbolic.
87153
87154 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87155
87156         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87157         symbolic links to files instead of copying/moving.  Add --aux-dir,
87158         specifying directory relative --dir where auxiliary build tools
87159         are placed.
87160
87161 2005-04-14  Bruno Haible  <bruno@clisp.org>
87162
87163         * modules/allocsa (License): Change to LGPL.
87164         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87165
87166 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87167
87168         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87169         that "UTC +1 second" continues to work.  Problem reported
87170         by Dmitry V. Levin.
87171         (relunit_snumber): New rule.
87172         (relunit): Use it.
87173
87174 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87175
87176         * lib/getdate.y (universal_time_zone_table): New constant.
87177         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87178         universal_time_zone_table.
87179         (lookup_zone): Prefer universal_time_zone_table to
87180         local_time_zone_table, so that "GMT" time stamps are allowed in
87181         London during the summer.  Problem reported by Ian Abbott.
87182
87183 2005-04-12  Jim Meyering  <jim@meyering.net>
87184
87185         * lib/human.c (humblock): Set *options even when returning due to
87186         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87187         warning from gcc-4.
87188
87189 2005-04-09  Jim Meyering  <jim@meyering.net>
87190
87191         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87192         -Wuninitialized: initialize tm0.tm_year.
87193
87194 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87195
87196         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87197         count, since there's no maximum.  All uses changed.
87198         Add member dsts_seen.
87199         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87200         not being INT_MAX.
87201         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87202         Use pc_rels_seen to decide whether a date is absolute.
87203
87204         * lib/getdate.y (number): Don't overwrite year.
87205         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87206         check.
87207
87208 2005-04-02  Simon Josefsson  <jas@extundo.com>
87209
87210         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87211         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87212
87213 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87214
87215         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87216         where no absolute path name can be longer than PATH_MAX.
87217
87218 2005-03-27  Jim Meyering  <jim@meyering.net>
87219
87220         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87221
87222 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87223
87224         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87225         "one's complement" -> "ones' complement" in comment, as per Knuth.
87226         "value of type" -> "type or expression" in comment.
87227         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87228
87229 2005-03-26  Jim Meyering  <jim@meyering.net>
87230
87231         Comment nits.
87232         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87233         Correct typos: s/or/of/.
87234
87235 2005-03-26  Jim Meyering  <jim@meyering.net>
87236
87237         * modules/check-include-files: Move to ../ and rename to...
87238         * check-module: ...this.
87239
87240 2005-03-25  Jim Meyering  <jim@meyering.net>
87241
87242         * modules/xvasprintf (Files): Add xalloc.h.
87243
87244 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87245
87246         * modules/gettext (Files): config/config.rpath ->
87247         build-aux/config.rpath
87248         * modules/iconv (Files): Likewise.
87249         Problem reported by Oskar Liljeblad.
87250
87251 2005-03-23  Jim Meyering  <jim@meyering.net>
87252
87253         * modules/check-include-files: New script to check for
87254         missing dependencies, multiple includes, etc.
87255
87256         * modules/c-strtold (Depends-on): Add xalloc.
87257         * modules/c-strtod (Depends-on): Add xalloc.
87258         * modules/hash (Depends-on): Add xalloc.
87259         (Files): Remove lib/xalloc.h.
87260
87261         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87262         * modules/userspec (Files): Add lib/inttostr.h.
87263
87264 2005-03-23  Jim Meyering  <jim@meyering.net>
87265
87266         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87267
87268 2005-03-22  Jim Meyering  <jim@meyering.net>
87269
87270         * modules/stat-macros: New module.
87271         * modules/canonicalize, modules/euidaccess, modules/file-type,
87272         * modules/filemode, modules/lchown, modules/makepath,
87273         * modules/rmdir, modules/stat: Depend on new stat-macros module
87274         rather than listing lib/stat-macros.h manually.
87275         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87276
87277 2005-03-22  Jim Meyering  <jim@meyering.net>
87278
87279         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87280
87281 2005-03-22  Bruno Haible  <bruno@clisp.org>
87282
87283         * config/srclist.txt: Replace target directory 'config' with
87284         'build-aux'.
87285         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87286         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87287         ../build-aux/.
87288
87289 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87290
87291         * modules/chdir-long (Depends-on): Add mempcpy.
87292
87293         * modules/acl, modules/backupfile, modules/c-strtod,
87294         modules/c-strtold, modules/canon-host, modules/canonicalize,
87295         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87296         modules/exclude, modules/exitfail, modules/file-type,
87297         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87298         modules/getdate, modules/getline, modules/getpagesize,
87299         modules/getpass, modules/getugroups, modules/group-member,
87300         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87301         modules/inttostr, modules/long-options, modules/makepath,
87302         modules/md5, modules/memcasecmp, modules/memcoll,
87303         modules/modechange, modules/mountlist, modules/path-concat,
87304         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87305         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87306         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87307         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87308         modules/strftime, modules/strndup, modules/strverscmp,
87309         modules/timespec, modules/unlocked-io, modules/userspec,
87310         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87311         modules/yesno:
87312         Remove lib_SOURCES line from Makefile.am section, as this is now
87313         done automatically by the corresponding Autoconf macro.
87314
87315 2005-03-21  Jim Meyering  <jim@meyering.net>
87316
87317         Changes imported from coreutils.
87318
87319         * lib/cycle-check.c: Don't include xalloc.h.
87320
87321         * lib/path-concat.c: Don't include assert.h.
87322         (path_concat): Remove assertion that would have triggered
87323         for ABASE starting with more than one slash.
87324         Reported by Andreas Schwab.
87325
87326         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87327         properly when ABASE is an absolute file name.
87328         Correct the description of this function.
87329         Include <assert.h>.
87330         Add an assertion and a test driver.
87331         This fixes a bug introduced on 2004-07-02.
87332         Andreas Schwab reported the resulting failure of cp --parents:
87333         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87334
87335 2005-03-21  Jim Meyering  <jim@meyering.net>
87336
87337         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87338         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87339
87340 2005-03-21  Jim Meyering  <jim@meyering.net>
87341         and  Paul Eggert  <eggert@cs.ucla.edu>
87342
87343         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87344         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87345         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87346         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87347         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87348         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87349         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87350         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87351         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87352         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87353         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87354         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87355         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87356         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87357         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87358         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87359         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87360         for these modules.
87361
87362 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87363
87364         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87365         (which shouldn't happen), generate nothing instead of returning 0
87366         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87367
87368 2005-03-16  Bruno Haible  <bruno@clisp.org>
87369
87370         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87371         HAVE_LONGLONG_64BIT.
87372
87373 2005-03-16  Bruno Haible  <bruno@clisp.org>
87374
87375         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87376         HAVE_LONGLONG_64BIT.
87377
87378 2005-03-16  Bruno Haible  <bruno@clisp.org>
87379
87380         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87381         HAVE_LONGLONG_64BIT.
87382
87383 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87384
87385         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87386         reliably distinguish strftime failure from empty output on POSIX
87387         hosts.
87388
87389 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87390
87391         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87392         (iconv_string): Don't guess a size-zero buffer, as that might cause
87393         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87394         result would be 'too large', where 'too large' is (heuristically)
87395         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87396         overflow concerns.  This will prevent some unwanted malloc failures
87397         when the inputs are very large.
87398
87399 2005-03-15  Karl Berry  <karl@gnu.org>
87400
87401         * config/srclist.txt (config.rpath): from gettext.
87402         * config/config.rpath: update.
87403
87404 2005-03-15  Bruno Haible  <bruno@clisp.org>
87405
87406         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87407         to 'negate'.
87408
87409         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87410         variable.
87411
87412         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87413         results.
87414
87415 2005-03-14  Simon Josefsson  <jas@extundo.com>
87416
87417         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87418         <fx@gnu.org>.
87419
87420 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87421
87422         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87423         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87424         intprops.h.
87425         * lib/strtol.c: Likewise.
87426
87427 2005-03-14  Jim Meyering  <jim@meyering.net>
87428
87429         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87430         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87431         to be nonzero so that we (and caller) can detect the difference
87432         between a valid zero-length expansion and an error return, even
87433         when the underlying strftime fails before writing anything into
87434         that location.
87435
87436 2005-03-14  Bruno Haible  <bruno@clisp.org>
87437
87438         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87439         Update from GNU gettext 0.14.3.
87440
87441 2005-03-10  Jim Meyering  <jim@meyering.net>
87442
87443         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87444
87445 2005-03-10  Jim Meyering  <jim@meyering.net>
87446
87447         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87448         so that this module works on systems without fchdir.
87449
87450 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87451
87452         Factor int-properties macros into a single file, except for
87453         glibc-related files.
87454         * lib/intprops.h: New file.
87455         * lib/getloadavg.c: Include it instead of limits.h.
87456         (INT_STRLEN_BOUND): Remove.
87457         * lib/human.c: Include intprops.h.
87458         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87459         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87460         302/1000.
87461         * lib/inttostr.h: Include intprops.h instead of limits.h.
87462         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87463         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87464         for consistency with intprops.h.
87465         (time_t_is_integer, twos_complement_arithmetic): Use them.
87466         * lib/sig2str.h: Include <signal.h>, intprops.h.
87467         (INT_STRLEN_BOUND): Remove.
87468         * lib/strftime.c (TYPE_SIGNED): Remove.
87469         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87470         * lib/strtol.c: Adjust comments to match intprops.h.
87471         * lib/userspec.c: Include intprops.h.
87472         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87473         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87474         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87475         instead of rolling our own expressions.
87476         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87477
87478         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87479         instead of int.
87480         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87481         the right thing even if adding 1900 would overflow.  Similarly
87482         for tm_mon + 1 and tm_yday + 1.
87483         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87484         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87485         (DO_SIGNED_NUMBER): New macro.
87486         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87487
87488 2005-03-07  Bruno Haible  <bruno@clisp.org>
87489
87490         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87491
87492 2005-03-07  Bruno Haible  <bruno@clisp.org>
87493
87494         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87495
87496 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87497
87498         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87499         (func_import): Only replace files via --import when they have actually
87500         changed.
87501
87502 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87503
87504         * m4/mmap-anon.m4: New file.
87505         * m4/pagealign_alloc.m4: New file.
87506
87507 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87508             Bruno Haible  <bruno@clisp.org>
87509
87510         * modules/pagealign_alloc: New file.
87511         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87512
87513 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87514             Bruno Haible  <bruno@clisp.org>
87515
87516         * lib/pagealign_alloc.h: New file.
87517         * lib/pagealign_alloc.c: New file.
87518
87519 2005-03-03  Bruno Haible  <bruno@clisp.org>
87520
87521         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87522         Use an all-permissive copyright notice, recommended by RMS.
87523
87524 2005-03-02  Bruno Haible  <bruno@clisp.org>
87525
87526         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87527         of AIX, the replacement has to be done only after <string.h> is
87528         included, therefore not in config.h. stpncpy.h does the replacement,
87529         and stpncpy.c uses it.
87530
87531 2005-03-02  Bruno Haible  <bruno@clisp.org>
87532
87533         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87534         stpncpy.c uses it.
87535
87536 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87537
87538         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87539         The workaround isn't strictly needed for POSIX conformance, and
87540         it's too much of a pain to configure and maintain.  We'll ask
87541         people to fix their kernels instead.
87542         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87543         (NANOSLEEP_BUG_WORKAROUND): Remove.
87544         (xnanosleep): Remove the workaround.
87545
87546 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87547
87548         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87549         Reported by Derek Price.
87550         (Include): Add "timespec.h".
87551
87552         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87553
87554 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87555
87556         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87557         to detect nanosleep bug.
87558
87559 2005-03-01  Bruno Haible  <bruno@clisp.org>
87560
87561         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87562
87563 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87564
87565         * modules/gethrxtime: New file.
87566         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87567         (Depends-on): Add gethrxtime.
87568         (configure.ac): Add gl_XNANOSLEEP.
87569         (Makefile.am): Remove lib_SOURCES line.
87570
87571 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87572
87573         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87574         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87575
87576 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87577
87578         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87579         * lib/timespec.h (gettime): Return void, since it always
87580         succeeds now.  All uses changed.
87581         * lib/gettime.c (gettime): Likewise.
87582         [HAVE_NANOTIME]: Prefer nanotime.
87583         Assume gettimeofday succeeds, as POSIX requires.
87584         Assime time () succeeds, since other code already does.
87585         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87586         (timespec_subtract): Remove.
87587         (NANOSLEEP_BUG_WORKAROUND): New constant.
87588         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87589         things considerably.  Use it only on GNU/Linux hosts, since the
87590         workaround shouldn't be needed elsewhere.
87591
87592 2005-02-24  Bruno Haible  <bruno@clisp.org>
87593
87594         * modules/gettext (Files): Add m4/glibc2.m4.
87595
87596 2005-02-24  Bruno Haible  <bruno@clisp.org>
87597
87598         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87599         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87600         * m4/progtest.m4:
87601         Update from GNU gettext 0.14.2.
87602         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87603
87604 2005-02-24  Bruno Haible  <bruno@clisp.org>
87605
87606         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87607         * lib/config.charset: Update from GNU gettext 0.14.2.
87608
87609 2005-02-24  Bruno Haible  <bruno@clisp.org>
87610
87611         * lib/gettext.h: Update from GNU gettext 0.14.2.
87612
87613 2005-02-23  Simon Josefsson  <jas@extundo.com>
87614
87615         * m4/iconvme.m4: New file.
87616
87617 2005-02-23  Jim Meyering  <jim@meyering.net>
87618
87619         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87620         change.
87621         Thanks to Bruno Haible for catching it.
87622
87623 2005-02-22  Simon Josefsson  <jas@extundo.com>
87624
87625         * modules/iconvme: New file.
87626
87627         * MODULES.html.sh: Add iconvme.
87628
87629 2005-02-22  Simon Josefsson  <jas@extundo.com>
87630
87631         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87632
87633 2005-02-22  Simon Josefsson  <jas@extundo.com>
87634
87635         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87636
87637 2005-02-22  Jim Meyering  <jim@meyering.net>
87638
87639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87640         s/ifndef/ifdef/.
87641
87642 2005-02-20  Neil Conway  <neilc@samurai.com>
87643
87644         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87645         returned by OSX/Darwin if the specified buffer is not large
87646         enough for the hostname.
87647
87648 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87649
87650         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87651         pass it to _help, otherwise the latter coredumps trying to
87652         dereference state.root_argp.
87653
87654 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87655
87656         * modules/chdir-long (Depends-on): Add memrchr.
87657         * modules/memrchr (Files): Add lib/memrchr.h.
87658         (Include): "memrchr.h".
87659
87660 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87661
87662         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87663
87664 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87665
87666         * lib/memrchr.h: New file.
87667         * lib/chdir-long.c: Include it.
87668         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87669         Don't bother including stddef.h.
87670
87671 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87672
87673         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87674         inclusion.
87675         Include <sys/types.h>, for dev_t.
87676         (ME_DUMMY, ME_REMOTE): Move from here....
87677         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87678         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87679         Dmitry V. Levin.
87680         Include mountlist.h first, to test the interface.
87681
87682 2005-01-29  Bruno Haible  <bruno@clisp.org>
87683
87684         * lib/progname.c (program_name): Initialize.
87685         Needed when linking statically on MacOS X.
87686
87687 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87688
87689         Sync from coreutils.
87690         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87691         (Depends-on): Add c-strtod.
87692         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87693
87694 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87695
87696         Sync from coreutils.
87697         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87698
87699         Remove files that are specific to coreutils.
87700         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87701
87702 2005-01-28  Bruno Haible  <bruno@clisp.org>
87703
87704         * modules/javacomp: New file.
87705         * MODULES.html.sh (Java): Add javacomp.
87706
87707 2005-01-28  Bruno Haible  <bruno@clisp.org>
87708
87709         * m4/javacomp.m4: New file, from GNU gettext.
87710
87711 2005-01-28  Bruno Haible  <bruno@clisp.org>
87712
87713         * lib/javacomp.sh.in: New file, from GNU gettext.
87714         * lib/javacomp.h: New file, from GNU gettext.
87715         * lib/javacomp.c: New file, from GNU gettext.
87716
87717 2005-01-26  Simon Josefsson  <jas@extundo.com>
87718
87719         * lib/gai_strerror.c: Use GPL in header.
87720
87721 2005-01-26  Bruno Haible  <bruno@clisp.org>
87722
87723         * modules/javaexec: New file.
87724         * MODULES.html.sh (Java): Add javaexec.
87725
87726 2005-01-26  Bruno Haible  <bruno@clisp.org>
87727
87728         * m4/javaexec.m4: New file, from GNU gettext.
87729
87730 2005-01-26  Bruno Haible  <bruno@clisp.org>
87731
87732         * lib/javaexec.sh.in: New file, from GNU gettext.
87733         * lib/javaexec.h: New file, from GNU gettext.
87734         * lib/javaexec.c: New file, from GNU gettext.
87735
87736 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87737
87738         * modules/lchown (Depends-on): Remove lchown.h
87739
87740 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87741
87742         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87743         must be defined if the header file was not found, in order
87744         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87745
87746 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87747
87748         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87749         initializers for struct pentry_state.
87750         (__argp_error): Check return value of __asprintf
87751         (__argp_failure): Translate error message
87752
87753         * lib/argp-parse.c: Removed braces around the expansion of N_()
87754
87755 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87756
87757         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87758         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87759         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87760         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87761         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87762         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87763         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87764         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87765         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87766         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87767         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87768         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87769         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87770         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87771         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87772         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87773         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87774         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87775         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87776         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87777         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87778         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87779         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87780         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87781         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87782         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87783         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87784         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87785         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87786         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87787         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87788         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87789         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87790         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87791         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87792         Use an all-permissive copyright notice, recommended by RMS.
87793
87794 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87795
87796         * modules/chdir-long (Depends-on): Remove mempcpy.
87797
87798 2005-01-21  Jim Meyering  <jim@meyering.net>
87799
87800         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87801         same value as for Solaris 9.
87802
87803         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87804         component length.  This included changing the parameter to be
87805         of type `char *' rather than `char const *'.
87806         * lib/chdir-long.h (chdir_long): Update prototype.
87807
87808         * lib/openat.c (fdopendir, fstatat): New functions.
87809         * lib/openat.h: Include headers required for use of DIR and struct
87810         stat.
87811         [AT_SYMLINK_NOFOLLOW]: Define.
87812         (fdopendir, fstatat): Add prototypes.
87813
87814 2005-01-21  Bruno Haible  <bruno@clisp.org>
87815
87816         * modules/classpath: New file.
87817         * MODULES.html.sh (Java): Add classpath.
87818
87819 2005-01-21  Bruno Haible  <bruno@clisp.org>
87820
87821         * lib/classpath.h: New file, from GNU gettext.
87822         * lib/classpath.c: New file, from GNU gettext.
87823
87824 2005-01-20  Simon Josefsson  <jas@extundo.com>
87825
87826         * modules/version-etc-fsf: New file.
87827
87828 2005-01-20  Simon Josefsson  <jas@extundo.com>
87829
87830         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87831         * lib/version-etc.c: Remove version_etc_copyright.
87832         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87833         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87834
87835 2005-01-20  Simon Josefsson  <jas@extundo.com>
87836
87837         * lib/base64.h (isbase64): Add.
87838
87839         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87840         using a unsigned prototype, don't inline.
87841         (base64_decode): Use it.
87842
87843 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87844
87845         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87846         it.
87847
87848 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87849
87850         * lib/save-cwd.c (save_cwd): Remove code to support the case
87851         where fchdir is missing or flaky.
87852
87853 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87854
87855         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87856
87857 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87858
87859         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87860         AC_LIBSOURCES now does this.
87861         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87862         with new ullong_max module.
87863
87864 2005-01-19  Bruno Haible  <bruno@clisp.org>
87865
87866         * modules/sh-quote: New file.
87867         * MODULES.html.sh (Executing programs): Add sh-quote.
87868
87869 2005-01-19  Bruno Haible  <bruno@clisp.org>
87870
87871         * lib/sh-quote.h: New file, from GNU gettext.
87872         * lib/sh-quote.c: New file, from GNU gettext.
87873
87874 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87875
87876         Merge from coreutils.
87877         * m4/ullong_max.m4: New file.
87878         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87879         (gl_MACROS): Assume localeconv exists.
87880
87881 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87882
87883         Merge changes from coreutils, as described below in several
87884         changelogs dated today.
87885
87886         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87887         (O_DIRECTORY): Remove; not needed here, since "." must be
87888         a directory.  All uses removed.
87889         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87890         universal on Suns, and we also need to test for IRIX.
87891         Revamp code to use 'if' rather than '#if'.
87892         Avoid unnecessary comparison of cwd->desc to 0.
87893
87894         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87895         for known valid error numbers rather than observed invalid ones.
87896
87897 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87898
87899         * modules/ullong_max: New file.
87900
87901         * modules/chdir-long, modules/openat: New files.
87902         * modules/save-cwd (Depends-on): Depend on chdir-long.
87903         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87904
87905 2005-01-18  Jim Meyering  <jim@meyering.net>
87906
87907         Merge from coreutils.
87908         * m4/chdir-long.m4, m4/openat.m4: New files.
87909         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87910         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87911         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87912         is sane and DOES follow symlinks.  Besides, testing 20 different
87913         systems found no broken chown implementations.
87914         Prompted by a change in rsync's copy of this macro.
87915         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87916
87917         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87918
87919         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87920         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87921         NULL-means-set-to-current-time semantics.
87922         Remove temporary file immediately, rather than waiting
87923         for configure's at-exit trap code to do it.
87924
87925 2005-01-18  Jim Meyering  <jim@meyering.net>
87926
87927         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87928
87929         * lib/utimens.c (futimens): Account for the fact that futimes
87930         can also fail with errno == ENOSYS or errno == ENOENT.
87931         Patch from Dmitry V. Levin.
87932
87933         Change the name of the robust chdir function from chdir to chdir_long.
87934         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87935         (restore_cwd): Use chdir_long, not chdir.
87936         * lib/chdir-long.c: Renamed from chdir.c.
87937         * lib/chdir-long.h: Renamed from chdir.h.
87938         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87939         Hurd.
87940
87941 2005-01-18  Bruno Haible  <bruno@clisp.org>
87942
87943         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87944         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87945         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87946         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87947         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87948         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87949         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87950         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87951         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87952         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87953         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87954         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87955         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87956         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87957         Use an all-permissive copyright notice, recommended by RMS.
87958
87959 2005-01-18  Bob Proulx  <bob@proulx.com>
87960
87961         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87962         simplify offsetof() macro construct to avoid compile failure with
87963         native HP-UX 11.0 ANSI C compiler.
87964
87965 2005-01-17  Bruno Haible  <bruno@clisp.org>
87966
87967         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87968         redundant because stpncpy.m4 takes care of it.
87969
87970 2005-01-17  Bruno Haible  <bruno@clisp.org>
87971
87972         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87973
87974 2005-01-17  Bruno Haible  <bruno@clisp.org>
87975
87976         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87977         used.
87978
87979 2005-01-17  Bruno Haible  <bruno@clisp.org>
87980
87981         * lib/fwriteerror.h (fwriteerror): Change specification to include
87982         fclose.
87983         * lib/fwriteerror.c: Include <stdbool.h>.
87984         (fwriteerror): At the end, close the file stream. Record whether
87985         stdout was already closed.
87986
87987 2005-01-17  Bruno Haible  <bruno@clisp.org>
87988
87989         * lib/execute.c (environ): Declare if needed.
87990         * lib/pipe.c (environ): Likewise.
87991         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87992
87993 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87994
87995         * modules/argp: Depend on vsnprintf
87996
87997 2005-01-10  Jim Meyering  <jim@meyering.net>
87998
87999         * modules/closeout (Depends-on): Add atexit.
88000
88001 2005-01-06  Bruno Haible  <bruno@clisp.org>
88002
88003         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88004
88005 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88006
88007         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88008         definitions to be after all include files, to avoid collisions.
88009         Problem reported by Bob Proulx.
88010
88011 2005-01-04  Jim Meyering  <jim@meyering.net>
88012
88013         Changes imported from coreutils.
88014         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88015         as the mkstemp template, use a temporary directory and an
88016         8.3-friendly template to avoid trouble on systems like DJGPP.
88017         Reported by Juan M. Guerrero via Stepan Kasal.
88018         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88019         close. Remove the temporary directory right away, rather than waiting
88020         for configure's at-exit trap code to do it.
88021         Suggestion from Stepan Kasal.
88022
88023 2005-01-01  Simon Josefsson  <jas@extundo.com>
88024
88025         * gnulib-tool: Print #include directives when --import'ing.
88026
88027 2004-12-28  Simon Josefsson  <jas@extundo.com>
88028
88029         * tests/test-base64.c: Include required header files.  Remove
88030         unused variables.
88031
88032 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88033
88034         * modules/error (Depends-on): Remove gettext.
88035
88036 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88037
88038         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88039         not needed.  This removes a dependency on the gettext module.
88040         [defined _LIBC]: Do not include <libintl.h>; not needed.
88041
88042 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88043
88044         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88045         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88046
88047 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88048
88049         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88050         HAVE_DECL_STRTOLD.
88051
88052 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88053
88054         * modules/getdate (Depends-on): Remove alloca-opt.
88055
88056 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88057
88058         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88059
88060 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88061
88062         * lib/argp-parse.c: Include <stddef.h>.
88063         (alignof, alignto): New macros.
88064         (parser_init): Don't assume that void * is aligned sufficiently
88065         for struct option.
88066
88067         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88068         need to extend the stack.
88069         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88070         large.
88071
88072 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88073
88074         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88075
88076 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88077
88078         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88079         (2004-10-24) change.  Apparently this was a false alarm.
88080
88081         * modules/getdate: Depend on alloca-opt, not alloca.
88082
88083 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88084
88085         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88086         Remove now-obsolete comment about AIX.
88087         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88088         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88089         (YYMAXDEPTH): New macro.
88090
88091 2004-12-18  Simon Josefsson  <jas@extundo.com>
88092
88093         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88094
88095 2004-12-18  Bruno Haible  <bruno@clisp.org>
88096
88097         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88098
88099 2004-12-18  Bruno Haible  <bruno@clisp.org>
88100
88101         * lib/fatal-signal.c (fatal_signals): Make non-const.
88102         (init_fatal_signals): New function.
88103         (uninstall_handlers, install_handlers): Ignore signals that were set to
88104         SIG_IGN.
88105         (at_fatal_signal): Call init_fatal_signals.
88106         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88107         SIG_IGN.
88108         Reported by Paul Eggert.
88109
88110 2004-12-18  Bruno Haible  <bruno@clisp.org>
88111
88112         * doc/alloca.texi: New file.
88113         * doc/alloca-opt.texi: New file.
88114
88115 2004-12-17  Jim Meyering  <jim@meyering.net>
88116
88117         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88118         Otherwise, install-sh could exit with improper exit status when
88119         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88120
88121 2004-12-16  Simon Josefsson  <jas@extundo.com>
88122
88123         * tests/test-base64.c: Add license.
88124
88125 2004-12-15  Stepan Kasal  <address@hidden>
88126
88127         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88128
88129 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88130
88131         * modules/getcwd (Files): Add m4/d-ino.m4.
88132         Suggested by Mark D. Baushke.
88133
88134 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88135
88136         * lib/getdate.y (textint): New member "negative".
88137         (time_zone_hhmm): New function.
88138         Expect 14 shift-reduce conflicts, not 13.
88139         (o_colon_minutes): New rule.
88140         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88141         (yylex): Set the "negative" member of signed numbers.
88142
88143 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88144
88145         * doc/getdate.texi (Time of day items, Time zone items):
88146         Describe new formats +00:00, UTC+00:00.
88147
88148 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88149
88150         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88151         spurious "-l"s.  Problem reported by Stepan Kasal.
88152
88153 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88154
88155         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88156         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88157
88158 2004-12-04  Simon Josefsson  <jas@extundo.com>
88159
88160         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88161         Vandoorselaere <yoann@prelude-ids.org>.
88162
88163 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88164
88165         Changes imported from coreutils.
88166         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88167         exist.
88168         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88169
88170 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88171
88172         Changes imported from coreutils.
88173         * lib/hard-locale.c: Assume <locale.h> exists.
88174         Include "strdup.h".
88175         (GLIBC_VERSION): New macro.
88176         (hard_locale): Assume setlocale exists.
88177         Rewrite to avoid #ifdef.
88178         Use strdup rather than malloc + strcpy.
88179         * lib/human.c: Assume <locale.h> exists.
88180         (human_readable): Assume localeconv exists.
88181
88182 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88183
88184         * modules/hard-locale (Depends-on): Add strdup.
88185
88186 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88187
88188         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88189         convert T2, not T.  (Imported from libc.)
88190
88191 2004-11-30  Simon Josefsson  <jas@extundo.com>
88192
88193         * modules/restrict (License): Change to LGPL.
88194
88195 2004-11-30  Simon Josefsson  <jas@extundo.com>
88196
88197         * m4/restrict.m4: Add copyright and copying conditions.
88198
88199 2004-11-30  Simon Josefsson  <jas@extundo.com>
88200
88201         * m4/base64.m4: New file.
88202
88203 2004-11-30  Simon Josefsson  <jas@extundo.com>
88204
88205         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88206         base64.
88207
88208         * tests/test-base64.c: New file.
88209
88210         * modules/base64: New file.
88211
88212 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88213
88214         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88215         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88216
88217         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88218
88219 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88220
88221         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88222         (__getcwd.c): Don't restore errno; glibc doesn't.
88223         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88224         first, falling back to our code only if its results look suspicious.
88225         Ensure that the resulting buffer is only as large as necessary.
88226
88227         * lib/readutmp.c: Include readutmp.h first.
88228         Include <errno.h>, since readutmp.h no longer does that.
88229         * lib/readutmp.h: Don't include <errno.h>,
88230         <sys/param.h>, <time.h>; not needed to establish interface.
88231         (errno): Remove decl.
88232         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88233         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88234         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88235
88236 2004-11-28  Simon Josefsson  <jas@extundo.com>
88237
88238         * lib/base64.h, base64.c: New file.
88239
88240 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88241
88242         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88243
88244 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88245
88246         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88247         (Depends-on): Remove pathmax, same.  Add mempcpy.
88248         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88249         (Makefile.am): Append getcwd.h to lib_SOURCES.
88250         (Include): Add getcwd.h.
88251         (Maintainer): Change from Jim Meyering to "all, glibc",
88252         since getdate now uses intended-for-glibc code.
88253         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88254         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88255
88256 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88257
88258         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88259         HP's ANSI C compiler.
88260         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88261         Declaring int functions causes warnings on some modern systems and
88262         shouldn't be needed to compile on ancient ones.
88263         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88264         defined.
88265
88266         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88267         with the following changes.
88268         (__set_errno): Parenthesize properly.
88269         Include <stdbool.h>.
88270         (MIN, MAX, MATCHING_INO): New macros.
88271         (__getcwd): Define with prototype, not K&R form.
88272         Use heuristics to allocate default buffer on stack if possible.
88273         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88274         behavior, and to avoid the PATH_MAX limit when computing
88275         ../../../../...
88276         Use MATCHING_INO to compare inode number to file.
88277         Check for arithmetic overflow in size calculations.
88278         Fix bug in reallocation of dot array that caused getcwd to fail
88279         on directories nested deeper than 75.
88280         Be more careful about saving errno on error.
88281         Do not use realloc; use only free+malloc, as this is a bit
88282         more flexible and avoids a needless copy operation.
88283         Do not inspect st_dev and st_ino for symbolic links; POSIX
88284         doesn't specify the latter.
88285         Check for closedir errors.
88286         Avoid needless casts.
88287         Use "#ifdef weak_alias" around weak_alias, to be like other
88288         glibc code.
88289         The following changes to getcwd.c have effect only when used in
88290         gnulib; they have no effect inside glibc proper.
88291         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88292         as alloca isn't used.
88293         (alloca, __alloca): Likewise.
88294         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88295         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88296         unconditionally, as gnulib assumes C89 or better.
88297         Do not include <sys/param.h>.
88298         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88299         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88300         better.
88301         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88302         Include <dirent.h> in a way that is compatible with modern Autoconf.
88303         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88304         New macros, if not already defined.
88305         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88306         Use "_LIBC", not "defined _LIBC", for consistency.
88307         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88308         a mempcpy module.
88309         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88310         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88311         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88312         credit only to Jim Meyering and adjust the copyright dates.
88313         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88314         <stdlib.h>, <unistd.h>, "pathmax.h".
88315         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88316         (INITIAL_BUFFER_SIZE): Remove.
88317         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88318
88319 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88320
88321         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88322         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88323         Use the _ONCE methods, for efficiency.
88324         Check for fcntl.h.  In test program, include <errno.h>
88325         and <fcntl.h> if available.  Remove old K&R cruft from
88326         test program.  Check for common errors in GNU/Linux,
88327         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88328         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88329         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88330         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88331         name accordingly.
88332         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88333         accommodate new getcwd.c.
88334         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88335         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88336         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88337         that's all we need now.
88338
88339 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88340
88341         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88342         argp-parse.c depends on getopt internals, that means we should
88343         always use our getopt, to be on the safe side.
88344         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88345         order not to spoil the result of an eventual previous invocation
88346         of gl_GETOPT_SUBSTITUTE.
88347
88348 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88349
88350         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88351         redefinition warnings. To avoid them, include the defines
88352         in `#if !defined __need_getopt ... #endif'. The only place
88353         where __getopt_argv_const is used is in definitions
88354         of getopt_long and getopt_long_only below, which are as well
88355         protected by `#ifndef __need_getopt'.
88356         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88357         __need_getopt after including <stdio.h> and <unistd.h> These
88358         headers might have defined it.
88359
88360 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88361
88362         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88363
88364 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88365
88366         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88367         (futimens): New function, which uses futimes if available.
88368         (futimens, utimens): Support timespec==NULL, with same semantics
88369         as utime and utimens.
88370         * lib/utimens.h (futimens): New decl.
88371
88372 2004-11-23  Jim Meyering  <jim@meyering.net>
88373
88374         * lib/getopt_.h: Remove trailing blanks.
88375
88376 2004-11-23  Jim Meyering  <jim@meyering.net>
88377
88378         * lib/__fpending.c: Add comment.
88379
88380 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88381
88382         * modules/canonicalize (Depends-on): Add xreadlink.
88383         Problem reported by James Youngman.
88384
88385 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88386
88387         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88388         New macros.
88389         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88390         optopt): Use them instead of invoking ## directly; otherwise, the
88391         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88392
88393 2004-11-19  Bruno Haible  <bruno@clisp.org>
88394
88395         * lib/strtok_r.c: Move comments from here...
88396         * lib/strtok_r.h: ... to here.
88397
88398 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88399
88400         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88401         implementations that mishandle size_t overflow.
88402
88403 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88404
88405         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88406         might fail.  Problem reported by Yoann Vandoorselaere.
88407         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88408         implementations that mishandle size_t overflow.
88409
88410 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88411
88412         * modules/canon-host (Depends-on): Add strdup.
88413
88414 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88415
88416         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88417
88418 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88419
88420         * lib/canon-host.c: Include "strdup.h".
88421         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88422         Use strdup instead of malloc/strcpy to duplicate strings.
88423
88424         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88425         (human_space_before_unit): New constant.
88426         * lib/human.c (human_readable): Support it.
88427
88428         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88429         (xgetcwd): Set errno correctly when failing.
88430         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88431         the failure is actually due to a PATH_MAX problem.
88432
88433         Further getopt changes to make it more likely that glibc will
88434         buy the changes back.
88435         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88436         (getopt): Use it, so to preserve glibc semantic
88437         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88438         when compiling for libc.
88439         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88440         (getopt_long, getopt_long_only): Use it.
88441
88442         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88443         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88444         (getopt): Argv is now char * const *, as per standard.
88445         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88446         not char *__getopt_argv_const *.
88447         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88448         _getopt_long_only_r): Likewise.
88449         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88450         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88451         _getopt_long_r, _getopt_long_only_r): Likewise.
88452         * lib/getopt_.h (__getopt_argv_const): Remove.
88453         (getopt): Argv is now char * const *, as per standard.
88454
88455         * lib/getdate.y (tORDINAL): New token.
88456         (day, relunit): Allow it for relative times.
88457         (relative_time_table): Use tORDINAL for ordinals.
88458
88459 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88460
88461         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88462         Document that "second" isn't allowed as an ordinal number.
88463
88464 2004-11-16  Jim Meyering  <jim@meyering.net>
88465
88466         * modules/closeout (Depends-on): Add fpending.
88467
88468 2004-11-15  Jim Meyering  <jim@meyering.net>
88469
88470         * lib/closeout.c: Include "__fpending.h" once again.
88471         Include <stdbool.h>.
88472         (close_stdout): Don't fail just because stdout was closed initially,
88473         since some programs don't write to stdout in the normal course of
88474         operation (other than --version and --help), and we don't want this
88475         function to make e.g. `touch file >&-' fail.
88476         But do fail if it was closed and someone has tried to write to it.
88477         E.g., `printf foo >&-' must fail.
88478
88479 2004-11-13  Jim Meyering  <jim@meyering.net>
88480
88481         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88482
88483 2004-11-12  Simon Josefsson  <jas@extundo.com>
88484
88485         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88486         small doc fix is still pending.
88487
88488 2004-11-11  Simon Josefsson  <jas@extundo.com>
88489
88490         * modules/strtok_r: New file.
88491
88492         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88493         strtok_r.
88494
88495 2004-11-11  Simon Josefsson  <jas@extundo.com>
88496
88497         * m4/strtok_r.m4: New file.
88498
88499         * m4/getopt.m4: Replace opterr.
88500
88501 2004-11-11  Simon Josefsson  <jas@extundo.com>
88502
88503         * lib/strtok_r.h, strtok_r.c: New file.
88504
88505 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88506
88507         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88508         of replacing opterr, getopt, etc.  This should handle the
88509         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88510
88511 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88512
88513         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88514         we can stop lying to compilers about the constness of argv when we
88515         are compiled outside glibc.
88516         (getopt, getopt_long, getopt_long_only): Use it.
88517         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88518         _getopt_internal, getopt): Likewise.
88519         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88520         _getopt_long_only_r): Likewise.
88521         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88522         _getopt_long_r, _getopt_long_only_r): Likewise.
88523
88524         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88525         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88526         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88527         the other external symbols.
88528         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88529         declaration, since the above renaming now works around collisions.
88530
88531 2004-11-11  Jim Meyering  <jim@meyering.net>
88532
88533         * lib/linebreak.c: Remove trailing blanks.
88534         * lib/alloca_.h: Likewise.
88535         * lib/acosl.c: Likewise.
88536         * lib/euidaccess.c: Likewise.
88537         * lib/allocsa.h: Likewise.
88538
88539 2004-11-10  Simon Josefsson  <jas@extundo.com>
88540
88541         * m4/getaddrinfo.m4: New file.
88542
88543 2004-11-10  Simon Josefsson  <jas@extundo.com>
88544
88545         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88546
88547 2004-11-10  Simon Josefsson  <jas@extundo.com>
88548
88549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88550         getaddrinfo.
88551
88552         * modules/getaddrinfo: New file.
88553
88554 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88555
88556         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88557
88558 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88559
88560         * lib/mktime.c (SHR): New macro, which is a portable
88561         substitute for >> that should work even on Crays.
88562         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88563         Problem reported by Mark D. Baushke in
88564         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88565         * lib/getdate.y (SHR): Likewise.
88566         (tm_diff): Use it.
88567         * lib/strftime.c (SHR): Likewise.
88568         (tm_diff): Use it.
88569         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88570         quote_these_too, so that right shifts are well defined.  All uses
88571         changed.
88572
88573 2004-11-10  Jim Meyering  <jim@meyering.net>
88574
88575         Ensure that no close failure goes unreported.
88576         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88577         return early when it seems there's nothing to flush.
88578         Don't include __fpending.h.
88579
88580 2004-11-10  Jim Meyering  <jim@meyering.net>
88581
88582         * modules/closeout (Depends-on): Remove fpending.
88583
88584 2004-11-10  Jim Meyering  <jim@meyering.net>
88585
88586         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88587
88588 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88589
88590         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88591         gl_FUNC_STRFTIME.
88592         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88593         and AC_REQUIRE when possible, to avoid duplicate checks.
88594         Check for <wchar.h>.
88595
88596 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88597
88598         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88599
88600 2004-11-09  Bruno Haible  <bruno@clisp.org>
88601
88602         * m4/sockpfaf.m4: New file.
88603
88604 2004-11-05  Bruno Haible  <bruno@clisp.org>
88605
88606         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88607         Reported by Mark D. Baushke <mdb@cvshome.org>.
88608
88609 2004-11-04  Bruno Haible  <bruno@clisp.org>
88610
88611         2004-09-11  Bruno Haible  <bruno@clisp.org>
88612                 * allocsa.valgrind: New file.
88613         2004-02-06  Bruno Haible  <bruno@clisp.org>
88614                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88615                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88616                 Reported by Christopher Seip <chris.seip@hp.com>.
88617
88618 2004-11-04  Bruno Haible  <bruno@clisp.org>
88619
88620         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88621         (Makefile.am): Distribute it.
88622
88623 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88624
88625         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88626         with errno == ERANGE if the buffer is too small.
88627         Problem reported by Mark D. Baushke.
88628
88629 2004-11-03  Albert Chin  <china@thewrittenword.com>
88630             Paul Eggert  <eggert@cs.ucla.edu>
88631
88632         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88633         equivalent, substitute $ac_type for equivalent type rather than
88634         blindly using uint32_t *always* which won't work if uint32_t is not
88635         available.  Define _UINT32_T to work around typedef of uint32_t if
88636         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88637         2.5.1.
88638
88639 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88640
88641         * m4/jm-macros.m4: Sync from coreutils.
88642         (gl_MACROS): Check for mbrlen, for pathchk.
88643         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88644
88645 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88646
88647         * lib/xreadlink.c (MAXSIZE): New macro.
88648         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88649         size does not exceed MAXSIZE.  Avoid cast.
88650         As suggested by Mark D. Baushke in
88651         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88652         if readlink fails with buffer size just under MAXSIZE, try again
88653         with MAXSIZE.
88654
88655 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88656
88657         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88658
88659 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88660         and  Paul Eggert  <eggert@cs.ucla.edu>
88661
88662         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88663         (get_date): Overparenthesize to avoid GCC warning.
88664
88665 2004-11-02  Bruno Haible  <bruno@clisp.org>
88666
88667         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88668         returns void.
88669
88670 2004-11-02  Bruno Haible  <bruno@clisp.org>
88671
88672         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88673         function returns void.
88674
88675 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88676
88677         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88678         fflush_unlocked, flockfile, funlockfile, funlockfile,
88679         fputs_unlocked, putc_unlocked.
88680
88681 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88682
88683         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88684         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88685         already declared.
88686
88687 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88688
88689         * modules/getdate (Files): Add doc/getdate.texi.
88690         (Depends-on): Add setenv, xalloc.
88691
88692 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88693
88694         * lib/getdate.y: Add support for TZ="foo" within a date string.
88695         Fix some bugs near time_t boundaries.  Reject dates with
88696         out-of-range components, e.g., "Sept 31".
88697         Include <stdlib.h>, "setenv.h", "xalloc.h".
88698         (ISDIGIT_LOCALE): Remove; unused.
88699         Note that the TZ and time functions used here are not reentrant.
88700         (mktime_ok, get_tz): New functions.
88701         (TZBUFSIZE): New constant.
88702         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88703         This requires that we sometimes generate our own TZ="XXX..." setting.
88704
88705 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88706
88707         * doc/getdate.texi: New file, from coreutils with modifications for
88708         the new TZ parsing.
88709
88710 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88711
88712         * lib/mktime.c (not_equal_tm): Remove redundant check.
88713
88714 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88715
88716         * modules/regex (lib_SOURCES): Add regex.c.
88717         Reported by James Youngman in
88718         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88719
88720 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88721
88722         * lib/getdate.y: Use Bison 1.875 features, and some minor
88723         code cleanups.  This change does not affect semantics.
88724         Don't include <stdlib.h>; no longer needed.
88725         Don't include unlocked-io.h; only the "#if TEST" code uses
88726         stdio, and performance isn't crucial there.
88727         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88728         Bison 1.875 features as described below.
88729         All uses of "PC." replaced by "pc->".
88730         (YYSTYPE): Add a forward declaration.
88731         (yylex, yyerror): Use full prototypes in forward decls.
88732         Use "%pure-parser" rather than obsolescent "%pure_parser".
88733         Use %parse-param and %lex-param instead of obsolescent
88734         YYPARSE_PARAM and YYLEX_PARAM.
88735         (meridian_table, month_and_day_table, time_units_table,
88736         relative_time_table, time_zone_table, military_table,
88737         lookup_zone, lookup_word, get_date):
88738         Use NULL instead of 0 where appropriate.
88739         (to_hour): Avoid abort (), to avoid a dependency on
88740         stdlib.h.
88741         (yyerror, yylex): Now accepts parser_control * arg.
88742         (main) [TEST]: Use '\0' rather than 0 for char.
88743
88744 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88745
88746         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88747
88748 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88749
88750         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88751         It's now the caller's responsibility to handle the case where
88752         !HAVE_GETPAGESIZE && !defined getpagesize.
88753
88754         * lib/mktime.c (leapyear): Arg is long int, not int.
88755
88756 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88757
88758         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88759
88760 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88761
88762         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88763         missing.  Problem reported by James Youngman.
88764
88765 2004-10-16  Simon Josefsson  <jas@extundo.com>
88766
88767         * gnulib-tool: Fix comments.  Fix parse problem.
88768         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88769
88770 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88771
88772         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88773         implementation of getopt_long.  Problem reported by Alexander Taler in:
88774         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88775
88776 2004-10-15  Bruno Haible  <bruno@clisp.org>
88777
88778         * gnulib-tool: Untabify. Initialize supplied_libname.
88779         (func_usage): More homogenous output.
88780         (func_modules_transitive_closure, func_modules_to_filelist,
88781         func_emit_lib_Makefile_am): New functions.
88782         (func_import): New function, extracted from big case statement. Use
88783         func_get_license, func_modules_transitive_closure,
88784         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88785         opt_lgpl. Don't use test -a, as it's not portable.
88786         (func_create_testdir): Use func_modules_transitive_closure,
88787         func_modules_to_filelist, func_emit_lib_Makefile_am.
88788
88789 2004-10-15  Bruno Haible  <bruno@clisp.org>
88790
88791         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88792
88793 2004-10-15  Bruno Haible  <bruno@clisp.org>
88794
88795         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88796         the portions belonging to each module.
88797         Suggested by Derek Robert Price <derek@ximbiot.com>.
88798
88799 2004-10-12  Simon Josefsson  <jas@extundo.com>
88800
88801         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88802         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88803         to real functions.
88804
88805 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88806
88807         * modules/vsnprintf: New file.
88808
88809 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88810
88811         * m4/vsnprintf.m4: New file.
88812
88813 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88814
88815         * lib/vsnprintf.h: New file.
88816         * lib/vsnprintf.c: New file.
88817
88818 2004-10-11  Bruno Haible  <bruno@clisp.org>
88819
88820         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88821         vsnprintf.
88822
88823 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88824
88825         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88826
88827 2004-10-07  Bruno Haible  <bruno@clisp.org>
88828
88829         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88830         fits into the provided buffer.
88831
88832 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88833
88834         * lib/diacrit.c, diacrit.h: Add GPL notice.
88835
88836         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88837         notice.
88838         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88839         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88840         This avoids a potential constant-folding bug.
88841
88842 2004-10-05  Bruno Haible  <bruno@clisp.org>
88843
88844         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88845         for the declaration of strsep.
88846
88847 2004-10-05  Bruno Haible  <bruno@clisp.org>
88848
88849         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88850
88851 2004-10-04  Simon Josefsson  <jas@extundo.com>
88852
88853         * modules/memmem: New file.
88854         * tests/test-memmem.c: New file.
88855         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88856
88857 2004-10-04  Simon Josefsson  <jas@extundo.com>
88858
88859         * m4/memmem.m4: New file.
88860
88861 2004-10-04  Simon Josefsson  <jas@extundo.com>
88862
88863         * lib/memmem.h: New file.
88864         * lib/memmem.c: New file, taken from glibc.
88865
88866 2004-10-04  Simon Josefsson  <jas@extundo.com>
88867
88868         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88869         '#ifdef USE_UNLOCKED_IO'.
88870
88871 2004-10-04  Simon Josefsson  <jas@extundo.com>
88872
88873         * config/srclist.txt: Add memmem from glibc.
88874
88875 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88876
88877         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88878
88879         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88880         modules/exclude, modules/getdate, modules/getline,
88881         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88882         modules/getusershell, modules/linebuffer, modules/md5,
88883         modules/mountlist, modules/posixtm, modules/readtokens,
88884         modules/readutmp, modules/regex, modules/sha1,
88885         modules/version-etc, modules/yesno:
88886         Remove dependency on unlocked-io.
88887
88888 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88889
88890         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88891
88892         * m4/unlocked-io.m4: Add copyright notice.
88893         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88894
88895 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88896
88897         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88898         * lib/xmalloc.c (xmemdup): Likewise.
88899         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88900         XFREE): Remove these long-obsolescent macros.
88901         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88902         * lib/xstrdup.c: Remove.
88903
88904         * lib/regex.c (re_comp): Cast gettext return value to char *,
88905         Problem reported by Martin Neitzel via Mark D. Baushke.
88906
88907 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88908
88909         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88910         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88911         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88912         regex.c, sha1.c, version-etc.c, yesno.c:
88913         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88914         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88915         the includer's responsibility.
88916
88917         Sync from coreutils.
88918
88919         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88920         points to the start of a string, as the C Standard says the
88921         resulting behavior is undefined.
88922
88923         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88924         simple -> simple_backups, numbered_existing ->
88925         numbered_existing_backups, numbered -> numbered_backups
88926         to avoid shadowing problems.  All uses changed.
88927         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88928         * lib/backupfile.c (check_extension, numbered_backup):
88929         Rename locals to avoid shadowing 'basename'.
88930         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88931         once.
88932
88933         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88934         * lib/.cvsignore: Add getopt.h.
88935
88936 2004-10-04  Bruno Haible  <bruno@clisp.org>
88937
88938         * modules/README: New file.
88939         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88940         not a module.
88941
88942 2004-10-02  Jim Meyering  <jim@meyering.net>
88943
88944         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88945
88946 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88947
88948         * modules/strsep: New file.
88949
88950 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88951
88952         * m4/strsep.m4: New file.
88953
88954 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88955
88956         * lib/strsep.h: New file.
88957         * lib/strsep.c: New file.
88958
88959 2004-10-01  Simon Josefsson  <jas@extundo.com>
88960
88961         * lib/snprintf.c (snprintf): Handle size==0.
88962
88963 2004-10-01  Simon Josefsson  <jas@extundo.com>
88964             Bruno Haible  <bruno@clisp.org>
88965
88966         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88967         (snprintf): Declare 'args'.
88968
88969 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88970
88971         * lib/snprintf.c: Remove comments as to why each header is needed.
88972
88973 2004-10-01  Bruno Haible  <bruno@clisp.org>
88974
88975         * MODULES.html.sh: Add strsep.
88976
88977 2004-09-30  Simon Josefsson  <jas@extundo.com>
88978
88979         * modules/snprintf: New file.
88980
88981 2004-09-30  Simon Josefsson  <jas@extundo.com>
88982
88983         * m4/snprintf.m4: New file.
88984
88985 2004-09-30  Simon Josefsson  <jas@extundo.com>
88986
88987         * lib/snprintf.h, lib/snprintf.c: New files.
88988
88989 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88990
88991         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88992         (hol_entry_help): Never translate an empty string.
88993         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88994         * lib/argp.h (OPTION_NO_TRANS): New option.
88995
88996 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88997
88998         * modules/argp (Maintainer): Replace Simon Josefsson
88999         by Sergey Poznyakoff.
89000
89001 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89002
89003         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89004         changes merged back into glibc.
89005
89006 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89007
89008         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89009
89010 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89011
89012         * lib/xvasprintf.c: Include xalloc.h.
89013         (xvasprintf): Use xalloc_die, not xmalloc_die.
89014
89015 2004-09-29  Bruno Haible  <bruno@clisp.org>
89016
89017         * modules/alloca-opt: New file, derived from modules/alloca.
89018         * modules/allocsa: Depend on alloca-opt instead of alloca.
89019         * modules/setenv: Likewise.
89020         * modules/vasnprintf: Likewise.
89021         * MODULES.html.sh: Add alloca-opt.
89022
89023 2004-09-28  Simon Josefsson  <jas@extundo.com>
89024
89025         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89026         LGPL, and to replace license template from GPL to LGPL.
89027
89028 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89029
89030         * modules/dummy: Change license to LGPL.
89031
89032 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89033
89034         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89035
89036 2004-09-24  Simon Josefsson  <jas@extundo.com>
89037
89038         * modules/minmax (License): Change from GPL to LGPL.
89039
89040 2004-09-23  Simon Josefsson  <jas@extundo.com>
89041
89042         * gnulib-tool (--import): Typo.
89043
89044 2004-09-23  Simon Josefsson  <jas@extundo.com>
89045
89046         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89047
89048 2004-09-22  Bruno Haible  <bruno@clisp.org>
89049
89050         * modules/*: Add 'License' field.
89051         * gnulib-tool: Accept --extract-license option.
89052         (func_get_license): New function.
89053
89054 2004-09-21  Bruno Haible  <bruno@clisp.org>
89055
89056         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89057         Reported by Simon Josefsson.
89058
89059 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89060
89061         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89062         gl_AC_TYPE_LONG_LONG.
89063
89064 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89065
89066         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89067
89068 2004-09-18  Simon Josefsson  <jas@extundo.com>
89069         and  Paul Eggert  <eggert@cs.ucla.edu>
89070
89071         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89072         calls with autoreconf.  Define GL_LIB.
89073
89074 2004-09-14  Karl Berry  <karl@gnu.org>
89075
89076         * config/srclist.txt: unsync setenv.c, sigh.
89077
89078 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89079
89080         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89081         Problem reported by Bruno Haible in:
89082         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89083
89084 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89085
89086         * config/srclist.txt: Comment out argp-pvh.c.
89087
89088 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89089
89090         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89091         in case some system header has #define'd it.  Problem reported by
89092         Soeren D. Schulze in
89093         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89094
89095 2004-09-09  Karl Berry  <karl@gnu.org>
89096
89097         * regex.[ch]: delete from the root.  These were supposed to be
89098                 synced with emacs cvs, but this has not happened for about
89099                 a year, and anyway nothing else uses emacs regex.[ch].
89100                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89101                 lib/regex[.ch] is untouched.
89102
89103 2004-09-09  Bruno Haible  <bruno@clisp.org>
89104
89105         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89106
89107 2004-09-09  Bruno Haible  <bruno@clisp.org>
89108
89109         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89110         modifications.
89111         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89112
89113 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89114
89115         * modules/xvasprintf: New file.
89116         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89117
89118 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89119
89120         * lib/xvasprintf.h: New file.
89121         * lib/xvasprintf.c: New file.
89122         * lib/xasprintf.c: New file.
89123
89124 2004-09-08  Bruno Haible  <bruno@clisp.org>
89125
89126         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89127
89128 2004-09-08  Bruno Haible  <bruno@clisp.org>
89129
89130         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89131         length is > INT_MAX.
89132         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89133         more.
89134
89135 2004-09-08  Bruno Haible  <bruno@clisp.org>
89136
89137         * lib/stdint_.h: New file, taken from GNU clisp.
89138
89139 2004-09-08  Bruno Haible  <bruno@clisp.org>
89140             Oskar Liljeblad  <oskar@osk.mine.nu>
89141
89142         * modules/stdint: New file.
89143         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89144
89145 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89146
89147         Import from coreutils.
89148         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89149         strings on unbounded length.  alloca's performance benefits aren't
89150         that important here.
89151         (V_STRDUP): Remove.
89152         (parse_with_separator): New function, with most of the internals
89153         of the old parse_user_spec.  Allow user to omit both user and group,
89154         for compatibility with FreeBSD.
89155         Clone only the user name, not the entire spec.
89156         Do not set *uid, *gid unless entirely successful.
89157         Avoid memory leak in some failing cases.
89158         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89159         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89160         (parse_user_spec): Rewrite to use parse_with_separator.
89161
89162 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89163
89164         * modules/userspec: Don't depend on alloca.
89165
89166 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89167
89168         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89169
89170 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89171
89172         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89173         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89174         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89175
89176 2004-08-16  Simon Josefsson  <jas@extundo.com>
89177
89178         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89179         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89180         Add --dry-run for --import.
89181         Let user provided command line parameters override configure.ac
89182         settings.
89183
89184 2004-08-12  Simon Josefsson  <jas@extundo.com>
89185
89186         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89187         as discussed with Paul Eggert in threads rooted at
89188         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89189         and
89190         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89191         Before, the test was empty, and relied on ELIDE_CODE in source
89192         code.)
89193         (gl_PREREQ_GETOPT): New macro.
89194         (gl_GETOPT): Use them.
89195
89196 2004-08-12  Simon Josefsson  <jas@extundo.com>
89197
89198         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89199         * lib/getopt_.h: Renamed from getopt.h.
89200
89201 2004-08-12  Simon Josefsson  <jas@extundo.com>
89202
89203         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89204         Change default library name from libfoo to libgnu.
89205         Now, if you have a configure.ac that says:
89206                 gl_SOURCE_BASE(gl)
89207                 gl_M4_BASE(gl/m4)
89208                 gl_MODULES(error getopt etcetera)
89209                 gl_INIT
89210         you can import all you need by running:
89211                 ../gnulib/gnulib-tool --import
89212
89213         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89214         (Makefile.am): Rewrite, use logic from argz.
89215         (Include): Use <getopt.h> instead of "getopt.h".
89216
89217 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89218
89219         * modules/argp (Files): Add m4/unlocked-io.m4.
89220         (Depends-on): Add extensions.
89221
89222 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89223
89224         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89225         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89226         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89227         Check for program_invocation_name, program_invocation_short_name,
89228         flockfile, funlockfile, features.h, _getopt_long_only_r.
89229
89230 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89231
89232         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89233         its complicated substitute.
89234         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89235         and program_invocation_name.
89236         (__argp_basename) [!_LIBC]: Remove; the only use was
89237         replaced by its body.
89238         (__argp_short_program_name): Change condition from
89239         !defined __argp_short_program_name to
89240         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89241         to match argp-namefrob.h.
89242         (__argp_failure): Don't assume strerror_r returns char *.
89243         * lib/argp-parse.c (N_): Define unconditionally.
89244         (argp_default_options): Fill out initializers with 0 to avoid
89245         gcc warnings.
89246
89247 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89248
89249         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89250         getopt1.c.
89251
89252 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89253
89254         Merge from coreutils.
89255
89256         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89257
89258         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89259         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89260
89261 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89262
89263         Merge from coreutils.
89264
89265         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89266         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89267         for Reliant Unix 5.43.
89268
89269         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89270         (union fooround): Use uintmax_t, not long int.
89271         The rest is a merge from libc:
89272         [defined _LIBC]: Include <shlib-compat.h>.
89273         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89274
89275         * lib/settime.c (settime): Recode to avoid warning with
89276         Sun Forte C 6U2.
89277
89278         * lib/strverscmp.c: Convert to UTF-8.
89279
89280 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89281
89282         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89283         m4/uintmax_t.m4.
89284
89285 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89286
89287         * modules/xalloc-die: New file.
89288         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89289
89290         * modules/md5 (Files): Add m4/uint32_t.m4.
89291         * modules/sha1: Renamed from modules/sha.
89292         (Files):
89293         Rename lib/sha.h to lib/sha1.h.
89294         Rename lib/sha.c to lib/sha1.c.
89295         Rename m4/sha.m4 to m4/sha1.m4.
89296         (lib_SOURCES): Likewise.
89297         (configure.ac): Rename gl_SHA to gl_SHA1.
89298         (Include): sha.h -> sha1.h.
89299
89300 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89301
89302         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89303         * m4/sha1.m4: Renamed from sha.m4.
89304         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89305
89306 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89307
89308         * lib/obstack.h (obstack_empty_p):
89309         Don't assume that chunk->contents is suitably aligned.
89310         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89311         Likewise. Problem reported by Benno in
89312         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89313
89314         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89315         readable.  This could be improved further but it'd take some work.
89316
89317 2004-08-08  Simon Josefsson  <jas@extundo.com>
89318
89319         * modules/xgethostname (Depends-on): Remove exit and error (not
89320         used).
89321
89322         * modules/getpass-gnu: Add getpass.h.
89323         (Depends-on): Add stdbool.
89324         * modules/getpass: Add getpass.h.
89325
89326 2004-08-08  Simon Josefsson  <jas@extundo.com>
89327
89328         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89329         Check getpass declaration.
89330
89331 2004-08-08  Simon Josefsson  <jas@extundo.com>
89332
89333         * lib/xgethostname.c: Don't include error.h (not used).
89334
89335         * lib/getpass.h: Add.
89336         * lib/getpass.c: Include getpass.h first.
89337
89338 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89339
89340         * lib/xalloc-die.c: New file.
89341         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89342         All uses removed.
89343         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89344         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89345         xalloc-die.c.
89346         (_, N_, xalloc_die): Move to xalloc-die.c.
89347         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89348         so that we needn't mess with xalloc_msg_memory_exhausted.
89349
89350         * lib/sha1.h: Renamed from sha.h.
89351         (SHA1_H): Renamed from _SHA_H.
89352         (sha1_ctx): Renamed from sha_ctx.
89353         (sha1_init_ctx): Renamed from sha_init_ctx.
89354         (sha1_process_block): Renamed from sha_process_block.
89355         (sha1_process_bytes): Renamed from sha_process_bytes.
89356         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89357         (sha1_read_ctx): Renamed from sha_read_ctx.
89358         (sha1_stream): Renamed from sha_stream.
89359         (sha1_buffer): Renamed from sha_buffer.
89360         * lib/sha1.c: Likewise; renamed from sha.c.
89361         Do not include <sys/types.h>.
89362         Include <stddef.h> rather than <stdlib.h>.
89363
89364 2004-08-08  Bruno Haible  <bruno@clisp.org>
89365
89366         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89367         FILESYSTEM_PREFIX_LEN.
89368         * lib/progreloc.c: Likewise.
89369         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89370
89371 2004-08-06  Simon Josefsson  <jas@extundo.com>
89372
89373         * modules/progname (Depends-on): Don't depend on stdbool.
89374
89375 2004-08-06  Simon Josefsson  <jas@extundo.com>
89376
89377         * modules/getsubopt: New file.
89378         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89379         getsubopt.
89380
89381 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89382
89383         More merge from coreutils.
89384
89385         * m4/utimens.m4, m4/utimecmp.m4: New files.
89386         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89387         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89388         prereq.m4, sha.m4: Import changes from coreutils.
89389
89390 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89391
89392         More merge from coreutils.
89393         * modules/raise, modules/readtokens0, modules/utimens:
89394         * modules/utimecmp, module/xnanosleep: New files.
89395         * modules/strftime: Add lib/strftime.h.
89396         Change include from <time.h> to "strftime.h".
89397         * modules/yesno: Add lib/yesno.h.
89398         * modules/backupfile: Remove lib/addext.c.
89399         * modules/euidaccess: Add stat-macros.h.
89400         * modules/canonicalize, modules/euidaccess,
89401         modules/filemode, modules/lchown, modules/makepath,
89402         modules/rmdir, modules/stat: Likewise.
89403
89404 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89405
89406         Merge from tar.
89407         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89408         SIZE_MAX is a valid preprocessor constant.
89409         (__argp_basename): Change from "#ifndef _LIBC"
89410         to "#ifndef __argp_short_program_name", so that
89411         we don't compile these functions for tar.
89412
89413         More merges from coreutils.
89414         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89415         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89416         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89417         * lib/addext.c: Remove; no longer needed.
89418         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89419         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89420         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89421         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89422         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89423         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89424         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89425         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89426         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89427         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89428         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89429         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89430         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89431         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89432         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89433         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89434         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89435         Import changes from coreutils.
89436
89437 2004-08-05  Simon Josefsson  <jas@extundo.com>
89438
89439         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89440
89441 2004-08-05  Simon Josefsson  <jas@extundo.com>
89442
89443         * m4/getsubopt.m4: New file.
89444
89445 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89446
89447         Merge from coreutils.
89448
89449         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89450         * m4/getcwd-path-max.m4: New files.
89451
89452         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89453         FILESYSTEM_PREFIX_LEN ->
89454         FILE_SYSTEM_PREFIX_LEN.
89455         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89456         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89457         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89458         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89459
89460         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89461         prerequisite modules now handle the DOS stuff.
89462         Don't check for unistd.h.
89463
89464 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89465
89466         Merge from coreutils.
89467
89468         * lib/.gdb-history: Remove; this doesn't belong here.
89469
89470         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89471         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89472         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89473         * lib/getcwd.c: New files.
89474
89475         * lib/dirname.h: Include <stdbool.h>.
89476         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89477         for consistency with POSIX terminology.  All uses changed.
89478         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89479         (strip_trailing_slashes): Use bool for booleans.
89480         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89481
89482         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89483         sometimes returns a positive errno value even when it succeeds.
89484         (print_errno_message) [!LIBC]: Fall back on strerror if
89485         __strerror_r fails.
89486
89487         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89488         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89489         (longest_relative_suffix): New function.
89490         (path_concat): Use it.  Assume first argument is not NULL.
89491         Port to DOS.  Omit redundant separators.
89492         Report an error instead of returning NULL.
89493         Use mempcpy instead of memcpy.
89494         (xpath_concat): Remove: not declared or used.
89495
89496         * lib/same.h: Include <stdbool.h>
89497         (same_name): Return bool, not int.
89498         * lib/same.c (same_name): Likewise.
89499         (errno): Don't declare; we assume C89 or better now.
89500
89501         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89502         if not already defined.
89503
89504         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89505         * lib/dup-safer.c (errno): Likewise.
89506
89507 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89508
89509         Merge from coreutils.
89510         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89511         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89512         * modules/path-concat: Don't depend on strdup.
89513
89514 2004-08-03  Simon Josefsson  <jas@extundo.com>
89515
89516         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89517         * lib/progname.h: Don't include stdbool.h.
89518
89519 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89520
89521         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89522         * MODULES.html.sh (func_all_modules): Remove fatal.
89523
89524 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89525
89526         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89527
89528 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89529
89530         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89531         working.
89532
89533 2004-08-02  Simon Josefsson  <jas@extundo.com>
89534
89535         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89536         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89537         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89538
89539 2004-08-01  Simon Josefsson  <jas@extundo.com>
89540
89541         * lib/xgetdomainname.c: Include stdlib.h, for free().
89542
89543 2004-07-19  Bruno Haible  <bruno@clisp.org>
89544
89545         * MODULES.html.sh (func_all_modules): Add dummy.
89546
89547 2004-07-16  Simon Josefsson  <jas@extundo.com>
89548
89549         * modules/dummy: New file.
89550
89551 2004-07-16  Simon Josefsson  <jas@extundo.com>
89552
89553         * lib/dummy.c: New file.
89554
89555 2004-07-16  Bruno Haible  <bruno@clisp.org>
89556
89557         * lib/backupfile.h: Add extern "C" for C++.
89558         * lib/closeout.h: Likewise.
89559         * lib/copy-file.h: Likewise.
89560         * lib/findprog.h: Likewise.
89561         * lib/full-write.h: Likewise.
89562         * lib/pathname.h: Likewise.
89563         * lib/progname.h: Likewise.
89564         * lib/stpcpy.h: Likewise.
89565         * lib/stpncpy.h: Likewise.
89566         * lib/strcase.h: Likewise.
89567         * lib/strstr.h: Likewise.
89568         * lib/xalloc.h: Likewise.
89569
89570         * lib/mbswidth.h: Add extern "C" for C++.
89571         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89572
89573 2004-07-13  Robert Millan  <robertmh@gnu.org>
89574
89575         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89576
89577 2004-07-09  Simon Josefsson  <jas@extundo.com>
89578
89579         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89580         failed without this.)
89581
89582 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89583
89584         * modules/chown (Files): Add lib/fchown-stub.c, since
89585         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89586
89587 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89588
89589         * lib/fchown-stub.c: New file.
89590
89591 2004-06-24  Jim Meyering  <jim@meyering.net>
89592
89593         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89594
89595 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89596
89597         * modules/argz: Omit "#include".
89598
89599         * MODULES.html.sh (func_all_modules): Add calloc, to match
89600         2004-06-01 addition of calloc module.
89601
89602 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89603
89604         * m4/argz.m4: New file, which is autoupdated from libtool.
89605
89606 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89607
89608         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89609         libtool.
89610
89611 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89612
89613         * config/srclist-update: Don't insist on "USA." before the
89614         close-comment, as libtool omits the period and puts the */ on a
89615         separate line.
89616         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89617         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89618
89619 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89620
89621         * modules/argz: New file.
89622         * MODULES.html.sh (func_all_modules): Add argz.
89623
89624 2004-06-12  Jim Meyering  <jim@meyering.net>
89625         and  Paul Eggert  <eggert@cs.ucla.edu>
89626
89627         * modules/hash (Files): Add lib/xalloc.h.
89628         * modules/pipe (Depends-on): Add wait-process.
89629         * modules/stat (Depends-on): Add xalloc.
89630         * modules/userspec (Files): Add lib/userspec.h.
89631         * modules/xstrto
89632
89633         Upgrade from gettext-0.13.
89634         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89635         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89636         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89637
89638 2004-06-10  Jim Meyering  <jim@meyering.net>
89639
89640         * lib/calloc.c: New file.
89641
89642 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89643
89644         * lib/getdate.y (yylex): Allow space between sign and number.
89645         Problem reported by Dan Jacobson.
89646
89647 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89648
89649         Merge from coreutils CVS.
89650
89651         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89652         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89653         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89654         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89655         xstrtol.m4: Fix copyright date and/or serial number.
89656
89657         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89658         See if we need an fchown replacement.
89659         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89660         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89661         and use the replacement function if we detect either defect.
89662
89663         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89664         gl_UTIMECMP.
89665
89666 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89667         and  Jim Meyering  <jim@meyering.net>
89668
89669         Merge from coreutils CVS.
89670
89671         * lib/stat-macros.h: New file, with contents from file-type.h
89672         and coreutils' system.h.
89673         * lib/file-type.c: Include "stat-macros.h".
89674         * lib/file-type.h (file_type): Move all macro definitions to new file,
89675         stat-macros.h.
89676
89677         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89678         Wrap old code with this conditional.
89679         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89680         function that does not dereference symlinks.
89681         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89682
89683         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89684         dependency problems.
89685         (xreadlink): Accept new arg SIZE, for efficiency.
89686         All decls and uses changed.
89687         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89688
89689         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89690         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89691
89692         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89693         sysexits.h.
89694
89695 2004-06-01  Jim Meyering  <jim@meyering.net>
89696
89697         * m4/calloc.m4: New file.
89698
89699 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89700
89701         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89702         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89703         Also, fix a typo in a diagnostic.
89704
89705 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89706
89707         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89708         or AC_FUNC_REALLOC.
89709
89710 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89711
89712         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89713         macros to be defined.
89714         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89715         the allocator returns NULL because the requested size is zero.
89716
89717 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89718
89719         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89720         var.  Add comment explaining why libc still defines it.  This
89721         merges the following patch from glibc:
89722         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89723
89724 2004-05-20  Andreas Schwab  <schwab@suse.de>
89725
89726         * m4/free.m4: Replace free if it not known to work, not the other
89727         way round.
89728
89729 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89730
89731         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89732         present in glibc since revision 1.1 of this file.
89733         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89734         obstack_alignment_mask, obstack_alloc, obstack_base,
89735         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89736         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89737         obstack_grow0, obstack_init, obstack_int_grow,
89738         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89739         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89740         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89741         nonexistent functions.
89742
89743 2004-05-18  Karl Berry  <karl@gnu.org>
89744
89745         * config/srclist.txt: break link for vasnprintf.c.
89746
89747 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89748
89749         Port obstack to the AS/400, where pointers are 16 bytes wide and
89750         you cannot cast an integer to a valid pointer.  This patch is
89751         currently waiting to be integrated into glibc; see
89752         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89753
89754         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89755         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89756         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89757         (struct obstack): temp member is now a union of a pointer and
89758         an integer, instead of an integer.  All integer uses changed.
89759         This does not affect the physical layout of struct obstack,
89760         except on hosts (like the AS/400) where the size or alignment of
89761         void * is greater than that of ptrdiff_t.
89762         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89763         __STDC__)]: Store temporary in pointer member of union, not
89764         integer member.
89765         * lib/obstack.c: Include <stddef.h>, for offsetof.
89766         (struct fooalign): Remove; it doesn't need a name.
89767         (union fooround): Change double to long double, and add void *.
89768         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89769         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89770         not a macro.  Hence the values are always int; so remove all
89771         casts-to-int in uses.
89772
89773 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89774
89775         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89776         we can get this patch merged into glibc.
89777
89778 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89779             Paul Eggert  <eggert@cs.ucla.edu>
89780
89781         * m4/argp: Depend on alloca.
89782
89783 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89784             Paul Eggert  <eggert@cs.ucla.edu>
89785
89786         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89787         freecoding.
89788
89789 2004-05-17  Bruno Haible  <bruno@clisp.org>
89790
89791         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89792         precision that consists of a '.' followed by an empty digit string.
89793         Patch by Tor Lillqvist <tml@iki.fi>.
89794
89795 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89796
89797         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89798         for backward compatibility with older code.  We need our own
89799         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89800         it under some other name, and our alloca.h will define it.
89801
89802 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89803             Derek Price  <derek@ximbiot.com>
89804
89805         * lib/alloca.c: Include <alloca.h>, to get our interface.
89806         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89807         include <alloca.h> first.  Use C89 prototype for alloca; this
89808         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89809         Use #elif for simplicity, since we can assume C89 now.
89810         Don't try to source the system alloca.h since it will not be found
89811         and to prevent recursively including its replacement.
89812         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89813         * lib/regex.c: Likewise.
89814
89815 2004-05-16  Derek Price  <derek@ximbiot.com>
89816             Paul Eggert  <eggert@cs.ucla.edu>
89817
89818         getline cleanup.  This changes the getndelim2 API: both order of
89819         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89820         no delimiter).
89821
89822         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89823         interface does that.
89824         (getline): Always use getdelim, so that we don't have two
89825         copies of this code.
89826         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89827         if available.
89828         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89829         (GETNDELIM2_MAXIMUM): New macro.
89830         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89831         instead of the old practice of delim2==0.  All callers changed.
89832         Return -1 on overflow, instead of returning junk.
89833         Do not set *linesize unless allocation succeeds.
89834         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89835         that we include sys/types.h.
89836         * lib/getnline.h: Likewise.
89837         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89838         (getndelim2): Reorder arguments.
89839         * lib/getnline.c (getnline, getndelim):
89840         Don't discard the NMAX argument.
89841         (getnline): Invoke getndelim, to avoid code duplication.
89842         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89843         of (size_t) -1 by callers of the getnline family.
89844
89845 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89846
89847         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89848         Check for gettimeofday.
89849         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89850         Check for settimeofday, stime.
89851
89852 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89853
89854         * lib/nanosleep.c (suspended): Change its type from int to
89855         sig_atomic_t volatile.
89856         (first_call): Make it private to rpl_nanosleep, and have it
89857         be zero initially as that's a bit faster.
89858         (my_usleep): Round up fractional times instead of truncating them,
89859         as this is the usual meaning for 'sleep'.
89860
89861         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89862         doesn't work.
89863         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89864         (ENOSYS): Define if not defined.
89865         (settime): Fall back on stime if it exists and settimeofday fails.
89866         But don't bother with fallbacks if a method fails with errno == EPERM.
89867
89868 2004-05-11  Jim Meyering  <jim@meyering.net>
89869
89870         Prior to this change, the save_cwd caller required read access to the
89871         current directory on most systems (ones with the fchdir function).
89872
89873         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89874         fails, try write-only, and finally, resort to using xgetcwd.
89875
89876 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89877
89878         * lib/obstack.c, obstack.h: Import changes from libc.
89879
89880 2004-04-28  Bruno Haible  <bruno@clisp.org>
89881
89882         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89883         also implicitly appends .exe to executables.
89884         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89885         accepts Windows pathnames.
89886         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89887         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89888         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89889         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89890         Reported by Derek Robert Price <derek@ximbiot.com>.
89891
89892 2004-04-21  Karl Berry  <karl@gnu.org>
89893
89894         * config/srclist.txt (localcharset.c): break sync.
89895
89896 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89897
89898         * m4/host-os.m4: Add a copyright notice.
89899
89900 2004-04-20  Jim Meyering  <jim@meyering.net>
89901
89902         Change UTILS_ to gl_ in AC_DEFINE'd names.
89903         Change utils_- and jm_-prefixed variables, too.
89904         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89905         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89906         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89907
89908         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89909         Don't emit trailing blanks.
89910         Also rename jm_-prefixed variables to have gl_ prefix.
89911
89912         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89913         Also rename jm_-prefixed variables to have gl_ prefix.
89914
89915         * m4/jm-macros.m4: Reflect the renamings.
89916         * m4/prereq.m4: Likewise.
89917
89918 2004-04-20  Jim Meyering  <jim@meyering.net>
89919
89920         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89921         memory.
89922
89923 2004-04-20  Jim Meyering  <jim@meyering.net>
89924             Bruno Haible  <bruno@clisp.org>
89925
89926         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89927         memory when realloc fails.
89928
89929 2004-04-19  Jim Meyering  <jim@meyering.net>
89930
89931         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89932         now that readutmp.c may call `free (0)'.
89933
89934 2004-04-19  Bruno Haible  <bruno@clisp.org>
89935
89936         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89937         * m4/inttypes_h.m4: Likewise.
89938         * m4/stdint_h.m4: Likewise.
89939         * m4/intmax_t.m4: Likewise.
89940         * m4/uintmax_t.m4: Likewise.
89941
89942 2004-04-18  Jim Meyering  <jim@meyering.net>
89943
89944         * m4/prereq.m4: Don't forbid jm_ prefix.
89945
89946         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89947         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89948         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89949         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89950         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89951         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89952         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89953         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89954         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89955         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89956         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89957         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89958         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89959         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89960         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89961         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89962         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89963         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89964         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89965
89966 2004-04-18  Jim Meyering  <jim@meyering.net>
89967
89968         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89969         failure, don't leak memory and do call END_UTMP_ENT.
89970
89971 2004-04-16  Jim Meyering  <jim@meyering.net>
89972
89973         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89974         coreutils' stat program.
89975         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89976
89977 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89978
89979         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89980         C89.
89981         (CHAR_BIT): Remove, since we assume C89.
89982         Include <stdint.h> if available, as per current Autoconf CVS advice.
89983
89984 2004-03-31  Jim Meyering  <jim@meyering.net>
89985
89986         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89987         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89988         * m4/xalloc.m4: Likewise.
89989
89990 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89991
89992         Merge from coreutils.
89993
89994         * m4/inttostr.m4: New file.
89995         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89996         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89997         Require gl_CLOCK_TIME.
89998         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89999
90000 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90001
90002         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90003         not bool, to be more consistent with Unix conventions.
90004         Suggested by Bruno Haible.
90005
90006         Merge from coreutils.
90007
90008         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90009         * lib/umaxtostr.c: New files.
90010
90011         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90012         the usual <time.h> dance.
90013         (get_date): Change signature to support fractional time stamps.
90014         All callers changed.
90015         * lib/getdate.y: Include "getdate.h" first, as we can now
90016         assume C89 and don't need to worry about 'const'.
90017         Similarly, include "unlocked-io.h" near start, not in middle.
90018         Include <limits.h>.
90019         (textint.value): Use long int rather than int.
90020         (textint.digits): Use size_t rather than int.
90021         (BILLION, LOG10_BILLION): New constants.
90022         (parser_control): New member rel_ns.  Members day_ordinal,
90023         time_zone, month, day, hour, minutes, rel_year, rel_month,
90024         rel_day, rel_hour, rel_minutes, rel_seconds
90025         are now long int, not int.  Member seconds is now struct timespec,
90026         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90027         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90028         not int.
90029         (%union.intval): Now long int, not int.
90030         New member timespec.
90031         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90032         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90033         (spec): Now is a timespec or an item list.
90034         (timespec, items): New nonterminals.
90035         (time, rel, relunit, number, get_date):
90036         Add support for fractional seconds.
90037         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90038         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90039         (to_hour): First arg is now long int, not int.
90040         (to_year): Returns long int, not int.
90041         Don't treat year -70 like 70.
90042         (tm_diff): Returns long int, not int.
90043         (lookup_word): Use bool instead of int when appropriate.
90044         (yylex): Use size_t for count, not int.
90045         Detect overflow when parsing large integer constants.
90046         Add support for fractions.
90047         (get_date): Make pointers 'const' if possible.
90048         Use more-portable code to detect integer overflow.
90049         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90050         Don't use ctime; it's not reliable if the year has >4 digits.
90051
90052         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90053         This is for compatibility with BSD.
90054
90055         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90056         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90057         From coreutils' system.h.
90058
90059         * lib/userspec.c: Don't include "posixver.h".
90060         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90061         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90062         compatible extension.  Simplify code by removing a boolean int
90063         that was always nonzero if a string was nonnull.
90064
90065 2004-03-30  Jim Meyering  <jim@meyering.net>
90066
90067         Merge from coreutils.
90068
90069         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90070         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90071         on some systems one must include <grp.h> before it.
90072         Reported by Christian Krackowizer.
90073
90074 2004-03-30  Jim Meyering  <jim@meyering.net>
90075
90076         Merge from coreutils.
90077
90078         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90079
90080         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90081         an empty input stream.
90082
90083         * lib/readtokens.c: Include <stdbool.h>.
90084         (readtoken): Use `size_t' rather than int/long.
90085         All callers adjusted.
90086         Use `bool' rather than `int' where appropriate.
90087         Use memset rather than an explicit loop.
90088         Use x2nrealloc rather than xrealloc.
90089         Allow the use of `\0' as a delimiter.
90090         (readtokens): Likewise.
90091         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90092
90093 2004-03-30  Jim Meyering  <jim@meyering.net>
90094
90095         * m4/realloc.m4: Remove file, since now it does no more than
90096         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90097         the `configure.ac' section of module/realloc.
90098         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90099
90100 2004-03-30  Bruno Haible  <bruno@clisp.org>
90101
90102         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90103         nonnull.
90104
90105 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90106
90107         Merge changes to getloadavg.c from coreutils and Emacs.
90108
90109         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90110         Define to an expression, not to the empty string.
90111         Include cloexec.h and xalloc.h.
90112         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90113         Use set_cloexec_flag rather than rolling our own.
90114         * lib/cloexec.c, lib/cloexec.h: New files.
90115
90116 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90117
90118         * m4/cloexec.m4: New file.
90119
90120 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90121
90122         * lib/getopt.h: Sync with libc CVS.
90123
90124 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90125             Bruno Haible  <bruno@clisp.org>
90126
90127         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90128         mbswidth.
90129
90130 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90131             Bruno Haible  <bruno@clisp.org>
90132
90133         * lib/mbswidth.h: Include <wchar.h> only if
90134         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90135         <wchar.h>.
90136         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90137
90138 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90139
90140         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90141         Sync with libc CVS.
90142         * lib/getopt_int.h: New file, also synced from libc.
90143
90144 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90145
90146         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90147         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90148         Bring back getopt.c, getopt.h, getopt1.c.
90149
90150 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90151
90152         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90153         All uses changed.  Check for sa_sigaction member; this fixes
90154         a bug first reported by Jason Andrade in
90155         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90156
90157 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90158
90159         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90160         '#if' expressions.  Unlike the code it replaces, it does not
90161         depend on (defined _SC_PAGESIZE).  However, it does depend on
90162         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90163         first reported by Jason Andrade in
90164         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90165
90166 2004-02-25  Simon Josefsson  <jas@extundo.com>
90167
90168         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90169
90170 2004-02-25  Simon Josefsson  <jas@extundo.com>
90171
90172         * lib/strdup.h: New file.
90173         * lib/strdup.c: Include it.
90174         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90175         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90176
90177 2004-02-23  Karl Berry  <karl@gnu.org>
90178
90179         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90180         (from fencepost.gnu.org:/gd/gnuorg).
90181
90182 2004-02-23  Karl Berry  <karl@gnu.org>
90183
90184         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90185         * config/srclist.txt: add maintain/standards documents.
90186
90187 2004-02-18  Bruno Haible  <bruno@clisp.org>
90188
90189         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90190         Reported by Derek Robert Price <derek@ximbiot.com>.
90191
90192 2004-02-16  Karl Berry  <karl@gnu.org>
90193
90194         * config/mkinstalldirs, install-sh: update from automake.
90195
90196 2004-02-06  Karl Berry  <karl@gnu.org>
90197
90198         * m4/po.m4: update from gettext 0.14.1.
90199
90200 2004-02-06  Karl Berry  <karl@gnu.org>
90201
90202         * lib/config.charset: update from gettext 0.14.1.
90203
90204 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90205
90206         Add comments and code, prompted by suggestions from Bruno Haible
90207         for sh-quote.
90208         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90209         describing the enum quoting_style values.
90210         * lib/quotearg.c (quotearg_alloc): New function.
90211         (quotearg_buffer_restyled): Treat lone { and } as special.
90212         Treat = as special.  Work around bug with older shells
90213         that "see" a '\' that is really the 2nd byte of a multibyte char.
90214         Quote empty string with shell_quoting_style.
90215
90216 2004-02-03  Bruno Haible  <bruno@clisp.org>
90217
90218         * m4/pipe.m4: New file, from GNU gettext.
90219
90220 2004-02-03  Bruno Haible  <bruno@clisp.org>
90221
90222         * lib/pipe.h: New file, from GNU gettext.
90223         * lib/pipe.c: New file, from GNU gettext.
90224
90225 2004-01-27  Bruno Haible  <bruno@clisp.org>
90226
90227         * m4/execute.m4: New file, from GNU gettext.
90228
90229 2004-01-27  Bruno Haible  <bruno@clisp.org>
90230
90231         * lib/execute.h: New file, from GNU gettext.
90232         * lib/execute.c: New file, from GNU gettext.
90233         * lib/w32spawn.h: New file, from GNU gettext.
90234
90235 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90236
90237         Merge from diffutils.
90238
90239         * lib/file-type.c (file_type): Add typed memory objects.
90240         * lib/file-type.h (S_TYPEISTMO): New macro.
90241
90242         * lib/c-stack.h (c_stack_action): Remove argv argument.
90243         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90244         (die): Don't calculate message unless segv_action returns.
90245         (get_stack_location, min_address_from_argv, max_address_from_argv,
90246         volatile stack_base, volatile_stack_size): Remove.
90247         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90248         that every segmentation violation is a stack overflow.  (Ouch!)
90249         See Debian bug 136249 (still outstanding) for more info about why
90250         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90251
90252 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90253
90254         Exit-status fix from coreutils.
90255
90256         Use exit_failure consistently in place of EXIT_FAILURE,
90257         so that program exit statuses are consistent on failure.
90258
90259         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90260         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90261         * lib/argmatch.h: Comment fix to match the above.
90262         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90263         Now a macro referring to exit_failure, instead of a separate
90264         variable.  Include "exitfail.h" to get it.
90265         * lib/xstrtol.h: Include "exitfail.h".
90266         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90267
90268         * lib/long-options.c (parse_long_options): Use prototype
90269         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90270         for clarity.
90271
90272 2004-01-21  Jim Meyering  <jim@meyering.net>
90273
90274         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90275         so as not to conflict with a different-sized __mktime_internal
90276         function in GNU libc.
90277         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90278         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90279
90280 2004-01-20  Karl Berry  <karl@gnu.org>
90281
90282         * config/config.guess: update from config.
90283
90284         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90285
90286 2004-01-20  Bruno Haible  <bruno@clisp.org>
90287
90288         Safer stack allocation.
90289         * lib/setenv.c: Include allocsa.h.
90290         (alloca): Remove fallback definition.
90291         (freea): Remove macro.
90292         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90293         instead of freea.
90294
90295 2004-01-20  Bruno Haible  <bruno@clisp.org>
90296
90297         * m4/eealloc.m4: New file, from GNU gettext.
90298
90299 2004-01-20  Bruno Haible  <bruno@clisp.org>
90300
90301         * m4/allocsa.m4: New file, from GNU gettext.
90302
90303 2004-01-20  Bruno Haible  <bruno@clisp.org>
90304
90305         * lib/xallocsa.h: New file, from GNU gettext.
90306         * lib/xallocsa.c: New file, from GNU gettext.
90307
90308 2004-01-20  Bruno Haible  <bruno@clisp.org>
90309
90310         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90311
90312 2004-01-20  Bruno Haible  <bruno@clisp.org>
90313
90314         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90315         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90316         specially.
90317
90318 2004-01-20  Bruno Haible  <bruno@clisp.org>
90319
90320         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90321         patch.
90322
90323 2004-01-20  Bruno Haible  <bruno@clisp.org>
90324
90325         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90326
90327 2004-01-20  Bruno Haible  <bruno@clisp.org>
90328
90329         * lib/eealloc.h: New file.
90330
90331 2004-01-20  Bruno Haible  <bruno@clisp.org>
90332
90333         * lib/binary-io.h: Avoid warnings on Cygwin.
90334
90335 2004-01-20  Bruno Haible  <bruno@clisp.org>
90336
90337         * lib/allocsa.h: New file, from GNU gettext.
90338         * lib/allocsa.c: New file, from GNU gettext.
90339
90340 2004-01-18  Karl Berry  <karl@gnu.org>
90341
90342         * doc/gpl.texi, doc/lgpl.texi: new files.
90343
90344 2004-01-18  Karl Berry  <karl@gnu.org>
90345
90346         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90347         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90348
90349 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90350
90351         Merge from coreutils.
90352
90353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90354         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90355         (gl_DEFAULT_POSIX2_VERSION): Move
90356         the documentation from 'configure' into 'config.hin',
90357         so that 'configure --help' isn't burdened by it and
90358         we don't have to worry about its formatting there.
90359         Reword the documentation so that it's more succinct
90360         and can be run together into a single paragraph.
90361         * m4/same.m4 (gl_SAME): Check for pathconf.
90362
90363 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90364
90365         Merge from coreutils.
90366
90367         * lib/posixver.c: Include posixver.h.
90368
90369         * lib/same.c: Include <stdbool.h>, <limits.h>.
90370         (_POSIX_NAME_MAX): Define if not defined.
90371         (MIN): New macro.
90372         (same_name): If file names are silently truncated, report
90373         that the file names are the same if they are the same after
90374         the silent truncation.
90375
90376         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90377         conversion function.
90378         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90379         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90380         longer needed.
90381
90382 2004-01-15  Jim Meyering  <jim@meyering.net>
90383
90384         Merge from coreutils.
90385
90386         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90387         if no library is required.
90388         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90389         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90390         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90391         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90392         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90393         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90394         value, $ac_cv_search_crypt, if it's "none required".
90395         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90396         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90397         not gl_FUNC_GETLOADAVG.
90398         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90399         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90400
90401 2004-01-15  Jim Meyering  <jim@meyering.net>
90402
90403         Merge from coreutils.
90404
90405         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90406         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90407         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90408
90409         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90410         optional configure-time default.
90411
90412         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90413
90414         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90415
90416 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90417
90418         Merge from coreutils.
90419
90420         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90421         value, $ac_cv_search_nanosleep, if it's "none required".
90422
90423 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90424
90425         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90426         with like-named macro in fnmatch.c.
90427         (EXT): Use an internal constant instead.
90428
90429         Merge fnmatch patches from glibc.
90430         * lib/fnmatch.c (mbsinit): Remove define.
90431         Add libc_hidden_ver (__fnmatch, fnmatch).
90432         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90433         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90434
90435 2004-01-14  Karl Berry  <karl@gnu.org>
90436
90437         * config/install-sh: update from automake.
90438
90439 2004-01-13  Karl Berry  <karl@gnu.org>
90440
90441         * config/install-sh: update from automake.
90442
90443 2004-01-09  Karl Berry  <karl@gnu.org>
90444
90445         * config/install-sh: update from automake.
90446
90447 2004-01-05  Karl Berry  <karl@gnu.org>
90448
90449         * config/config.{sub,guess}: update from config.
90450
90451 2003-12-31  Karl Berry  <karl@gnu.org>
90452
90453         * config/depcomp: update from automake.
90454
90455 2003-12-14  Karl Berry  <karl@gnu.org>
90456
90457         * lib/config.charset: update from gettext-runtime.
90458
90459 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90460
90461         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90462         Bug reported by Alfred M. Szmidt.
90463
90464 2003-12-03  Bruno Haible  <bruno@clisp.org>
90465
90466         * m4/gettext.m4: Upgrade from gettext-0.13.
90467         * m4/po.m4: Upgrade from gettext-0.13.
90468         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90469         * m4/intmax.m4: New file, from gettext-0.13.
90470         * m4/printf-posix.m4: New file, from gettext-0.13.
90471
90472 2003-11-29  Karl Berry  <karl@gnu.org>
90473
90474         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90475
90476 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90477             Bruno Haible  <bruno@clisp.org>
90478
90479         * lib/printf-parse.h: Don't include sys/types.h.
90480         (ARG_NONE): New macro.
90481         (char_directive): Change type of *arg_index fields to size_t.
90482         * lib/printf-parse.c: Don't include sys/types.h.
90483         (SSIZE_MAX): Remove macro.
90484         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90485         Remove unnecessary overflow check.
90486         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90487         fields.
90488
90489 2003-11-25  Bruno Haible  <bruno@clisp.org>
90490
90491         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90492
90493 2003-11-25  Bruno Haible  <bruno@clisp.org>
90494
90495         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90496         gt_TYPE_SSIZE_T.
90497
90498 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90499
90500         * modules/alloca: Remove dependency on xalloc.
90501
90502 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90503
90504         * lib/alloca.c: Remove dependency on xalloc module.
90505         (xalloc_die): Remove.
90506         (memory_full) [!defined emacs]: New macro.
90507         [!defined emacs]: Don't include xalloc.h.
90508         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90509         address arithmetic overflows.  Change datatypes a bit to avoid
90510         unnecessary casts.
90511
90512 2003-11-22  Jim Meyering  <jim@meyering.net>
90513
90514         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90515         s/size/size_t/.
90516
90517 2003-11-21  Karl Berry  <karl@gnu.org>
90518
90519         * config/config.{sub,guess}: update from config.
90520
90521 2003-11-18  Karl Berry  <karl@gnu.org>
90522
90523         * config/config.{sub,guess}: update from config.
90524
90525         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90526
90527 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90528
90529         * README: Mention that S+T cannot overflow if S is the size of
90530         an existing object and T is sufficiently small.
90531
90532 2003-11-17  Jim Meyering  <jim@meyering.net>
90533
90534         On systems without utime and without a utimes function capable of
90535         dealing with a NULL struct utimbuf* argument, this utime replacement
90536         could -- in unusual circumstances -- leak a file descriptor.
90537         * lib/utime.c: Include <unistd.h> and <errno.h>.
90538         (utime_null): Be sure to close `fd' and to preserve errno.
90539         Reported by Geoff Collyer via Arnold Robbins.
90540
90541 2003-11-17  Bruno Haible  <bruno@clisp.org>
90542
90543         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90544         (Depends-on): Add xsize.
90545
90546 2003-11-17  Bruno Haible  <bruno@clisp.org>
90547
90548         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90549
90550 2003-11-17  Bruno Haible  <bruno@clisp.org>
90551
90552         * lib/vasnprintf.c (alloca): Remove fallback definition.
90553         (freea): Remove definition.
90554         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90555         Reported by Paul Eggert.
90556
90557 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90558             Bruno Haible  <bruno@clisp.org>
90559
90560         Protect against address arithmetic overflow.
90561         * lib/printf-args.h: Include stddef.h.
90562         (arguments): Change type of field 'count' to size_t.
90563         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90564         'unsigned int' where appropriate.
90565         * lib/printf-parse.h: Include sys/types.h.
90566         (char_directive): Change type of *arg_index fields to ssize_t.
90567         (char_directives): Change type of fields 'count', max_*_length to
90568         size_t.
90569         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90570         (SSIZE_MAX): Define fallback value.
90571         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90572         instead of 'int' where appropriate. Check a_allocated, d_allocated
90573         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90574         * lib/vasnprintf.c: Include xsize.h.
90575         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90576         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90577         overflow. Avoid wraparound when converting a width or precision from
90578         decimal to binary.
90579
90580 2003-11-16  Bruno Haible  <bruno@clisp.org>
90581
90582         Update from GNU gettext.
90583         * lib/printf-parse.c: Generalize to it can be compiled for wide
90584         strings.
90585         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90586         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90587         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90588         SNPRINTF): New macros.
90589         Don't include <alloca.h> if the file is used inside libintl.
90590         (local_wcslen): New function, for Solaris 2.5.1.
90591         (VASNPRINTF): Use it instead of wcslen.
90592
90593 2003-11-16  Bruno Haible  <bruno@clisp.org>
90594
90595         * lib/xsize.h (xmax): New function.
90596         (xsum, xsum3, xsum4): Declare as "pure" functions.
90597
90598 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90599
90600         * modules/xalloc (Files): Undo latest change, since xalloc.h
90601         no longer needs SIZE_MAX or PTRDIFF_MAX.
90602
90603 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90604
90605         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90606         gl_PTRDIFF_MAX.
90607
90608 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90609
90610         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90611         "return", to pacify some unknown compiler.  Problem reported
90612         by Joerg Schilling.
90613
90614 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90615
90616         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90617         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90618         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90619         heuristic is just as accurate as far as we know, and it removes a
90620         dependency on size_max.m4 and ptrdiff_max.m4.
90621
90622 2003-11-11  Bruno Haible  <bruno@clisp.org>
90623
90624         * modules/xsize (Files): Add m4/size_max.m4.
90625         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90626
90627 2003-11-11  Bruno Haible  <bruno@clisp.org>
90628
90629         * m4/size_max.m4: New file.
90630         * m4/ptrdiff_max.m4: New file.
90631         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90632         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90633         (gl_XALLOC): Invoke it.
90634
90635 2003-11-11  Bruno Haible  <bruno@clisp.org>
90636
90637         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90638         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90639         defined.
90640
90641 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90642
90643         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90644         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90645         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90646         From Bruno Haible.
90647         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90648         not (size_t) -1, since it's defined here.
90649
90650 2003-11-09  Karl Berry  <karl@gnu.org>
90651
90652         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90653
90654 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90655
90656         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90657         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90658         Reject sizes of exactly SIZE_MAX bytes.
90659         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90660         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90661
90662 2003-11-05  Bruno Haible  <bruno@clisp.org>
90663
90664         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90665         SIZE_MAX defined in <limits.h> on Solaris.
90666
90667 2003-11-04  Jim Meyering  <jim@meyering.net>
90668
90669         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90670         variable names, rather than @VAR@.
90671         * modules/poll: Likewise.
90672
90673 2003-11-04  Bruno Haible  <bruno@clisp.org>
90674
90675         * modules/xsize: New file.
90676         * modules/linebreak: Depend on xsize.
90677         * MODULES.html.sh (func_all_modules): Add xsize.
90678
90679 2003-11-04  Bruno Haible  <bruno@clisp.org>
90680
90681         * m4/xsize.m4: New file.
90682
90683 2003-11-04  Bruno Haible  <bruno@clisp.org>
90684
90685         * lib/xsize.h: New file.
90686         * lib/linebreak.c: Include xsize.h.
90687         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90688         argument for overflow.
90689         Suggested by Paul Eggert.
90690
90691 2003-11-03  Karl Berry  <karl@gnu.org>
90692
90693         * config/config.{guess,sub}: update from config.
90694
90695 2003-11-03  Jim Meyering  <jim@meyering.net>
90696
90697         * modules/userspec (lib_SOURCES): Add userspec.h.
90698         (Include): Add "userspec.h".
90699         Improve description.
90700
90701 2003-11-03  Jim Meyering  <jim@meyering.net>
90702
90703         * lib/userspec.c: Include "userspec.h".
90704         * lib/userspec.h: New file.
90705
90706 2003-11-03  Bruno Haible  <bruno@clisp.org>
90707
90708         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90709
90710 2003-11-03  Bruno Haible  <bruno@clisp.org>
90711
90712         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90713         available, to avoid (extremely rare) race condition.
90714         Suggested by Paul Eggert.
90715
90716 2003-11-02  Karl Berry  <karl@gnu.org>
90717
90718         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90719
90720 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90721
90722         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90723         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90724         (read_filesystem_list): Set and use me_type_malloced.
90725         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90726         whatever the type happens to be), for brevity and consistency.
90727         Check for size calculation overflow on Alphas running OSF/1.
90728
90729 2003-10-31  Jim Meyering  <jim@meyering.net>
90730
90731         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90732
90733         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90734
90735 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90736             Bruno Haible  <bruno@clisp.org>
90737
90738         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90739         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90740
90741 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90742
90743         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90744         netbsd*-gnu*.  Suggested by Robert Millan.
90745
90746 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90747
90748         * modules/group-member: Depend on stdbool.
90749
90750 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90751
90752         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90753
90754 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90755
90756         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90757         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90758         after the 'gnu' in these cases.  This fixes some bugs in the
90759         previous change, and is based on suggestions by Robert Millan.
90760
90761 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90762
90763         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90764         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90765         no longer needed.
90766         * lib/quotearg.c (quotearg_n_options): Use it.
90767         * lib/group-member.c: Include <stdbool.h>.
90768         (free_group_info): Arg is now const *; don't free arg.
90769         (get_group_info): Now returns bool and accepts struct group_info *,
90770         rather than returning a malloc'ed struct group_info *.
90771         All uses changed.  Check for overflow in internal size calculation.
90772
90773         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90774         rather than xmalloc/xrealloc.
90775         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90776         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90777         conformance bug: the old code used a pointer after freeing the
90778         storage that it addressed.
90779         * lib/hash.c (hash_initialize): Simplify the code by using
90780         xalloc_oversized rather than doing it by hand.
90781         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90782         the buffer preserved.  Use free and xmalloc instead.
90783         * lib/quotearg.c (quotearg_n_options): Likewise.
90784         Use a simpler test for size overflow.  Don't use xalloc_oversized
90785         because unsigned int might be wider than size_t (!); this suggests
90786         that we should switch from unsigned int to size_t for slot numbers.
90787
90788 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90789
90790         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90791         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90792         NetBSD kernels.  Requested by Richard Stallman.
90793
90794 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90795
90796         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90797         to allocate the returned structure.  Do not allocate a subarray,
90798         as x2nrealloc will do that.
90799         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90800         instead of xnrealloc.
90801         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90802
90803 2003-10-27  Bruno Haible  <bruno@clisp.org>
90804
90805         * lib/stdbool_.h: Better support for BeOS.
90806
90807 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90808
90809         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90810         now uses inline.
90811
90812 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90813
90814         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90815         callers that want to do their own size-overflow checking.  Include
90816         <stdbool.h>, since xalloc_oversized returns bool.
90817         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90818         to use xalloc_oversized.
90819
90820         Add two functions x2realloc, x2nrealloc, for programs that grow
90821         arrays dynamically by doubling their sizes.
90822         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90823         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90824         New functions.
90825
90826         Port to C99 semantics for 'inline' of external functions.
90827         Bug reported by Bruno Haible.
90828         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90829         with the old contents of xnmalloc.
90830         (xnmalloc, xmalloc): Use it.
90831         (xnrealloc_inline): New static inline function,
90832         with the old contents of xnrealloc.
90833         (xnrealloc, xrealloc): Use it.
90834
90835         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90836         that.
90837
90838 2003-10-26  Karl Berry  <karl@gnu.org>
90839
90840         * config/srclist.txt (COPYING.DOC): no longer available from
90841         /gd/gnuorg; don't know where the ultimate source is.
90842
90843 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90844
90845         Fix several address-calculation bugs in the hash modules,
90846         plus some minor code cleanup.
90847
90848         * lib/hash.h: Include <stdbool.h>, for bool.
90849         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90850         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90851         hash_get_n_entries, hash_get_max_bucket_length,
90852         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90853         hash_rehash): Use size_t rather than unsigned.
90854         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90855         hash_get_n_buckets_used, hash_get_n_entries,
90856         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90857         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90858         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90859         Likewise.
90860         (SIZE_MAX): Define if not defined.
90861         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90862         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90863         hash_print):
90864         Use const * when possible.
90865         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90866         (check_tuning): Fix bug: if tuning parameters were very close to
90867         0 or 1, rounding errors could have caused subscript violations.
90868         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90869         (hash_initialize): Add 'fail:' label
90870         to free table and return NULL, and use it to simplify code.
90871         Use calloc rather than clearing the storage ourself.
90872         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90873         buffer size calculations.
90874         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90875         Include <stddef.h>, for size_t.
90876         * lib/hash-pjw.c (hash_pjw): Likewise.
90877         Switch to method described by Bruno Haible.
90878         Include <limits.h>, for CHAR_BIT.
90879         (SIZE_BITS): New macro.
90880
90881 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90882
90883         * m4/getline.m4 (AM_FUNC_GETLINE):
90884         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90885         hosts.  Problem reported by Derek Robert Price in
90886         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90887         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90888         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90889
90890 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90891
90892         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90893         ceiling the allocation at NMAX bytes rather than silently
90894         discarding input bytes before NMAX is reached.  This makes
90895         a difference only if NMAX exceeds SIZE_MAX / 2.
90896
90897         * lib/obstack.c: Merge from glibc.
90898         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90899         Add libc_hidden_def (_obstack_newchunk).
90900         (_obstack_free) [! defined _LIBC]: Remove.
90901         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90902         a clone of the function body.
90903         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90904         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90905
90906         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90907         glibc.
90908         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90909         arg to memcpy.
90910
90911         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90912         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90913         Don't use lvalue casts, as GCC plans to remove support for them
90914         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90915         was also present in the non-GCC version, indicating that this
90916         code had always been buggy and had never been widely used.
90917         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90918         Use the fast variant of each macro, rather than copying the
90919         definiens of the fast variant; that way, we'll be more likely to
90920         catch future bugs in the fast variants.
90921
90922 2003-10-20  Bruno Haible  <bruno@clisp.org>
90923
90924         * modules/wait-process: New file.
90925         * MODULES.html.sh (func_all_modules): Add wait-process.
90926
90927 2003-10-20  Bruno Haible  <bruno@clisp.org>
90928
90929         * m4/wait-process.m4: New file.
90930
90931 2003-10-20  Bruno Haible  <bruno@clisp.org>
90932
90933         * lib/wait-process.h: New file, from GNU gettext.
90934         * lib/wait-process.c: New file, from GNU gettext.
90935
90936 2003-10-19  Jim Meyering  <jim@meyering.net>
90937
90938         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90939         HPUX 10.20.
90940
90941 2003-10-18  Karl Berry  <karl@gnu.org>
90942
90943         * config/config.guess: update from config.
90944
90945 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90946
90947         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90948         (getgroups): First arg is int, not size_t.
90949         Don't let 'free' mangle errno.
90950
90951 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90952
90953         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90954
90955 2003-10-16  Karl Berry  <karl@gnu.org>
90956
90957         * config/config.{guess,sub}: update from config.
90958
90959 2003-10-16  Jim Meyering  <jim@meyering.net>
90960
90961         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90962         memcpy.
90963
90964 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90965
90966         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90967         (SIZE_MAX): Remove.
90968         (new_exclude, add_exclude_file): Initial size no longer needs to
90969         be a power of 2.
90970         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90971         our own address arithmetic overflow checking.
90972
90973         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90974         (fnmatch): Do not alloca more than 2000 wide characters;
90975         instead, use malloc for large buffers.
90976         Check for address arithmetic overflow, and return -1
90977         with errno set to ENOMEM in that case.
90978         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90979         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90980         instead, return -1.  Check for address arithmetic overflow.
90981
90982 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90983
90984         Handle invalid suffixes and overflow independently, so that
90985         callers can treat them independently as needed.  Fix some bugs in
90986         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90987         suffix for a human-readable blocksize.  The major caller-visible
90988         change is the addition of a new
90989         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90990         that both overflow and suffix chars were found.
90991
90992         * lib/human.c (humblock): Don't check separately for invalid suffix
90993         char; that is xstrtoumax's job (now that its bug is fixed).
90994         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90995         INTMAX_MAX]: New macros.
90996         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90997         TYPE_MAXIMUM): New macros.
90998         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90999         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91000         if overflow occurs, as it's what __strtol does and it's more useful
91001         in practice.
91002         (__xstrtol): If __strtol reports some error other than ERANGE,
91003         reflect it to the caller as LONGINT_INVALID.  If it reports
91004         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91005         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91006         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91007         value.
91008         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91009         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91010         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91011         [defined UINTMAX_MAX]: New macros.
91012
91013 2003-10-14  Bruno Haible  <bruno@clisp.org>
91014
91015         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91016
91017 2003-10-14  Bruno Haible  <bruno@clisp.org>
91018
91019         * m4/sig_atomic_t: New file, from GNU gettext.
91020         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91021
91022 2003-10-14  Bruno Haible  <bruno@clisp.org>
91023
91024         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91025         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91026         Also use volatile where needed.
91027
91028 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91029
91030         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91031         Change maintainer from Bruno Haible to 'all'.
91032
91033 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91034
91035         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91036
91037 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91038
91039         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91040         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91041         and define in terms of the other primitives.
91042         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91043         (SIZE_MAX): Define if not already defined.
91044         (array_size_overflow): New function.
91045         (xalloc_die): Abort instead of exiting if 'error' returns.
91046         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91047         (xmalloc, xrealloc): Use them.
91048         (xcalloc): Check for address arithmetic overflow.
91049         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91050         a bit faster than strcpy.
91051
91052 2003-10-10  Simon Josefsson  <jas@extundo.com>
91053
91054         * modules/argp (Depends-on): Add restrict and strcase.
91055
91056 2003-10-10  Simon Josefsson  <jas@extundo.com>
91057
91058         * m4/argp.m4: Add AC_C_INLINE.
91059
91060 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91061
91062         Merge getpass from libc, plus a few fixes.
91063
91064         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91065         Include <stdbool.h>.
91066         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91067         __fsetlocking to empty.
91068         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91069         do include <bits/libc-lock.h>.
91070         Do not include <fcntl.h>; not needed.
91071         [_LIBC]: Include <wchar.h>.
91072         (NOTCANCEL_MODE): New macro.
91073         (flockfile, funlockfile) [_LIBC]: New macros.
91074         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91075         [!_LIBC]: New macros.
91076         (call_fclose): New function.
91077         (getpass): Use it.  Save tty stream separately; this simplifies the
91078         code and makes it more reliable if stdin happens to equal stdout.
91079         Invoke __fsetlocking on tty.
91080         Handle thread cancellation if needed.
91081         Namespace cleanup (use __tcgetattr, __getline).
91082         Use bool for Booleans.
91083         [USE_IN_LIBIO]: Handle wide streams.
91084         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91085         stream might go where.
91086
91087         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91088         doesn't have to include <stdio.h> before us.
91089         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91090         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91091         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91092         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91093         if not declared, so that we can use getpass.c code from libc without
91094         rewriting it.
91095         (flockfile, ftrylockfile, funlockfile): New macros.
91096
91097 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91098
91099         * modules/getpass: Depend on stdbool.
91100
91101 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91102
91103         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91104
91105 2003-10-07  Karl Berry  <karl@gnu.org>
91106
91107         * config/config.{guess,sub}: update from config.
91108
91109 2003-10-06  Jim Meyering  <jim@meyering.net>
91110             Bruno Haible  <bruno@clisp.org>
91111
91112         This lets translators provide better translations for the
91113         "Written by ..." part of --version output.
91114         * lib/version-etc.h: Include stdarg.h.
91115         (version_etc_copyright): Declare as readonly.
91116         (version_etc): Make this function variadic with a NULL-terminated list
91117         of author name strings.
91118         (version_etc_va): New declaration.
91119         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91120         (version_etc_copyright): Declare as readonly.
91121         (version_etc_va): New function. Provide a different translatable string
91122         for each possible number of authors < 10. Abbreviate when there are 10
91123         authors or more.
91124         (version_etc): Make this function variadic. Call version_etc_va.
91125         Suggestion from Gary V. Vaughan.
91126
91127         * lib/long-options.h (parse_long_options): Change prototype: the
91128         authors string is moved to the end and becomes variadic.
91129         * lib/long-options.c: Include stdarg.h.
91130         (parse_long_options): Make this function variadic, too.
91131         Call version_etc_va, not version_etc.
91132
91133 2003-10-06  Bruno Haible  <bruno@clisp.org>
91134
91135         * modules/version-etc-2: Remove file.
91136         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91137
91138 2003-10-06  Bruno Haible  <bruno@clisp.org>
91139
91140         * modules/fatal-signal: New file.
91141         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91142
91143 2003-10-06  Bruno Haible  <bruno@clisp.org>
91144
91145         * m4/fatal-signal.m4: New file.
91146         * m4/signalblocking.m4: New file, from GNU gettext.
91147
91148 2003-10-06  Bruno Haible  <bruno@clisp.org>
91149
91150         * lib/version-etc-2.h: Remove file.
91151         * lib/version-etc-2.c: Remove file.
91152
91153 2003-10-06  Bruno Haible  <bruno@clisp.org>
91154
91155         * lib/fatal-signal.h: New file, from GNU gettext.
91156         * lib/fatal-signal.c: New file, from GNU gettext.
91157
91158 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91159
91160         * README: Rework advice for preventing empty .o files.
91161         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91162         not <sys/types.h>.
91163
91164 2003-10-04  Karl Berry  <karl@gnu.org>
91165
91166         * lib/argp*: update from libc.
91167
91168 2003-10-04  Karl Berry  <karl@gnu.org>
91169
91170         * config/config.{guess,sub}: update from config.
91171
91172 2003-10-02  Bruno Haible  <bruno@clisp.org>
91173
91174         * modules/lchown (Include): Add lchown.h.
91175         * modules/time_r (Include): Use "..." syntax.
91176         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91177
91178 2003-10-01  Simon Josefsson  <jas@extundo.com>
91179
91180         * MODULES.html.sh (func_all_modules): Move gethostname from section
91181         'based on' to section 'lacking' POSIX:2001.
91182
91183 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91184
91185         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91186         to output mode on the same stream.
91187
91188 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91189
91190         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91191         Fix arg typo in previous patch.
91192
91193 2003-09-28  Jim Meyering  <jim@meyering.net>
91194
91195         * lib/error.c: Correct cpp indentation.
91196
91197 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91198
91199         * modules/free: New file.
91200
91201 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91202
91203         * m4/free.m4: New file.
91204
91205 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91206
91207         * lib/minmax.h (MIN, MAX)
91208         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91209         Omit the special code that used __typeof__, since we worry that
91210         it could be more trouble than it's worth.  See:
91211         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91212         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91213
91214         * lib/free.c: New file.
91215
91216 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91217
91218         Trivial fixes to Makefile.am parts of module listings.
91219         * modules/strstr: Append strstr.h to lib_SOURCES.
91220         * modules/strcase: Likewise, for strcase.h.
91221
91222 2003-09-27  Karl Berry  <karl@gnu.org>
91223
91224         * config/mkinstalldirs: update from automake.
91225
91226 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91227
91228         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91229         (error_tail): Do not loop, reallocating temporary buffer, since
91230         the output cannot contain more wide characters than the input
91231         contains bytes, the size must be big enough already.  This avoids
91232         one potential size overflow calculation.  Check for size overflow
91233         when calculating temporary buffer size.  Free temporary buffer
91234         when done, if it was allocated with malloc; this plugs a memory
91235         leak.  Remove casts from void * to pointers, that are no longer
91236         needed now that we're assuming C89 or better.
91237
91238         Merge error changes from glibc.
91239
91240         * lib/error.c, error.h: Update copyright notice header to match glibc.
91241         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91242         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91243         Disable cancellation while printing error.
91244         * lib/error.h: Prepend __ to parameter names.
91245
91246 2003-09-26  Jim Meyering  <jim@meyering.net>
91247
91248         * lib/error.c (error_tail): Move some declarations
91249         into inner scope where the local variables are used.
91250
91251 2003-09-26  Bruno Haible  <bruno@clisp.org>
91252
91253         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91254         stpncpy().
91255         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91256
91257 2003-09-26  Bruno Haible  <bruno@clisp.org>
91258
91259         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91260         (stpncpy): Define as alias for gnu_stpncpy.
91261         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91262
91263 2003-09-25  Simon Josefsson  <jas@extundo.com>
91264
91265         * lib/xgetdomainname.h: New file.
91266         * lib/xgetdomainname.c: New file.
91267
91268 2003-09-25  Simon Josefsson  <jas@extundo.com>
91269             Bruno Haible  <bruno@clisp.org>
91270
91271         * modules/getdomainname: New file.
91272         * modules/xgetdomainname: New file.
91273         * MODULES.html.sh (func_all_modules): Add getdomainname,
91274         xgetdomainname.
91275
91276 2003-09-25  Simon Josefsson  <jas@extundo.com>
91277             Bruno Haible  <bruno@clisp.org>
91278
91279         * m4/getdomainname.m4: New file.
91280
91281 2003-09-25  Simon Josefsson  <jas@extundo.com>
91282             Bruno Haible  <bruno@clisp.org>
91283
91284         * lib/getdomainname.h: New file.
91285         * lib/getdomainname.c: New file.
91286
91287 2003-09-25  Karl Berry  <karl@gnu.org>
91288
91289         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91290
91291 2003-09-25  Karl Berry  <karl@gnu.org>
91292
91293         * config/install-sh: update from automake.
91294
91295 2003-09-25  Bruno Haible  <bruno@clisp.org>
91296
91297         * modules/version-etc-2: New file, from modules/version-etc with
91298         modifications.
91299         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91300
91301 2003-09-25  Bruno Haible  <bruno@clisp.org>
91302
91303         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91304         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91305
91306 2003-09-24  Simon Josefsson  <jas@extundo.com>
91307
91308         * modules/xgethostname: Add xgethostname.h.
91309
91310 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91311
91312         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91313         the buffer associated with the argument.  Bug reported by
91314         Simon Josefsson.
91315
91316 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91317
91318         * README: Document assumptions that 'int' is at least 32 bits
91319         wide, that integer arithmetic is 2's complement without overflow,
91320         that there are no holes in integer values, that adding sizes of
91321         two nonoverlapping objects can't overflow, and that all-bits-zero
91322         yields scalar zero.  Fix spelling and capitalization typos.
91323
91324 2003-09-19  Karl Berry  <karl@gnu.org>
91325
91326         * lib/argp.h: update from libc.
91327
91328 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91329
91330         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91331         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91332         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91333
91334 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91335
91336         * gnulib-tool: Use "test -h", not "test -L", for portability
91337         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91338         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91339         (sed_extract_prog): Issue s commands one-by-one, rather than
91340         using \| in one s command.
91341
91342 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91343
91344         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91345         input error, instead of returning NULL the next time we are called
91346         (and therefore losing track of errno).
91347
91348 2003-09-16  Bruno Haible  <bruno@clisp.org>
91349
91350         * gnulib-tool (func_create_testdir): Warn about duplicated
91351         dependencies.
91352
91353 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91354
91355         * modules/argmatch, modules/fatal, modules/obstack,
91356         modules/xalloc, modules/xgethostname: Sort dependencies by
91357         importance, not alphabetically.
91358
91359 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91360
91361         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91362         fails, so that the caller gets the proper errno.
91363
91364         * lib/readutmp.c (read_utmp): Likewise.
91365         Check for fstat error.  Close stream and free storage
91366         when failing.
91367
91368 2003-09-14  Karl Berry  <karl@gnu.org>
91369
91370         * config/srclist.txt (strdup.c): disable for c89 changes.
91371
91372 2003-09-14  Jim Meyering  <jim@meyering.net>
91373
91374         * lib/getloadavg.c: Correct cpp indentation.
91375         * lib/strdup.c: Likewise.
91376         * lib/vasnprintf.c: Likewise.
91377
91378 2003-09-14  Bruno Haible  <bruno@clisp.org>
91379
91380         * modules/fwriteerror: New file.
91381         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91382
91383 2003-09-14  Bruno Haible  <bruno@clisp.org>
91384
91385         * lib/fwriteerror.h: New file.
91386         * lib/fwriteerror.c: New file.
91387
91388 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91389
91390         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91391         modules/xgethostname, modules/xalloc: Depend on exit.
91392
91393 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91394
91395         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91396
91397         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91398         and AC_MINIX, too, so that their extensions are available.
91399
91400         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91401         This macro has been superseded by gl_BACKUPFILE.
91402
91403         More patches to assume C89 or better.
91404
91405         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91406
91407         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91408         unconditionally.
91409         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91410         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91411         Include <string.h>, <stdlib.h> unconditionally.
91412         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91413         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91414         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91415         headers or for string.h.
91416         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91417         or strtoul.
91418
91419         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91420         headers.
91421         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91422         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91423         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91424         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91425         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91426         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91427         memcpy, memset.
91428         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91429         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91430         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91431         strtol.
91432         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91433         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91434         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91435         strtoul.
91436
91437 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91438
91439         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91440         * lib/obstack.c [!defined _LIBC]: Likewise.
91441         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91442         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91443         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91444
91445         More changes to assume C89 or better.
91446
91447         * lib/error.c (error_tail): Assume vprintf.
91448
91449         * lib/argmatch.c (getenv): Remove decl.
91450         * lib/progreloc.c (get_full_program_name): Define via prototype.
91451         * lib/setenv.c (clearenv): Likewise.
91452         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91453         needed.
91454         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91455         (malloc, memcpy): Remove decls.
91456         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91457         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91458         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91459         (memcpy): Remove macro.
91460         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91461         (__P): Remove.  All uses removed.
91462         (PTR): Remove.  All uses changed to void *.
91463         (CHAR_BIT, NULL): Remove.
91464         (spaces, zeros, memset_space, memset_zero)
91465         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91466         Remove.
91467         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91468         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91469         Define with prototype.
91470         Remove now-unnecessary prototype decl.
91471         (extra_args_spec): Assume ANSI C.  All uses changed.
91472         (extra_args_spec_iso): Remove.
91473         (my_strftime, emacs_strftimeu): Define via prototype.
91474         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91475         unconditionally.
91476         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91477         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91478         (strtoul, strtol): Remove decls.
91479         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91480         LONG_MAX): Remove.
91481         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91482         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91483         (LOCALE_PARAM_PROTO): New macro.
91484         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91485         (INTERNAL (strtol), strtol): Define with a prototype.
91486         (PARAMS): Remove.  All uses removed.
91487         * lib/tempname.c: Include <string.h> unconditionally.
91488         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91489         * lib/xgethostname.c (main): Define with a prototype.
91490         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91491         Include <stdlib.h> unconditionally.
91492         (calloc, malloc, realloc, free): Remove decls.
91493         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91494         Include <stdlib.h> unconditionally.  Sort include file names.
91495         (strtod): Remove.
91496         (xstrtod): Define with a prototype.
91497         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91498         (strtol, strtoul): Remove decls.
91499
91500 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91501
91502         More patches to assume C89 or better.
91503         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91504         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91505         string.h, memchr, STDC_HEADERS.
91506
91507 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91508
91509         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91510         Include <stdlib.h>, <string.h> unconditionally.
91511         Remove now-unnecessary cast to char *.
91512         * lib/strnlen.c: Include <string.h> unconditionally.
91513         * lib/yesno.c (yesno): Define with a prototype.
91514
91515 2003-09-11  Bruno Haible  <bruno@clisp.org>
91516
91517         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91518
91519 2003-09-10  Jim Meyering  <jim@meyering.net>
91520
91521         * lib/error.c: Correct indentation of cpp directives.
91522
91523 2003-09-10  Bruno Haible  <bruno@clisp.org>
91524
91525         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91526         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91527         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91528         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91529         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91530         <stdlib.h> and <string.h> checks.
91531         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91532         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91533
91534 2003-09-10  Bruno Haible  <bruno@clisp.org>
91535
91536         * lib/strcspn.c: Include <string.h> unconditionally.
91537         * lib/strpbrk.c: Include <string.h> unconditionally.
91538         * lib/strstr.c: Include <string.h> unconditionally.
91539         * lib/unicodeio.c: Include <string.h> unconditionally.
91540         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91541         * lib/unsetenv.c: Likewise.
91542         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91543         * lib/yesno.c: Include <stdlib.h> unconditionally.
91544         (rpmatch): Add prototype.
91545
91546 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91547
91548         More patches to assume C89 or better.
91549         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91550         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91551         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91552         or for string.h.
91553         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91554         stdlib.h.
91555         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91556         C headers.
91557         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91558         string.h.
91559         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91560         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91561         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91562         or for string.h.
91563         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91564         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91565         C headers.
91566         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91567         memcpy.
91568         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91569         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91570         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91571         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91572         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91573         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91574         string.h, free.
91575         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91576         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91577         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91578         C headers, or for string.h.
91579         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91580         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91581         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91582         headers, memory.h, stdlib.h, string.h, strings.h.
91583         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91584         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91585         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91586         strchr.
91587         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91588         headers, memory.h, string.h.
91589         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91590         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91591         free.
91592         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91593         headers.
91594         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91595         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91596         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91597         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91598         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91599
91600 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91601
91602         More K&R removal.
91603
91604         * lib/acosl.c (main): Use a prototype.
91605         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91606         tanl.c: Likewise.
91607
91608         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91609
91610         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91611         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91612         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91613         with a prototype.
91614         * lib/getopt.c (const): Remove macro.
91615         Include <string.h> unconditionally.
91616         (my_index): Remove; all uses changed to strchr.
91617         (strlen): Remove decl.
91618         (exchange): Remove forward decl; no longer needed.
91619         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91620         Define with prototype.
91621         * lib/getopt1.c (const): Remove macro.
91622         (getopt_long, getopt_long_only, main): Define with prototype.
91623
91624         * lib/getugroups.c: Include <string.h> unconditionally.
91625
91626         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91627         (getusershell, setusershell, endusershell, readname, main):
91628         Define with prototypes.
91629
91630         * lib/group-member.c: Include group-member.h first.
91631         Include <stdlib.h> unconditionally.
91632
91633         * lib/hard-locale.c: Include hard-locale.h first.
91634         Include <stdlib.h>, <string.h> unconditionally.
91635
91636         * lib/hash.c (free, malloc): Remove decls.
91637         Include <stdlib.h> unconditionally.
91638
91639         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91640         (getenv): Do not declare.
91641
91642         * lib/idcache.c: Include <string.h> unconditionally.
91643
91644         * lib/long-options.c: Include long-options.h first, to test interface.
91645         Include <stdlib.h> unconditionally.
91646
91647         * lib/makepath.c: Include makepath.h first, to test interface.
91648         Include <stdlib.h> and <string.h> unconditionally.
91649
91650         * lib/linebuffer.c: Include <stdlib.h>.
91651         (free): Remove decl.
91652
91653         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91654         stddef.h. rpl_malloc returns void *, not char *.
91655         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91656         prototype.
91657
91658         * lib/md5.h: Include <limits.h> unconditionally.
91659         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91660         (__P): Remove; all uses removed.
91661         * lib/md5.c: Include "md5.h" first.
91662         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91663         md5_buffer, md5_process_bytes, md5_process_block):
91664         Define with prototypes.
91665         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91666         * lib/sha.c: Include "sha.h" first.
91667         Include <stdlib.h>, <string.h> unconditionally.
91668
91669         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91670         * lib/memcmp.c (__ptr_t): Likewise.
91671         * lib/memrchr.c (__ptr_t): Likewise.
91672         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91673         Include <string.h> unconditionally.
91674         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91675         * lib/memchr.c: Include <stdlib.h> unconditionally.
91676         * lib/memchr.c (LONG_MAX): Remove.
91677         * lib/memrchr.c (LONG_MAX): Likewise.
91678         * lib/memchr.c (__memchr): Define via a prototype.
91679         * lib/memrchr.c (__memrchr): Likewise.
91680         * lib/memcmp.c (__P): Remove, and remove all uses.
91681         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91682         Remove forward decls; no longer needed.
91683         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91684         Use types required by C89 in prototype.
91685
91686         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91687         * lib/savedir.c: Likewise.
91688         * lib/mkdir.c (free): Remove decl.
91689         * lib/rmdir.c (rmdir): Define with a prototype.
91690         * lib/savedir.c: Include savedir.h first, to test interface.
91691
91692         * lib/mktime.c (STDC_HEADERS): Remove.
91693         Include <stdlib.h>, <string.h> unconditionally.
91694
91695         * lib/modechange.c: Include <stdlib.h> unconditionally.
91696         (malloc): Remove decl.
91697
91698         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91699         (free): Remove decl.
91700
91701         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91702         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91703         (This type really should be intptr_t, but that's a C99ism.)
91704         (_obstack_memcpy): Remove: all uses changed to memcpy.
91705         Include <string.h> unconditionally.
91706         (struct obstack): Assume __STDC__ for types of members
91707         chunkfun, freefun, extra_arg.
91708         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91709         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91710         obstack_begin, obstack_specify_allocation,
91711         obstack_specify_allocation_with_arg, obstack_chunkfun,
91712         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91713         Remove unprototyped decls and the macros that use them.
91714         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91715         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91716         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91717         (defined __STDC__ && __STDC__)]:
91718         Remove nonprototyped code.
91719         Include <stdlib.h> unconditionally.
91720         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91721         _obstack_allocated_p, _obstack_free, obstack_free,
91722         _obstack_memory_used, print_and_abort):
91723         Define using prototypes.
91724         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91725         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91726         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91727         obstack_next_free, obstack_object_size, obstack_room) [0]:
91728         Remove unused, unprototyped code.
91729
91730         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91731
91732         * lib/physmem.c (physmem_total, physmem_available, main): Define
91733         with prototypes.
91734
91735         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91736         (main): Define with a prototype.
91737
91738         * lib/posixver.c (getenv): Remove decl.
91739
91740         * lib/putenv.c (malloc): Returns void *, not char *.
91741         Include <string.h> unconditionally.
91742         (strchr, memcpy, NULL): Do not define.
91743
91744         * lib/readtokens.c: Include readtokens.h first, to test interface.
91745         Include <stdlib.h>, <string.h> unconditionally.
91746         (init_tokenbuffer): Define with a prototype.
91747
91748         * lib/regex.c (PARAMS): Remove.  All uses removed.
91749         All uses of _RE_ARGS removed, too.
91750         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91751         unconditionally.
91752         (bzero): Assume memset exists.
91753         (memcmp, memcpy, NULL): Remove.
91754         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91755         char, or assignments to local vars of type signed char.
91756         (init_syntax_once, PREFIX(extract_number_and_incr),
91757         PREFIX(print_partial_compiled_pattern),
91758         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91759         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91760         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91761         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91762         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91763         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91764         wcs_compile_range, byte_compile_range, truncate_wchar,
91765         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91766         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91767         count_mbs_length, wcs_re_match_2_internal,
91768         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91769         PREFIX(alt_match_null_string_p),
91770         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91771         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91772         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91773         now-unnecessary declaration, if any.
91774         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91775         regcomp, regexec):
91776         Remove now-unnecessary casts among pointer types.
91777         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91778
91779         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91780         (free): Remove decl.
91781
91782         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91783
91784         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91785         (free): Remove decl.
91786
91787         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91788         * lib/xgetcwd.c: Likewise.
91789
91790         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91791         (free): Remove decl.
91792
91793         * lib/strchrnul.c (strchrnul): Define with a prototype.
91794         Fix bug: c_in was not converted to char before searching.
91795
91796         The following changes are not K&R related:
91797
91798         * lib/group-member.h: Include <sys/types.h>, so that this file is
91799         self-contained.
91800         * lib/makepath.h: Likewise.
91801
91802         * lib/getusershell.c (readname, default_index, line_size, readname):
91803         Use size_t, not int, for sizes.
91804         (readname): If the size overflows, report an error instead of
91805         looping forever.
91806
91807 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91808
91809         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91810         libc.
91811
91812 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91813
91814         * README: New section: portability guidelines.
91815
91816 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91817
91818         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91819         C89 spec.
91820
91821 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91822
91823         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91824
91825 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91826
91827         Assume C89 or better; remove K&R cruft.
91828         A few of these changes were first proposed by Derek Robert Price
91829         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91830
91831         * lib/addext.c: Include <string.h> unconditionally.
91832         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91833         Don't declare getenv or malloc.
91834
91835         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91836         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91837         (NULL): Remove.
91838         (find_stack_direction, alloca): Use prototypes.
91839
91840         * lib/atexit.c (atexit): Define using a prototype.
91841
91842         * lib/basename.c, dirname.c, stripslash.c:
91843         Include <string.h> unconditionally.
91844
91845         * lib/bcopy.c: Include <stddef.h>.
91846         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91847
91848         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91849
91850         * lib/error.h (error, error_at_line, error_print_progname)
91851         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91852         * lib/error.c: Include error.h first, to check interface.
91853         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91854         (VA_START): Remove; all uses changeed to va_start.
91855         (exit, strerror): Remove decls.
91856         (error_print_progname): Prototype uncondionally.
91857         Don't include <errno.h>; no longer needed.
91858         (private_strerror): Remove.
91859         (error_tail): Always define.
91860         (error, error_at_line): Assume C89 or better; always use prototypes.
91861         * lib/fatal.c: Include "fatal.h" first, to test interface.
91862         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91863         (VA_START): Remove; all uses changed to va_start.
91864         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91865         this case.
91866         (exit): Remove decl.
91867         (fatal): Prototype unconditionally.  Assume va_start works.
91868         Abort at end, to pacify gcc.
91869
91870         * lib/euidaccess.c (main): Define with a prototype.
91871
91872         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91873
91874         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91875
91876         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91877         prototypes.
91878         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91879         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91880         (getenv): Remove decl.
91881         (fnmatch): Define using a prototype.
91882         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91883         (FCT): Define using a prototype.
91884
91885         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91886
91887         * lib/gethostname.c: Include <stddef.h>.
91888         (gethostname): Define with prototype.  Length is size_t, not int.
91889
91890 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91891
91892         Assume C89 or better; remove K&R cruft.
91893         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91894         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91895         string.h, getenv, malloc.
91896         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91897         headers.
91898         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91899         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91900         do not check for strerror.
91901         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91902         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91903         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91904         do not check for doprnt or vprintf.
91905         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91906         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91907
91908 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91909
91910         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91911         getversion.c should have been removed then, but was accidentally
91912         preserved.
91913
91914         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91915         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91916
91917 2003-09-08  Karl Berry  <karl@gnu.org>
91918
91919         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91920                 config, forget about prep.
91921
91922         * config/depcomp, missing: update from automake.
91923
91924 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91925
91926         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91927         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91928
91929 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91930
91931         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91932         copy_tm_result.  Bug reported by Simon Josefsson in
91933         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91934
91935 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91936
91937         * m4/time_r.m4: New file.
91938         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91939         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91940         is. Check for timegm declaration.
91941         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91942         Do not check for gmtime_r.
91943         Replace mktime if __mktime_internal does not exist and if mktime
91944         hasn't been replaced already.
91945
91946 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91947
91948         * lib/time_r.c, lib/time_r.h: New files.
91949
91950         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91951         __localtime_r.
91952         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91953         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91954
91955         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91956         __gmtime_r.
91957         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91958         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91959         Include <time_r.h>.
91960
91961         * lib/timegm.c: Switch to glibc implementation, with the following
91962         changes:
91963         [defined HAVE_CONFIG_H]: Include <config.h>.
91964         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91965         (__mktime_internal) [!defined _LIBC]: New decl.
91966         (__gmtime_r) [!defined _LIBC]: New macro and function.
91967         (timegm): Use a prototype, since gnulib assumes C89.
91968         Do not bother declaring tmp to be const, as it's not really usefu.
91969         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91970         (timegm): Declare only if HAVE_DECL_TIMEGM.
91971
91972 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91973
91974         * MODULES.html.sh (func_all_modules): Add time_r.
91975         * modules/time_r: New file.
91976         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91977         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91978
91979 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91980
91981         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91982         Bug reported by Lute Kamstra in
91983         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91984
91985         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91986         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91987         course with correspondingly smaller numbers for tomorrow and
91988         yesterday.  From Tadayoshi Funaba.  Originally installed into
91989         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91990         coreutils merge?).
91991
91992 2003-08-31  Simon Josefsson  <jas@extundo.com>
91993
91994         * modules/timegm: New file.
91995         * MODULES.html.sh (func_all_modules): Add timegm.
91996
91997 2003-08-31  Simon Josefsson  <jas@extundo.com>
91998
91999         * m4/timegm.m4: New file.
92000
92001 2003-08-31  Simon Josefsson  <jas@extundo.com>
92002
92003         * lib/timegm.h: New file.
92004         * lib/timegm.c: New file.  Based on
92005         wget-1.8.2/src/http.c:mktime_from_utc.
92006
92007 2003-08-31  Karl Berry  <karl@gnu.org>
92008
92009         * lib/argp.h: update from libc.
92010
92011 2003-08-28  Bruno Haible  <bruno@clisp.org>
92012
92013         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92014         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92015         followed by '#define fnmatch fnmatch_posix' gives an error.
92016
92017 2003-08-28  Bruno Haible  <bruno@clisp.org>
92018
92019         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92020         warning on QNX, which defines O_BINARY to 000000.
92021
92022 2003-08-27  Jim Meyering  <jim@meyering.net>
92023
92024         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92025         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92026         would fail after 32.  Reported by Danny Levinson.  Details here:
92027         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92028
92029 2003-08-24  Bruno Haible  <bruno@clisp.org>
92030
92031         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92032         MSVC7 <stdio.h> is included later.
92033
92034 2003-08-22  Simon Josefsson  <jas@extundo.com>
92035
92036         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92037
92038 2003-08-20  Karl Berry  <karl@gnu.org>
92039
92040         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92041
92042 2003-08-20  Bruno Haible  <bruno@clisp.org>
92043
92044         * modules/progname: New file.
92045         * MODULES.html.sh (func_all_modules): Add progname.
92046
92047 2003-08-20  Bruno Haible  <bruno@clisp.org>
92048
92049         * lib/progname.h: New file, from GNU gettext.
92050         * lib/progname.c: New file, from GNU gettext.
92051         * lib/progreloc.c: New file, from GNU gettext.
92052
92053 2003-08-19  Jim Meyering  <jim@meyering.net>
92054
92055         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92056         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92057
92058 2003-08-19  Bruno Haible  <bruno@clisp.org>
92059
92060         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92061         more.
92062
92063 2003-08-19  Bruno Haible  <bruno@clisp.org>
92064
92065         * lib/xstrdup.c: Assume <string.h> exists.
92066
92067 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92068
92069         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92070         in makefile rules.
92071
92072 2003-08-18  Jim Meyering  <jim@meyering.net>
92073
92074         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92075         * m4/lib-ld.m4: Likewise.
92076
92077 2003-08-18  Jim Meyering  <jim@meyering.net>
92078
92079         * lib/setenv.h: Indent nested cpp directive.
92080         * lib/vasnprintf.c: Remove trailing blanks.
92081
92082 2003-08-17  Simon Josefsson  <jas@extundo.com>
92083
92084         * modules/xstrndup: New file.
92085         * MODULES.html.sh (func_all_modules): Add xstrndup.
92086
92087 2003-08-17  Simon Josefsson  <jas@extundo.com>
92088
92089         * modules/argp: Fix autoconf macro name. Add more dependencies.
92090
92091 2003-08-17  Simon Josefsson  <jas@extundo.com>
92092
92093         * m4/xstrndup.m4: New file.
92094
92095 2003-08-17  Simon Josefsson  <jas@extundo.com>
92096
92097         * m4/argp.m4: New file.
92098
92099 2003-08-17  Simon Josefsson  <jas@extundo.com>
92100             Bruno Haible  <bruno@clisp.org>
92101
92102         * lib/xstrndup.h: New file.
92103         * lib/xstrndup.c: New file.
92104
92105 2003-08-17  Bruno Haible  <bruno@clisp.org>
92106
92107         * modules/strndup (Files, Include): Add lib/strndup.h.
92108
92109 2003-08-17  Bruno Haible  <bruno@clisp.org>
92110
92111         * modules/euidaccess (Files): Add lib/euidaccess.h.
92112
92113 2003-08-17  Bruno Haible  <bruno@clisp.org>
92114
92115         * lib/strndup.h: New file.
92116
92117 2003-08-17  Bruno Haible  <bruno@clisp.org>
92118
92119         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92120         like AC_GNU_SOURCE.
92121         * modules/extensions (configure.ac): Comment out the invocation of
92122         gl_USE_SYSTEM_EXTENSIONS.
92123
92124 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92125
92126         Merges from coreutils, etc.
92127         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92128         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92129         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92130         fixing a typo.
92131         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92132         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92133
92134 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92135
92136         Document merge from coreutils.
92137         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92138         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92139         * modules/utime: Add m4/utimes-null.m4.
92140
92141 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92142
92143         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92144         space, undoing this 2003-08-12 change:
92145         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92146
92147 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92148
92149         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92150         strtoul.c from libc, undoing this 2003-08-12 change:
92151         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92152
92153 2003-08-16  Jim Meyering  <jim@meyering.net>
92154
92155         Merges from coreutils.
92156         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92157         prefix.  Adjust cache variables similarly.  Create 500 rather than
92158         just 300 files, to exercise bug on Darwin6.5, too.
92159         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92160         $missing_dir.
92161         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92162         AM_SYS_POSIX_TERMIOS.
92163         Reported by mkc@mathdogs.com.
92164         Also change use of $am_cv_sys_posix_termios
92165         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92166         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92167         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92168         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92169         in /proc/mounts until it finds one with matching device number.  This
92170         is unnecessary when the FILE argument *is* a mount point.  No stat call
92171         is necessary in that case.  So, disable the statvfs-testing code on
92172         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92173         as RedHat bug# 84846.
92174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92175         to 1MB, so as not to render systems with no stack size limit (e.g.,
92176         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92177         Include <unistd.h>.  On some systems,
92178         it is required for the definition of _SC_PAGESIZE.
92179
92180 2003-08-16  Jim Meyering  <jim@meyering.net>
92181
92182         Merge from coreutils.
92183         * lib/xstrtoimax.c: #else #if -> #elif.
92184         * lib/xstrtoumax.c: Likewise.
92185
92186 2003-08-16  Jim Meyering  <jim@meyering.net>
92187
92188         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92189         * m4/utimes.m4: Removed.
92190         * m4/utimes-null.m4: Renamed from utimes.m4.
92191
92192         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92193         to 1MB, so as not to render systems with no stack size limit (e.g.,
92194         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92195         Include <unistd.h>.  On some systems,
92196         it is required for the definition of _SC_PAGESIZE.
92197
92198 2003-08-16  Jim Meyering  <jim@meyering.net>
92199         and Paul Eggert  <eggert@cs.ucla.edu>
92200
92201         Merges from coreutils, etc.
92202
92203         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92204         using the latest version from cvs.  This avoids problems with #line
92205         directives using a vendor (Sun) compiler.
92206         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92207         Don't set GETGROUPS_LIB here; now it's
92208         done via getgroups.m4's wrapper function.
92209         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92210         rather than just in sh-util/configure.in, so that the
92211         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92212         same.
92213         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92214         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92215         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92216         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92217         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92218         Remove code that is now done by the newly-required macros.
92219         Append $(EXEEXT) to DF_PROG.
92220         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92221         Do not invoke or require the following here,
92222         since prereq.m4 or some gnulib .m4 now does this for us:
92223         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92224         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92225         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92226         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92227         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92228         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92229         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92230         AC_FUNC_OBSTACK.
92231         Do not replace the following functions, as this is now the job
92232         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92233         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92234         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92235         atexit getpass, strdup, getpagesize.
92236         Replace 'raise'.
92237         Do not check for the following functions, as this is now the job
92238         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92239         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92240         setregid.
92241         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92242         Check for sys/sysctl.h.
92243         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92244         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92245         of checking for ssize_t ourselves.
92246
92247         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92248         Require every macro that gnulib/modules/* suggests for us.
92249         (jm_PREREQ_ADDEXT): New macro.
92250         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92251         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92252
92253         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92254         (gl_PHYSMEM): Use it.
92255         Also check for `table' function.
92256         Check for new headers and functions.
92257         Add check for sys/sysmp.h.
92258         With suggestions from Kaveh Ghazi.
92259         Ignore headers that are present but cannot be compiled.  This
92260         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92261         C 5.4.
92262
92263 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92264
92265         Document merge from coreutils.
92266         * modules/userspec: Depend on posixver.
92267         * modules/strftime: Depend on tzset.
92268
92269 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92270
92271         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92272         rather than tab, after '#' in shell-script copyright notices.
92273         Suggested by Bruno Haible.
92274
92275 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92276
92277         * config/srclist-update: Use three spaces, rather than tab, after '#'
92278         in shell-script copyright notices.  Suggested by Bruno Haible.
92279         Remove unnecessary parenthesization in regular expression.
92280
92281 2003-08-15  Jim Meyering  <jim@meyering.net>
92282
92283         Merge from coreutils.
92284         * lib/xgethostname.c: Include <stdlib.h>.
92285         (xghostname): Don't exit for anything other than memory-related
92286         failure; just return NULL.
92287         * lib/userspec.c: Include "posixver.h".
92288         (parse_user_spec): Accept `.' as a separator only
92289         in pre-POSIX-200112 mode.
92290         * lib/strtoimax.c: Use #elif rather than #else #if.
92291         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92292         Remove function, now that we can rely on a working tzset function.
92293         [!_LIBC]: Ensure that the required autoconf test has been run.
92294         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92295         Use underlying_strftime for %r.
92296         * lib/sha.c: Merge in some clean-up and optimization changes from
92297         glibc.
92298         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92299         Ensure that it is a multiple of 64.
92300         Rearrange loop exit tests so as to avoid performing an
92301         additional fread after encountering an error or EOF.
92302         * lib/realloc.c: Update copyright date.
92303
92304 2003-08-15  Jim Meyering  <jim@meyering.net>
92305         and Paul Eggert  <eggert@twinsun.com>
92306
92307         Merge from coreutils.
92308         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92309         member but strut utmpx does not.  Needed for AIX 4.3.3.
92310         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92311
92312 2003-08-15  Jim Meyering  <jim@meyering.net>
92313         and Paul Eggert  <eggert@cs.ucla.edu>
92314
92315         Merges from coreutils, etc.
92316         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92317         Require gl_FUNC_TZSET_CLOBBER.
92318         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92319         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92320         members.
92321
92322 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92323
92324         Help the merge from coreutils.
92325         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92326         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92327         * m4/tzset.m4: Use it too.
92328
92329 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92330
92331         * modules/tzset: New file.
92332
92333 2003-08-14  Jim Meyering  <jim@meyering.net>
92334
92335         Merges from coreutils.
92336         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92337         variable names, rather than @FNMATCH_H@.
92338         * modules/alloca: Likewise for $(ALLOCA_H).
92339
92340         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92341         the three copies of the literal target, `fnmatch.h'.
92342         * modules/alloca (alloca.h): Likewise.
92343
92344 2003-08-14  Jim Meyering  <jim@meyering.net>
92345
92346         Merge from coreutils.
92347         * m4/tzset.m4: New file.
92348         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92349         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92350         otherwise, AIX 5.1 systems would end up using the latter.
92351         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92352         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92353         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92354         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92355
92356 2003-08-14  Jim Meyering  <jim@meyering.net>
92357
92358         Merge from coreutils.
92359         * lib/obstack.h: Whitespace changes.
92360         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92361         and xcalloc return values.
92362         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92363         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92364         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92365         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92366         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92367         error from mntctl.
92368         Use mntctl's return value to drive the entry-processing loop, since
92369         we can't rely on the value of the vmt_length member in the last
92370         entry.  On some systems doing so could result in exhausting
92371         virtual memory.  Based in part on a patch from Mike Jetzer.
92372
92373 2003-08-14  Jim Meyering  <jim@meyering.net>
92374         and Paul Eggert  <eggert@twinsun.com>
92375
92376         Merges from coreutils, plus other fixes.
92377         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92378         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92379         for credits and details.  Thanks to Kaveh Ghazi for helping
92380         to keep these files in sync.
92381         (ARRAY_SIZE): Define it.
92382         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92383         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92384         (memcasecmp): Don't assume size_t fits in unsigned int.
92385         Remove casts and duplicate code.
92386         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92387         (memcpy): Remove definition.
92388         Merge in some clean-up and optimization changes from glibc.
92389         [BLOCKSIZE]: Move definition to top of file.
92390         Ensure that it is a multiple of 64.
92391         Rearrange loop exit tests so as to avoid performing an
92392         additional fread after encountering an error or EOF.
92393         * lib/md5.h (md5_uintptr): Define.
92394         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92395         return to the initial working directory.  Preserve errno
92396         for caller.
92397         * lib/idcache.c: Include "xalloc.h".
92398         (xmalloc, xrealloc): Remove decls.
92399         (getuser): Remove casts no longer required in C89.
92400         * lib/human.c: Include stdio.h, for sprintf.
92401         * lib/group-member.c: Include "xalloc.h".
92402         (xmalloc, xrealloc): Remove decls.
92403         (get_group_info): Remove casts no longer required in C89.
92404         * lib/getusershell.c (readname): Remove casts no longer required in
92405         C89.
92406         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92407         * lib/getline.c: Whitespace fix, from coreutils.
92408
92409 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92410
92411         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92412         Check for isascii.
92413
92414         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92415         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92416         Undo previous (whitespace-only) change.
92417
92418 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92419
92420         * lib/exclude.c: Include <ctype.h>
92421         (IN_CTYPE_DOMAIN): New macro.
92422         (is_space): New fn.
92423         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92424         and empty lines.
92425
92426         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92427         Undo previous (whitespace-only) change.
92428
92429 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92430
92431         * config/srclist-update: Change update back to the old behavior,
92432         leaving whitespace alone.  Use one 'sed' command rather than a
92433         pipeline.
92434         (fixlicense): Now a variable, not a function.
92435         (remove_trailing_blanks): Remove.
92436         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92437         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92438         Undo previous (whitespace-only) change.
92439
92440 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92441
92442         Merge from coreutils.
92443         * modules/euidaccess: Add lib_SOURCES, include for new
92444         file euidaccess.h
92445
92446 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92447
92448         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92449         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92450         Normalize leading white space and remove trailing white space.
92451
92452         Merge from coreutils
92453         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92454
92455         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92456         0.12.1.  These files are now being upgraded automatically by
92457         ../config/srclist-update.
92458
92459 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92460
92461         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92462         Normalize leading white space and remove trailing white space.
92463         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92464         notice, as per ../config/srclist-update.
92465
92466         Merge from coreutils.
92467         * lib/euidaccess.h: New file.
92468         * lib/euidaccess.c: Include it.
92469         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92470         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92471         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92472
92473 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92474
92475         * config/srclist-update: Add copyright notice.
92476         (remove_id_lines, remove_trailing_blanks): New constants.
92477         (fixfile): Use them to normalize spacing a bit in copied files.
92478         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92479         Normalize leading white space and remove trailing white space.
92480
92481         * config/texinfo.tex: Sync with texinfo.
92482
92483         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92484         strtoul.c from libc, to merge coreutils whitespace changes.
92485
92486         * config/srclist.txt: Get the following m4 files from gettext:
92487         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92488         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92489         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92490         wint_t.m4.
92491
92492 2003-08-12  Karl Berry  <karl@gnu.org>
92493
92494         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92495         been made.
92496
92497 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92498
92499         * modules/gnu-source, m4/gnu-source.m4:
92500         Remove; we're assuming Autoconf 2.54 or later now.
92501         Suggested by Bruno Haible.
92502         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92503
92504 2003-08-11  Bruno Haible  <bruno@clisp.org>
92505
92506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92507
92508 2003-08-11  Bruno Haible  <bruno@clisp.org>
92509
92510         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92511         (vasnprintf): Use it instead of wcslen.
92512
92513 2003-08-11  Bruno Haible  <bruno@clisp.org>
92514
92515         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92516         value to ensure that _Bool promotes to int. Use #define for _Bool when
92517         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92518
92519 2003-08-10  Karl Berry  <karl@gnu.org>
92520
92521         * lib/regex.h: update from libc (whitespace fix).
92522
92523 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92524
92525         Merge some files from coreutils.  These changes were
92526         originally made by Jim Meyering.
92527         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92528         many older Unixes require this.
92529         * lib/alloca.c (alloca): Remove cast to argument of free;
92530         no longer needed in C89.
92531         * lib/alloca_.h, regex.h: Fix white space to match
92532         what GNU indent does.
92533
92534 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92535
92536         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92537         apparently Emacs's Unicode mode got confused before my 2003-08-05
92538         checkin.
92539
92540 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92541
92542         * m4/extensions.m4: New file.
92543         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92544         Require gl_USE_SYSTEM_EXTENSIONS.
92545         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92546         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92547
92548 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92549
92550         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92551         * modules/extensions, modules/gnu-source: New files.
92552         * modules/timespec, modules/unlocked-io: Depend on extensions.
92553
92554 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92555
92556         * modules/restrict: New file.
92557         * MODULES.html.sh (func_all_modules): Add restrict.
92558         * modules/regex: Depend on restrict.
92559
92560 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92561
92562         * m4/restrict.m4: New file.
92563         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92564
92565 2003-08-07  Bruno Haible  <bruno@clisp.org>
92566
92567         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92568         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92569
92570 2003-08-07  Bruno Haible  <bruno@clisp.org>
92571
92572         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92573         makes the module 'getndelim2' compatible with the module 'getline'.
92574
92575 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92576
92577         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92578         byte with "\201" to avoid glitches when editing that source file
92579         with multi-gnome-terminal.
92580
92581 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92582
92583         * lib/bumpalloc.h: Remove.
92584
92585 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92586
92587         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92588         * modules/bumpalloc: Remove.
92589
92590 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92591
92592         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92593         GNU coding style.
92594
92595         Merge from coreutils.
92596         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92597         1. From glibc.
92598         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92599         from Karl Berry, implemented by Jim Meyering.
92600         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92601         from Dmitry V. Levin.
92602         Remove anachronistic cast of xrealloc.
92603         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92604         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92605         type. Otherwise, it wouldn't compile with at least /bin/cc on
92606         ymp-cray-unicos9.0.2.X.
92607         Combine two mostly-identical uses of alloca into one.
92608         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92609
92610 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92611
92612         [From Emacs.]
92613
92614         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92615         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92616         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92617         obsolete NLIST_NAME_UNION.
92618         [__GNU__]: Undef BSD and FSCALE.
92619         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92620
92621 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92622
92623         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92624         an enum type, so that it's guaranteed to promote to int.  See:
92625         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92626
92627 2003-08-03  Karl Berry  <karl@gnu.org>
92628
92629         * config/depcomp: update from automake.
92630
92631 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92632
92633         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92634         (strerror): Don't assume that a printable int fits in 14 bytes.
92635
92636 2003-07-31  Bruno Haible  <bruno@clisp.org>
92637
92638         * modules/getpass-gnu: New file.
92639         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92640
92641 2003-07-31  Bruno Haible  <bruno@clisp.org>
92642
92643         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92644
92645 2003-07-24  Karl Berry  <karl@gnu.org>
92646
92647         * config/missing: update from automake.
92648
92649 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92650             Bruno Haible  <bruno@clisp.org>
92651
92652         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92653         * lib/getline.c (getline, getdelim): Likewise.
92654         Remove _GNU_SOURCE define; now it's defined in config.h through
92655         m4/getline.m4.
92656
92657 2003-07-23  Karl Berry  <karl@gnu.org>
92658
92659         * config/config.sub: update from prep.
92660
92661 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92662
92663         * modules/xalloc (Depends-on): Add exitfail.
92664         * modules/xmemcoll: Likewise.
92665
92666 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92667
92668         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92669         over-parenthesization in macros.
92670
92671         Sync with coreutils.
92672
92673         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92674         required by C99.
92675
92676         Use `exit_failure' for xalloc and xmemcoll instead of their own
92677         private exit-failure variables.
92678         * lib/xalloc.h (xalloc_exit_failure): Remove.
92679         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92680         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92681         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92682         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92683         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92684
92685 2003-07-20  Jim Meyering  <jim@meyering.net>
92686
92687         * modules/closeout (Depends-on): Add exitfail.
92688         Suggestion from Bruno Haible.
92689
92690 2003-07-19  Karl Berry  <karl@gnu.org>
92691
92692         * config/config.sub: update from prep.
92693
92694 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92695
92696         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92697         Remove.
92698         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92699         to test that it can stand by itself.  Include "exitfail.h".
92700         Clients should set exit_failure instead.
92701         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92702
92703 2003-07-18  Bruno Haible  <bruno@clisp.org>
92704
92705         * modules/getndelim2: New file.
92706         * modules/getline: Share files with module getndelim2.
92707         * modules/getnline: Depend on getndelim2 instead of sharing files with
92708         it. Add getnline.c to lib_SOURCES.
92709         * MODULES.html.sh (func_all_modules): Add getndelim2.
92710
92711 2003-07-18  Bruno Haible  <bruno@clisp.org>
92712
92713         * m4/getndelim2.m4: New file.
92714         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92715         invoke gl_PREREQ_GETNDELIM2.
92716         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92717         gl_PREREQ_GETNDELIM2.
92718         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92719         gl_GETNDELIM2.
92720
92721 2003-07-18  Bruno Haible  <bruno@clisp.org>
92722
92723         * lib/getndelim2.h: New file.
92724         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92725         getndelim2.h.
92726         (getndelim2): Make non-static. Change return type to ssize_t.
92727         * lib/getline.h: Change argument names.
92728         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92729         * lib/getnline.c: Include getndelim2.h.
92730
92731 2003-07-18  Andreas Schwab  <schwab@suse.de>
92732
92733         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92734
92735 2003-07-17  Karl Berry  <karl@gnu.org>
92736
92737         * config/config.sub: update from prep.
92738
92739 2003-07-17  Bruno Haible  <bruno@clisp.org>
92740
92741         * modules/getnline: New file.
92742         * modules/getline: Add lib/getndelim2.c to source file list.
92743         * MODULES.html.sh (func_all_modules): Add getnline.
92744
92745 2003-07-17  Bruno Haible  <bruno@clisp.org>
92746
92747         * m4/getnline.m4: New file.
92748
92749 2003-07-17  Bruno Haible  <bruno@clisp.org>
92750
92751         * m4/Makefile.am.in: Remove file.
92752         * m4/Makefile.am: Remove file.
92753         * m4/Makefile.in: Remove file.
92754
92755 2003-07-17  Bruno Haible  <bruno@clisp.org>
92756
92757         * lib/getnline.h: New file.
92758         * lib/getnline.c: New file.
92759         * lib/getndelim2.c: New file, extracted from getline.c.
92760         (getndelim2): Renamed from getdelim2, with added nmax argument.
92761         * lib/getline.c: Include getndelim2.c.
92762         (getdelim2): Moved out to getndelim2.c.
92763         (getline, getdelim): Update.
92764
92765 2003-07-17  Bruno Haible  <bruno@clisp.org>
92766
92767         * lib/Makefile.am: Remove file.
92768         * lib/Makefile.in: Remove file.
92769
92770 2003-07-17  Bruno Haible  <bruno@clisp.org>
92771
92772         * configure.in: Remove file.
92773         * Makefile.in: Remove file.
92774
92775 2003-07-17  Bruno Haible  <bruno@clisp.org>
92776
92777         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92778
92779 2003-07-16  Karl Berry  <karl@gnu.org>
92780
92781         * config/srclist-update: was running fixlicense twice, which caused
92782                 texinfo.tex to be nullified for some reason.  Simplify,
92783                 $gplsrc is no longer needed as far as I can see?
92784
92785 2003-07-16  Jim Meyering  <jim@meyering.net>
92786
92787         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92788
92789 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92790
92791         * config/srclist.txt: Get the following files from gettext-runtime/intl
92792         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92793         ref-del.sin.  From Bruno Haible.
92794         * config/srclist-update (fixfile): Change grep pattern again, since the
92795         previous fix didn't work (there was another trailing $).  Use
92796         '[$]' to escape the $s.
92797
92798 2003-07-15  Karl Berry  <karl@gnu.org>
92799
92800         * lib/vasnprintf.c: update from gettext.
92801
92802 2003-07-15  Karl Berry  <karl@gnu.org>
92803
92804         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92805         gets expanded when surrounded by '$'.
92806
92807 2003-07-15  Jim Meyering  <jim@meyering.net>
92808
92809         * modules/save-cwd: Don't depend on error.  From Derek Price.
92810
92811 2003-07-15  Jim Meyering  <jim@meyering.net>
92812
92813         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92814
92815 2003-07-14  Simon Josefsson  <jas@extundo.com>
92816
92817         * modules/mempcpy: New file.
92818         * MODULES.html.sh (func_all_modules): Add mempcpy.
92819
92820 2003-07-14  Simon Josefsson  <jas@extundo.com>
92821
92822         * m4/mempcpy.m4: New file.
92823
92824 2003-07-14  Simon Josefsson  <jas@extundo.com>
92825
92826         * lib/mempcpy.h: New file.
92827         * lib/mempcpy.c: New file.
92828
92829 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92830
92831         * modules/getdate, modules/posixtm: Depend on mktime.
92832
92833 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92834
92835         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92836         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92837         unicodeio.c, unicodeio.h, unlocked-io.h:
92838         Switch from LGPL to GPL.
92839
92840 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92841
92842         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92843         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92844         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92845         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92846         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92847         updated automatically by ../config/srclist-update.  This changes
92848         their license from LPGL to GPL.
92849
92850 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92851
92852         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92853         assumed to refer to the root of the most recent stable gettext version.
92854         * config/srclistvars.sh: Add defaults for eggert.
92855         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92856         Match "This program" as well as "The program".  This is needed
92857         for gettext.
92858
92859 2003-07-14  Jim Meyering  <jim@meyering.net>
92860
92861         Don't emit diagnostics.  Let callers do that.
92862         * lib/save-cwd.c: Don't include "error.h".
92863         (save_cwd): Don't call error.  Ensure that errno is valid
92864         when returning nonzero.
92865
92866         * lib/save-cwd.h (restore_cwd): Update prototype.
92867         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92868         Simplify.  Don't call error upon failure.  Let callers do that.
92869         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92870         when auditing is enabled.  But don't bother updating the #if.
92871
92872 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92873
92874         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92875         it breaks C++ compilation.
92876         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92877
92878 2003-07-10  Simon Josefsson  <jas@extundo.com>
92879
92880         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92881
92882 2003-07-10  Jim Meyering  <jim@meyering.net>
92883
92884         * m4/clock_time.m4: Remove trailing blank.
92885         * m4/intmax_t.m4: Likewise.
92886
92887 2003-07-10  Jim Meyering  <jim@meyering.net>
92888
92889         * lib/vasnprintf.c: Remove trailing blanks.
92890         Make cpp indentation consistent.
92891
92892 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92893
92894         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92895         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92896         Switch from LGPL to GPL.
92897
92898 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92899
92900         * config/srclist.txt: Sort sublists.  Add
92901         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92902         that differ from gnulib for one reason or another; we'd like this list
92903         to be smaller but for now let's document what we have.
92904
92905 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92906
92907         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92908         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92909         and sweeter "eval x=$x".
92910         * config/srclist.txt: Get lib/argp* from glibc.
92911
92912 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92913
92914         * lib/mktime.c: Fix some boundary cases and remove need for floating
92915         point.
92916
92917         Issue a compile-time diagnostic if time_t is floating point, or if
92918         two's complement arithmetic is not in effect, or if arithmetic
92919         right shift does not propagate the sign.  These assumptions were
92920         all in the original code but they weren't checked.
92921
92922         (TIME_T_MIDPOINT, verify): New macros.
92923         (__isleap): Remove; it has integer overflow problems.
92924         (leapyear): New function, without those problems.
92925         (ydhms_tm_diff): Remove; splitting into two parts.
92926         (ydhms_diff): New function, containing the arithmetic part of
92927         the old ydhms_tm_diff function.  Issue a compile-time
92928         diagnostic if we are not using C99 integer division.
92929         Avoid casts when possible.
92930         (guess_time_tm): New function, containing the checking part of
92931         the old ydhms_tm_diff function.  Return the new value, rather than
92932         the difference between it and the old.  Accept a new argument T
92933         so that *T specifies the old value.  Check for overflow in the result.
92934
92935         (__mktime_internal): Use a time_t offset, not a long int offset.
92936         This undoes the 2003-06-04 change, which is no longer needed now
92937         that we have better overflow checking.
92938         (localtime_offset): Likewise.
92939
92940         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92941         and long are 64-bit but int is only 32-bit.
92942         (ydhms_diff): Use long int to store year1 and yday1.
92943         Issue a compile-time diagnostic if long int is not wide enough.
92944
92945         (__mktime_internal): Use long int to store adjusted year and yday.
92946         Use plain C rather than preprocessor commands, if that doesn't
92947         affect efficiency.
92948         Check for overflow (and try to repair) after each probe
92949         rather than checking only at the very end.  This avoids some bugs
92950         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92951         does not equal GMT offset at maximum time).
92952         Use integer to check for overflow rather than floating point; this
92953         is more portable to non-IEEE hosts, and is a tad faster.
92954         When we detect that we are oscillating between two values,
92955         don't check whether tm_isdst has the requested value, since
92956         we already know the answer.  When tm_isdst has the wrong value,
92957         use a different heuristic to find the right one, based on the
92958         extreme values actually observed in practice in tz2003a,
92959         rather than the (overly optimistic) "previous 3 calendar quarters".
92960
92961         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92962         "T const" to accommodate glibc style.
92963         (check_result): Use less-confusing report format.  "long" -> "long int.
92964         (main): Likewise.
92965         Don't loop if the iteration overflows time_t.
92966         Allow a negative step in the iteration.
92967
92968 2003-07-06  Karl Berry  <karl@gnu.org>
92969
92970         * config/depcomp: update from automake.
92971         * config/config.sub: update from prep.
92972
92973 2003-07-03  Karl Berry  <karl@gnu.org>
92974
92975         * config/config.guess: update from prep.
92976
92977 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92978
92979         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92980         xreadlink.c now includes it unconditionally.
92981
92982 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92983
92984         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92985         having it depend on HAVE_SYS_TYPES_H.
92986
92987 2003-07-01  Bruno Haible  <bruno@clisp.org>
92988
92989         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92990         <sys/types.h> should be sufficient.
92991         Reported by Paul Eggert.
92992
92993 2003-06-26  Karl Berry  <karl@gnu.org>
92994
92995         * config/depcomp: update from automake.
92996
92997 2003-06-26  Bruno Haible  <bruno@clisp.org>
92998
92999         * modules/human: Depend on module stdbool.
93000
93001 2003-06-25  Bruno Haible  <bruno@clisp.org>
93002
93003         * modules/readlink: New file.
93004         * modules/xreadlink: Depend on it.
93005         * MODULES.html.sh (func_all_modules): Add readlink.
93006
93007 2003-06-25  Bruno Haible  <bruno@clisp.org>
93008
93009         * m4/readlink.m4: New file.
93010
93011 2003-06-25  Bruno Haible  <bruno@clisp.org>
93012
93013         * lib/readlink.c: New file.
93014
93015 2003-06-22  Karl Berry  <karl@gnu.org>
93016
93017         * config/srclist.txt: update mkinstalldirs from automake.
93018         * config/mkinstalldirs: update.
93019
93020 2003-06-22  Bruno Haible  <bruno@clisp.org>
93021
93022         Portability to mingw32.
93023         * m4/ssize_t.m4: New file, from GNU gettext.
93024         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93025         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93026
93027 2003-06-22  Bruno Haible  <bruno@clisp.org>
93028
93029         * modules/safe-read: Add m4/ssize_t.m4.
93030         * modules/xreadlink: Add m4/ssize_t.m4.
93031
93032 2003-06-20  Bruno Haible  <bruno@clisp.org>
93033
93034         Assume C89, so PARAMS isn't needed.
93035         * lib/unicodeio.h (PARAMS): Remove.
93036         * lib/unicodeio.c: Don't use PARAMS.
93037
93038 2003-06-18  Karl Berry  <karl@gnu.org>
93039
93040         * config/config.{guess,sub}: update from prep.
93041
93042 2003-06-18  Jim Meyering  <jim@meyering.net>
93043
93044         Merge changes from coreutils.
93045         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93046         Remove explicit declarations of xmalloc and realloc.
93047         Include xalloc.h.
93048         (read_utmp): Remove anachronistic cast of xmalloc.
93049
93050 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93051
93052         Assume C89, so PARAMS isn't needed.
93053         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93054         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93055         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93056         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93057         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93058         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93059         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93060         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93061         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93062         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93063         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93064         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93065         no longer needed. Anyway, config.h should always be included before any
93066         other file.
93067
93068 2003-06-11  Simon Josefsson  <jas@extundo.com>
93069
93070         * modules/sysexits: New file.
93071         * MODULES.html.sh (func_all_modules): Add sysexits.
93072
93073 2003-06-11  Simon Josefsson  <jas@extundo.com>
93074
93075         * lib/sysexit_.h: New file.
93076
93077 2003-06-11  Derek Price  <derek@ximbiot.com>
93078
93079         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93080         necessary.
93081
93082 2003-06-11  Bruno Haible  <bruno@clisp.org>
93083
93084         * m4/sysexits.m4: New file.
93085
93086 2003-06-10  Simon Josefsson  <jas@extundo.com>
93087
93088         * lib/argp.h: New file, from glibc.
93089         * lib/argp-ba.c: New file, from glibc.
93090         * lib/argp-eexst.c: New file, from glibc.
93091         * lib/argp-fmtstream.c: New file, from glibc.
93092         * lib/argp-fmtstream.h: New file, from glibc.
93093         * lib/argp-fs-xinl.c: New file, from glibc.
93094         * lib/argp-help.c: New file, from glibc.
93095         * lib/argp-namefrob.h: New file, from glibc.
93096         * lib/argp-parse.c: New file, from glibc.
93097         * lib/argp-pv.c: New file, from glibc.
93098         * lib/argp-pvh.c: New file, from glibc.
93099         * lib/argp-xinl.c: New file, from glibc.
93100
93101 2003-06-10  Simon Josefsson  <jas@extundo.com>
93102
93103         * modules/strchrnul: New file.
93104
93105 2003-06-10  Simon Josefsson  <jas@extundo.com>
93106
93107         * modules/argp: New file.
93108
93109 2003-06-10  Simon Josefsson  <jas@extundo.com>
93110
93111         * m4/strchrnul.m4: New file.
93112
93113 2003-06-10  Simon Josefsson  <jas@extundo.com>
93114
93115         * lib/strchrnul.h: New file.
93116         * lib/strchrnul.c: New file.
93117
93118 2003-06-10  Bruno Haible  <bruno@clisp.org>
93119
93120         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93121
93122 2003-06-07  Karl Berry  <karl@gnu.org>
93123
93124         * config/config.{guess,sub}: update from prep.
93125
93126 2003-06-07  Jim Meyering  <jim@meyering.net>
93127
93128         * modules/strtod: Use $(...) notation, not @...@ for
93129         AC_REPLACE'd variables.
93130         * modules/localcharset: Likewise.
93131
93132 2003-06-07  Jim Meyering  <jim@meyering.net>
93133
93134         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93135         in place of my name in the copyright comment.
93136         Remove definition and uses of __P.
93137
93138         From coreutils.
93139         * lib/stat.c: Don't declare xmalloc explicitly.
93140         Instead, include "xalloc.h".
93141         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93142         xrealloc, and xcalloc return values.
93143         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93144         Improve comment.
93145         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93146
93147 2003-06-07  Bruno Haible  <bruno@clisp.org>
93148
93149         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93150         avoid AC_CONFIG_LINKS.
93151         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93152         fnmatch.h, to avoid AC_CONFIG_LINKS.
93153         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93154
93155 2003-06-07  Bruno Haible  <bruno@clisp.org>
93156
93157         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93158         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93159         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93160         directory.
93161         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93162         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93163         directory.
93164
93165 2003-06-06  Jim Meyering  <jim@meyering.net>
93166
93167         Merge from coreutils.
93168         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93169         Consolidate declarations and initializations of *_base* locals.
93170
93171         Merge from coreutils.
93172         This avoids a core dump on systems without GNU putenv,
93173         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93174         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93175         (unsetenv): New static function, from GNU libc.
93176         (rpl_putenv): Use it.
93177
93178         * lib/modechange.c: Remove trailing blanks.
93179
93180         Merge from coreutils.
93181         * lib/fsusage.c: Remove declaration of statfs.
93182         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93183
93184         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93185
93186 2003-06-06  Jim Meyering  <jim@meyering.net>
93187
93188         * lib/stdbool_.h: Renamed from stdbool.h.in.
93189
93190 2003-06-06  Jim Meyering  <jim@meyering.net>
93191             Bruno Haible  <bruno@clisp.org>
93192
93193         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93194         Adjust Makefile.am snippet not to redirect directly to target.
93195         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93196
93197 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93198
93199         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93200         mismatch, look in future quarters as well as past.  This fixes a
93201         bug when processing fall-backwards gaps immediately after a long
93202         period of daylight-saving time.
93203
93204         * lib/mktime.c: Assume freestanding C89 or better.
93205         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93206         (__P): Remove; not used.
93207         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93208         (mktime, not_equal_tm, print_tm, check_result,
93209         main): Use prototypes.  Use const * where appropriate.
93210         (main): Fix typo in testing code that uncovered by above changes.
93211         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93212
93213 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93214
93215         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93216         locale.h, localeconv.  This merges changes from coreutils.
93217
93218         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93219         It can be removed after the next Autoconf is released.
93220         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93221         needed.
93222
93223 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93224
93225         * lib/mktime.c: Fix Debian bug 177940
93226         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93227         (localtime_offset): Now long int, not time_t, because we want it
93228         to be guaranteed to be signed.  All uses changed.
93229         (__mktime_internal): If overflow would occur when adding offset,
93230         don't add it.
93231
93232         Merge 'human' changes from coreutils.  Rewrite to support
93233         locale-specific notations like thousands separators.
93234         * lib/human.c: Simplify authorship notice.
93235         Include human.h immediately after config.h.
93236         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93237         <limits.h>: Do not include, since human.h does.
93238         (SIZE_MAX, UINTMAX_MAX): New macros.
93239         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93240         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93241         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93242         (power_letter): Renamed from suffixes.
93243         (generate_suffix_backwards): Remove.
93244         (adjust_value): Now takes int style (because of human.h changes)
93245         and long double value (for greater precision on some platforms).
93246         (group_number): New function.
93247         (human_readable): Use it.  Use integer options, not enum.
93248         Put the options before the sizes in the arg list.
93249         Support all the new options.
93250         The old human_readable function has been removed;
93251         use inttostr.h instead.
93252         (human_readable, default_block_size, humblock):
93253         Use uintmax_t, not int, for block sizes.
93254         (human_readable_inexact, block_size_types): Remove.
93255         (block_size_opts): New constant.
93256         (human_options): Renamed from human_block_size, with new signature
93257         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93258         * lib/human.h: Add copyright and authorship notice.
93259         Include <limits.h> and <stdbool.h> unconditionally.
93260         (PARAMS): Remove.  All uses removed.
93261         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93262         (enum human_inexact_style): Remove tag; now a nameless enum.
93263         (human_floor, human_ceiling, human_round_to_even): Now have
93264         values 2, 0, 1 rather than -1, 1, 0.
93265         (human_group_digits, human_suppress_point_zero, human_autoscale,
93266         human_base_1024, human_SI, human_B): New constants.
93267         (human_readable_inexact, human_block_size): Remove.
93268         (human_readable): Size args are now uintmax_t, not int.
93269         (human_options): New decl.
93270
93271         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93272         unnecessary now that we assume C89 or better.  This change
93273         imported from coreutils.
93274
93275         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93276         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93277         in the 2003-05-30 sync from glibc.
93278
93279         .h files should stand alone, but we shouldn't include <sys/types.h>
93280         if we can get away with just <stddef.h>.
93281
93282         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93283         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93284         rather than <sys/types.h>, as we merely need size_t.
93285         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93286         to get size_t.
93287         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93288         Include <stdio.h>, to get FILE.
93289         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93290         memcasecmp.h has included <stddef.h> and all we need is size_t.
93291         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93292         our interface, instead of including <sys/types.h>
93293
93294 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93295
93296         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93297         now, as glibc mktime is buggy on non-glibc systems.
93298
93299 2003-06-03  Karl Berry  <karl@gnu.org>
93300
93301         * config/config.sub: update from prep.
93302
93303 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93304
93305         [from coreutils]
93306         Fix some minor time-related bugs with POSIX time arguments.
93307         Some valid time stamps were being rejected (notably -1, and
93308         time stamps before 1900 on 64-bit hosts).  And some invalid
93309         time stamps were being accepted, e.g. September 31.
93310
93311         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93312         that we can return (time_t) -1 successfully.
93313         * lib/posixtm.c: Likewise.
93314         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93315         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93316         (t): Remove static var.
93317         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93318         of static var.  All uses changed.
93319         (year): Do not reject years before 1900; they can occur with
93320         64-bit time_t.
93321         (posix_time_parse): Do not check for out-of-range components;
93322         that is now the caller's responsibility, since our checks were
93323         only approximations.
93324         (posixtime): Use mktime to check for out-of-range components,
93325         since it knows them exactly.
93326         If mktime returns (time_t) -1, check whether an error actually occurred
93327         by invoking localtime on -1.
93328         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93329         posixtime failures better.
93330         Improve the test data (in comments only).
93331
93332 2003-06-02  Karl Berry  <karl@gnu.org>
93333
93334         * config/mkinstalldirs (version): new variable.
93335         (--version): new option.
93336         (usage): improve message.
93337
93338 2003-05-30  Karl Berry  <karl@gnu.org>
93339
93340         * lib/mktime.c: update from libc.
93341
93342 2003-05-30  Bruno Haible  <bruno@clisp.org>
93343
93344         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93345         * config/config.rpath: Upgrade to gettext-0.12.1.
93346
93347 2003-05-30  Bruno Haible  <bruno@clisp.org>
93348
93349         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93350         * m4/nls.m4: New file, from gettext-0.12.1.
93351         * m4/po.m4: New file, from gettext-0.12.1.
93352         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93353
93354 2003-05-30  Bruno Haible  <bruno@clisp.org>
93355
93356         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93357         * lib/localcharset.h: Likewise.
93358         * lib/localcharset.c: Likewise.
93359
93360 2003-05-29  Karl Berry  <karl@gnu.org>
93361
93362         * config/config.rpath: update from gettext.
93363
93364 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93365
93366         Assume the headers required for C89 freestanding compilers.
93367         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93368         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93369         * m4/human.m4 (gl_HUMAN): Likewise.
93370         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93371         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93372         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93373         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93374         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93375         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93376
93377 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93378
93379         Assume the headers required for C89 freestanding compilers.
93380         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93381         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93382         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93383         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93384         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93385         define, since <limits.h> is guaranteed to do that.
93386         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93387         * lib/exclude.c: Include <stdbool.h> unconditionally.
93388         * lib/tempname.c: Include <stddef.h> unconditionally.
93389         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93390         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93391         <stddef.h> does that.
93392         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93393         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93394         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93395         needed.
93396         * lib/xstrtol.c: Likewise.
93397         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93398         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93399
93400         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93401         warnings on some platforms.
93402
93403         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93404         arbitrarily.
93405
93406 2003-05-26  Jim Meyering  <jim@meyering.net>
93407
93408         Merge in a change from coreutils:
93409         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93410         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93411         that condition, rather than `-1' which is slightly misleading.
93412         Change the name of the cache variable to have the gl_ prefix.
93413         Prompted by a patch from Richard Dawe for DJGPP.
93414
93415 2003-05-24  Karl Berry  <karl@gnu.org>
93416
93417         * config/config.guess: update from prep.
93418
93419 2003-05-22  Karl Berry  <karl@gnu.org>
93420
93421         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93422
93423 2003-05-20  Karl Berry  <karl@gnu.org>
93424
93425         * config/config.guess: update from prep.
93426
93427 2003-05-18  Karl Berry  <karl@gnu.org>
93428
93429         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93430         might actually be set by the user.
93431
93432         * config/depcomp, install-sh, mdate-sh: update from automake.
93433
93434 2003-05-17  Bruno Haible  <bruno@clisp.org>
93435
93436         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93437         invalid expansion for AC_EGREP_CPP.
93438         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93439         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93440         Suggested by Akim Demaille <akim@epita.fr> in
93441         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93442
93443 2003-05-12  Jim Meyering  <jim@meyering.net>
93444
93445         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93446         the space-padded-by-default conversion specifiers, %e, %k, %l.
93447
93448 2003-05-12  Bruno Haible  <bruno@clisp.org>
93449
93450         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93451         the string is longer than 4 KB.
93452
93453 2003-05-11  Karl Berry  <karl@gnu.org>
93454
93455         * config/config.{guess,sub}: update from prep.
93456
93457 2003-05-09  Bruno Haible  <bruno@clisp.org>
93458
93459         * modules/error: Add m4/strerror_r.m4 to file list.
93460
93461 2003-05-03  Bruno Haible  <bruno@clisp.org>
93462
93463         Upgrade to Unicode-4.0.
93464         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93465         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93466         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93467         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93468         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93469         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93470         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93471         Change width of U+E0100..U+E01EF from 1 to 0.
93472
93473 2003-04-25  Jim Meyering  <jim@meyering.net>
93474
93475         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93476         of type size_t, not int.
93477
93478 2003-04-25  Bruno Haible  <bruno@clisp.org>
93479
93480         * lib/copy-file.c: Include <stddef.h>, for size_t.
93481
93482 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93483
93484         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93485         code which expansion is under static control.  Patch imported from
93486         Akim Demaille's patch to Bison; see
93487         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93488
93489 2003-04-14  Bruno Haible  <bruno@clisp.org>
93490
93491         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93492
93493 2003-04-11  Jim Meyering  <jim@meyering.net>
93494
93495         Merge changes from Coreutils.
93496
93497         2003-03-22  Jim Meyering  <jim@meyering.net>
93498
93499         * lib/strftime.c (widen): Cast alloca return value to proper type.
93500
93501         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93502
93503         From GNU libc.
93504         * lib/strftime.c (my_strftime): Handle very large width
93505         specifications for numeric values correctly.  Improve checks for
93506         overflow.
93507
93508         2003-01-19  Jim Meyering  <jim@meyering.net>
93509
93510         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93511         definitions.
93512         (nl_get_alt_digit) [! defined my_strftime]: Define.
93513         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93514         _nl_get_alt_digit and _nl_get_walt_digit.
93515
93516         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93517         libc. These changes have no effect outside of _LIBC.
93518
93519 2003-04-10  Bruno Haible  <bruno@clisp.org>
93520
93521         * modules/findprog: New file.
93522         * MODULES.html.sh (func_all_modules): Add it.
93523
93524 2003-04-10  Bruno Haible  <bruno@clisp.org>
93525
93526         * m4/findprog.m4: New file.
93527         * m4/eaccess.m4: New file.
93528
93529 2003-04-10  Bruno Haible  <bruno@clisp.org>
93530
93531         * lib/findprog.h: New file, from GNU gettext.
93532         * lib/findprog.c: New file, from GNU gettext.
93533
93534 2003-04-05  Jim Meyering  <jim@meyering.net>
93535
93536         Merge changes from Coreutils.
93537
93538         * lib/exclude.h (PARAMS): Remove definition and uses.
93539         * lib/exclude.c: Remove uses of `PARAMS'.
93540
93541         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93542         Add test-cases for DOS filenames. Declare program_name.
93543         (main): Set up program_name.  Patch by Rich Dawe.
93544
93545         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93546         error from mntctl.
93547         Use mntctl's return value to drive the entry-processing loop, since
93548         we can't rely on the value of the vmt_length member in the last
93549         entry.  On some systems doing so could result in exhausting
93550         virtual memory.  Based in part on a patch from Mike Jetzer.
93551
93552 2003-04-04  Bruno Haible  <bruno@clisp.org>
93553
93554         * modules/linebreak: New file.
93555         * MODULES.html.sh (func_all_modules): Add it.
93556
93557 2003-04-04  Bruno Haible  <bruno@clisp.org>
93558
93559         * m4/linebreak.m4: New file.
93560
93561 2003-04-04  Bruno Haible  <bruno@clisp.org>
93562
93563         * lib/linebreak.h: New file, from GNU gettext.
93564         * lib/linebreak.c: New file, from GNU gettext with slight
93565         modifications.
93566         * lib/lbrkprop.h: New file, from GNU gettext.
93567
93568 2003-04-03  Bruno Haible  <bruno@clisp.org>
93569
93570         * modules/utf8-ucs4: New file.
93571         * modules/utf16-ucs4: New file.
93572         * modules/ucs4-utf8: New file.
93573         * modules/ucs4-utf16: New file.
93574         * MODULES.html.sh (func_all_modules): Add them.
93575
93576 2003-04-03  Bruno Haible  <bruno@clisp.org>
93577
93578         * m4/utf-ucs4.m4: New file.
93579         * m4/ucs4-utf.m4: New file.
93580
93581 2003-04-03  Bruno Haible  <bruno@clisp.org>
93582
93583         * lib/utf8-ucs4.h: New file, from GNU gettext.
93584         * lib/utf16-ucs4.h: New file, from GNU gettext.
93585         * lib/ucs4-utf8.h: New file, from GNU gettext.
93586         * lib/ucs4-utf16.h: New file, from GNU gettext.
93587
93588 2003-04-02  Bruno Haible  <bruno@clisp.org>
93589
93590         * modules/binary-io: New file.
93591         * MODULES.html.sh (func_all_modules): Add it.
93592
93593 2003-04-02  Bruno Haible  <bruno@clisp.org>
93594
93595         * lib/binary-io.h: New file, from GNU gettext.
93596
93597 2003-04-01  Bruno Haible  <bruno@clisp.org>
93598
93599         * modules/pathname: New file.
93600         * MODULES.html.sh (func_all_modules): Add it.
93601
93602 2003-04-01  Bruno Haible  <bruno@clisp.org>
93603
93604         * lib/pathname.h: New file, from GNU gettext.
93605         * lib/concatpath.c: New file, from GNU gettext.
93606
93607 2003-03-30  Bruno Haible  <bruno@clisp.org>
93608
93609         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93610
93611 2003-03-30  Bruno Haible  <bruno@clisp.org>
93612
93613         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93614         function chown() doesn't exist.
93615
93616 2003-03-28  Bruno Haible  <bruno@clisp.org>
93617
93618         * modules/copy-file: New file.
93619         * MODULES.html.sh (func_all_modules): Add it.
93620
93621 2003-03-28  Bruno Haible  <bruno@clisp.org>
93622
93623         * m4/copy-file.m4: New file.
93624
93625 2003-03-28  Bruno Haible  <bruno@clisp.org>
93626
93627         * lib/copy-file.h: New file, from GNU gettext.
93628         * lib/copy-file.c: New file, from GNU gettext.
93629
93630 2003-03-18  Jim Meyering  <jim@meyering.net>
93631
93632         * lib/quote.c (quote_n): Fix typo in comment.
93633
93634 2003-03-18  Bruno Haible  <bruno@clisp.org>
93635
93636         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93637         checking.
93638         * m4/onceonly_2_57.m4: Likewise.
93639
93640 2003-03-17  Bruno Haible  <bruno@clisp.org>
93641
93642         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93643         (m4_quote): Remove macro.
93644         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93645
93646 2003-03-14  Jim Meyering  <jim@meyering.net>
93647
93648         Merge changes from Coreutils.
93649         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93650         to be const, in order to avoid warnings.
93651         (obstack_room): Likewise.
93652         (obstack_empty_p): Likewise.
93653
93654 2003-03-14  Bruno Haible  <bruno@clisp.org>
93655
93656         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93657         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93658
93659 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93660
93661         Merge changes from Bison.
93662         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93663         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93664         when compiling Bison 1.875's `bitset bset = obstack_alloc
93665         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93666         * lib/hash.c: Include <stdbool.h> unconditionally.
93667
93668 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93669
93670         * m4/onceonly.m4 (m4_quote): New macro.
93671         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93672         Quote AC_FOREACH variable-expansions properly.
93673
93674 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93675
93676         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93677
93678 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93679
93680         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93681         Reported by Bruce Becker; see:
93682         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93683
93684 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93685             Bruno Haible  <bruno@clisp.org>
93686
93687         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93688         Reported by John Hughes, see
93689         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93690
93691 2003-02-20  Bruno Haible  <bruno@clisp.org>
93692
93693         * MODULES.html.sh (func_all_modules): Add poll.
93694
93695 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93696
93697         * modules/poll: New file.
93698
93699 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93700
93701         * lib/poll_.h: New file.
93702         * lib/poll.c: New file.
93703
93704 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93705
93706         * m4/poll.m4: New file.
93707
93708 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93709
93710         * modules/mathl: New file.
93711
93712 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93713
93714         * lib/mathl.h: New file.
93715         * lib/acosl.c: New file.
93716         * lib/asinl.c: New file.
93717         * lib/atanl.c: New file.
93718         * lib/ceill.c: New file.
93719         * lib/cosl.c: New file.
93720         * lib/expl.c: New file.
93721         * lib/floorl.c: New file.
93722         * lib/frexpl.c: New file.
93723         * lib/ldexpl.c: New file.
93724         * lib/logl.c: New file.
93725         * lib/sincosl.c: New file.
93726         * lib/sinl.c: New file.
93727         * lib/sqrtl.c: New file.
93728         * lib/tanl.c: New file.
93729         * lib/trigl.c: New file.
93730         * lib/trigl.h: New file.
93731
93732 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93733
93734         * m4/mathl.m4: New file.
93735
93736 2003-02-18  Bruno Haible  <bruno@clisp.org>
93737
93738         * MODULES.html.sh (func_all_modules): Add mathl.
93739
93740 2003-02-17  Bruno Haible  <bruno@clisp.org>
93741
93742         * modules/mkdtemp: New module.
93743         * MODULES.html.sh (func_all_modules): Add it.
93744
93745 2003-02-17  Bruno Haible  <bruno@clisp.org>
93746
93747         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93748
93749 2003-02-17  Bruno Haible  <bruno@clisp.org>
93750
93751         * lib/mkdtemp.h: New file, from GNU gettext.
93752         * lib/mkdtemp.c: New file, from GNU gettext.
93753
93754 2003-02-02  Jim Meyering  <jim@meyering.net>
93755
93756         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93757         e.g. glibc-2.2.93.
93758
93759 2003-01-31  Bruno Haible  <bruno@clisp.org>
93760
93761         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93762         'rpl_rename'.
93763         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93764         'rpl_strnlen'.
93765         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93766         'rpl_strtod'.
93767         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93768         'rpl_utime'.
93769
93770 2003-01-31  Bruno Haible  <bruno@clisp.org>
93771
93772         * lib/rename.c: #undef rename before defining rpl_rename.
93773         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93774
93775 2003-01-30  Bruno Haible  <bruno@clisp.org>
93776
93777         * modules/vasnprintf, modules/vasprintf: New modules.
93778         * MODULES.html.sh (func_all_modules): Add them.
93779
93780 2003-01-30  Bruno Haible  <bruno@clisp.org>
93781
93782         * m4/signed.m4: New file, from GNU gettext.
93783         * m4/longdouble.m4: New file, from GNU gettext.
93784         * m4/wchar_t.m4: New file, from GNU gettext.
93785         * m4/wint_t.m4: New file, from GNU gettext.
93786         * m4/vasnprintf.m4: New file.
93787         * m4/vasprintf.m4: New file.
93788
93789 2003-01-30  Bruno Haible  <bruno@clisp.org>
93790
93791         * lib/printf-args.h: New file, from GNU gettext.
93792         * lib/printf-args.c: New file, from GNU gettext.
93793         * lib/printf-parse.h: New file, from GNU gettext.
93794         * lib/printf-parse.c: New file, from GNU gettext.
93795         * lib/vasnprintf.h: New file, from GNU gettext.
93796         * lib/vasnprintf.c: New file, from GNU gettext.
93797         * lib/asnprintf.c: New file, from GNU gettext.
93798         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93799         * lib/vasprintf.c: New file, from GNU gettext.
93800         * lib/asprintf.c: New file, from GNU gettext.
93801
93802 2003-01-29  Bruno Haible  <bruno@clisp.org>
93803
93804         * modules/stpncpy: New module.
93805         * MODULES.html.sh (func_all_modules): Add it.
93806
93807 2003-01-29  Bruno Haible  <bruno@clisp.org>
93808
93809         * m4/stpncpy.m4: New file.
93810
93811 2003-01-29  Bruno Haible  <bruno@clisp.org>
93812
93813         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93814         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93815
93816 2003-01-28  Bruno Haible  <bruno@clisp.org>
93817
93818         * modules/c-ctype: New module.
93819         * MODULES.html.sh (func_all_modules): Add it.
93820
93821 2003-01-28  Bruno Haible  <bruno@clisp.org>
93822
93823         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93824         Paul Eggert.
93825         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93826         Paul Eggert.
93827
93828 2003-01-27  Bruno Haible  <bruno@clisp.org>
93829
93830         * modules/xsetenv: New module.
93831         * MODULES.html.sh (func_all_modules): Add it.
93832
93833 2003-01-27  Bruno Haible  <bruno@clisp.org>
93834
93835         * lib/xsetenv.h: New file, from GNU gettext.
93836         * lib/xsetenv.c: New file, from GNU gettext.
93837
93838 2003-01-23  Jim Meyering  <jim@meyering.net>
93839
93840         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93841         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93842
93843 2003-01-23  Bruno Haible  <bruno@clisp.org>
93844
93845         * modules/minmax: New module.
93846         * MODULES.html.sh (func_all_modules): Add it.
93847
93848 2003-01-23  Bruno Haible  <bruno@clisp.org>
93849
93850         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93851         Eggert.
93852
93853 2003-01-22  Bruno Haible  <bruno@clisp.org>
93854
93855         * modules/exit: New module.
93856         * MODULES.html.sh (func_all_modules): Add it.
93857
93858 2003-01-22  Bruno Haible  <bruno@clisp.org>
93859
93860         * lib/exit.h: New file, from GNU gettext.
93861
93862 2003-01-19  Bruno Haible  <bruno@clisp.org>
93863
93864         * gnulib-tool: Recognize option --extract-maintainer.
93865         (func_get_maintainer): New function.
93866         * modules/*: Add Maintainer entry.
93867
93868 2003-01-16  Jim Meyering  <jim@meyering.net>
93869
93870         * m4/regex.m4: The `regex' struct is both input and output.
93871         Initialize it before each use.  Patch by Tim Waugh.
93872
93873 2003-01-16  Bruno Haible  <bruno@clisp.org>
93874
93875         * MODULES.html.sh: Add a table of contents. Add the module name as
93876         leftmost column. Add hyperlinks.
93877
93878 2003-01-15  Bruno Haible  <bruno@clisp.org>
93879
93880         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93881
93882 2003-01-15  Bruno Haible  <bruno@clisp.org>
93883
93884         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93885         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93886         suffix.
93887
93888 2003-01-15  Bruno Haible  <bruno@clisp.org>
93889
93890         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93891
93892 2003-01-15  Bruno Haible  <bruno@clisp.org>
93893
93894         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93895         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93896
93897 2003-01-14  Jim Meyering  <jim@meyering.net>
93898
93899         * lib/same.c (same_name): Tweak a comment.
93900
93901 2003-01-14  Bruno Haible  <bruno@clisp.org>
93902
93903         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93904         when a string comparison is sufficient.
93905
93906 2003-01-14  Bruno Haible  <bruno@clisp.org>
93907
93908         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93909         'unsigned int'.
93910
93911 2003-01-14  Bruno Haible  <bruno@clisp.org>
93912
93913         * lib/hash-pjw.c: Add comment about low quality of this function.
93914
93915 2003-01-13  Bruno Haible  <bruno@clisp.org>
93916
93917         * modules/stpcpy: Distribute lib/stpcpy.h.
93918         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93919
93920 2003-01-13  Bruno Haible  <bruno@clisp.org>
93921
93922         * modules/*: Add a description.
93923         * modules/strpbrk: Fix Makefile.am snippet.
93924         * modules/strtoimax: Fix dependencies.
93925         * modules/strtoumax: Likewise.
93926
93927 2003-01-13  Bruno Haible  <bruno@clisp.org>
93928
93929         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93930         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93931         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93932
93933 2003-01-13  Bruno Haible  <bruno@clisp.org>
93934
93935         * gnulib-tool (func_create_testdir): Store config/* files in the main
93936         directory.
93937         * config.rpath: Move to ...
93938         * config/config.rpath: ... here.
93939         * modules/gettext: Contains config/config.rpath, not config.rpath.
93940         * modules/iconv: Likewise.
93941
93942 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93943
93944         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93945         to avoid collisions with libcurses and libreadline.
93946
93947         * m4/getstr.m4: Remove.
93948         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93949
93950 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93951
93952         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93953         to avoid collisions with libcurses and libreadline.
93954
93955         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93956         * lib/getstr.h, getstr.c: Remove.
93957         * lib/getline.c: Include "getline.h", to check interface.
93958         Move body of old getstr.c here: this defines MIN_CHUNK and
93959         declares getdelim2, which is renamed from getstr.
93960         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93961
93962         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93963         All uses changed.
93964         * lib/linebuffer.h: Likewise.
93965         (readline): Remove backward-compatibility macro.
93966
93967 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93968
93969         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93970         to avoid collisions with libcurses and libreadline.
93971         * getstr: Remove.
93972         * MODULES.html.sh: Remove getstr.
93973         * modules/getline: Depend on unlocked-io, not getstr.
93974
93975 2003-01-12  Jim Meyering  <jim@meyering.net>
93976
93977         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93978
93979 2003-01-10  Bruno Haible  <bruno@clisp.org>
93980
93981         * modules/alloca: Change Makefile.am requirements. Simplify Include
93982         requirements. Add lib/alloca_.h to file list.
93983
93984 2003-01-10  Bruno Haible  <bruno@clisp.org>
93985
93986         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93987
93988 2003-01-10  Bruno Haible  <bruno@clisp.org>
93989
93990         * lib/alloca_.h: New file.
93991         * lib/getdate.y: Unconditionally include alloca.h.
93992         * lib/makepath.c: Likewise.
93993         * lib/setenv.c: Likewise.
93994         * lib/userspec.c: Likewise.
93995
93996 2003-01-09  Karl Berry  <karl@gnu.org>
93997
93998         * MODULES.html.sh: include `dirname $0` in PATH, to find
93999         gnulib-tool.
94000
94001 2003-01-09  Bruno Haible  <bruno@clisp.org>
94002
94003         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94004         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94005
94006 2003-01-09  Bruno Haible  <bruno@clisp.org>
94007
94008         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94009
94010 2003-01-09  Bruno Haible  <bruno@clisp.org>
94011
94012         * lib/stdbool.h.in: New file.
94013
94014 2003-01-09  Bruno Haible  <bruno@clisp.org>
94015
94016         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94017         * MODULES.html.sh: Likewise.
94018
94019 2003-01-08  Jim Meyering  <jim@meyering.net>
94020
94021         * lib/full-write.c: Undefine and define-away `const' after inclusion
94022         of errno.h, not before.  Suggestion from Bruno Haible.
94023
94024 2003-01-08  Bruno Haible  <bruno@clisp.org>
94025
94026         * modules/full-read: Depend on full-write.
94027
94028 2003-01-08  Bruno Haible  <bruno@clisp.org>
94029
94030         * lib/safe-read.c: Include specification header first, to ensure its
94031         selfcontainedness.
94032         * lib/full-write.c: Likewise.
94033
94034 2003-01-07  Jim Meyering  <jim@meyering.net>
94035
94036         * lib/full-write.c: Rework so that it may serve to define full_read,
94037         too.
94038         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94039
94040 2003-01-07  Bruno Haible  <bruno@clisp.org>
94041
94042         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94043         <inttypes.h>.
94044         * lib/xstrtol.h: Likewise.
94045         * lib/xstrtoimax.c: Likewise.
94046         * lib/xstrtoumax.c: Likewise.
94047         * lib/human.h: Likewise.
94048
94049         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94050         on systems that have <inttypes.h> but not <stdint.h>.
94051
94052 2003-01-07  Bruno Haible  <bruno@clisp.org>
94053
94054         * MODULES.html.sh: Add copyright notice.
94055         (missed_files): Omit CVS directory entries.
94056         (func_module): Make it work with sed-3.02.
94057         * MODULES.txt: Remove file.
94058
94059 2003-01-06  Jim Meyering  <jim@meyering.net>
94060
94061         * lib/version-etc.c: Update year in translatable copyright string.
94062
94063 2003-01-03  Karl Berry  <karl@gnu.org>
94064
94065         * config/config.{guess,sub}: update from prep.
94066
94067 2003-01-02  Karl Berry  <karl@gnu.org>
94068
94069         * doc/COPYING.DOC: belatedly updated to 1.2.
94070
94071 2003-01-01  Karl Berry  <karl@gnu.org>
94072
94073         * gnulib-tool (func_verify_module): report module name $module in
94074         error message, not $1.
94075         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94076         be created, only if it doesn't exist.
94077         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94078
94079 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94080
94081         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94082
94083 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94084
94085         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94086         memcmp if strcoll doesn't work.
94087
94088 2002-12-31  Bruno Haible  <bruno@clisp.org>
94089
94090         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94091         nonempty.
94092
94093 2002-12-31  Bruno Haible  <bruno@clisp.org>
94094
94095         * lib/memcoll.c (STRCOLL): New macro.
94096         (memcoll): Use it.
94097
94098 2002-12-31  Bruno Haible  <bruno@clisp.org>
94099
94100         * lib/localcharset.h: New file.
94101         * lib/localcharset.c: Include it.
94102         * lib/unicodeio.c: Likewise.
94103
94104 2002-12-31  Bruno Haible  <bruno@clisp.org>
94105
94106         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94107         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94108
94109 2002-12-31  Bruno Haible  <bruno@clisp.org>
94110
94111         * lib/getline.h: Include <stddef.h>, for size_t.
94112
94113         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94114         * lib/unicodeio.c: Don't include <stddef.h>.
94115
94116 2002-12-31  Bruno Haible  <bruno@clisp.org>
94117
94118         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94119         HAVE_TM_ZONE.
94120
94121 2002-12-24  Karl Berry  <karl@gnu.org>
94122
94123         * config/config.guess: update from prep.
94124
94125 2002-12-24  Bruno Haible  <bruno@clisp.org>
94126
94127         General infrasructure.
94128         * m4/README: Rewritten.
94129         * m4/onceonly.m4: New file.
94130         * m4/onceonly_2_57.m4: New file.
94131
94132         Module atexit.
94133         * m4/atexit.m4: New file.
94134
94135         Module strtod.
94136         * m4/strtod.m4: New file.
94137
94138         Module strtol.
94139         * m4/strtol.m4: New file.
94140
94141         Module strtoul.
94142         * m4/strtoul.m4: New file.
94143
94144         Module memchr.
94145         * m4/memchr.m4: New file.
94146
94147         Module memcmp.
94148         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94149         (jm_FUNC_MEMCMP): Invoke it.
94150
94151         Module memcpy.
94152         * m4/memcpy.m4: New file.
94153
94154         Module memmove.
94155         * m4/memmove.m4: New file.
94156
94157         Module memset.
94158         * m4/memset.m4: New file.
94159
94160         Module strcspn.
94161         * m4/strcspn.m4: New file.
94162
94163         Module strpbrk.
94164         * m4/strpbrk.m4: New file.
94165
94166         Module strstr.
94167         * m4/strstr.m4: New file.
94168
94169         Module strerror.
94170         * m4/strerror.m4: New file.
94171
94172         Module mktime.
94173         * m4/mktime.m4: Renamed from jm-mktime.m4.
94174         (gl_PREREQ_MKTIME): New macro.
94175         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94176
94177         Module malloc.
94178         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94179         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94180         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94181
94182         Module realloc.
94183         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94184         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94185         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94186
94187         Module strftime.
94188         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94189         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94190         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94191         gl_TM_GMTOFF.
94192         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94193
94194         Module xalloc.
94195         * m4/xalloc.m4: New file.
94196
94197         Module alloca.
94198         * m4/alloca.m4: New file.
94199
94200         Module putenv.
94201         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94202         (jm_FUNC_PUTENV): Invoke it.
94203
94204         Module setenv.
94205         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94206         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94207         when invoked twice.
94208         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94209         gt_FUNC_SETENV.
94210
94211         Module memrchr.
94212         * m4/memrchr.m4: New file.
94213
94214         Module stpcpy.
94215         * m4/stpcpy.m4: New file.
94216
94217         Module strcase.
94218         * m4/strcase.m4: New file.
94219
94220         Module strdup.
94221         * m4/strdup.m4: New file.
94222
94223         Module strnlen.
94224         * m4/strnlen.m4: New file.
94225
94226         Module strndup.
94227         * m4/strndup.m4: New file.
94228
94229         Module xstrtod.
94230         * m4/xstrtod.m4: New file.
94231
94232         Module xstrtol.
94233         * m4/xstrtol.m4: New file.
94234
94235         Module getdate.
94236         * m4/getdate.m4: New file.
94237
94238         Module unlocked-io.
94239         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94240         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94241         * m4/jm-glibc-io.m4n: Remove file.
94242
94243         Module long-options.
94244         * m4/long-options.m4: New file.
94245
94246         Module md5.
94247         * m4/md5.m4: New file.
94248
94249         Module sha.
94250         * m4/sha.m4: New file.
94251
94252         Module getstr.
94253         * m4/getstr.m4: New file.
94254
94255         Module getline.
94256         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94257         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94258         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94259         simply getline. Infoke gl_PREREQ_GETLINE.
94260
94261         Module obstack.
94262         * m4/obstack.m4: New file.
94263
94264         Module hash.
94265         * m4/hash.m4: New file.
94266
94267         Module readtokens.
94268         * m4/readtokens.m4: New file.
94269
94270         Module strverscmp.
94271         * m4/strverscmp.m4: New file.
94272
94273         Module stdbool.
94274         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94275         OSF/1.
94276
94277         Module strtoll.
94278         * m4/strtoll.m4: New file.
94279
94280         Module strtoull.
94281         * m4/strtoull.m4: New file.
94282
94283         Module strtoimax.
94284         * m4/strtoimax.m4: New file.
94285
94286         Module strtoumax.
94287         * m4/strtoumax.m4: New file.
94288
94289         Module xstrtoimax.
94290         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94291         jm_AC_PREREQ_XSTRTOIMAX.
94292         Moved the strtol prerequisites to strtol.m4.
94293         Moved the strtoll prerequisites to strtoll.m4.
94294         Moved the strtoimax prerequisites to strtoimax.m4.
94295
94296         Module xstrtoumax.
94297         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94298         jm_AC_PREREQ_XSTRTOUMAX.
94299         Moved the strtoul prerequisites to strtoul.m4.
94300         Moved the strtoull prerequisites to strtoull.m4.
94301         Moved the strtoumax prerequisites to strtoumax.m4.
94302
94303         Module chown.
94304         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94305         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94306
94307         Module dup2.
94308         * m4/dup2.m4: New file.
94309
94310         Module ftruncate.
94311         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94312         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94313
94314         Module getgroups.
94315         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94316         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94317
94318         Module gettimeofday.
94319         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94320         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94321         gl_PREREQ_GETTIMEOFDAY.
94322
94323         Module mkdir.
94324         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94325         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94326
94327         Module mkstemp.
94328         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94329         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94330         jm_AC_TYPE_UINTMAX_T.
94331         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94332
94333         Module stat.
94334         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94335         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94336
94337         Module lstat.
94338         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94339         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94340
94341         Module timespec.
94342         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94343         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94344         * m4/st_mtim.m4: Indentation.
94345
94346         Module nanosleep.
94347         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94348         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94349         gl_PREREQ_NANOSLEEP.
94350
94351         Module regex.
94352         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94353         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94354         (gl_REGEX): New macro.
94355
94356         Module rename.
94357         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94358         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94359
94360         Module rmdir.
94361         * m4/rmdir.m4: New file.
94362
94363         Module utime.
94364         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94365         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94366         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94367
94368         Module dirname.
94369         * m4/dirname.m4: New file.
94370
94371         Module getopt.
94372         * m4/getopt.m4: New file.
94373
94374         Module unistd-safer.
94375         * m4/unistd-safer.m4: New file.
94376
94377         Module fnmatch.
94378         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94379         declaration.
94380         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94381         (gl_FUNC_FNMATCH_POSIX): New macro.
94382         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94383         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94384         simply fnmatch.
94385
94386         Module exclude.
94387         * m4/exclude.m4: New file.
94388
94389         Module human.
94390         * m4/human.m4: New file.
94391
94392         Module acl.
94393         * m4/acl.m4: Nop.
94394
94395         Module backupfile.
94396         * m4/backupfile.m4: New file.
94397         * m4/d-ino.m4: Indentation.
94398
94399         Module fsusage.
94400         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94401         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94402         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94403
94404         Module dirfd.
94405         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94406         requirements.
94407
94408         Module euidaccess.
94409         * m4/euidaccess.m4: New file.
94410
94411         Module file-type.
94412         * m4/file-type.m4: New file.
94413
94414         Module fileblocks.
94415         * m4/fileblocks.m4: New file.
94416
94417         Module filemode.
94418         * m4/filemode.m4: New file.
94419
94420         Module isdir.
94421         * m4/isdir.m4: New file.
94422
94423         Module lchown.
94424         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94425         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94426
94427         Module makepath.
94428         * m4/makepath.m4: New file.
94429
94430         Module modechange.
94431         * m4/modechange.m4: New file.
94432
94433         Module mountlist.
94434         * m4/mountlist.m4: New file.
94435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94436         Indentation.
94437
94438         Module path-concat.
94439         * m4/path-concat.m4: New file.
94440
94441         Module pathmax.
94442         * m4/pathmax.m4: New file.
94443
94444         Module same.
94445         * m4/same.m4: New file.
94446
94447         Module save-cwd.
94448         * m4/save-cwd.m4: New file.
94449
94450         Module savedir.
94451         * m4/savedir.m4: New file.
94452
94453         Module xgetcwd.
94454         * m4/xgetcwd.m4: New file.
94455         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94456
94457         Module xreadlink.
94458         * m4/xreadlink.m4: New file.
94459
94460         Module safe-read.
94461         * m4/safe-read.m4: New file.
94462
94463         Module safe-write.
94464         * m4/safe-write.m4: New file.
94465
94466         Module closeout.
94467         * m4/closeout.m4: New file.
94468
94469         Module stdio-safer.
94470         * m4/stdio-safer.m4: New file.
94471
94472         Module getpass.
94473         * m4/getpass.m4: New file.
94474
94475         Module getugroups.
94476         * m4/getugroups.m4: New file.
94477
94478         Module group-member.
94479         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94480         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94481
94482         Module idcache.
94483         * m4/idcache.m4: New file.
94484
94485         Module userspec.
94486         * m4/userspec.m4: New file.
94487
94488         Module gettime.
94489         * m4/clock_time.m4: New file.
94490         * m4/gettime.m4: New file.
94491
94492         Module settime.
94493         * m4/settime.m4: New file.
94494
94495         Module posixtm.
94496         * m4/posixtm.m4: New file.
94497
94498         Module gethostname.
94499         * m4/gethostname.m4: New file.
94500
94501         Module canon-host.
94502         * m4/canon-host.m4: New file.
94503
94504         Module gettext.
94505         * m4/codeset.m4: New file, from gettext-0.11.5.
94506         * m4/gettext.m4: New file, from gettext-0.11.5.
94507         * m4/glibc21.m4: New file, from gettext-0.11.5.
94508         * m4/iconv.m4: New file, from gettext-0.11.5.
94509         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94510         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94511         * m4/inttypes.m4: New file, from gettext-0.11.5.
94512         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94513         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94514         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94515         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94516         * m4/lib-link.m4: New file, from gettext-0.11.5.
94517         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94518         * m4/progtest.m4: New file, from gettext-0.11.5.
94519         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94520         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94521         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94522
94523         Module localcharset.
94524         * m4/localcharset.m4: New file.
94525
94526         Module hard-locale.
94527         * m4/hard-locale.m4: New file.
94528
94529         Module mbswidth.
94530         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94531         onceonly macros.
94532         * m4/mbrtowc.m4: Add comment.
94533
94534         Module memcasecmp.
94535         * m4/memcasecmp.m4: New file.
94536
94537         Module memcoll.
94538         * m4/memcoll.m4: New file.
94539
94540         Module unicodeio.
94541         * m4/unicodeio.m4: New file.
94542
94543         Module rpmatch.
94544         * m4/rpmatch.m4: New file.
94545
94546         Module yesno.
94547         * m4/yesno.m4: New file.
94548
94549         Module exitfail.
94550         * m4/exitfail.m4: New file.
94551
94552         Module c-stack.
94553         * m4/c-stack.m4 (gl_C_STACK): New macro.
94554         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94555
94556         Module error.
94557         * m4/error.m4 (gl_ERROR): New macro.
94558         (jm_PREREQ_ERROR): Use onceonly macros.
94559
94560         Module fatal.
94561         * m4/fatal.m4: New file.
94562
94563         Module getloadavg.
94564         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94565         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94566
94567         Module getpagesize.
94568         * m4/getpagesize.m4: New file.
94569
94570         Module getusershell.
94571         * m4/getusershell.m4: New file.
94572
94573         Module physmem.
94574         * m4/physmem.m4: New file.
94575
94576         Module posixver.
94577         * m4/posixver.m4: New file.
94578
94579         Module quotearg.
94580         * m4/quotearg.m4: New file.
94581
94582         Module quote.
94583         * m4/quote.m4: New file.
94584
94585         Module readutmp.
94586         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94587
94588         Module sig2str.
94589         * m4/sig2str.m4: New file.
94590
94591         Other.
94592         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94593         ulonglong.m4.
94594         * m4/intmax_t.m4: New file.
94595         * m4/d-type.m4: Indentation.
94596         * m4/jm-macros.m4: Update.
94597         * m4/prereq.m4 (jm_PREREQ): Update.
94598         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94599         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94600         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94601         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94602         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94603         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94604         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94605         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94606         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94607         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94608         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94609         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94610         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94611         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94612         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94613         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94614         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94615         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94616         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94617
94618 2002-12-24  Bruno Haible  <bruno@clisp.org>
94619
94620         * MODULES.txt: Update according to m4/ changes.
94621
94622         Module gettext.
94623         * config.rpath: New file, from gettext-0.11.5.
94624
94625         * modules/*: New module descriptions.
94626         * gnulib-tool: New file.
94627         * MODULES.html.sh: New file.
94628
94629 2002-12-21  Karl Berry  <karl@gnu.org>
94630
94631         * doc/fdl.texi: update to version 1.2.
94632
94633 2002-12-19  Karl Berry  <karl@gnu.org>
94634
94635         * config/config.guess: update from prep.
94636
94637 2002-12-18  Bruno Haible  <bruno@clisp.org>
94638
94639         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94640         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94641
94642 2002-12-17  Bruno Haible  <bruno@clisp.org>
94643
94644         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94645         stdlib.h, string.h.
94646
94647 2002-12-17  Bruno Haible  <bruno@clisp.org>
94648
94649         * lib/canon-host.c (strdup): Remove unused declaration.
94650
94651         * lib/fsusage.c: Include full_read.h.
94652         (get_fs_usage): Use full_read instead of safe_read.
94653
94654         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94655
94656 2002-12-12  Karl Berry  <karl@gnu.org>
94657
94658         * config/config.guess: update from prep.
94659
94660 2002-12-11  Bruno Haible  <bruno@clisp.org>
94661
94662         * m4/setenv.m4: New file, from gettext-0.11.5.
94663
94664 2002-12-11  Bruno Haible  <bruno@clisp.org>
94665
94666         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94667         not unsetenv().
94668         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94669         modifications:
94670
94671         2002-12-11  Bruno Haible  <bruno@clisp.org>
94672
94673                 * setenv.c (alloca): Fall back to malloc.
94674                 (freea): New macro.
94675                 (setenv): Use freea() to free memory allocated with alloca().
94676
94677         2002-11-13  Bruno Haible  <bruno@clisp.org>
94678
94679                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94680                 function declarations.
94681                 * unsetenv.c (unsetenv): Likewise.
94682
94683         2002-03-04  Bruno Haible  <bruno@clisp.org>
94684
94685                 Portability to AIX 4.3.3.
94686                 * unsetenv.c: New file, extracted from setenv.c.
94687                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94688
94689         2001-12-20  Bruno Haible  <bruno@clisp.org>
94690
94691                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94692                 use malloc instead. For SunOS 4.
94693
94694         2001-12-11  Bruno Haible  <bruno@clisp.org>
94695
94696                 * setenv.c: Declare alloca.
94697                 (compar_fn_t): New typedef.
94698                 (KNOWN_VALUE, STORE_VALUE): Use it.
94699
94700         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94701         setenv.h.
94702
94703 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94704
94705         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94706         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94707         Choose values that are less likely to collide with system fnmatch
94708         options.
94709         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94710         defined (e.g., a pure POSIX system).
94711         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94712         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94713
94714 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94715
94716         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94717         a pain in practice to deal with generated m4 files.  This change
94718         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94719
94720         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94721         and jm-glibc-io.m4, as they are no longer a special case.
94722         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94723         kludge and the auto-generation stuff.  Check only whether the
94724         functions are declared, not whether they exist, since older hosts
94725         that don't declare the functions can't use the optimization anyway.
94726
94727 2002-12-06  Jim Meyering  <jim@meyering.net>
94728
94729         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94730
94731         Merge in changes from libc's misc/error.c, in preparation
94732         for the merge of gnulib's changes back into libc.
94733
94734         * lib/error.c (_): Define only if not already defined.
94735         Move definition to follow all #include directives.
94736         Include unlocked-io.h only if !_LIBC.
94737         [_LIBC]: Include <libio/libioP.h>.
94738         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94739         (fflush): Tweak definition to use INTUSE.
94740         (putc): Define.
94741
94742 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94743
94744         * lib/alloca.c [defined emacs]: Include "lisp.h".
94745         (xalloc_die) [defined emacs]: New macro.
94746         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94747         [! defined emacs]: Include <xalloc.h>.
94748         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94749         (pointer): Typedef to POINTER_TYPE *.
94750         (malloc): Remove decl; we now always use xmalloc.
94751         (alloca): Use old-style definition, since Emacs needs this.
94752         Check for arithmetic overflow when computing combined size.
94753
94754 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94755
94756         Do not generate unlocked-io.h automatically, since it's easier to
94757         maintain it by hand.
94758
94759         * lib/unlocked-io.h: New file, from GNU diffutils,
94760         but with proper copyright notice and attribution.
94761         * lib/gen-uio: Remove.
94762         * lib/Makefile.am: Add copyright notice.
94763         (libfetish_a_SOURCES): Add unlocked-io.h.
94764         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94765         (DISTCLEANFILES, io_functions): Remove macros.
94766         (EXTRA_DIST): Remove gen_uio.
94767         (unlocked-io.h): Remove rule.
94768
94769 2002-12-04  Jim Meyering  <jim@meyering.net>
94770
94771         Reflect the fact that stat.c and lstat.c are no longer generated.
94772         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94773         (DISTCLEANFILES): Likewise.
94774         (EXTRA_DIST): Likewise.
94775         (all_local): Don't depend on stat.c or lstat.c.
94776         (stat.c, lstat.c): Remove rules.
94777         (EXTRA_DIST): Remove xstat.in.
94778
94779         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94780         * lib/stat.c: New file.  Contents mostly from xstat.in.
94781         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94782         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94783
94784         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94785         too.
94786         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94787
94788 2002-12-03  Jim Meyering  <jim@meyering.net>
94789
94790         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94791         but not semantics, to minimize the differences between these two files.
94792         (safe_read): Change comment to mention SAFE_READ_ERROR.
94793
94794         * lib/safe-read.c (IS_EINTR): Define.
94795         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94796
94797 2002-12-02  Jim Meyering  <jim@meyering.net>
94798
94799         * lib/safe-read.c (EINTR): Define.
94800         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94801         (INT_MAX): Provide fallback.
94802         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94803
94804         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94805
94806 2002-12-02  Bruno Haible  <bruno@clisp.org>
94807
94808         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94809         Define, taken from safe-read.c.
94810         (INT_MAX): Provide fallback.
94811         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94812         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94813
94814         * lib/safe-read.c (EINTR): Remove definition.
94815         (safe_read): Don't use EINTR if it is absent.
94816
94817 2002-12-01  Jim Meyering  <jim@meyering.net>
94818
94819         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94820         zero.
94821         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94822
94823 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94824
94825         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94826         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94827         with `if (! (value < limit)) abort ();', for readability.
94828
94829 2002-11-26  Karl Berry  <karl@gnu.org>
94830
94831         * lib/strdup.c: copy from libc again, with jim's ok.
94832         * lib/.cppi-disable: re-add strdup.c
94833
94834 2002-11-25  Karl Berry  <karl@gnu.org>
94835
94836         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94837         instead of "strtol.c".
94838
94839 2002-11-25  Karl Berry  <karl@gnu.org>
94840
94841         * config/install-sh: update from automake for variable quoting, $0 in
94842         error msgs, etc.
94843
94844         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94845         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94846         entry.
94847
94848 2002-11-25  Jim Meyering  <jim@meyering.net>
94849
94850         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94851
94852 2002-11-24  Karl Berry  <karl@gnu.org>
94853
94854         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94855         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94856
94857 2002-11-24  Jim Meyering  <jim@meyering.net>
94858
94859         Update from coreutils:
94860
94861         * lib/mktime.c: Merge in changes from libc.
94862
94863         Avoid a link-time failure on some Linux systems.
94864         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94865         (otherwise).
94866         (__mon_yday): Declare with the STATIC attribute.
94867         (__mktime_internal): Likewise.
94868         Based on a report from Greg Schafer.
94869
94870 2002-11-23  Jim Meyering  <jim@meyering.net>
94871
94872         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94873         Use `unsigned', not `int', as type of index.
94874
94875         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94876
94877         * lib/fsusage.c: Remove unneeded parentheses around operands of
94878         `defined'.
94879
94880 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94881
94882         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94883         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94884         so that we can be included first.
94885         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94886         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94887         No need to include stddef.h or sys/types.h any more.
94888         Surround local include files with "", not "<>".
94889         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94890         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94891         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94892         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94893         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94894         (ISPRINT): Remove; no longer needed now that we assume C89.
94895
94896         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94897         Preserve errno.
94898
94899         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94900         quotearg_char): Use SIZE_MAX rather than
94901         (size_t) -1 when we are talking about "infinity".
94902
94903         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94904
94905 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94906
94907         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94908         hint that one should use `if (! x) abort ();' rather than `assert
94909         (x);', and anyway it's one less thing to worry about configuring.
94910         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94911         hash_rehash, hash_insert): Use abort rather than assert.
94912
94913 2002-11-22  Bruno Haible  <bruno@clisp.org>
94914
94915         * lib/safe-read.h: Assume C89. Add comments.
94916         (safe_read): Change return type to size_t.
94917         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94918         byte counts > SSIZE_MAX correctly.
94919         * lib/safe-write.h: New file.
94920         * lib/safe-write.c: New file.
94921         * lib/full-read.h: New file.
94922         * lib/full-read.c: New file.
94923         * lib/full-write.h: Assume C89. Add comments.
94924         * lib/full-write.c: Include safe-write.h.
94925         (full_write): Rewritten to use safe_write.
94926         Suggested by Jim Meyering and Paul Eggert.
94927
94928 2002-11-21  Jim Meyering  <jim@meyering.net>
94929
94930         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94931
94932         Merge in changes from the coreutils.
94933
94934         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94935         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94936         <stdint.h>.
94937         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94938         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94939         int.  Work more efficiently if X is the same width as uintmax_t.
94940         Do not compare X to -1, to avoid bogus compiler warning.
94941         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94942         Don't assume that f_frsize and f_bsize are the same type.
94943
94944         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94945         warning on FreeBSD.
94946
94947         * lib/makepath.c (make_path): Restore umask *before* creating the final
94948         component.
94949         (make_path): Minor reformatting.
94950
94951         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94952         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94953         HAVE_MALLOC/HAVE_REALLOC.
94954
94955         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94956         dummy ones.  At least on GNU/Linux systems, `auto' means something
94957         else.
94958         From Michael Stone.
94959
94960 2002-11-21  Bruno Haible  <bruno@clisp.org>
94961
94962         Remove case insensitive option matching.
94963         * lib/argmatch.h (argcasematch): Remove declaration.
94964         (ARGCASEMATCH): Remove macro.
94965         (__xargmatch_internal): Remove case_sensitive argument.
94966         (XARGMATCH): Update.
94967         (XARGCASEMATCH): Remove macro.
94968         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94969         case_sensitive argument.
94970         (argcasematch): Remove function.
94971         (__xargmatch_internal): Remove case_sensitive argument.
94972         (main): Use XARGMATCH instead of XARGCASEMATCH.
94973
94974         * lib/xmalloc.c: Change compile-time error message. Add comment about
94975         required autoconf version.
94976
94977 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94978
94979         Merge argmatch cleanups from Bison.  Assume C89.
94980
94981         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94982         Include stdlib.h, for EXIT_FAILURE.
94983         Always include <string.h>, since we assume C89.
94984         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94985         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94986         Include <stddef.h> instead, since it's all we need for size_t.
94987         (PARAMS): Remove.  All uses removed.
94988         (ARRAY_CARDINALITY): Do not bother to #undef.
94989         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94990         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94991         Remove unnecessary parentheses.
94992         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94993         Insert necessary parentheses.
94994         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94995         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94996
94997 2002-11-19  Bruno Haible  <bruno@clisp.org>
94998
94999         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95000         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95001
95002         * lib/mbswidth.h (PARAMS): Remove macro.
95003         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95004         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95005
95006         * lib/gcd.h (PARAMS): Remove macro.
95007         (gcd): Use ANSI C function declarations.
95008         * lib/gcd.c (gcd): Likewise.
95009
95010 2002-11-15  Bruno Haible  <bruno@clisp.org>
95011
95012         * lib/strcspn.c: Include <stddef.h>.
95013         (strcspn): Use ANSI C function declaration. Change return type to
95014         size_t. Use NULL.
95015         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95016         (strpbrk): Use NULL.
95017         * lib/strpbrk.h (PARAMS): Remove macro.
95018         (strpbrk): Use ANSI C function declaration.
95019         * lib/strstr.c: Don't include <sys/types.h>.
95020         * lib/strstr.h (PARAMS): Remove macro.
95021         (strstr): Use ANSI C function declarations.
95022
95023 2002-11-14  Karl Berry  <karl@gnu.org>
95024
95025         * config/mkinstalldirs: `do' on separate line, instead of
95026         `for var; do'.
95027
95028 2002-11-06  Bruno Haible  <bruno@clisp.org>
95029
95030         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95031         * lib/gcd.c (gcd): Likewise.
95032
95033 2002-11-05  Bruno Haible  <bruno@clisp.org>
95034
95035         * lib/gcd.h: New file, from gettext-0.11.5.
95036         * lib/gcd.c: New file, from gettext-0.11.5.
95037
95038 2002-11-05  Bruno Haible  <bruno@clisp.org>
95039
95040         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95041         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95042         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95043         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95044
95045         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95046         <libintl.h>.
95047         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95048         <libintl.h>.
95049
95050         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95051         * lib/human.c: Include gettext.h instead of <libintl.h>.
95052         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95053         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95054         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95055         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95056         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95057         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95058         (textdomain): Remove definition.
95059         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95060
95061         * lib/long-options.c: Remove include of <libintl.h> and definition of
95062         _.
95063         * lib/same.c: Remove include of <libintl.h> and definition of _.
95064
95065 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95066
95067         * lib/config.charset: A few additions for Solaris.
95068
95069 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95070
95071         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95072         * lib/localcharset.c (locale_charset): Declare as extern "C".
95073
95074 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95075
95076         * lib/config.charset: msdos in uk_UA uses CP1125.
95077
95078 2002-11-04  Bruno Haible  <bruno@clisp.org>
95079
95080         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95081         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95082         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95083         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95084         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95085
95086 2002-11-04  Bruno Haible  <bruno@clisp.org>
95087
95088         * lib/localcharset.c (locale_charset): Don't return an empty string.
95089
95090 2002-11-04  Bruno Haible  <bruno@clisp.org>
95091
95092         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95093         aliases.
95094
95095 2002-11-04  Bruno Haible  <bruno@clisp.org>
95096
95097         * lib/config.charset: Update for newest glibc. Add canonical names
95098         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95099
95100 2002-11-04  Bruno Haible  <bruno@clisp.org>
95101
95102         * lib/config.charset: Add support for NetBSD.
95103
95104 2002-11-04  Bruno Haible  <bruno@clisp.org>
95105
95106         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95107
95108 2002-11-01  Bruno Haible  <bruno@clisp.org>
95109
95110         * configure.in: Add AC_CONFIG_AUX_DIR call.
95111         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95112         test/Makefile.
95113         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95114
95115 2002-09-28  Karl Berry  <karl@gnu.org>
95116
95117         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95118         installed automake until the next release, since changes have been
95119         made.
95120
95121 2002-09-25  Karl Berry  <karl@gnu.org>
95122
95123         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95124         * lib/getopt*: copy from libc/posix.
95125         * lib/gettext.h: copy from gettext.
95126         * lib/.cppi-disable: add strdup.c, gettext.h.
95127
95128 2002-09-25  Karl Berry  <karl@gnu.org>
95129
95130         * config/srclist.txt: enable gettext.h check.
95131         * config/config.{guess,sub}: update from prep.
95132         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95133                 from automake 1.6.3.
95134         See srclist*.
95135
95136 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95137
95138         * regex.c (PATFETCH): Remove the translating fetch.
95139         (PATFETCH_RAW): Rename to PATFETCH.
95140         (set_image_of_range): New fun.
95141         (SET_RANGE_TABLE_WORK_AREA): Use it.
95142         (regex_compile): Don't translate the pattern chars so eagerly.
95143         Only do it when inserting an `exactn' bytecode or when handling
95144         a char-range.
95145         (mutually_exclusive_p): Avoid empty statement.
95146
95147 2002-07-06  Jim Meyering  <meyering@lucent.com>
95148
95149         * m4/README: Don't mention Makefile.am.in.
95150         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95151
95152 2002-07-01  Jim Meyering  <meyering@lucent.com>
95153
95154         * lib/c-stack.c: Include sys/time.h.
95155         From Volker Borchert.
95156
95157 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95158
95159         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95160
95161 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95162
95163         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95164         New macro.  Use it uniformly instead of
95165         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95166         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95167         reported by Vin Shelton.
95168
95169 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95170
95171         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95172         Do not assume SA_SIGINFO behavior.
95173         Bug reported by Jim Meyering on NetBSD 1.5.2.
95174
95175 2002-06-22  Jim Meyering  <meyering@lucent.com>
95176
95177         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95178         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95179
95180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95181         now that configure.ac uses AC_GNU_SOURCE.
95182         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95183         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95184
95185         Update to latest tools.  Suggestions from Paul Eggert.
95186         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95187         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95188         * m4/fnmatch.m4: Likewise.
95189         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95190         to AC_HEADER_STDBOOL
95191
95192 2002-06-22  Jim Meyering  <meyering@lucent.com>
95193
95194         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95195         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95196
95197 2002-06-22  Jim Meyering  <meyering@lucent.com>
95198
95199         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95200
95201         * lib/exitfail.c, exitfail.h: Likewise.
95202         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95203
95204         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95205         of fnmatch.h.
95206         (EXTRA_DIST): Add fnmatch_loop.c.
95207         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95208
95209         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95210         * lib/fnmatch.c: Update from diffutils-2.8.2.
95211         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95212         * lib/fnmatch.h: Remove file.
95213
95214 2002-06-21  Jim Meyering  <meyering@lucent.com>
95215
95216         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95217         * m4/mbrtowc.m4: Likewise.
95218
95219         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95220         * m4/mbswidth.m4: Reflect name change:
95221         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95222         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95223
95224         * m4/lib-link.m4: Update from gettext-0.11.2.
95225         * m4/gettext.m4: Likewise.
95226
95227         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95228         From Alfred M. Szmidt.
95229
95230 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95231
95232         * lib/file-type.h: Report an error if neither S_ISREG nor
95233         S_IFREG is defined, instead of using a test specific to glibc
95234         2.2.  This should be safe, since POSIX requires S_ISREG and
95235         Unix Version 7 had S_IFREG.  We don't need to check for
95236         <sys/types.h> since we don't use any symbols that it defines.
95237
95238 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95239
95240         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95241         $@-t, so that each temporary file name is unique and valid in the first
95242         8 characters, for operation under DOS.
95243
95244 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95245
95246         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95247
95248 2002-06-15  Jim Meyering  <meyering@lucent.com>
95249
95250         Work even with DJGPP 2.03, which lacks support for symlinks.
95251         From Richard Dawe.
95252         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95253         is defined.
95254         * lib/lchown.c (S_ISLNK): Likewise.
95255
95256 2002-06-15  Jim Meyering  <meyering@lucent.com>
95257
95258         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95259         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95260         have been included before this file.
95261
95262 2002-06-14  Jim Meyering  <meyering@lucent.com>
95263
95264         * lib/file-type.h: Use the version from diffutils-2.8.2.
95265         * lib/file-type.c: Likewise.
95266
95267 2002-06-07  Jim Meyering  <meyering@lucent.com>
95268
95269         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95270         They're needed at least for NetBSD 1.5.2.
95271         ($statxfs_includes): Include those same headers.
95272         ($statxfs_includes): Include sys/vfs.h if available.
95273         ($statxfs_includes): Likewise for sys/statvfs.h.
95274         Check for the following members in both structs statfs and statvfs:
95275         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95276
95277 2002-06-01  Jim Meyering  <meyering@lucent.com>
95278
95279         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95280         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95281
95282 2002-05-28  Jim Meyering  <meyering@lucent.com>
95283
95284         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95285         Reported by Volker Borchert.
95286
95287 2002-05-27  Jim Meyering  <meyering@lucent.com>
95288
95289         Fix a problem seen only on nonconforming systems whereby ls.c's
95290         use of localtime, and then of gettimeofday would cause trouble:
95291         the localtime call used to initialize rpl_gettimeofday's save
95292         mechanism would clobber ls's current local time information so
95293         that in any long listing the first file would always be listed
95294         with date 1970-01-01.  Analysis by Volker Borchert.
95295
95296         * lib/gettimeofday.c (localtime): Undefine.
95297         (rpl_localtime): New function.
95298
95299 2002-05-27  Jim Meyering  <meyering@lucent.com>
95300
95301         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95302         localtime.
95303
95304         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95305         use the replacement function; it wouldn't resolve at link time.
95306         Reported by Volker Borchert.
95307
95308 2002-05-22  Jim Meyering  <meyering@lucent.com>
95309
95310         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95311         file-type.h.
95312         * lib/file-type.h: New file.
95313         * lib/file-type.c (file_type): New file/function.  Extracted from
95314         diffutils.
95315
95316 2002-04-30  Jim Meyering  <meyering@lucent.com>
95317
95318         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95319
95320 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95321
95322         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95323
95324 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95325
95326         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95327         Do not check for alloca.h (no longer used) or stdbool.h (was never
95328         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95329
95330 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95331
95332         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95333
95334 2002-04-29  Jim Meyering  <meyering@lucent.com>
95335
95336         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95337         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95338         Use AC_FUNC_STRNLEN here instead.
95339
95340         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95341         With autoconf-2.53a, it's part of AC_PROG_CC.
95342
95343 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95344
95345         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95346         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95347
95348 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95349
95350         * lib/sig2str.h, lib/sig2str.c: New files.
95351         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95352
95353 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95354
95355         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95356         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95357         of 127, since 64 is the largest conceivable number for ancient
95358         nonstandard hosts.
95359         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95360
95361 2002-04-28  Jim Meyering  <meyering@lucent.com>
95362
95363         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95364
95365 2002-04-24  Jim Meyering  <meyering@lucent.com>
95366
95367         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95368         (jm_PREREQ): Use it.
95369
95370         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95371         mach/mach.h fcntl.h.
95372         Check for this function: setlocale.
95373
95374 2002-04-24  Jim Meyering  <meyering@lucent.com>
95375
95376         * lib/gettext.h: New file, from Gettext.
95377         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95378         (libfetish_a_SOURCES): Add gettext.h.
95379
95380 2002-04-16  Jim Meyering  <meyering@lucent.com>
95381
95382         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95383         ut_pid, ut_id, ut_exit.
95384
95385 2002-04-16  Jim Meyering  <meyering@lucent.com>
95386
95387         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95388         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95389         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95390
95391 2002-04-12  Jim Meyering  <meyering@lucent.com>
95392
95393         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95394         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95395         existence of the getmntinfo function.  Needed for Darwin 5.3.
95396
95397         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95398         This is necessary at least on Darwin 5.3.
95399
95400         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95401         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95402         strnlen.o in the library, and that makes some versions of ranlib
95403         object.
95404
95405 2002-04-12  Jim Meyering  <meyering@lucent.com>
95406
95407         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95408
95409 2002-04-09  Jim Meyering  <meyering@lucent.com>
95410
95411         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95412         to be more precise.  Rather than saying we're checking whether the
95413         function `works', say what we're testing.
95414         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95415         Reported by Bruno Haible.
95416
95417 2002-03-10  Jim Meyering  <meyering@lucent.com>
95418
95419         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95420         Suggestion from Santiago Vila.
95421
95422 2002-03-08  Jim Meyering  <meyering@lucent.com>
95423
95424         * lib/rename.c: Mention that this wrapper is needed also on
95425         mips-dec-ultrix4.4 systems.
95426
95427 2002-03-02  Jim Meyering  <meyering@lucent.com>
95428
95429         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95430         not HAVE_CLOCK_SETTIME.
95431
95432 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95433
95434         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95435         Check for clock_settime.
95436
95437 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95438
95439         * lib/nanosleep.h: Rename to....
95440         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95441
95442         * lib/gettime.c: New file.
95443         * lib/settime.c: New file.
95444         * lib/stime.c: Remove.
95445
95446         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95447         timespec.h.  Remove nanosleep.h.
95448
95449 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95450
95451         * m4/acl.m4: New file.
95452         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95453         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95454
95455 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95456
95457         * lib/acl.c, lib/acl.h: New files.
95458         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95459
95460 2002-02-24  Jim Meyering  <meyering@lucent.com>
95461
95462         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95463         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95464         cause trouble.  Reported by Nelson Beebe.
95465
95466 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95467
95468         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95469         compilers that don't know that xalloc_die never returns.
95470
95471 2002-02-20  Jim Meyering  <meyering@lucent.com>
95472
95473         * lib/getdate.c: Regenerate using bison-1.33.
95474
95475 2002-02-17  Jim Meyering  <meyering@lucent.com>
95476
95477         * config/config.guess (main): Don't use `head -1'; it's no longer
95478         portable. Use `sed 1q' instead.
95479
95480 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95481
95482         * m4/codeset.m4: Upgrade to gettext-0.11.
95483         * m4/gettext.m4: Upgrade to gettext-0.11.
95484         * m4/glibc21.m4: Upgrade to gettext-0.11.
95485         * m4/iconv.m4: Upgrade to gettext-0.11.
95486         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95487         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95488         * m4/lib-ld.m4: New file, from gettext-0.11.
95489         * m4/lib-link.m4: New file, from gettext-0.11.
95490         * m4/lib-prefix.m4: New file, from gettext-0.11.
95491         * m4/progtest.m4: Upgrade to gettext-0.11.
95492
95493 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95494
95495         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95496         (jm_PREREQ): Use it.
95497
95498 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95499
95500         * lib/posixver.c, lib/posixver.h: New files.
95501         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95502
95503 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95504             Bruno Haible  <bruno@clisp.org>
95505
95506         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95507         (fwrite_success_callback): New declaration.
95508         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95509         print_unicode_char. Call failure callback instead of error.
95510         (fwrite_success_callback): New function.
95511         (exit_failure_callback): New function.
95512         (fallback_failure_callback): New function.
95513         (print_unicode_char): Call unicode_to_mb.
95514
95515 2002-01-26  Jim Meyering  <meyering@lucent.com>
95516
95517         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95518         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95519
95520 2002-01-26  Jim Meyering  <meyering@lucent.com>
95521
95522         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95523
95524 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95525
95526         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95527
95528 2002-01-22  Jim Meyering  <meyering@lucent.com>
95529
95530         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95531         Otherwise, some versions of automake would omit the rule that makes
95532         Makefile from Makefile.in.
95533
95534 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95535
95536         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95537         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95538         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95539         (memcoll): Set errno to zero if there is no error.
95540
95541         * lib/quotearg.c (quotearg_buffer_restyled):
95542         Fix bug with quoting buffers containing NUL when backslashing escapes.
95543         This bug was exposed by the other changes in this patch.
95544         (quotearg_n_options): New arg ARGSIZE.
95545         All callers changed.
95546         (quoting_options_from_style): New function.
95547         (quotearg_n_style): Use it.
95548         (quotearg_n_style_mem): New function.
95549
95550         * lib/quotearg.h (quotearg_n_style_mem): New function.
95551
95552 2002-01-19  Jim Meyering  <meyering@lucent.com>
95553
95554         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95555         Remove useless quotes: DF_PROG="df".
95556         * m4/strnlen.m4: New file.
95557
95558 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95559
95560         * lib/backupfile.c (ISDIGIT): Comment fix.
95561         * lib/getdate.y (ISDIGIT): Likewise.
95562         * lib/posixtm.c (ISDIGIT, year): Likewise.
95563         * lib/strverscmp.c (ISDIGIT): Likewise.
95564         * lib/userspec.c (ISDIGIT): Likewise.
95565
95566 2002-01-16  Jim Meyering  <meyering@lucent.com>
95567
95568         * lib/getdate.y: Add three semicolons, each just before a closing
95569         brace. Bison (as of version 1.31) no longer papers over that mistake.
95570
95571 2002-01-05  Jim Meyering  <meyering@lucent.com>
95572
95573         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95574
95575 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95576
95577         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95578         not silently exit merely because the output buffer happens to
95579         have nothing pending.
95580
95581 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95582
95583         See the big note in ../ChangeLog.
95584         * lib/human.c (suffixes): Prefer K to k for 1024.
95585         (generate_suffix_backwards): New function.
95586         (human_readable_inexact): Use it.
95587         * lib/xstrtol.c (__xstrtol): If there is no number but there
95588         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95589         Accept 'K' as well as 'k'.
95590
95591 2001-12-15  Jim Meyering  <meyering@lucent.com>
95592
95593         * lib/regex.h (__restrict_arr): Update from libc.
95594
95595         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95596         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95597         (STREQ): Define.
95598
95599 2001-12-14  Jim Meyering  <meyering@lucent.com>
95600
95601         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95602         Suggestion from Bruno Haible.
95603
95604 2001-12-10  Jim Meyering  <meyering@lucent.com>
95605
95606         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95607         xrealloc, Instead, include "xalloc.h".
95608         (initbuffer): Don't cast xmalloc return value to char*.
95609         (readline): Reword comment.
95610         Don't cast xrealloc return value to char*
95611         Return NULL, not 0.
95612
95613 2001-12-09  Jim Meyering  <meyering@lucent.com>
95614
95615         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95616         about `signed and unsigned type in conditional expression'.
95617         * lib/posixtm.c (posix_time_parse): Likewise.
95618
95619         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95620
95621         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95622         to avoid a pedantic warning.
95623
95624         * lib/getstr.c: Don't include assert.h.
95625         (getstr): Remove warning-evoking assertions.
95626         Return -1 if offset parameter is out of bounds.
95627         Change the type of a local from int to size_t.
95628
95629         * lib/strftime.c (my_strftime_localtime_r): Include this function
95630         definition in the `#if ! HAVE_TM_GMTOFF' block.
95631
95632         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95633         Include xalloc.h instead.
95634
95635 2001-12-02  Jim Meyering  <meyering@lucent.com>
95636
95637         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95638         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95639         included.
95640
95641         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95642         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95643
95644 2001-11-30  Akim Demaille  <akim@epita.fr>
95645
95646         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95647         before being defined.
95648
95649 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95650
95651         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95652         First arg is int, not unsigned.
95653         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95654         (SIZE_MAX, UINT_MAX): New macros.
95655         (quotearg_n_options): Abort if N is negative.
95656         Avoid overflow check on hosts where size_t is 64 bits and int
95657         is 32 bits, as overflow is impossible there.
95658         Fix off-by-one typo that caused unnecessary reallocation.
95659
95660 2001-11-27  Jim Meyering  <meyering@lucent.com>
95661
95662         * lib/tempname.c: Merge with version from libc.
95663         * lib/regex.c: Likewise.
95664
95665         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95666         systems for which STDC_HEADERS is 0, it was not included, resulting in
95667         a warning about an integer-to-pointer conversion problem with getenv.
95668         Reported by Volker Borchert.
95669
95670 2001-11-26  Jim Meyering  <meyering@lucent.com>
95671
95672         * lib/gtod.h: Remove file.
95673         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95674         * lib/gettimeofday.c: Don't include gtod.h.
95675         (GTOD_init): Remove function.
95676         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95677         Suggestion from Volker Borchert.
95678
95679 2001-11-23  Jim Meyering  <meyering@lucent.com>
95680
95681         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95682         it.
95683         * lib/hash.c (struct hash_table): Define it here instead.
95684
95685 2001-11-22  Jim Meyering  <meyering@lucent.com>
95686
95687         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95688
95689 2001-11-20  Jim Meyering  <meyering@lucent.com>
95690
95691         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95692         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95693
95694 2001-11-19  Jim Meyering  <meyering@lucent.com>
95695
95696         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95697         directory.  Use "conftestXXXXXX" as the template.
95698         Suggestion from Paul Eggert.
95699
95700         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95701         immediately, so the test doesn't mistakenly hit the max-open-files
95702         limit.
95703
95704 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95705
95706         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95707         (TEMPORARIES): New macro.
95708         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95709         removes an artificial limitation (e.g. HP-UX 10.20, where
95710         TMP_MAX is 17576).
95711
95712 2001-11-18  Jim Meyering  <meyering@lucent.com>
95713
95714         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95715
95716 2001-11-18  Jim Meyering  <meyering@lucent.com>
95717
95718         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95719         on SunOS 4.
95720
95721         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95722         files will be created before anything else.
95723
95724 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95725
95726         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95727         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95728
95729 2001-11-17  Jim Meyering  <meyering@lucent.com>
95730
95731         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95732         Prompted by a report from Bob Proulx.
95733
95734         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95735         Instead, require UTILS_FUNC_MKSTEMP.
95736
95737 2001-11-17  Jim Meyering  <meyering@lucent.com>
95738
95739         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95740         Now, that's done as part of AC_FUNC_STRTOD.
95741
95742 2001-11-17  Jim Meyering  <meyering@lucent.com>
95743
95744         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95745         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95746         rather than group writable.  Patch by Juan F. Codagnone.
95747
95748         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95749         xrealloc, Instead, include "xalloc.h".
95750
95751         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95752         Remove explicit declarations of xmalloc, xrealloc,
95753         and xstrdup.  Instead, include "xalloc.h".
95754
95755         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95756         unlocked-io.h.
95757         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95758         Likewise.
95759         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95760
95761         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95762         Reported by Padraig Brady.
95763
95764         * lib/mkstemp.c: #undef mkstemp.
95765         Include config.h.
95766         (rpl_mkstemp): Rename from mkstemp.
95767         Protoize.
95768
95769 2001-11-16  Jim Meyering  <meyering@lucent.com>
95770
95771         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95772         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95773         determine the amount of total physical memory, use pstat_getstatic.
95774         HPUX-11 doesn't define _SC_PHYS_PAGES.
95775         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95776         If sysconf couldn't be used to determine the amount of available
95777         physical memory, use both pstat_getstatic and pstat_getdynamic.
95778         Based on a patch from Bob Proulx.
95779
95780 2001-11-10  Jim Meyering  <meyering@lucent.com>
95781
95782         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95783         (jm_PREREQ): Use it.
95784
95785 2001-11-09  Jim Meyering  <meyering@lucent.com>
95786
95787         * m4/jm-macros.m4: Require autoconf-2.52f.
95788         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95789         Use these AC_-prefixed names, not the AM_-prefixed ones.
95790
95791         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95792
95793 2001-11-05  Jim Meyering  <meyering@lucent.com>
95794
95795         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95796
95797 2001-11-04  Jim Meyering  <meyering@lucent.com>
95798
95799         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95800         $DEFS.
95801
95802 2001-11-03  Jim Meyering  <meyering@lucent.com>
95803
95804         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95805         of AC_DEFUN.
95806
95807         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95808         know the name of the variable in the macro definition.
95809
95810 2001-11-03  Jim Meyering  <meyering@lucent.com>
95811
95812         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95813         in argmatch_to_argument call.
95814
95815         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95816         argument.
95817
95818         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95819         e.g., a fault due to an attempt to free a NULL pointer.
95820
95821 2001-11-01  Jim Meyering  <meyering@lucent.com>
95822
95823         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95824         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95825
95826 2001-11-01  Jim Meyering  <meyering@lucent.com>
95827
95828         * lib/dirfd.c, lib/dirfd.h: New files.
95829         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95830
95831         * lib/hash.c (hash_print) [TESTING]: Clean up.
95832
95833 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95834
95835         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95836         to avoid a warning if -Wall.
95837
95838 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95839
95840         * README: New file
95841         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95842         (per RMS's instructions, this is now the canonical source)
95843         * lgpl/, gpl/: New directories.
95844
95845 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95846
95847         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95848
95849 2001-10-21  Jim Meyering  <meyering@lucent.com>
95850
95851         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95852         this code would end up calling gettext even in packages built
95853         with --disable-nls.
95854         * lib/getopt.c (_): Likewise.
95855         * lib/regex.c (_): Likewise.
95856
95857 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95858
95859         * m4/error.m4 (jm_PREREQ_ERROR):
95860         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95861         AC_FUNC_STRERROR_R does that.
95862         Check for strerror declaration.
95863
95864         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95865         are supposed to have them these days.
95866         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95867         Merge changes from latest Autoconf CVS.
95868         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95869         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95870         POSIX decided to standardize on the int flavor of strerror_r.
95871
95872 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95873
95874         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95875         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95876         Use strerror_r that is only a macro, even if it is not a function.
95877         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95878         (private_strerror): Use prototypes, not old-style function definition.
95879         (print_errno_message): New function.
95880         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95881         char*-flavored one.
95882         (error_tail, error, error_at_line): Use it.
95883
95884 2001-10-11  Jim Meyering  <meyering@lucent.com>
95885
95886         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95887         and quote_n (1, ... to avoid clobbering a buffer.
95888
95889 2001-10-05  Jim Meyering  <meyering@lucent.com>
95890
95891         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95892         hash-pjw.h.
95893         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95894         * lib/hash-pjw.h: New file.
95895
95896 2001-09-30  Jim Meyering  <meyering@lucent.com>
95897
95898         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95899         `struct fsstat' has the `f_fstypename' member.
95900         Use that to define FS_TYPE, which is now used to make
95901         the getfsstat link test tighter.
95902
95903 2001-09-30  Jim Meyering  <meyering@lucent.com>
95904
95905         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95906         Include <sys/ucred.h>, for Apple Darwin.
95907         Include sys/mount.h and sys/fs_types.h only if available.
95908         (FS_TYPE): Define.
95909         (read_filesystem_list): Use FS_TYPE.
95910
95911 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95912
95913         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95914         a boolean context.
95915
95916 2001-09-29  Jim Meyering  <meyering@lucent.com>
95917
95918         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95919         [one-argument getmntent function]): Include stdio.h before mntent.h.
95920         SunOS 4.1.x needs it for the declaration of `FILE'.
95921         Patch by Volker Borchert.
95922
95923         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95924         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95925         sys/fs_types.h, and make the link-test for getfsstat guard #include
95926         directives with appropriate #if HAVE_*_H tests so that we can
95927         detect getfsstat on Apple Darwin1.3.7 systems.
95928         Reported by Nelson Beebe.
95929         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95930
95931 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95932
95933         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95934         #defines strtoimax.  Also treat the other strto* functions
95935         like strtoimax.
95936
95937         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95938         Check for strtoul and strtoumax,
95939         as those declarations are made even in the signed case.
95940         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95941         Likewise, for strtol and strtoimax.
95942
95943 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95944
95945         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95946         #defines strtoimax.  Also treat the other strto* functions
95947         like strtoimax.
95948
95949         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95950         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95951         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95952
95953 2001-09-26  Jim Meyering  <meyering@lucent.com>
95954
95955         Most macros in unlocked-io.h had the wrong number of arguments.
95956         * lib/gen-uio: New script.
95957         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95958         * lib/unlocked-io.hin: Remove file.
95959         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95960         rather than trying to embed it here.
95961         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95962         Reported by Padraig Brady.
95963
95964 2001-09-25  Volker Borchert  <bt@teknon.de>
95965
95966         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95967         `result'.
95968
95969 2001-09-24  Jim Meyering  <meyering@lucent.com>
95970
95971         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95972
95973 2001-09-23  Jim Meyering  <meyering@lucent.com>
95974
95975         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95976         instead of the mere test for existence of mntent.h.  The latter
95977         would get a false-positive on AIX 3.4 systems.
95978         In the outer getmntent if-block, don't die if neither of the getmntent
95979         tests succeeds.  Instead, just fall through and continue with the
95980         remaining tests.
95981
95982 2001-09-23  Jim Meyering  <meyering@lucent.com>
95983
95984         * lib/mountlist.c: Remove useless parentheses in #if directives.
95985         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95986         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95987
95988 2001-09-22  Jim Meyering  <meyering@lucent.com>
95989
95990         * m4/gettext.m4: New file.  From gettext.
95991         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95992         * m4/progtest.m4: Likewise
95993         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95994         * m4/glibc21.m4: Likewise.
95995
95996         * m4/libintl.m4: Remove.  No longer used.
95997
95998 2001-09-22  Jim Meyering  <meyering@lucent.com>
95999
96000         * lib/localcharset.c: Update from latest gettext.
96001         * lib/config.charset: Likewise.
96002
96003 2001-09-20  Jim Meyering  <meyering@lucent.com>
96004
96005         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96006         strtoimax.
96007         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96008         strtoumax.
96009
96010 2001-09-20  Jim Meyering  <meyering@lucent.com>
96011
96012         * lib/xstrtol.c (strtoimax): Guard declaration with
96013         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96014         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96015         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96016         (strtoumax): Likewise, for completeness (it wasn't necessary).
96017
96018 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96019
96020         * lib/strtoimax.c (HAVE_LONG_LONG):
96021         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96022         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96023         to work around bug in IBM C compiler.
96024
96025 2001-09-17  Jim Meyering  <meyering@lucent.com>
96026
96027         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96028         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96029         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96030         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96031         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96032         whenever the right hand side need not be expanded by the shell.
96033
96034 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96035
96036         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96037         library.  It's not correct, as some older glibcs are buggy.
96038         fnmatch wasn't fixed until glibc 2.2.
96039
96040         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96041         special shell magic here.
96042
96043 2001-09-16  Jim Meyering  <meyering@lucent.com>
96044
96045         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96046         * m4/jm-macros.m4: Require it.
96047
96048 2001-09-16  Jim Meyering  <meyering@lucent.com>
96049
96050         * lib/mkdir.c: New file.
96051
96052 2001-09-15  Jim Meyering  <meyering@lucent.com>
96053
96054         * m4/jm-macros.m4: Check for help2man.
96055
96056 2001-09-11  Jim Meyering  <meyering@lucent.com>
96057
96058         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96059         The body, by Paul Eggert, was moved here from configure.in.
96060         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96061
96062 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96063
96064         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96065         (jm_PREREQ): Use it.
96066
96067 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96068
96069         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96070         Use ssize_t, not int, to store result of readlink.
96071         Check for ssize_t overflow as well as size_t overflow,
96072         as POSIX says the result of readlink is implementation-defined
96073         when ssize_t overflows.
96074         Remove unnecessary cast to char*.
96075         Use free+malloc instead of realloc, as the storage doesn't need
96076         to be preserved and it's clearer and can be more efficient that way.
96077         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96078         * lib/xreadlink.h (xreadlink): Update prototype.
96079
96080 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96081
96082         * lib/xgetcwd.c: Revert some of the previous change; intead,
96083         fix the HAVE_GETCWD_NULL code to behave more like the
96084         !HAVE_GETCWD_NULL code used to.
96085
96086         Include "xalloc.h".
96087         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96088         invoke xalloc_die.
96089
96090 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96091
96092         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96093         sys/param.h, as pathmax.h includes them.
96094
96095 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96096
96097         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96098         (jm_PREREQ_XGETCWD): New macro.
96099
96100         * m4/getcwd.m4: New file.
96101
96102 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96103
96104         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96105         like the HAVE_GETCWD_NULL code.
96106         Include pathmax.h if not HAVE_GETCWD.
96107         Do not include xalloc.h.
96108         (INITIAL_BUFFER_SIZE): New symbol.
96109         Do not use xmalloc / xrealloc, since the caller is responsible for
96110         handling errors.  Preserve errno around `free' during failure.
96111         Do not overrun buffer when using getwd.
96112
96113 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96114
96115         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96116         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96117         getcwd (NULL, 0).
96118
96119 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96120
96121         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96122         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96123         spotted by Jim Meyering.
96124
96125 2001-09-03  Jim Meyering  <meyering@lucent.com>
96126
96127         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96128         failure.
96129
96130 2001-09-02  Jim Meyering  <meyering@lucent.com>
96131
96132         * lib/error.c: Update from GNU libc.
96133
96134 2001-09-01  Jim Meyering  <meyering@lucent.com>
96135
96136         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96137         Used by df.
96138
96139 2001-09-01  Jim Meyering  <meyering@lucent.com>
96140
96141         * lib/xreadlink.c: New file.
96142         * lib/xreadlink.h: New file.
96143         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96144         xreadlink.h.
96145
96146         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96147         doesn't conflict with sparc Solaris 7's definition in
96148         /usr/include/sys/int_types.h.
96149
96150         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96151         files.
96152         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96153         and strncasecmp as r-values.  Unixware didn't have declarations.
96154
96155 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96156
96157         * lib/xstrtol.h: Add copyright notice.
96158         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96159         LONGINT_INVALID_SUFFIX_CHAR.
96160
96161 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96162
96163         * lib/xstrtol.c (strtoimax): New decl.
96164
96165 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96166
96167         * lib/xgetcwd.c: Don't include pathmax.h.
96168         Include stdlib.h and unistd.h if available.
96169         Include xalloc.h.
96170         (xmalloc, xstrdup, free): Remove decls.
96171         (xgetcwd): Don't assume sizes fit in unsigned.
96172         Check for overflow when computing sizes.
96173         Simplify reallocation code.
96174
96175 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96176
96177         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96178         a directory's st_size can have an arbitrary value, so the old
96179         usage could waste an arbitrary amount of memory.  All uses
96180         changed.
96181         * lib/savedir.h: Update prototype.
96182
96183 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96184
96185         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96186
96187         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96188         old strtoimax.c.
96189
96190         Also, make the following further changes to make this file's
96191         configuration more similar to that of strtol.c:
96192         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96193         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96194         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96195         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96196         changed to signed values.
96197
96198         And make the following changes as well:
96199         Fix copyright notice, as 1999 was missing.
96200         (verify): New macro.
96201         (strtoimax): Check sizes at compile-time, not run-time.
96202         Prefer strtol to strtoll if both work.
96203         (main): Remove; it was not that useful and was a pain to maintain.
96204
96205         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96206
96207 2001-08-31  Jim Meyering  <meyering@lucent.com>
96208
96209         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96210         Use an initial, malloc'd, buffer of length 128 rather than
96211         a statically allocated one of length 1024.
96212
96213 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96214
96215         Simplify code, partly by assuming autoconf 2.52 semantics.
96216
96217         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96218
96219         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96220         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96221         All uses removed.
96222         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96223         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96224         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96225         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96226         jm_AC_HEADER_INTTYPES_H.
96227         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96228
96229         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96230
96231         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96232         Quote first arg of AC_DEFUN.
96233         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96234         since they are needed to parse the include file even if we need
96235         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96236         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96237         but with opposite signedness.
96238
96239 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96240
96241         Merge 'exclude' changes from tar 1.13.22.
96242         This fixes one or two unlikely storage allocation overflow bugs,
96243         but doesn't change user-visible behavior otherwise.
96244
96245 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96246
96247         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96248         (jm_PREREQ_EXCLUDE): New macro.
96249
96250 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96251
96252         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96253         tm to be declared.
96254
96255 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96256
96257         * lib/hash.c: Remove '2001' from copyright notice.
96258
96259 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96260
96261         * lib/full-write.h: New file.
96262         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96263         * lib/full-write.c: Correct credits, as cccp.c no longer
96264         exists and anyway it was so heavily changed from the old cccp
96265         code as to be unrecognizable.  Include full-write.h.
96266         (full_write): Return size_t, with short writes meaning failure.
96267         All callers changed.  This fixes a bug with large buffers
96268         on 64-bit hosts.
96269         * lib/utime.c: Include full-write.h.
96270
96271 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96272
96273         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96274         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96275         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96276         Include if available.
96277         (<xalloc.h>): Include
96278         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96279         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96280         collide with FNM macros.
96281         (struct patopts): New struct.
96282         (struct exclude): Use it, as exclude patterns now come with options.
96283         (new_exclude): Support above changes.
96284         (new_exclude, add_exclude_file):
96285         Initial size must now be a power of two to simplify overflow checking.
96286         (free_exclude, fnmatch_no_wildcards): New function.
96287         (excluded_filename): No longer requires options arg, as the options
96288         are determined by add_exclude.  Now returns bool, not int.
96289         (excluded_filename, add_exclude):
96290         Add support for the fancy new exclusion options.
96291         (add_exclude, add_exclude_file): Now takes int options arg.
96292         Check for arithmetic overflow when computing sizes.
96293         (add_exclude_file): xrealloc might modify errno, so don't
96294         realloc until after errno might be used.
96295
96296         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96297         New macros.
96298         (free_exclude): New decl.
96299         (add_exclude, add_exclude_file): Now takes int options arg.
96300         (excluded_filename): No longer requires options arg, as the options
96301         are determined by add_exclude.  Now returns bool, not int.
96302
96303 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96304
96305         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96306
96307 2001-08-27  Jim Meyering  <meyering@lucent.com>
96308
96309         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96310
96311         * lib/version-etc.c (N_): Remove definition.
96312         Revert most of last change.
96313         Instead, simply don't mark the `Copyright...' string for translation.
96314         Based on advice from Paul Eggert.
96315
96316         * lib/strtoxmax.c: Tweak comment.
96317
96318 2001-08-26  Jim Meyering  <meyering@lucent.com>
96319
96320         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96321
96322         * m4/xstrtoimax.m4: New file.
96323         * m4/xstrtoumax.m4: Add comments explaining why we
96324         AC_REPLACE_FUNCS(strtol).
96325
96326 2001-08-26  Jim Meyering  <meyering@lucent.com>
96327
96328         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96329         of copyright with `%s' so translators don't get an untranslated
96330         message in 2002.
96331         (COPYRIGHT_YEAR): Define.
96332         (version_etc): Use fprintf rather than fputs.
96333         Suggestion from Ulrich Drepper.
96334
96335         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96336
96337         * lib/strtoll.c: New file, from GNU libc.
96338         * lib/xstrtoimax.c: New file.
96339
96340         * lib/xstrtol.h: Add xstrtoimax.
96341         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96342         * lib/strtoimax.c: New file.  Likewise, but first define
96343         STRTOUXMAX_SIGNED.
96344
96345         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96346         ...
96347         * lib/strtoxmax.c: ... then renamed to this.
96348
96349 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96350
96351         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96352         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96353         (jm_AC_TYPE_INTMAX_T): New macro.
96354         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96355
96356         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96357
96358         * m4/longlong.m4: Renamed from ulonglong.m4.
96359         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96360         * m4/uintmax_t.m4: Removed.
96361
96362 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96363
96364         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96365         Port to Solaris 8, where 'sed' requires a space after the 'r'
96366         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96367         Redirect output to $tmp just once.
96368
96369 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96370
96371         * lib/addext.c (<errno.h>): Include.
96372         (errno): Declare if not defined.
96373         (addext): Work correctly when pathconf returns -1 and leaves
96374         errno alone because there is no limit.  Also, work even if
96375         pathconf returns a value greater than SIZE_MAX.
96376
96377 2001-08-12  Jim Meyering  <meyering@lucent.com>
96378
96379         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96380         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96381         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96382         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96383         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96384         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96385         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96386         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96387         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96388         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96389         utime.m4, utimes.m4, xstrtoumax.m4:
96390         Quote the first argument in each use of AC_DEFUN.
96391
96392 2001-08-12  Jim Meyering  <meyering@lucent.com>
96393
96394         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96395         Simply `return getcwd (NULL, 0);'.
96396         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96397         Use 1300 as initial value for length, not PATH_MAX.
96398
96399         * lib/pathmax.h: Clean up cpp syntax.
96400
96401 2001-08-12  Jim Meyering  <meyering@lucent.com>
96402
96403         * lib/gettimeofday.c: New file.
96404         * lib/gtod.h: New file.
96405         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96406
96407 2001-08-05  Jim Meyering  <meyering@lucent.com>
96408
96409         * m4/jm-macros.m4: Require autoconf-2.52.
96410
96411 2001-08-04  Jim Meyering  <meyering@lucent.com>
96412
96413         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96414         stmt, to get in sync with glibc.
96415
96416 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96417
96418         The following changes are from gettext 0.10.39 as maintained by
96419         Bruno Haible.
96420
96421         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96422         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96423         with inverted sense.  All uses changed.
96424
96425         * lib/mbswidth.c: Don't include <limits.h>.
96426         Include <stdlib.h> and <string.h> unconditionally.
96427         (iswcntrl, mbsinit, ISCNTRL): New macros.
96428         (mbsnwidth): Use K&R style function declarations.
96429         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96430         can optimize it when MB_CUR_MAX == 1.
96431         The width of control characters is zero, not 1.
96432
96433 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96434
96435         The following changes are from gettext 0.10.39 as maintained by
96436         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96437
96438         * m4/codeset.m4: Upgrade to serial AM1.
96439         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96440         all uses changed.  Quote first arg of AC_DEFUN.
96441         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96442
96443         * m4/iconv.m4: Upgrade to serial AM2.
96444         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96445         Add --with-libconv-prefix.
96446         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96447         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96448         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96449         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96450         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96451
96452         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96453         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96454         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96455         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96456         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96457         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96458         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96459         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96460         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96461
96462         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96463         string.h any more.
96464
96465         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96466         not the default value.
96467
96468         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96469         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96470         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96471         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96472         Also check for iswcntrl, used for wcwidth fallback.
96473         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96474         to Autoconf 2.13.
96475
96476 2001-08-03  Jim Meyering  <meyering@lucent.com>
96477
96478         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96479         as it was in the original.  Reported by Paul Eggert.
96480
96481 2001-07-16  Jim Meyering  <meyering@lucent.com>
96482
96483         * m4/gettimeofday.m4: New file.
96484         Prompted by a report from Bernhard Baehr.
96485
96486 2001-07-15  Jim Meyering  <meyering@lucent.com>
96487
96488         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96489         stuff. Now it's in ../Makefile.cfg.
96490
96491 2001-07-15  Jim Meyering  <meyering@lucent.com>
96492
96493         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96494         (BUILT_SOURCES): Add unlocked-io.h.
96495         (io_functions): Define.
96496         (unlocked-io.h): New rule.
96497         (DISTCLEANFILES): Add unlocked-io.h.
96498         (all-local): Depend on unlocked-io.h, to ensure it is created.
96499
96500         * lib/unlocked-io.hin: New file
96501
96502         * lib/regex.c: Update from glibc.
96503
96504 2001-07-05  Jim Meyering  <meyering@lucent.com>
96505
96506         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96507         recommendation.
96508         (libfetish_a_SOURCES): Put all .h files here instead.
96509         Remove a thus-exposed (better checks in automake) duplicate and
96510         two unnecessary .h files.
96511
96512 2001-07-04  Jim Meyering  <meyering@lucent.com>
96513
96514         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96515         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96516         distcheck failure.
96517
96518 2001-07-02  Jim Meyering  <meyering@lucent.com>
96519
96520         The following changes were prompted by suggestions from Bruno Haible.
96521
96522         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96523         is now generated.
96524         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96525         definition of EXTRA_DIST.
96526         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96527         ensure that the generated file is created/updated whenever the list
96528         of $(unlocked_functions) is changed.
96529         (jm-glibc-io.m4): New rule.
96530         (unlocked-io.h): New rule -- currently unused.
96531
96532 2001-06-24  Jim Meyering  <meyering@lucent.com>
96533
96534         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96535         unmatched right bracket, rather than kludging it with an extra,
96536         falsely-matching quote in a comment.  Patch by Akim Demaille.
96537
96538 2001-06-11  Jim Meyering  <meyering@lucent.com>
96539
96540         * lib/regex.c: Update from GNU libc.
96541
96542 2001-05-27  Jim Meyering  <meyering@lucent.com>
96543
96544         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96545         Check for ut_type in struct utmp.
96546
96547 2001-05-27  Jim Meyering  <meyering@lucent.com>
96548
96549         * lib/readutmp.h (UT_TYPE): Define.
96550
96551 2001-05-24  Jim Meyering  <meyering@lucent.com>
96552
96553         * lib/argmatch.c: Include "quote.h".
96554         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96555         quote function.  Reported by Göran Uddeborg.
96556
96557 2001-05-22  Jim Meyering  <meyering@lucent.com>
96558
96559         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96560         now that we use the package-supplied version unconditionally.
96561         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96562
96563 2001-05-21  Jim Meyering  <meyering@lucent.com>
96564
96565         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96566         shell syntax errors.
96567
96568 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96569
96570         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96571
96572 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96573
96574         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96575         Don't bother to check library strftime, since
96576         we'll be using our own my_strftime function anyway.
96577         Define my_strftime instead of strftime.
96578
96579 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96580
96581         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96582         which is not yet declared.
96583
96584 2001-05-15  Jim Meyering  <meyering@lucent.com>
96585
96586         * m4/regex.m4: Use proper quoting so brackets appear in the test
96587         program.
96588         Reported by, and with help from, Bruno Haible.
96589
96590 2001-05-13  Jim Meyering  <meyering@lucent.com>
96591
96592         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96593         undefined.
96594
96595 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96596
96597         dirname code cleanup.  base_name now behaves more compatibly
96598         with POSIX basename when given file names that have trailing
96599         slashes, and similarly for dir_name.  Add new primitives
96600         base_len and dir_len.  Put the directory-name-related decls
96601         into dirname.h.
96602
96603         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96604         * lib/backupfile.c (base_name): Likewise.
96605         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96606         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96607         * lib/makepath.c (strip_trailing_slashes): Likewise.
96608         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96609         ISSLASH): Likewise.
96610         * lib/rename.c (strip_trailing_slashes): Likewise.
96611         * lib/same.c (base_name): Likewise.
96612         * lib/stripslash.c (ISSLASH): Likewise.
96613
96614         * lib/addext.c: Include <dirname.h> after size_t is defined.
96615         * lib/backupfile.c: Likewise.
96616
96617         * lib/addext.c (addext): Use base_len to trim redundant
96618         trailing slashes instead of doing it ourselves.
96619         But do not trim the last slash if it is not redundant.
96620
96621         * lib/backupfile.c (find_backup_file_name,
96622         max_backup_version): Use base_len instead of rolling it ourselves.
96623         Handle the case of "" and (on DOS) "C:" correctly.
96624
96625         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96626         needed. Include <string.h>, <dirname.h>.
96627         (base_name): Allow file names ending in slashes, other than names
96628         that are all slashes.  In this case, return the basename followed
96629         by the slashes.  This is more general, and can be used in places
96630         where the original base_name purposely had an assertion failure.
96631         (base_len): New function.
96632
96633         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96634         Do not include <assert.h>; no longer needed.
96635         Include xalloc.h.
96636         (memrchr): Remove decl.
96637         (dir_name_r): Remove.
96638         (dir_len): Renamed from dirlen.  All callers changed.
96639         Rewrite in terms of base_name, for simplicity and consistency.
96640         (dir_name): Never return NULL.  All callers changed.
96641         Do not include <stdlib.h> in test program; no longer needed.
96642         return 0; is fine for test program.
96643
96644         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96645         New macros.
96646         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96647
96648         * lib/path-concat.c (path_concat): Use base_len to compute
96649         base length, not strlen; this means we cannot rely on memcpy
96650         to null-terminate.
96651
96652         * lib/same.c (STREQ): Remove.
96653         (same_name): Handle the case where the basename ends in trailing '/'.
96654
96655         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96656         a slash was stripped.  Do not strip the last slash after a
96657         file system prefix.
96658
96659 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96660
96661         * lib/Makefile.am (libfetish_a_SOURCES):
96662         Add strftime.c, since we now compile it on all hosts.
96663
96664         * lib/strftime.c (my_strftime):
96665         Define to nstrftime if emacs, but only if my_strftime is not defined.
96666         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96667         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96668         Add one more extra argument: a nanoseconds value.
96669         All uses changed.
96670         (ns): New macro.
96671         (my_strftime function): Add %N format.
96672         (emacs_strftimeu): Renamed from emacs_strftime,
96673         with extra ut argument.
96674
96675 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96676
96677         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96678
96679 2001-04-21  Jim Meyering  <meyering@lucent.com>
96680
96681         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96682         doesn't interfere.
96683
96684 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96685
96686         * m4/ftruncate.m4: Check for chsize.
96687         Link with ftruncate.o unconditionally if ftruncate is missing.
96688         This was required when cross-compiling to i586-mingw32msvc.
96689
96690 2001-04-08  Jim Meyering  <meyering@lucent.com>
96691
96692         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96693         recomputed; that's necessary when the offset spans a DST transition.
96694         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96695
96696 2001-04-02  Jim Meyering  <meyering@lucent.com>
96697
96698         * lib/regex.h, regex.c: Update from GNU libc.
96699
96700 2001-03-24  Jim Meyering  <meyering@lucent.com>
96701
96702         * m4/jm-macros.m4: Require autoconf-2.49d.
96703
96704 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96705
96706         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96707
96708 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96709
96710         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96711
96712 2001-03-17  Jim Meyering  <meyering@lucent.com>
96713
96714         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96715         now that the version in autoconf is equivalent.
96716         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96717
96718         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96719         Suggestion from Akim Demaille.
96720
96721         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96722         (jm_PREREQ_TEMPNAME): New function.
96723
96724 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96725
96726         * lib/tempname.c (uint64_t): Define to uintmax_t if
96727         not defined, and if UINT64_MAX is not defined.
96728         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96729         Reported by John David Anglin.
96730
96731 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96732
96733         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96734         resolve alias if codeset is empty.
96735         * lib/config.charset (BeOS): Use wildcard syntax.
96736
96737 2001-03-13  Jim Meyering  <meyering@lucent.com>
96738
96739         * lib/path-concat.c (path_concat)
96740         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96741         concatenating e.g., `C:' and `foo'.
96742         From Bruno Haible.
96743
96744 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96745
96746         * lib/localcharset.c (locale_charset): Don't use
96747         setlocale(LC_CTYPE,NULL). Don't return NULL.
96748         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96749
96750 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96751
96752         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96753         support for DOS/DJGPP.
96754
96755 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96756
96757         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96758         lacks mkstemp.  Compile our own tempname.c if we compile our own
96759         mkstemp.c, as mkstemp relies on tempname.
96760
96761 2001-03-01  Jim Meyering  <meyering@lucent.com>
96762
96763         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96764         AH_VERBATIM really does output its argument verbatim.
96765
96766 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96767
96768         * lib/Makefile.am (libfetish_a_SOURCES):
96769         Add dup-safer.c, fopen-safer.c.
96770         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96771
96772         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96773         * lib/unistd-safer.h: New files.
96774
96775 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96776
96777         The mkstemp replacement is taken from glibc 2.2.2, with some
96778         portability fixes for use outside glibc, as follows:
96779
96780         * lib/tempname.c (struct_stat64): New macro.
96781         (direxists, __gen_tempname): Use it.
96782         This avoids a portability problem with Solaris 8.
96783
96784         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96785         (<stddef.h>, <stdint.h>, <string.h>):
96786         Include only if STDC_HEADERS || _LIBC.
96787         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96788         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96789         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96790         (__set_errno): Define this macro if <errno.h> doesn't.
96791         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96792         Define these macros if <stdio.h> doesn't.
96793         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96794         Define these macros if <sys/stat.h>
96795         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96796         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96797         __xstat64): Define if not _LIBC.
96798         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96799         (__gen_tempname): Invoke gettimeofday only if
96800         HAVE_GETTIMEOFDAY || _LIBC;
96801         otherwise, fall back on plain "time".
96802         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96803
96804         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96805
96806         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96807
96808 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96809
96810         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96811
96812 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96813
96814         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96815         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96816         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96817         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96818
96819 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96820
96821         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96822         Remove workaround macros for hosts that have mbrtowc but not
96823         mbstate_t, as we now insist on proper declarations for both
96824         before using mbrtowc.
96825
96826 2001-02-17  Jim Meyering  <meyering@lucent.com>
96827
96828         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96829         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96830         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96831         UnixWare 7.1.1.
96832
96833         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96834         rather than AC_CACHE_VAL.
96835
96836 2001-02-17  Jim Meyering  <meyering@lucent.com>
96837
96838         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96839         around included file name.
96840
96841         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96842
96843         * lib/strftime.c: Update from GNU libc (the only changes were to
96844         comments).
96845
96846 2001-02-17  Jim Meyering  <meyering@lucent.com>
96847
96848         * lib/regex.c: Update from libc.
96849
96850 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96851
96852         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96853         clash.
96854
96855 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96856
96857         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96858         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96859         Reported by Mark Hounschell via Paul Eggert.
96860
96861 2001-02-07  Jim Meyering  <meyering@lucent.com>
96862
96863         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96864
96865 2001-02-05  Jim Meyering  <meyering@lucent.com>
96866
96867         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96868         it includes the patch required for `large file' support with at least
96869         HP-UX's 10.20 /bin/cc.
96870
96871 2001-02-03  Jim Meyering  <meyering@lucent.com>
96872
96873         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96874         AS_IF, now that it works once again (mysteriously).
96875         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96876
96877 2001-01-30  Jim Meyering  <meyering@lucent.com>
96878
96879         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96880         * m4/chown.m4: Rename conftestchown to conftest.chown.
96881         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96882         s/conftestdir2/conftest.d2/.
96883         * m4/utimes.m4: s/conftestdata/conftest.data/
96884         Inspired by Pavel Roskin's change in autoconf.
96885
96886 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96887
96888         * lib/config.charset: Update for FreeBSD 4.2.
96889
96890 2001-01-27  Jim Meyering  <meyering@lucent.com>
96891
96892         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96893         a use of AS_IF.
96894         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96895
96896 2001-01-26  Jim Meyering  <meyering@lucent.com>
96897
96898         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96899         quotearg.c includes it.
96900
96901 2001-01-26  Jim Meyering  <meyering@lucent.com>
96902
96903         * lib/quotearg.c: Include stddef.h.
96904         * lib/quote.c: Include stddef.h.
96905         Reported by Axel Kittenberger.
96906
96907         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96908         line in double quotes so that it evokes a better diagnostic.
96909         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96910         Reported by Axel Kittenberger.
96911
96912 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96913
96914         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96915         as if it was a `charset'.
96916
96917 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96918
96919         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96920         has const.
96921
96922 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96923
96924         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96925         to avoid a warning.  Add back 'const' to inptr.
96926
96927 2001-01-20  Jim Meyering  <meyering@lucent.com>
96928
96929         Be sure that headers are checked before used in code compiled
96930         for the type checks.
96931         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96932         In place of that, invoke jm_CHECK_ALL_TYPES.
96933         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96934         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96935         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96936         The check for ssize_t was mistakenly run before the test for unistd.h.
96937
96938         The configure-time check for stdbool.h was missing.
96939         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96940         (jm_PREREQ_HASH): New function.
96941
96942 2001-01-17  Jim Meyering  <meyering@lucent.com>
96943
96944         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96945         for autoconf-2.49c.
96946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96947
96948 2001-01-16  Jim Meyering  <meyering@lucent.com>
96949
96950         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96951         From Bruno Haible.
96952
96953 2001-01-14  Jim Meyering  <meyering@lucent.com>
96954
96955         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96956         foo and bar.  Create conftestdir/ in the script, not in the C code.
96957         Remove directories in the script, not in the C code.
96958         Remove conftestdir{,2} before trying to create the directory.
96959         Make the entire configure script fail if the mkdir fails.
96960
96961 2001-01-14  Jim Meyering  <meyering@lucent.com>
96962
96963         * lib/rename.c: New file.  From Volker Borchert.
96964         Include stdlib.h, string.h or strings.h, and xalloc.h.
96965         Use strip_trailing_slashes rather than open-coding it.
96966
96967 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96968
96969         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96970
96971 2001-01-03  Jim Meyering  <meyering@lucent.com>
96972
96973         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96974         of local `inptr' to avoid warning with some system declarations of
96975         iconv.
96976
96977 2001-01-02  Volker Borchert  <bt@teknon.de>
96978
96979         * m4/rename.m4: New file.
96980         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96981
96982 2001-01-01  Jim Meyering  <meyering@lucent.com>
96983
96984         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96985         even on systems with utmpx.h.  It's necessary for the declaration of
96986         utmp's ut_user member.  Reported by Andreas Jaeger.
96987
96988         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96989         available. They are required for the declarations of getgrgid and
96990         getpwuid resp.
96991         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96992         Reported by Andreas Jaeger.
96993
96994 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96995
96996         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96997         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96998         so `make install' also works in VPATH builds.
96999
97000 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97001
97002         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97003         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97004         can be used in subdirectories.
97005
97006 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97007
97008         * lib/modechange.c: Do not assume that mode_t uses the
97009         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97010         the other-execute bit of FOO even if S_IXOTH != 1.
97011
97012         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97013         WOTH, XOTH, ALLM): New macros.
97014         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97015          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97016         Use them.
97017         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97018         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97019         (mode_compile):
97020         No need to use uintmax_t; unsigned long is long enough.
97021         Don't bother to get suffix since we don't use it.
97022
97023 2000-12-26  Jim Meyering  <meyering@lucent.com>
97024
97025         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97026         better with autoheader.
97027
97028 2000-12-24  Jim Meyering  <meyering@lucent.com>
97029
97030         * lib/hash.c (is_prime): Return explicit boolean values.
97031         (hash_get_first): Return NULL to appease Irix5.6's 89.
97032         Reported by Nelson Beebe.
97033
97034 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97035
97036         * lib/localcharset.c (locale_charset): Add support for Win32.
97037
97038 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97039
97040         * lib/physmem.h, lib/physmem.c: New files.
97041
97042         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97043         (noinst_HEADERS): Add physmem.h.
97044
97045         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97046         't' for compatibility with Solaris 8 sort.
97047
97048 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97049
97050         * lib/config.charset: Add support for BeOS.
97051
97052 2000-12-17  Jim Meyering  <meyering@lucent.com>
97053
97054         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97055         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97056
97057 2000-12-16  Jim Meyering  <meyering@lucent.com>
97058
97059         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97060         N and M) would have treated it like `chown N:N FILE'.
97061
97062         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97063
97064 2000-12-16  Jim Meyering  <meyering@lucent.com>
97065
97066         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97067         SHELLS_FILE to a file name that's useful on djgpp systems.
97068         Include stdlib.h.
97069         (ADDITIONAL_DEFAULT_SHELLS): Define.
97070         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97071         Based mostly on a patch from Prashant TR.
97072
97073 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97074
97075         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97076         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97077         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97078
97079 2000-12-08  Andreas Schwab  <schwab@suse.de>
97080
97081         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97082         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97083
97084 2000-12-07  Jim Meyering  <meyering@lucent.com>
97085
97086         * lib/stripslash.c (ISSLASH): Define.
97087         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97088         `/'.
97089         From Prashant TR.
97090
97091         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97092         (dir_name_r): Declare this function as static.
97093         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97094         manifest itself on a name containing a mix of slashes and
97095         backslashes.
97096         Make this function work with names starting with a DOS-style
97097         drive letter and colon prefix.
97098         (dir_name): Append `.' if necessary.
97099         Based mostly on patches from Prashant TR and Eli Zaretskii.
97100
97101         * lib/dirname.h (dir_name_r): Remove prototype.
97102
97103 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97104
97105         * m4/off_t-format.m4: Remove this file.
97106         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97107
97108 2000-12-06  Jim Meyering  <meyering@lucent.com>
97109
97110         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97111         replacement strtoull, we may well need the replacement strtoul, too.
97112         Check for declarations of strtoul and strtoull.
97113         Check for strtol.  Mainly as a cue to cause automake to include
97114         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97115         Check for limits.h -- strtol.c needs it.
97116
97117 2000-12-05  Jim Meyering  <meyering@lucent.com>
97118
97119         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97120
97121 2000-12-04  Jim Meyering  <meyering@lucent.com>
97122
97123         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97124         Also include memory.h, stdlib.h, unistd.h if appropriate.
97125         Reported by Andreas Jaeger (conflicting declaration of malloc).
97126
97127 2000-12-02  Jim Meyering  <meyering@lucent.com>
97128
97129         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97130         * m4/jm-macros.m4 (jm_MACROS): require it.
97131
97132 2000-12-02  Jim Meyering  <meyering@lucent.com>
97133
97134         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97135
97136 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97137
97138         * lib/memrchr.c: Include <config.h> before any system include file.
97139
97140 2000-11-30  Jim Meyering  <meyering@lucent.com>
97141
97142         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97143
97144 2000-11-30  Jim Meyering  <meyering@lucent.com>
97145
97146         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97147
97148 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97149
97150         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97151
97152 2000-11-26  Jim Meyering  <meyering@lucent.com>
97153
97154         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97155
97156 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97157
97158         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97159         size of (size_t) -1; it's not portable.
97160
97161 2000-11-17  Jim Meyering  <meyering@lucent.com>
97162
97163         * lib/strstr.c: Update from GNU libc.
97164
97165 2000-11-17  Akim Demaille  <akim@epita.fr>
97166
97167         * lib/obstack.h: Formatting changes.
97168         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97169         prevent type checking.
97170         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97171         cast the value to (void *): assigning a `foo *' to a `void *'
97172         variable is valid.
97173         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97174
97175 2000-11-16  Jim Meyering  <meyering@lucent.com>
97176
97177         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97178
97179 2000-11-11  Jim Meyering  <meyering@lucent.com>
97180
97181         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97182
97183 2000-11-10  Jim Meyering  <meyering@lucent.com>
97184
97185         * lib/obstack.h: Update from GNU libc.
97186         * lib/obstack.c: Likewise.
97187
97188 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97189
97190         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97191
97192 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97193
97194         * lib/getusershell.c (setusershell): Use rewind rather than
97195         fseek/fseeko, to avoid configuration hassles with fseeko.
97196         Don't bother opening SHELLS_FILE if shellstream is NULL;
97197         it's not necessary.
97198
97199 2000-11-05  Jim Meyering  <meyering@lucent.com>
97200
97201         * lib/makepath.h (make_dir): Declare.
97202         * lib/makepath.c (make_dir): Remove `static' attribute.
97203         Tweak a comment.
97204
97205 2000-11-04  Jim Meyering  <meyering@lucent.com>
97206
97207         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97208
97209 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97210
97211         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97212         last one in a bucket, advance to the next bucket.
97213
97214 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97215
97216         * lib/fnmatch.c: Do not comment out all the code if we are using
97217         the GNU C library, because in some cases we are replacing buggy
97218         code in the GNU C library itself.
97219
97220 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97221
97222         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97223         (regex_compile): Catch bogus \(\1\).
97224
97225 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97226
97227         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97228         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97229         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97230
97231 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97232
97233         * lib/error.h, getline.h, modechange.h:
97234         Remove "2000" from Copyright line, as the file hasn't been
97235         changed this year other than in the copyright notice.
97236
97237         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97238         was changed this year.
97239
97240 2000-10-29  Jim Meyering  <meyering@lucent.com>
97241
97242         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97243         renaming.
97244         * m4/ls-mntd-fs.m4: Likewise
97245
97246 2000-10-29  Jim Meyering  <meyering@lucent.com>
97247
97248         * lib/xstat.in: Fix grammar in comment.
97249
97250 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97251
97252         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97253         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97254         doesn't define __restrict_arr.
97255
97256 2000-10-28  Jim Meyering  <meyering@lucent.com>
97257
97258         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97259         (jm_PREREQ_MEMCHR): New function.
97260
97261 2000-10-28  Jim Meyering  <meyering@lucent.com>
97262
97263         * lib/memchr.c: Update from libc.
97264         Adjust for portability:
97265         [HAVE_STDLIB_H]: Include stdlib.h.
97266         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97267         Undef __memchr, too.
97268         [!weak_alias]: Define __memchr to memchr.
97269
97270         * lib/regex.c: Update from libc.
97271         * lib/regex.h: Likewise.
97272         * lib/getopt1.c: Likewise.
97273         * lib/memcmp.c: Likewise.
97274
97275         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97276         Avoid using fseek, when possible -- it's broken by design.
97277         Patch by Ulrich Drepper.
97278
97279 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97280
97281         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97282         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97283         Giving in to popular pressure to shut up the compiler with casts.
97284
97285 2000-10-26  Jim Meyering  <meyering@lucent.com>
97286
97287         * lib/strftime.c: Update from libc.
97288
97289 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97290
97291         * regex.c: More `unsigned char' -> `re_char' changes.
97292         Also change several `int' into `re_wchar_t'.
97293         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97294         (PUSH_FAILURE_POINTER): Don't cast any more.
97295         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97296         We want GCC to complain, since this piece of code makes
97297         re_match non-reentrant, which *should* be fixed.
97298         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97299         (EXTEND_BUFFER): Use RETALLOC.
97300         (SET_LIST_BIT): Don't cast.
97301         (re_wchar_t): New type.
97302         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97303         that those two functions will always properly return.
97304         (IMMEDIATE_QUIT_CHECK): Cast to void.
97305         (analyse_first): Use recursion rather than an explicit stack.
97306         (re_compile_fastmap): Can't fail anymore.
97307         (re_search_2): Don't check re_compile_fastmap for failure.
97308         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97309         Now also sets the new value (passed in a new argument).
97310         (re_match_2_internal): Use it.
97311         Also, use a new var `reg' of type size_t when looping through regs
97312         rather than reuse the inappropriate `mcnt'.
97313
97314 2000-10-25  Jim Meyering  <meyering@lucent.com>
97315
97316         * lib/obstack.c: Update from libc.
97317
97318 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97319
97320         * regex.c (regex_compile): Change the way of handling a range from
97321         a char less than 256 to a char not less than 256.
97322
97323 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97324
97325         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97326         NT-Emacs only.
97327         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97328         so that re_search functions only quit when callers expect them to.
97329
97330 2000-10-23  Jim Meyering  <meyering@lucent.com>
97331
97332         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97333         wrong.  That set_locale call must not have any side effects.
97334         From Paul Eggert.
97335
97336 2000-10-22  Jim Meyering  <meyering@lucent.com>
97337
97338         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97339         [CYCLIC]: Remove now-unused definition.
97340
97341         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97342         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97343         Suggestion from Ulrich Drepper.
97344
97345 2000-10-21  Jim Meyering  <meyering@lucent.com>
97346
97347         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97348         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97349         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97350
97351 2000-10-21  Jim Meyering  <meyering@lucent.com>
97352
97353         * lib/dirname.c (memrchr): Declare if necessary.
97354         (dir_name): Remove the restriction that there be no
97355         trailing slashes.  Now, this code skips past them, effectively
97356         ignoring them.
97357         [TEST_DIRNAME] (main): New unit tests.
97358
97359         * lib/memrchr.c: New file from GNU libc.
97360         Undef __memrchr, too.
97361         [!weak_alias]: Define __memrchr to memrchr.
97362         Guard weak_alias use with `#ifdef weak_alias'.
97363
97364 2000-10-21  Jim Meyering  <meyering@lucent.com>
97365
97366         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97367         (dir_name): Use dir_name_r.
97368         * lib/dirname.h (dir_name_r): Declare it.
97369
97370 2000-10-17  Jim Meyering  <meyering@lucent.com>
97371
97372         * lib/quote.h (PARAMS): Define and use.
97373         Reported by Akim Demaille.
97374
97375         * lib/getopt.c: Update from libc.
97376
97377 2000-10-16  Jim Meyering  <meyering@lucent.com>
97378
97379         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97380         setlocale.
97381         From Jan Fedak.
97382
97383 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97384
97385         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97386
97387 2000-09-25  Jim Meyering  <meyering@lucent.com>
97388
97389         * lib/md5.h (rol): Define (from GnuPG).
97390
97391         * lib/sha.c: Give credit (GnuPG) where due.
97392         (M): Use rol rather than open-coding it.
97393         Add a FIXME comment.
97394
97395 2000-09-21  Jim Meyering  <meyering@lucent.com>
97396
97397         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97398         Reported by Michael Stone.
97399
97400 2000-09-20  Jim Meyering  <meyering@lucent.com>
97401
97402         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97403         (noinst_HEADERS): Add sha.h.
97404         Based on code from Scott G. Miller and from GnuPG.
97405
97406 2000-09-18  Jim Meyering  <meyering@lucent.com>
97407
97408         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97409         LIBS. Otherwise, everyone ends up linking with -lelf for some
97410         configurations.
97411         Reported by Mike Stone.
97412
97413 2000-09-15  Jim Meyering  <meyering@lucent.com>
97414
97415         * lib/regex.c: Update from libc.
97416
97417 2000-09-10  Jim Meyering  <meyering@lucent.com>
97418
97419         * lib/getopt.c (_getopt_internal): Update from glibc.
97420
97421 2000-09-09  Jim Meyering  <meyering@lucent.com>
97422
97423         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97424         think it should be used as a general replacement for isascii.
97425         * lib/fnmatch.c: Likewise.
97426         * lib/mbswidth.c: Likewise
97427         * lib/regex.c: Likewise.
97428
97429         Don't use atoi.
97430         * lib/userspec.c: Include sys/param.h and limits.h.
97431         Include xstrtol.h.
97432         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97433         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97434         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97435         UID, GID.  Check range.
97436
97437 2000-09-06  Jim Meyering  <meyering@lucent.com>
97438
97439         * lib/getopt.c (_getopt_internal): Update from glibc.
97440
97441 2000-08-30  Jim Meyering  <meyering@lucent.com>
97442
97443         * lib/strftime.c: Merge in changes from GNU libc.
97444
97445 2000-08-26  Jim Meyering  <meyering@lucent.com>
97446
97447         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97448         * m4/fpending.m4: New file.
97449
97450 2000-08-26  Jim Meyering  <meyering@lucent.com>
97451
97452         * lib/closeout.c: Include "__fpending.h".
97453         (close_stdout_status): Return right away if there's nothing to flush.
97454
97455         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97456         * lib/__fpending.c: New file.
97457         * lib/__fpending.h: New file.
97458
97459 2000-08-20  Jim Meyering  <meyering@lucent.com>
97460
97461         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97462         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97463         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97464
97465 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97466
97467         Improve fileutils installation on systems where running
97468         programs (like install) can't be unlinked.
97469         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97470         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97471
97472 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97473
97474         Standardize on "memory exhausted" instead of "Memory exhausted"
97475         or "virtual memory exhausted".
97476         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97477         "virtual memory exhausted".
97478         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97479         our own message.
97480         * lib/userspec.c (parse_user_spec): Likewise.
97481         * lib/bumpalloc.h: comment fix
97482         * lib/same.c, userspec.c: Include xalloc.h.
97483
97484         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97485         not char *const and pointing to a constant array.
97486         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97487         (xrealloc): Comment fix.
97488
97489         * lib/userspec.c (parse_user_spec):
97490         Don't translate a message until just before returning,
97491         to avoid unnecessary translation.
97492
97493 2000-08-07  Jim Meyering  <meyering@lucent.com>
97494
97495         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97496         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97497         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97498         getgroups.c, gethostname.c, getopt.h, group-member.c,
97499         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97500         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97501         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97502         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97503         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97504         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97505         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97506         yesno.c: Back out Copyright date changes for each file with no change
97507         this year.  This eases coordination with other programs using the same
97508         source code modules.  From Paul Eggert.
97509
97510 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97511
97512         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97513         not char, for compatibility with glibc 2.1.3 strftime.c.
97514
97515 2000-08-03  Greg McGary  <greg@mcgary.org>
97516
97517         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97518         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97519         (EXTEND_BUFFER): Use them.
97520
97521 2000-08-01  Jim Meyering  <meyering@lucent.com>
97522
97523         * lib/dirname.c (ISSLASH): Define.
97524         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97525         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97526         both `\' and `/' may be use as path separators.
97527         Based on a patch from Prashant TR.
97528
97529 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97530
97531         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97532         slot vector a constant, since it might get modified.
97533
97534 2000-07-31  Jim Meyering  <meyering@lucent.com>
97535
97536         * lib/xmalloc.c: Use `virtual memory exhausted', not
97537         `Memory exhausted'.
97538         * lib/obstack.c (print_and_abort): Likewise.
97539
97540 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97541
97542         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97543         buffer, so that the caller can always quote one small
97544         component of a "memory exhausted" message in slot 0.
97545         From a suggestion by Jim Meyering.
97546
97547 2000-07-30  Jim Meyering  <meyering@lucent.com>
97548
97549         * lib/makepath.c (make_path): Quote the other instance, too.
97550
97551         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97552         (STATIC_BUF_SIZE): Define.
97553         (quotearg_n_options): Use only statically allocated storage when
97554         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97555         than STATIC_BUF_SIZE.
97556
97557 2000-07-29  Jim Meyering  <meyering@lucent.com>
97558
97559         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97560         * lib/dirname.c (dir_name): Likewise.
97561
97562         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97563         `/'.
97564
97565         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97566         (dir_name): Assert that there are no trailing slashes.
97567
97568 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97569
97570         * lib/mbswidth.h (mbswidth): Add a flags argument.
97571         (mbswidth): New declaration.
97572         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97573         * lib/mbswidth.c (mbswidth): Add a flags argument.
97574         (mbsnwidth): New function.
97575
97576 2000-07-24  Jim Meyering  <meyering@lucent.com>
97577
97578         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97579
97580 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97581
97582         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97583
97584 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97585
97586         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97587         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97588         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97589         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97590         invoke multibyte primitives.
97591
97592 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97593
97594         * lib/quotearg.c:
97595         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97596         so that mbstate_t is always defined.
97597
97598         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97599         be 1 in at least one GCC installation, and this configuration
97600         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97601         performance on hosts that have mbrtowc but have only unibyte
97602         locales, but I assume these hosts are rare.
97603
97604 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97605
97606         * lib/mbswidth.c (_XOPEN_SOURCE):
97607         Don't define; this causes problems on Solaris 7.
97608         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97609
97610 2000-07-23  Jim Meyering  <meyering@lucent.com>
97611
97612         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97613         too: getgrgid, getpwuid, getuid.
97614
97615 2000-07-23  Jim Meyering  <meyering@lucent.com>
97616
97617         * lib/basename.c (base_name): Add an assertion.
97618
97619 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97620
97621         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97622         shadow its mbsinit function.
97623
97624 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97625
97626         * lib/mbswidth.h: New file.
97627         * lib/mbswidth.c: New file.
97628         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97629         (noinst_HEADERS): Add mbswidth.h.
97630
97631 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97632
97633         * lib/config.charset: Add support for FreeBSD. Improve support for
97634         HP-UX and IRIX 6.
97635
97636 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97637
97638         * m4/mbswidth.m4: New file.
97639         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97640
97641 2000-07-15  Jim Meyering  <meyering@lucent.com>
97642
97643         * lib/makepath.c: Include quote.h.
97644         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97645         corresponding argument in a `quote (...)' call.
97646         Give better diagnostics.
97647
97648         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97649         (noinst_HEADERS): Add quote.h.
97650
97651         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97652         from tar's src/misc.c.
97653         * lib/quote.h: New file.  Prototypes for same.
97654
97655 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97656
97657         From a suggestion by Bruno Haible.
97658         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97659         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97660         to decide whether to define the BeOS workaround macro;
97661         this adjusts to the change to AC_MBSTATE_T.
97662
97663 2000-07-14  Jim Meyering  <meyering@lucent.com>
97664
97665         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97666         jm_AC_TYPE_UINTMAX_T.
97667
97668 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97669
97670         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97671
97672         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97673         quotearg_buffer_restyled): Add support for
97674         clocale_quoting_style.  Undo previous change to
97675         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97676         and "{RIGHT QUOTATION MARK}" msgids.
97677
97678 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97679
97680         From a suggestion by Bruno Haible.
97681         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97682         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97683         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97684         and mbstate_t, to a single-part test that simply defines mbstate_t.
97685         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97686         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97687
97688 2000-07-10  Jim Meyering  <meyering@lucent.com>
97689
97690         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97691
97692         * m4/gnu-source.m4: Output to confdefs.h directly.
97693         Suggestion from Akim Demaille.
97694
97695 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97696
97697         The old behavior of quoting `like this' doesn't look good with
97698         newer, ISO-style fonts.  See:
97699         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97700
97701         Instead, quote "like this" by default.  Let the translator
97702         tailor the locale-specific quoting behavior by providing
97703         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97704
97705         * lib/quotearg.c (N_): New macro.
97706         (gettext_default): New function.
97707         (quotearg_buffer_restyled): Use
97708         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97709         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97710
97711 2000-07-09  Jim Meyering  <meyering@lucent.com>
97712
97713         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97714         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97715
97716         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97718
97719 2000-07-09  Jim Meyering  <meyering@lucent.com>
97720
97721         * lib/Most files: Update copyright dates to include 2000.
97722
97723 2000-07-08  Jim Meyering  <meyering@lucent.com>
97724
97725         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97726         if not defined.
97727         (xgethostname): Remove now-unnecessary #ifdef.
97728         Move declaration of `err' into loop where it's used.
97729
97730 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97731         and Bruno Haible  <haible@clisp.cons.org>
97732
97733         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97734         only if the test for an object-type mbstate_t fails.  This
97735         prevents us from mistakenly reporting that mbstate_t is a
97736         system object type after we "#define mbstate_t int" to work
97737         around its lack.
97738
97739 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97740         and Bruno Haible  <haible@clisp.cons.org>
97741
97742         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97743
97744 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97745
97746         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97747         to strerror_r.
97748         Include <ctype.h> for use of isalpha.
97749
97750 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97751
97752         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97753         by allocating a larger buffer. Test the gethostname return value for
97754         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97755         returns an error and ENAMETOOLONG isn't defined.
97756
97757 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97758
97759         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97760         dimension.
97761
97762 2000-07-04  Jim Meyering  <meyering@lucent.com>
97763
97764         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97765         of the deprecated AC_CHECKING.
97766
97767 2000-07-04  Jim Meyering  <meyering@lucent.com>
97768
97769         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97770         Reported by Bruno Haible.
97771
97772 2000-07-04  Jim Meyering  <meyering@lucent.com>
97773
97774         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97775         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97776         lacks mbrtowc.
97777
97778 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97779
97780         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97781         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97782
97783 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97784         and Bruno Haible  <haible@clisp.cons.org>
97785
97786         * lib/quotearg.c (mbrtowc):
97787         Assign to *pwc, and return 1 only if result is nonzero.
97788         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97789
97790 2000-07-03  Jim Meyering  <meyering@lucent.com>
97791
97792         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97793
97794 2000-07-03  Jim Meyering  <meyering@lucent.com>
97795
97796         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97797         This is necessary to get a definition of e.g., UTMP_FILE on
97798         HP-UX 10.20.
97799         From Bob Proulx.
97800
97801 2000-07-02  Jim Meyering  <meyering@lucent.com>
97802
97803         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97804
97805         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97806         AC_LIBOBJ(function_name).
97807         * m4/chown.m4: Likewise.
97808         * m4/fnmatch.m4: Likewise.
97809         * m4/ftruncate.m4: Likewise.
97810         * m4/getgroups.m4: Likewise.
97811         * m4/getline.m4: Likewise.
97812         * m4/group-member.m4: Likewise.
97813         * m4/jm-macros.m4: Likewise.
97814         * m4/lstat.m4: Likewise.
97815         * m4/malloc.m4: Likewise.
97816         * m4/memcmp.m4: Likewise.
97817         * m4/nanosleep.m4: Likewise.
97818         * m4/putenv.m4: Likewise.
97819         * m4/realloc.m4: Likewise.
97820         * m4/regex.m4: Likewise.
97821         * m4/stat.m4: Likewise.
97822         * m4/strftime.m4: Likewise.
97823
97824 2000-07-02  Jim Meyering  <meyering@lucent.com>
97825
97826         * lib/quotearg.c (mbstate_t): Don't define here.
97827
97828 2000-07-02  Jim Meyering  <meyering@lucent.com>
97829
97830         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97831
97832 2000-07-01  Jim Meyering  <meyering@lucent.com>
97833
97834         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97835
97836 2000-07-01  Jim Meyering  <meyering@lucent.com>
97837
97838         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97839         problem.
97840
97841 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97842
97843         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97844         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97845
97846 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97847
97848         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97849         per change in ../m4/ls-mntd-fs.m4.
97850         (read_filesystem_list): Ignore symbolic links.
97851
97852 2000-06-29  Jim Meyering  <meyering@lucent.com>
97853
97854         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97855         for declaration of strcmp.
97856
97857         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97858
97859         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97860         Avoid warning by casting result to `char *' to remove `const'.
97861
97862 2000-06-28  Jim Meyering  <meyering@lucent.com>
97863
97864         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97865         included by quotearg.c, for which we perform this test.  From
97866         Bruno Haible.
97867
97868 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97869
97870         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97871         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97872         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97873
97874 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97875
97876         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97877
97878 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97879
97880         savedir now sets errno on failure and invokes xmalloc to get memory.
97881         Fix a couple of other minor bugs while we're at it.
97882
97883         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97884         (NAMLEN): Remove macro.
97885         (malloc, realloc): Remove decls.
97886         (stpcpy): Likewise.
97887         ("xalloc.h"): Include.
97888         (NAME_SIZE_DEFAULT): New macro.
97889         (savedir): Use xmalloc / xrealloc to allocate memory.
97890         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97891         Skip "" directory entries.
97892         Use strlen to calculate directory entry length, since the old method
97893         is rarely used these days and isn't worth supporting.
97894         Don't use a pointer after freeing it.
97895         Check for integer overflow when calculating allocation size.
97896         Use memcpy to copy entries, instead of stpcpy.
97897         Set errno properly when returning NULL.
97898         Check for readdir error.
97899
97900 2000-06-26  Jim Meyering  <meyering@lucent.com>
97901
97902         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97903
97904 2000-06-25  Jim Meyering  <meyering@lucent.com>
97905
97906         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97907         Linux header bug when _XOPEN_SOURCE is defined to 500.
97908
97909 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97910
97911         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97912         deficiency.
97913
97914 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97915
97916         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97917         Include xalloc.h.
97918         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97919
97920 2000-06-24  Jim Meyering  <meyering@lucent.com>
97921
97922         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97923         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97924         for which strerror does return char*, but which lacks a conveniently
97925         accessible declaration of the function.  If the compile-test says
97926         strerror_r doesn't work, then resort to a `run'-test that works on
97927         BeOS and segfaults on DEC Unix.
97928
97929 2000-06-24  Jim Meyering  <meyering@lucent.com>
97930
97931         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97932
97933 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97934
97935         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97936         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97937
97938 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97939
97940         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97941         (mbrtowc, mbstate_t): Define substitutes if
97942         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97943         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97944         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97945
97946 2000-06-23  Jim Meyering  <meyering@lucent.com>
97947
97948         * m4/afs.m4: Add missing AC_MSG_RESULT.
97949         Reported by Bruno Haible.
97950
97951         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97952         Suggestion from Bruno Haible.
97953
97954 2000-06-23  Jim Meyering  <meyering@lucent.com>
97955
97956         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97957
97958 2000-06-21  Jim Meyering  <meyering@lucent.com>
97959
97960         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97961
97962 2000-06-21  Jim Meyering  <meyering@lucent.com>
97963
97964         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97965         (noinst_HEADERS): Add getstr.h.
97966
97967         * lib/getline.c (getstr): Move into a separate file.
97968         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97969         the following changes: new parameter, delim2; both delim[12]
97970         parameters have type `int', not `char'.  The latter would lose
97971         with 8-bit delimiters.
97972         * lib/getstr.h: New file.
97973
97974 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97975
97976         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97977         than 1024, return a memory chunk of least possible size, instead
97978         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97979         Use free/xmalloc instead of xrealloc to avoid copying for very long
97980         paths.
97981
97982 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97983
97984         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97985         the empty string.
97986
97987 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97988
97989         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97990         address, not strdup.  Include <stdlib.h> and don't declare free().
97991
97992 2000-06-19  Jim Meyering  <meyering@lucent.com>
97993
97994         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97995
97996 2000-06-18  Jim Meyering  <meyering@lucent.com>
97997
97998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97999
98000         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98001         `checking whether...' message to be consistent with that of the
98002         lstat test.
98003
98004 2000-06-18  Jim Meyering  <meyering@lucent.com>
98005
98006         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98007         Besides, these days every porting target provides a mkdir function.
98008
98009         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98010         needed. (this snippet comes from src/system.h).
98011
98012 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98013
98014         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98015
98016 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98017
98018         * lib/human.c (adjust_value): New function.
98019         (human_readable_inexact): Apply rounding style even when
98020         printing approximate values.
98021
98022 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98023
98024         * lib/human.c (human_readable_inexact): Allow an input block
98025         size that is not a multiple of the output block size, and vice versa.
98026         Reported by Piergiorgio Sartor.
98027
98028 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98029
98030         * lib/getdate.y (get_date): Apply relative times after time
98031         zone indicator, not before.  Reported by Todd A. Jacobs.
98032
98033 2000-06-13  Jim Meyering  <meyering@lucent.com>
98034
98035         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98036
98037         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98038
98039 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98040
98041         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98042
98043 2000-06-12  Jim Meyering  <meyering@lucent.com>
98044
98045         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98046         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98047         optional argument.
98048         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98049         the optional argument, `lib'.
98050
98051 2000-06-08  Jim Meyering  <meyering@lucent.com>
98052
98053         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98054
98055 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98056
98057         Rewrite largefile configuration so that we don't need to run
98058         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98059         AC_CANONICAL_HOST in configure.in -- jmm]
98060
98061         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98062         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98063         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98064         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98065         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98066         All uses changed.
98067         Instead of inspecting the output of getconf, try to compile the
98068         test program without and with the macro definition.
98069         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98070         for getconf.  Instead, check for the needed flags by compiling
98071         test programs.
98072
98073 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98074
98075         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98076
98077 2000-06-04  Jim Meyering  <meyering@lucent.com>
98078
98079         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98080         SunOS 4.1.4 for which gid_t is an unsigned type.
98081
98082 2000-06-03  Jim Meyering  <meyering@lucent.com>
98083
98084         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98085         now that autoconf requires that.
98086
98087         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98088         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98089         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98090
98091 2000-06-03  Jim Meyering  <meyering@lucent.com>
98092
98093         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98094
98095 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98096
98097         * m4/glibc21.m4: New file.
98098         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98099
98100 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98101
98102         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98103         newer, don't install charset.alias.
98104         * lib/config.charset: Change the Linux/glibc rules so they become empty
98105         on glibc-2.1 or newer.
98106
98107 2000-06-02  Jim Meyering  <meyering@lucent.com>
98108
98109         * lib/mountlist.c: Back out last change.  Instead, do this...
98110         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98111         me_dummy member using the same `ignore'-testing code.
98112         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98113         fs_type strings.
98114         From Mark D. Roth.
98115
98116 2000-05-29  Jim Meyering  <meyering@lucent.com>
98117
98118         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98119         mounts with the `ignore' attribute.  Based on a patch from
98120         Mark D. Roth.
98121
98122 2000-05-28  Jim Meyering  <meyering@lucent.com>
98123
98124         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98125         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98126         * m4/stat.m4: Likewise.
98127         * m4/lstat.m4: Likewise.
98128         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98129
98130         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98131         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98132
98133 2000-05-26  Jim Meyering  <meyering@lucent.com>
98134
98135         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98136
98137 2000-05-24  Jim Meyering  <meyering@lucent.com>
98138
98139         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98140         autoconf requires that.
98141         * m4/lib-check.m4: Likewise.
98142         * m4/jm-macros.m4: Likewise.
98143         * m4/strftime.m4: Likewise.
98144
98145         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98146         AC_CHECK_DECLS, now that autoconf requires that.
98147
98148 2000-05-22  Jim Meyering  <meyering@lucent.com>
98149
98150         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98151         * m4/lstat.m4: Likewise.
98152
98153 2000-05-22  Jim Meyering  <meyering@lucent.com>
98154
98155         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98156
98157 2000-05-20  Jim Meyering  <meyering@lucent.com>
98158
98159         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98160         (jm_PREREQ): Use it.
98161
98162 2000-05-18  Jim Meyering  <meyering@lucent.com>
98163
98164         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98165         back, too, since it may have been modified by allocate_entry.
98166         (hash_delete): Rewrite to use neither the assignment operator
98167         nor the comma operator in an if-expression.
98168
98169 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98170
98171         * lib/closeout.c:
98172         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98173         Remove; no longer needed.
98174         "quotearg.h": Add include.
98175         (file_name): Do not bother to explicitly initialize to NULL; it's less
98176         efficient on some hosts.
98177         (close_stdout_status): Remove test as to whether stdout was already
98178         closed; it breaks for the case "echo x | sort >&-".
98179         Quote file name colons.
98180         Do not assume that _("write error") lacks format strings.
98181
98182 2000-05-15  Jim Meyering  <meyering@lucent.com>
98183
98184         * lib/version-etc.c (version_etc_copyright): Update the copyright
98185         string used in all --version output.
98186
98187 2000-05-14  Jim Meyering  <meyering@lucent.com>
98188
98189         * lib/closeout.c (close_stdout_set_file_name): New function.
98190         (close_stdout_status): Use new file-scoped global.
98191         Return right away if fstat says the stdout file descriptor is invalid.
98192         * lib/closeout.h (close_stdout_set_file_name): Declare.
98193
98194 2000-05-10  Jim Meyering  <meyering@lucent.com>
98195
98196         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98197         (close_stdout_set_status): New function.
98198         * lib/closeout.h (close_stdout_set_status): Declare.
98199
98200 2000-05-09  Jim Meyering  <meyering@lucent.com>
98201
98202         * m4/gettext.m4: Rename this...
98203         * m4/libintl.m4: ...to this.
98204
98205 2000-05-08  Jim Meyering  <meyering@lucent.com>
98206
98207         * lib/long-options.c: Don't include closeout.h.
98208         (parse_long_options): Don't call close_stdout for --version.
98209
98210 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98211
98212         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98213         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98214         2.1.3 bug.  This avoids a clash when files like regex.c define
98215         _GNU_SOURCE.
98216
98217 2000-05-06  Jim Meyering  <meyering@lucent.com>
98218
98219         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98220         (AC_REPLACE_FUNCS): Add strnlen.
98221
98222         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98223         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98224
98225         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98226         AC_SEARCH_LIBS call for nanosleep.
98227         (LIB_NANOSLEEP): Set and AC_SUBST.
98228
98229 2000-05-06  Jim Meyering  <meyering@lucent.com>
98230
98231         * lib/strnlen.c: Undefine __strnlen and strnlen.
98232         [!weak_alias]: Define __strnlen to strnlen.
98233
98234         * lib/atexit.c: New file, from libiberty.
98235
98236 2000-05-06  Jim Meyering  <meyering@lucent.com>
98237
98238         * lib/closeout.c (close_stdout_status): Also check for errors on the
98239         stderr stream.
98240
98241 2000-05-05  Jim Meyering  <meyering@lucent.com>
98242
98243         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98244         AC_SEARCH_LIBS call for clock_gettime.
98245         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98246
98247         * m4/search-libs.m4: Update from autoconf.
98248
98249         su doesn't work on Solaris 2.6.
98250         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98251         <shadow.h>.  Reported by Dragos Harabor.
98252
98253 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98254
98255         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98256         memcpy instead of xmalloc, xrealloc, path_concat.
98257         (locale_charset): Treat empty environment variables as absent.
98258         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98259
98260 2000-05-04  Jim Meyering  <meyering@lucent.com>
98261
98262         * lib/getopt.c: Update from glibc.
98263         * lib/obstack.c: Likewise.
98264         * lib/obstack.h: Likewise.
98265         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98266         file
98267
98268         * lib/regex.h: Likewise.
98269         * lib/strndup.c: Likewise.
98270         * lib/strnlen.c: New file, from glibc.
98271
98272 2000-05-03  Jim Meyering  <meyering@lucent.com>
98273
98274         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98275
98276 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98277
98278         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98279         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98280         compile-time test, rather than inspecting host and OS, to
98281         decide whether to define _LARGEFILE_SOURCE.
98282
98283 2000-05-01  Jim Meyering  <meyering@lucent.com>
98284
98285         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98286
98287         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98288         Based on a patch from Bruno Haible.
98289
98290 2000-05-01  Jim Meyering  <meyering@lucent.com>
98291
98292         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98293
98294 2000-04-29  Jim Meyering  <meyering@lucent.com>
98295
98296         * lib/path-concat.c: Declare strdup only if it's not defined.
98297         * lib/canon-host.c: Likewise.
98298
98299 2000-04-28  Jim Meyering  <meyering@lucent.com>
98300
98301         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98302         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98303         is included first, then limits.h is included by locale.h by libintl.h.
98304         From John David Anglin.
98305
98306 2000-04-25  Jim Meyering  <meyering@lucent.com>
98307
98308         * lib/makepath.c (S_IRWXUGO): Define.
98309         (make_path): Always perform explicit chmod if MODE specifies any
98310         of the `special' permission bits.  Prompted by a bug report against
98311         install from Mate Wierdl and Joost van Baal.
98312
98313 2000-04-18  Jim Meyering  <meyering@lucent.com>
98314
98315         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98316         (jm_PREREQ): Use it.
98317
98318 2000-04-18  Jim Meyering  <meyering@lucent.com>
98319
98320         * lib/README: New file.
98321
98322         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98323         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98324
98325 2000-04-17  Jim Meyering  <meyering@lucent.com>
98326
98327         Get it right :-)
98328         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98329         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98330         Suggestion from Akim Demaille.
98331
98332 2000-04-17  Jim Meyering  <meyering@lucent.com>
98333
98334         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98335         the definition of it to rpl_strftime also defined-away the system's
98336         declaration.
98337
98338 2000-04-15  Jim Meyering  <meyering@lucent.com>
98339
98340         Use `C' to denote so-called `contiguous' files, the same way
98341         that tar does.
98342         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98343         (ftypelet): Use S_ISCTG.
98344         From Michael Deutschmann.
98345
98346 2000-04-14  Jim Meyering  <meyering@lucent.com>
98347
98348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98349         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98350         clobbered.
98351
98352 2000-04-14  Jim Meyering  <meyering@lucent.com>
98353
98354         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98355
98356 2000-04-13  Jim Meyering  <meyering@lucent.com>
98357
98358         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98359         AH_VERBATIM to insert required #ifndef into config.h.in.
98360         Suggestion from Akim Demaille.
98361
98362 2000-04-12  Jim Meyering  <meyering@lucent.com>
98363
98364         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98365         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98366         Christian Krackowizer.
98367
98368         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98369         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98370         (AC_SYS_LARGEFILE): Require.
98371         (AM_C_PROTOTYPES): Require.
98372
98373 2000-04-08  Jim Meyering  <meyering@lucent.com>
98374
98375         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98376         names don't conflict.  Reported by Eli Zaretskii.
98377
98378 2000-04-07  Jim Meyering  <meyering@lucent.com>
98379
98380         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98381         sys/types.h, to work around system header problems on AIX 3.2.5.
98382         From Bruno Haible.
98383
98384 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98385
98386         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98387         bug.  Deal with the different error behavior of Irix iconv.
98388
98389 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98390
98391         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98392         IRIX if the installer said otherwise.
98393
98394 2000-04-05  Jim Meyering  <meyering@lucent.com>
98395
98396         Portability tweaks required for ultrix4.3.
98397         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98398         (jm_CHECK_DECLS): Add getutent to the list of functions.
98399         (_jm_DECL_HEADERS): Add utmpx.h.
98400         From John David Anglin.
98401
98402         * m4/strftime.m4: Back out the 2000-04-02 change.
98403         Instead of that change, simply undefine putenv in the test program.
98404
98405 2000-04-05  Jim Meyering  <meyering@lucent.com>
98406
98407         Portability tweaks required for ultrix4.3.
98408         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98409         getutent.
98410         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98411         * lib/canon-host.c: Declare strdup.
98412         * lib/path-concat.c: Likewise.
98413         From John David Anglin.
98414
98415 2000-04-04  Jim Meyering  <meyering@lucent.com>
98416
98417         Be more DOS 8.3-friendly.
98418         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98419         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98420         * lib/Makefile.am: Reflect renaming.
98421         Reported by Eli Zaretskii.
98422
98423         Use a temporary file name that won't clash with `charset.alias'
98424         in the DOS 8.3 name space.
98425         * lib/Makefile.am (charset_tmp): Define.
98426         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98427         (uninstall-local): Likewise.
98428         Reported by Eli Zaretskii.
98429
98430 2000-04-03  Jim Meyering  <meyering@lucent.com>
98431
98432         * m4/gettext.m4: Fix typo in comment.
98433
98434         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98435         textutils/configure.in).  Suggestion from Paul Eggert.
98436         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98437
98438 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98439
98440         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98441         variable in the shell rather than using putenv, which isn't
98442         portable.  This avoids the configure-time inter-test dependency
98443         on the potentially-renamed putenv function.
98444
98445 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98446
98447         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98448         before checking struct stat.st_blksize, so that
98449         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98450
98451 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98452
98453         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98454         since strftime.c uses HAVE_STRFTIME to decide whether to use
98455         the underlying strftime.
98456
98457 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98458
98459         * lib/time/strftime.c (my_strftime): Make sure we call the system
98460         strftime, not ourselves, when invoking the underlying strftime.
98461
98462 2000-03-24  Jim Meyering  <meyering@lucent.com>
98463
98464         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98465         (charset_alias): Define.
98466         (install-exec-local): Factor out common code.
98467         (uninstall-local): Split lines longer than 80.
98468         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98469         (SUFFIXES): Define.
98470         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98471         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98472
98473 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98474
98475         * lib/config.charset: Output a line containing "Packages using this
98476         file".
98477         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98478         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98479         ref-del.sed): New rules.
98480
98481 2000-03-17  Jim Meyering  <meyering@lucent.com>
98482
98483         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98484         Otherwise, include <strings.h>
98485
98486 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98487
98488         * lib/unicodeio.c (utf8_wctomb): New function.
98489         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98490         format instead of in UCS-4 with platform dependent endianness.
98491
98492 2000-03-10  Jim Meyering  <meyering@lucent.com>
98493
98494         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98495         From Marco Franzen.
98496
98497 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98498
98499         * lib/savedir.c (savedir): Work even if directory size is
98500         negative; this can happen with some screwy NFS configurations.
98501
98502 2000-03-06  Jim Meyering  <meyering@lucent.com>
98503
98504         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98505         if it's NULL (because we ran out of memory).  From Bruno Haible.
98506
98507 2000-03-05  Jim Meyering  <meyering@lucent.com>
98508
98509         * lib/localcharset.c ("path-concat.h"): Include.
98510         (get_charset_aliases): Use path_concat instead of ANSI string
98511         concatenation.
98512
98513         * lib/unicodeio.h (PARAMS): Define.
98514         Use it to guard prototype.
98515
98516 2000-03-04  Jim Meyering  <meyering@lucent.com>
98517
98518         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98519         for lib/localcharset.c.
98520
98521 2000-03-04  Jim Meyering  <meyering@lucent.com>
98522
98523         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98524         installing into it.
98525         (uninstall-local): Uncomment this rule so `make distcheck' works
98526         once again.
98527
98528         * lib/unicodeio.c (<errno.h>): Include it.
98529         (errno): Declare if not defined.
98530
98531         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98532
98533         * lib/config.charset: New version, incorporating remarks from a linux
98534         i18n mailing list.  From Bruno Haible.
98535
98536 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98537
98538         * m4/codeset.m4: New file.
98539         * m4/iconv.m4: New file.
98540         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98541
98542 2000-03-03  Jim Meyering  <meyering@lucent.com>
98543
98544         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98545
98546 2000-03-02  Jim Meyering  <meyering@lucent.com>
98547
98548         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98549         the messages come out on separate lines.
98550
98551         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98552         rather than jm_CHECK_DECLARATIONS.
98553         * m4/decl.m4: Remove now-unused file.
98554
98555         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98556         geteuid.
98557
98558 2000-03-02  Jim Meyering  <meyering@lucent.com>
98559
98560         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98561
98562 2000-03-01  Jim Meyering  <meyering@lucent.com>
98563
98564         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98565         * lib/unicodeio.c: Likewise.
98566
98567 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98568
98569         * lib/config.charset: New file.
98570         * lib/localcharset.c: New file.
98571         * lib/unicodeio.h, lib/unicodeio.c: New files.
98572         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98573         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98574         (noinst_HEADERS): Add unicodeio.h.
98575         (all-local, install-exec-local, charset.alias): New targets.
98576
98577 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98578
98579         * lib/quotearg.c (ALERT_CHAR): New macro.
98580         (quotearg_buffer_restyled): Use it.
98581
98582 2000-02-27  Jim Meyering  <meyering@lucent.com>
98583
98584         * m4/check-decl.m4: Add getenv to the list.
98585
98586 2000-02-27  Jim Meyering  <meyering@lucent.com>
98587
98588         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98589         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98590
98591         * lib/backupfile.c: Guard inclusion of stdlib.h with
98592         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98593         Declare malloc if needed.
98594
98595         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98596         `#ifndef HAVE_DECL..'
98597         now that autoconf always defines the HAVE_DECL_ symbols.
98598         * lib/human.c: Likewise.
98599         * lib/same.c: Likewise.
98600         * lib/strtoumax.c: Likewise.
98601
98602         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98603         declaration check was not run.
98604         * lib/hash.c: Likewise.
98605         * lib/human.c: Likewise.
98606         * lib/same.c: Likewise.
98607         * lib/strtoumax.c: Likewise.
98608
98609         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98610         `.', then first look up the entire `.'-containing string as a login
98611         name.
98612
98613 2000-02-23  Jim Meyering  <meyering@lucent.com>
98614
98615         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98616         in place of my hack.
98617
98618 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98619
98620         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98621         (textint): New typedef.
98622         (parser_control): Member year changed from int to textint.
98623         All uses changed.
98624         (YYSTYPE): Removed; replaced by %union with int and textint members.
98625         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98626         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98627         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98628         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98629         (date, number, to_year): Use width of number in digits, not its value,
98630         to determine whether it's a 2-digit year, or a 2-digit time.
98631         (yylex): Store number of digits of numeric tokens.
98632         Reported by John Kendall.
98633
98634         (parser_control): Changed from struct parser_control to typedef (for
98635         consistency).  All uses changed.
98636
98637         (tID): Removed; not used.
98638         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98639
98640 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98641
98642         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98643         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98644
98645 2000-02-12  Jim Meyering  <meyering@lucent.com>
98646
98647         * lib/userspec.c (ISDIGIT): Define it.
98648         (isdigit): Remove definition.
98649         (is_number): Use ISDIGIT, not isdigit.
98650         <libintl.h>: Include.
98651         (_ and N_): Define.
98652         (parse_user_spec): Mark translatable strings.
98653
98654 2000-02-10  Jim Meyering  <meyering@lucent.com>
98655
98656         With these changes, nanosleep.[ch] are finally enough like the other
98657         lib/* replacement files to compile on a few more losing systems.
98658
98659         * lib/nanosleep.h: Don't include config.h.
98660         Remove prototype from declaration of nanosleep.
98661         (PARAMS): Remove now-unneeded definition.
98662         * lib/nanosleep.c: #undef nanosleep.
98663         (rpl_nanosleep): Rename from nanosleep.
98664
98665 2000-02-10  Jim Meyering  <meyering@lucent.com>
98666
98667         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98668         gnu_nanosleep to rpl_nanosleep.
98669
98670 2000-02-09  Jim Meyering  <meyering@lucent.com>
98671
98672         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98673         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98674
98675 2000-02-08  Akim Demaille  <akim@epita.fr>
98676
98677         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98678         `[' and `]' and remove uses of `changequote'.
98679         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98680         (AC_SYS_LARGEFILE): Likewise.
98681         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98682         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98683         of changequote.
98684         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98685         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98686         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98687         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98688
98689 2000-02-05  Jim Meyering  <meyering@lucent.com>
98690
98691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98692         Remove explicit use of AC_HEADER_TIME.  It is required by
98693         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98694         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98695         in autoconf whereby the expansion of the latter ended up preceding
98696         the expansion of its prerequisite, AC_HEADER_TIME.
98697         Reported by Volker Borchert.
98698
98699 2000-02-03  Jim Meyering  <meyering@lucent.com>
98700
98701         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98702
98703 2000-02-03  Jim Meyering  <meyering@lucent.com>
98704
98705         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98706         rather than with `#if HAVE_UTMPNAME'.
98707
98708 2000-02-02  Jim Meyering  <meyering@lucent.com>
98709
98710         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98711         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98712         Reported by Eli Zaretskii.
98713
98714 2000-02-01  Jim Meyering  <meyering@lucent.com>
98715
98716         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98717
98718 2000-01-31  Jim Meyering  <meyering@lucent.com>
98719
98720         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98721         functions.  Add the time.h and sys/time.h headers along with the
98722         AC_REQUIRE'ment of AC_HEADER_TIME.
98723
98724 2000-01-31  Jim Meyering  <meyering@lucent.com>
98725
98726         * lib/nanosleep.h (nanosleep): Guard declaration with
98727         `#if ! HAVE_DECL_NANOSLEEP'.
98728         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98729         the declaration in that vendor's sys/timers.h.
98730         Reported by Christian Krackowizer.
98731
98732         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98733         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98734         (ISPRINT): Likewise.
98735         Reported by Tom Tromey.
98736
98737 2000-01-30  Jim Meyering  <meyering@lucent.com>
98738
98739         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98740
98741         * m4/prereq.m4 (utmp_includes): Define.
98742         Check for ut_user and ut_name members in both struct utmpx
98743         and struct utmp.
98744
98745 2000-01-30  Jim Meyering  <meyering@lucent.com>
98746
98747         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98748         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98749         header files where only utmpx.ut_user is declared.
98750
98751         * lib/readutmp.h (UT_USER): Define.
98752
98753 2000-01-29  Jim Meyering  <meyering@lucent.com>
98754
98755         * m4/lib-check.m4: New file containing library-related checks from
98756         fileutils and sh-utils (textutils had none).
98757
98758 2000-01-28  Jim Meyering  <meyering@lucent.com>
98759
98760         * m4/perl.m4: Change format of warning message to look more like that
98761         from the missing script.  Suggestion from François Pinard.
98762
98763 2000-01-25  Jim Meyering  <meyering@lucent.com>
98764
98765         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98766         well as time.h in the compile check.
98767         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98768         Fix typo in cross-compiling case: s/yes/no/.
98769
98770 2000-01-23  Jim Meyering  <meyering@lucent.com>
98771
98772         * m4/jm-macros.m4: Move df-related tests here from
98773         fileutils/configure.in
98774
98775         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98776         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98777
98778         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98779         s/space/ac_fsusage_space/.
98780         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98781
98782         * m4/ftruncate.m4: New file (derived from part of
98783         fileutils/configure.in).
98784         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98785         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98786
98787         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98788         AC_SUBST these here, rather than just in sh-util/configure.in, so
98789         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98790         all the same.
98791         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98792         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98793         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98794         (AC_SUBST(POW_LIBM)): Likewise.
98795         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98796
98797 2000-01-23  Jim Meyering  <meyering@lucent.com>
98798
98799         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98800         obstack.c.
98801
98802 2000-01-22  Jim Meyering  <meyering@lucent.com>
98803
98804         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98805
98806         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98807
98808         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98809         configure.in
98810         (AC_CHECK_HEADERS): Likewise for sh-utils.
98811         (AC_CHECK_HEADERS): Likewise for textutils.
98812         Merge the three lists of headers.
98813
98814         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98815         from fileutils' configure.in.
98816
98817         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98818         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98819         check-decl.m4.
98820
98821         * m4/check-decl.m4: Use #if rather than #ifdef.
98822         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98823         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98824         (_jm_DECL_HEADERS): Define new function.
98825         (jm_CHECK_DECLARATIONS): Require it.
98826
98827 2000-01-22  Jim Meyering  <meyering@lucent.com>
98828
98829         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98830         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98831         Required for some AIX systems.  Reported by Christian Krackowizer.
98832         [TESTING] (main): New function.
98833
98834         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98835         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98836         letters.
98837
98838         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98839         iswprint.
98840
98841         * lib/strverscmp.c (ISDIGIT): Define.
98842         (strverscmp): Use ISDIGIT, not isdigit.
98843
98844 2000-01-19  Jim Meyering  <meyering@lucent.com>
98845
98846         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98847         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98848         defines `struct timespec' in <sys/time.h>
98849
98850         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98851         Thanks to Akim for explaining.
98852
98853 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98854
98855         * lib/nanosleep.c (nanosleep):
98856         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98857         POSIX.1 doesn't require SA_INTERRUPT and some systems
98858         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98859         it's been part of POSIX.1 since day 1 (in 1988).
98860
98861 2000-01-17  Jim Meyering  <meyering@lucent.com>
98862
98863         * lib/interlock: Remove unused file.  Reported by François Pinard.
98864
98865 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98866
98867         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98868         alert, backslash, formfeed, and vertical tab unnecessarily in
98869         shell quoting style.
98870
98871 2000-01-16  Jim Meyering  <meyering@lucent.com>
98872
98873         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98874         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98875         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98876         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98877
98878 2000-01-16  Jim Meyering  <meyering@lucent.com>
98879
98880         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98881         because the latter didn't work.
98882
98883 2000-01-15  Jim Meyering  <meyering@lucent.com>
98884
98885         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98886         (AC_REPLACE_FUNCS): Add memcpy and memset.
98887         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98888         Add strpbrk.
98889         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98890
98891 2000-01-12  Jim Meyering  <meyering@lucent.com>
98892
98893         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98894         (jm_PREREQ): Use it.
98895         (jm_PREREQ_READUTMP): New macro.
98896         (jm_PREREQ): Use it.
98897
98898 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98899
98900         Quote multibyte characters correctly.
98901         * m4/c-bs-a.m4: New file.
98902         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98903         (jm_PREREQ): Use it.
98904
98905 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98906
98907         * m4/uintmax_t.m4: Port to autoconf 2.13.
98908
98909 2000-01-08  Jim Meyering  <meyering@ascend.com>
98910
98911         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98912         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98913
98914 2000-01-04  Jim Meyering  <meyering@ascend.com>
98915
98916         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98917         jm_STRUCT_DIRENT_D_TYPE.
98918         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98919         jm_STRUCT_DIRENT_D_INO.
98920         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98921         jm_STRUCT_UTIMBUF.
98922         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98923         renamings.
98924         * m4/utime.m4: Likewise.
98925
98926         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98927         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98928
98929 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98930
98931         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98932         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98933
98934 2000-01-02  Jim Meyering  <meyering@ascend.com>
98935
98936         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98937         remember if this is necessary.
98938
98939 1999-12-26  Jim Meyering  <meyering@ascend.com>
98940
98941         * m4/jm-macros.m4: Use it here.
98942         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98943
98944 1999-12-23  Jim Meyering  <meyering@ascend.com>
98945
98946         * m4/jm-macros.m4: Check for clock_gettime (moved from
98947         fileutils/configure.in)
98948         Check for gettimeofday.
98949
98950 1999-12-20  Jim Meyering  <meyering@ascend.com>
98951
98952         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98953         autoconf-2.14a-1999-12-20.
98954
98955 1999-12-19  Jim Meyering  <meyering@ascend.com>
98956
98957         * m4/lstat-slash.m4: New file.
98958         * m4/jm-macros.m4: Use the new macro:
98959         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98960
98961 1999-12-07  Jim Meyering  <meyering@ascend.com>
98962
98963         * m4/perl.m4: Require that File::Compare be available, too.
98964         Too many systems seem to lack it.
98965
98966         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98967         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98968
98969 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98970
98971         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98972         problem with the QNX 4.25 shell, which doesn't propagate exit
98973         status of failed commands inside shell assignments.
98974
98975 1999-11-17  Jim Meyering  <meyering@ascend.com>
98976
98977         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98978
98979 1999-11-07  Jim Meyering  <meyering@ascend.com>
98980
98981         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98982
98983 1999-11-06  Jim Meyering  <meyering@ascend.com>
98984
98985         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98986         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98987
98988 1999-11-05  Jim Meyering  <meyering@ascend.com>
98989
98990         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98991         configure.in of textutils, fileutils, and sh-utils into this one
98992         (shared between those packages) file.
98993         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98994         AC_STRUCT_ST_BLKSIZE.
98995
98996 1999-11-03  Jim Meyering  <meyering@ascend.com>
98997
98998         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98999         of AC_CHECK_TYPE checks includes unistd.h.
99000         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99001         Suggestion from Akim Demaille.
99002
99003 1999-10-30  Jim Meyering  <meyering@ascend.com>
99004
99005         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99006         m4-quoted string.
99007         * m4/ls-mntd-fs.m4: Likewise.
99008         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99009         * m4/jm-winsz1.m4: Likewise.
99010
99011         * m4/const.m4: Remove file, since the fix made it into the experimental
99012         version of autoconf.
99013         * m4/mktime.m4: Likewise.
99014
99015         * m4/check-type.m4: Remove file, now that the latest version of
99016         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99017
99018         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99019         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99020         AC_CHECK_TYPE.
99021
99022 1999-10-04  Jim Meyering  <meyering@ascend.com>
99023
99024         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99025
99026 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99027
99028         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99029         2.95.1 bug with HP-UX 10.20.
99030
99031 1999-09-17  Jim Meyering  <meyering@ascend.com>
99032
99033         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99034         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99035         due to missing strdup (against sh-utils-2.0).
99036
99037 1999-08-29  Jim Meyering  <meyering@ascend.com>
99038
99039         * m4/jm-macros.m4: Require jm_BISON.
99040         * m4/bison.m4: New file.
99041
99042 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99043
99044         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99045         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99046
99047 1999-08-05  Jim Meyering  <meyering@ascend.com>
99048
99049         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99050         to avoid conflicts with `conftest' on 8+3 filesystems.
99051         Suggestion from Eli Zaretskii.
99052
99053 1999-08-04  Jim Meyering  <meyering@ascend.com>
99054
99055         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99056         fileutils and sh-utils (textutils's getline test was inadequate).
99057         (AM_FUNC_GETLINE): Run this test.
99058         (AC_CHECK_FUNCS): Check for getdelim.
99059         Reported by Bob Proulx.
99060
99061 1999-08-02  Jim Meyering  <meyering@ascend.com>
99062
99063         * m4/jm-macros.m4: Add a comment.
99064
99065 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99066
99067         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99068         <inttypes.h> defines strtoumax as a macro (and not as a
99069         function).
99070
99071 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99072
99073         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99074         that we can shift, multiply and divide unsigned long long
99075         values; Ultrix cc can't do it.
99076
99077 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99078
99079         * m4/mktime.m4: New file, which is a preview of what should appear
99080         in the next public autoconf release.
99081
99082 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99083
99084         * m4/lfs.m4: Remove this file.
99085         * m4/largefile.m4: New file.  It contains the old contents of
99086         lfs.m4, except that all names with prefix AC_LFS have been
99087         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99088         compatible with future autoconf versions.  Also, some minor m4
99089         quoting problems have been fixed.
99090
99091 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99092
99093         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99094         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99095         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99096         and simplify the shell code.
99097
99098 1999-08-01  Jim Meyering  <meyering@ascend.com>
99099
99100         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99101         m4.
99102
99103 1999-07-20  Jim Meyering  <meyering@ascend.com>
99104
99105         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99106
99107 1999-07-15  Jim Meyering  <meyering@ascend.com>
99108
99109         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99110
99111 1999-05-22  Jim Meyering  <meyering@ascend.com>
99112
99113         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99114
99115 1999-05-20  Jim Meyering  <meyering@ascend.com>
99116
99117         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99118         Add a colon after each `then' in case $4 is empty.
99119
99120 1999-05-16  Jim Meyering  <meyering@ascend.com>
99121
99122         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99123
99124 1999-05-10  Jim Meyering  <meyering@ascend.com>
99125
99126         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99127
99128         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99129         AC_FUNC_MKTIME.
99130
99131 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99132
99133         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99134
99135 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99136
99137         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99138         not CPPFLAGS, so that linking works correctly in IRIX.
99139
99140 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99141
99142         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99143
99144 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99145
99146         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99147         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99149         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99150         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99151
99152         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99153
99154 1999-04-20  Jim Meyering  <meyering@ascend.com>
99155
99156         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99157         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99158         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99159
99160 1999-04-18  Jim Meyering  <meyering@ascend.com>
99161
99162         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99163         * m4/jm-macros.m4: Use it.
99164
99165 1999-04-06  Jim Meyering  <meyering@ascend.com>
99166
99167         * m4/strftime.m4: Remove test for %f.
99168
99169 1999-03-29  Jim Meyering  <meyering@ascend.com>
99170
99171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99172         superset of the AC_TYPE_* checks in the textutils, fileutils,
99173         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99174         AC_TYPE_PID_T.
99175
99176 1999-03-28  Jim Meyering  <meyering@ascend.com>
99177
99178         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99179         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99180         replaced e.g., in the *.sh files of the sh-utils.
99181
99182 1999-03-20  Jim Meyering  <meyering@ascend.com>
99183
99184         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99185         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99186         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99187
99188 1999-03-19  Jim Meyering  <meyering@ascend.com>
99189
99190         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99191
99192 1999-03-12  Jim Meyering  <meyering@ascend.com>
99193
99194         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99195
99196 1999-03-07  Jim Meyering  <meyering@ascend.com>
99197
99198         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99199         declared.
99200
99201 1999-02-17  Jim Meyering  <meyering@ascend.com>
99202
99203         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99204         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99205
99206 1999-02-07  Jim Meyering  <meyering@ascend.com>
99207
99208         * m4/group-member.m4: New file -- extracted from sh-utils'
99209         configure.in.
99210
99211         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99212         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99213
99214 1999-02-06  Jim Meyering  <meyering@ascend.com>
99215
99216         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99217         * m4/fnmatch.m4: Likewise.
99218         * m4/getgroups.m4: Likewise.
99219         * m4/lstat.m4: Likewise.
99220         * m4/malloc.m4: Likewise.
99221         * m4/putenv.m4: Likewise.
99222         * m4/realloc.m4: Likewise.
99223         * m4/regex.m4: Likewise.
99224         * m4/stat.m4: Likewise.
99225         * m4/strftime.m4: Likewise.
99226         Suggestion from Alain Magloire.
99227
99228         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99229         * m4/fnmatch.m4: Likewise.
99230         * m4/getgroups.m4: Likewise.
99231         * m4/getline.m4: Likewise.
99232         * m4/lstat.m4: Likewise.
99233         * m4/malloc.m4: Likewise.
99234         * m4/memcmp.m4: Likewise.
99235         * m4/putenv.m4: Likewise.
99236         * m4/realloc.m4: Likewise.
99237         * m4/regex.m4: Likewise.
99238         * m4/stat.m4: Likewise.
99239         * m4/strftime.m4: Likewise.
99240         Suggestion from Alain Magloire.
99241
99242         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99243         an argument.
99244
99245         * m4/regex.m4: Add a run-time Test for proper operation of
99246         re_compile_pattern.
99247
99248 1999-01-31  Jim Meyering  <meyering@ascend.com>
99249
99250         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99251
99252 1999-01-30  Jim Meyering  <meyering@ascend.com>
99253
99254         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99255
99256         * m4/jm-mktime.m4: Make this a wrapper around the official
99257         AM_FUNC_MKTIME rather than my private copy, now that the official one
99258         is up to date.
99259         * m4/mktime.m4: Remove file.
99260
99261         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99262         * m4/uptime.m4: Likewise.
99263         * m4/uintmax_t.m4: Likewise.
99264
99265 1999-01-28  Jim Meyering  <meyering@ascend.com>
99266
99267         * m4/jm-macros.m4: Use jm_AFS.
99268         * m4/afs.m4: New file (from fileutils' configure.in).
99269
99270         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99271         * m4/chown.m4: Likewise.
99272         * m4/d-ino.m4: Likewise.
99273         * m4/d-type.m4: Likewise.
99274         * m4/fnmatch.m4: Likewise.
99275         * m4/getgroups.m4: Likewise.
99276         * m4/gettext.m4: Likewise.
99277         * m4/jm-mktime.m4: Likewise.
99278         * m4/jm-winsz2.m4: Likewise.
99279         * m4/lcmessage.m4: Likewise.
99280         * m4/ls-mntd-fs.m4: Likewise.
99281         * m4/malloc.m4: Likewise.
99282         * m4/memcmp.m4: Likewise.
99283         * m4/putenv.m4: Likewise.
99284         * m4/realloc.m4: Likewise.
99285         * m4/st_mtim.m4: Likewise.
99286         * m4/strftime.m4: Likewise.
99287
99288 1999-01-16  Jim Meyering  <meyering@ascend.com>
99289
99290         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99291         (ARGMATCH_DIE_DECL): Define.
99292
99293 1999-01-12  Jim Meyering  <meyering@ascend.com>
99294
99295         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99296         Reported by Lars Hecking.
99297
99298 1999-01-10  Jim Meyering  <meyering@ascend.com>
99299
99300         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99301         gross kludge.
99302         * m4/inttypes_h.m4: Likewise.
99303         * m4/lstat.m4: Likewise.
99304         * m4/malloc.m4: Likewise.
99305         * m4/readdir.m4: Likewise.
99306         * m4/realloc.m4: Likewise.
99307         * m4/st_dm_mode.m4: Likewise.
99308         * m4/stat.m4: Likewise.
99309         * m4/utimbuf.m4: Likewise.
99310         * m4/utimes.m4: Likewise.
99311
99312         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99313         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99314         comments in config.h.in are meaningful.
99315
99316         * m4/jm-macros.m4: Require autoconf-2.13 here.
99317
99318         * m4/regex.m4: By default, don't use the included regex.c on systems
99319         with glibc 2.  Suggestion from Uli Drepper.
99320
99321 1999-01-02  Jim Meyering  <meyering@ascend.com>
99322
99323         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99324
99325 1998-12-18  Jim Meyering  <meyering@ascend.com>
99326
99327         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99328         Based on a suggestion from Lars Hecking.
99329
99330 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99331
99332         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99333
99334 1998-11-16  Jim Meyering  <meyering@ascend.com>
99335
99336         * m4/lfs.m4: Double-quote the `uname...` expression.
99337
99338 1998-11-14  Jim Meyering  <meyering@ascend.com>
99339
99340         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99341         * m4/stat.m4: Likewise.
99342
99343 1998-11-03  Jim Meyering  <meyering@ascend.com>
99344
99345         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99346         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99347
99348 1998-10-18  Jim Meyering  <meyering@ascend.com>
99349
99350         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99351
99352 1998-10-17  Jim Meyering  <meyering@ascend.com>
99353
99354         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99355         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99356         calls for those previously hard-coded headers.  Instead, take a new
99357         parameter.
99358         (jm_CHECK_DECLARATIONS): Reflect interface change.
99359         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99360         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99361
99362         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99363
99364 1998-10-14  Jim Meyering  <meyering@ascend.com>
99365
99366         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99367         instead of "TZ=America/Vancouver".  From Paul Eggert.
99368
99369 1998-10-11  Jim Meyering  <meyering@ascend.com>
99370
99371         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99372         This adds a test for a recently added compatibility fix for mktime.c.
99373         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99374
99375 1998-09-27  Jim Meyering  <meyering@ascend.com>
99376
99377         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99378
99379         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99380         ../configure.in, including a change from Gordon Matzigkeit to allow
99381         cross-compiling for the Hurd.
99382
99383         * m4/glibc.m4: New file/macro to test for the GNU C Library
99384         versions 1 and 2.  From Gordon Matzigkeit.
99385         Indent.
99386
99387 1998-09-21  Jim Meyering  <meyering@ascend.com>
99388
99389         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99390
99391 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99392
99393         Port nanosecond-resolution times to UnixWare 2.1.2 and
99394         pedantic Solaris 2.6.
99395
99396         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99397         AC_STRUCT_ST_MTIM.
99398         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99399         Generate name of ns member, instead of just 1 or undef.
99400         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99401
99402 1998-08-15  Jim Meyering  <meyering@ascend.com>
99403
99404         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99405         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99406         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99407         instead of jm_TYPE_SSIZE_T.
99408
99409 1998-08-12  Jim Meyering  <meyering@ascend.com>
99410
99411         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99412
99413 1998-08-02  Jim Meyering  <meyering@ascend.com>
99414
99415         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99416         in acconfig.h manually.
99417
99418 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99419
99420         * m4/st_mtim.m4: New file.
99421
99422 1998-07-28  Jim Meyering  <meyering@ascend.com>
99423
99424         * m4/utimes.m4: Undef stat.
99425
99426 1998-07-25  Jim Meyering  <meyering@ascend.com>
99427
99428         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99429         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99430
99431 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99432
99433         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99434         uid and gid actually remain unchanged.
99435
99436 1998-07-07  Jim Meyering  <meyering@ascend.com>
99437
99438         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99439
99440 1998-07-04  Jim Meyering  <meyering@ascend.com>
99441
99442         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99443         to prove that this macro can be used in packages without regex.c.
99444
99445 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99446
99447         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99448         is to be used.
99449
99450 1998-07-03  Jim Meyering  <meyering@ascend.com>
99451
99452         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99453
99454         * m4/gettext.m4: New file -- from gettext-0.10.35.
99455         * m4/lcmessage.m4: Likewise.
99456         * m4/progtest.m4: Likewise.
99457
99458         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99459         * m4/jm-macros.m4: Require the new macro.
99460
99461 1998-06-29  Jim Meyering  <meyering@ascend.com>
99462
99463         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99464         for the definition of NGROUPS (used in a system header included
99465         by sys/mount.h).
99466
99467 1998-06-28  Jim Meyering  <meyering@ascend.com>
99468
99469         * m4/ls-mntd-fs.m4: New file.
99470         * m4/fstypename.m4: New file.
99471
99472         * m4/jm-macros.m4: Require the new macro.
99473         * m4/jm-glibc-io.m4: New file.
99474
99475 1998-05-19  Jim Meyering  <meyering@ascend.com>
99476
99477         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99478         * m4/lchown.m4: New file.
99479
99480         * m4/Makefile.am.in: New file.
99481         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99482
99483 1998-05-14  Jim Meyering  <meyering@ascend.com>
99484
99485         * m4/Makefile.am (EXTRA_DIST): Add them.
99486         * m4/jm-macros.m4: New file.
99487         * m4/utimbuf.m4: New file.
99488
99489 1998-05-12  Jim Meyering  <meyering@ascend.com>
99490
99491         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99492
99493 1998-05-11  Jim Meyering  <meyering@ascend.com>
99494
99495         * m4/isc-posix.m4: New file.
99496
99497 1998-05-10  Jim Meyering  <meyering@ascend.com>
99498
99499         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99500
99501 1998-05-09  Jim Meyering  <meyering@ascend.com>
99502
99503         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99504         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99505         with automake.
99506
99507         * m4/ssize_t.m4: New file.
99508         * m4/mktime.m4: Remove file -- the new automake has this now.
99509
99510 1998-04-26  Jim Meyering  <meyering@ascend.com>
99511
99512         * m4/assert.m4: New file.
99513         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99514
99515 1998-04-05  Jim Meyering  <meyering@ascend.com>
99516
99517         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99518         (jm_PREREQ): Use it here.
99519
99520 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99521
99522         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99523         in acconfig.h.
99524
99525 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99526
99527         * m4/prereq.m4: New file.
99528         * m4/error.m4: New file.
99529         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99530
99531 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99532
99533         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99534         cache-check for the same variable -- that defeated the purpose of
99535         the test; the test program was never run.  This was a problem only
99536         on systems with losing getline functions -- HP-UX 10.20 is one.
99537         Reported by Bjorn Helgaas.
99538
99539 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99540
99541         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99542
99543 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99544
99545         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99546
99547         * m4/const.m4: New file.  Use an initializer in this declaration
99548         typedef int charset[2]; const charset x;
99549         Reported by Bob Glickstein.
99550
99551 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99552
99553         * m4/chown.m4: Fix reversed types on -1 args to chown.
99554         From Kaveh Ghazi.
99555
99556 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99557
99558         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99559         Add lseek and memchr.
99560
99561         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99562         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99563         have a 20-character limit on names.
99564
99565 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99566
99567         * m4/inttypes_h.m4: New file.
99568         * m4/uintmax_t.m4: New file.
99569         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99570
99571
99572         -----
99573
99574         Local Variables:
99575         coding: utf-8
99576         End:
99577
99578         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99579
99580         Copying and distribution of this file, with or without
99581         modification, are permitted provided the copyright notice
99582         and this notice are preserved.